﻿/* ==========================================
   CONFIGURACIÓN GENERAL Y PALETA DE COLORES
   ========================================== */
:root {
    --rosa-principal: #e066a6;
    --rosa-suave: #fbebf3;
    --color-carnita: #faf6f0;
    --blanco: #ffffff;
    --texto-oscuro: #4a3e3d; /* Un café/gris oscuro muy fino, evita el negro duro */
    --texto-mutado: #8a7a78;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--texto-oscuro);
    background-color: var(--color-carnita);
    overflow-x: hidden;
}

/* Fuentes premium estilo Canva */
.font-playfair {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ==========================================
   PORTADA PRINCIPAL (HERO SECTION)
   ========================================== */
.hero-section {
    height: 100vh;
    background-color: var(--color-carnita);
    /* Puedes poner un fondo floral sutil de Canva si gustas más adelante */
    background-image: radial-gradient(circle at 80% 20%, var(--rosa-suave) 0%, transparent 40%), radial-gradient(circle at 10% 80%, #f5ece1 0%, transparent 50%);
    padding: 20px;
    position: relative;
}

.subtitle-cursive {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--rosa-principal);
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--texto-oscuro);
    letter-spacing: 1px;

}

.celebrant-name {
    font-size: 1.1rem;
    letter-spacing: 4px;

    color: var(--texto-mutado);
    font-weight: 600;
}

/* Animación sutil de entrada para la portada */
.animate-fade-in {
    animation: fadeIn ease 1.8s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-down-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* ==========================================
   ESTRUCTURA DE SECCIONES INTERNAS
   ========================================== */
.info-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-container {
    max-width: 600px;
    width: 100%;
}

/* Fondos alternados para dar dinamismo al hacer scroll */
.bg-white-card {
    background-color: var(--blanco);
}

.bg-flesh-card {
    background-color: var(--color-carnita);
}

/* Elementos comunes de sección */
.main-pink-color {
    color: var(--rosa-principal) !important;
}

.icon-header-badge i {
    filter: drop-shadow(0 4px 6px rgba(224, 102, 166, 0.15));
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--texto-oscuro);
    font-weight: 600;
}

.cursive-divider {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--rosa-principal);
    margin-top: -5px;
    margin-bottom: 25px;
}

.section-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   DISEÑO ESPECÍFICO DE COMPONENTES
   ========================================== */

/* Bloque de Fecha (Calendario) */
.date-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--rosa-principal);
    border-bottom: 1px solid var(--rosa-principal);
    padding: 15px 40px;
    background: rgba(224, 102, 166, 0.03);
}

.date-month {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--texto-mutado);
    font-weight: 600;
}

.date-day {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--rosa-principal);
    margin: 5px 0;
}

.date-year {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--texto-oscuro);
}

/* Botones Premium Estilo Canva Pro */
.btn-canva-pro {
    background-color: var(--rosa-principal);
    color: var(--blanco) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px; /* Bordes totalmente redondeados y elegantes */
    transition: all 0.3s ease;
}

    .btn-canva-pro:hover,
    .btn-canva-pro:focus {
        background-color: #c44d8c; /* Rosa un poco más profundo al presionar */
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(224, 102, 166, 0.3) !important;
    }

/* Formulario de Confirmación (RSVP Card) */
.rsvp-form {
    border: 1px solid rgba(245, 236, 225, 0.7);
    background-color: var(--blanco) !important;
}

.custom-input {
    border: 1px solid #eadecc;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    background-color: #fdfcfb;
    transition: all 0.25s ease;
}

    .custom-input:focus {
        border-color: var(--rosa-principal);
        box-shadow: 0 0 0 0.25rem rgba(224, 102, 166, 0.15);
        background-color: var(--blanco);
    }
/* ==========================================
   EFECTO DE GLOBOS FLOTANTES PREMIUM
   ========================================== */
.hero-section {
    position: relative;
    overflow: hidden; /* Evita que los globos se salgan de la sección */
}

/* El contenido de texto debe estar por encima de los globos */
.hero-content {
    position: relative;
    z-index: 2;
}

.balloons-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Permite hacer click a través de ellos */
}

/* Base geométrica del Globo */
.balloon-item {
    position: absolute;
    bottom: -150px; /* Inician fuera de la pantalla abajo */
    width: 90px;
    height: 115px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(224, 102, 166, 0.65) 60%, rgba(196, 77, 140, 0.8) 100%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: inset -5px -10px 20px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(224, 102, 166, 0.15);
    animation: floatUp linear infinite;
}

    /* Nudito del globo en la parte inferior */
    .balloon-item::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 8px solid rgba(196, 77, 140, 0.8);
    }

    /* Hilo del globo */
    .balloon-item::before {
        content: "";
        position: absolute;
        bottom: -65px;
        left: 50%;
        width: 1px;
        height: 60px;
        background-color: rgba(74, 62, 61, 0.15); /* Hilo sutil café oscuro */
    }

/* ANIMACIÓN DE FLOTACIÓN (Con vaivén de izquierda a derecha) */
@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-115vh) translateX(30px) rotate(8deg);
        opacity: 0;
    }
}

/* VARIACIONES DE TAMAÑO, POSICIÓN Y VELOCIDAD PARA CADA GLOBO */
.balloon-item.b1 {
    left: 10%;
    width: 85px;
    height: 110px;
    animation-duration: 14s;
    animation-delay: 0s;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(224, 102, 166, 0.5) 60%, rgba(196, 77, 140, 0.7) 100%);
}

.balloon-item.b2 {
    left: 30%;
    width: 105px;
    height: 135px;
    animation-duration: 18s;
    animation-delay: 3s;
    /* Un tono rosa pastel un poco más suave */
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(251, 235, 243, 0.8) 60%, rgba(224, 102, 166, 0.6) 100%);
}

.balloon-item.b3 {
    left: 55%;
    width: 75px;
    height: 95px;
    animation-duration: 12s;
    animation-delay: 1s;
}

.balloon-item.b4 {
    left: 75%;
    width: 110px;
    height: 140px;
    animation-duration: 22s;
    animation-delay: 5s;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(224, 102, 166, 0.55) 60%, rgba(196, 77, 140, 0.75) 100%);
}

.balloon-item.b5 {
    left: 85%;
    width: 80px;
    height: 105px;
    animation-duration: 15s;
    animation-delay: 8s;
}

.balloon-item.b6 {
    left: 20%;
    width: 95px;
    height: 120px;
    animation-duration: 16s;
    animation-delay: 10s;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(251, 235, 243, 0.7) 60%, rgba(224, 102, 166, 0.6) 100%);
}
/* ==========================================
   DECORACIONES DE ESQUINA FIJAS (ESTILO CANVA)
   ========================================== */
.info-section {
    overflow: hidden; /* Mantiene los detalles recortados dentro de la sección */
}

/* Base del adorno de esquina */
.corner-deco {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.35; /* Sutil para que no tape los textos */
    pointer-events: none;
    background: transparent;
    transition: all 0.3s ease;
}

/* Diseño de hojas abstractas entrelazadas usando pseudo-elementos */
.corner-deco::before, .corner-deco::after {
    content: "";
    position: absolute;
    border: 2px solid var(--rosa-principal);
    border-radius: 50% 0 50% 0; /* Forma de pétalo/hoja */
}

/* Ajustes por posición */
.corner-deco.top-left {
    top: 15px;
    left: 15px;
}
.corner-deco.top-left::before { width: 40px; height: 40px; top: 0; left: 0; }
.corner-deco.top-left::after { width: 65px; height: 65px; top: 15px; left: 15px; border-color: #e8a7c9; }

.corner-deco.bottom-right {
    bottom: 15px;
    right: 15px;
    transform: rotate(180deg);
}
.corner-deco.bottom-right::before { width: 40px; height: 40px; top: 0; left: 0; }
.corner-deco.bottom-right::after { width: 65px; height: 65px; top: 15px; left: 15px; border-color: #e8a7c9; }

.corner-deco.top-right {
    top: 15px;
    right: 15px;
    transform: rotate(90deg);
}
.corner-deco.top-right::before { width: 40px; height: 40px; top: 0; left: 0; }
.corner-deco.top-right::after { width: 65px; height: 65px; top: 15px; left: 15px; border-color: #e8a7c9; }

.corner-deco.bottom-left {
    bottom: 15px;
    left: 15px;
    transform: rotate(270deg);
}
.corner-deco.bottom-left::before { width: 40px; height: 40px; top: 0; left: 0; }
.corner-deco.bottom-left::after { width: 65px; height: 65px; top: 15px; left: 15px; border-color: #e8a7c9; }

/* En pantallas medianas y grandes, hacemos el marco un poco más vistoso */
/* Modificación para que el formulario se estire y se vea grande en PC */
@media (min-width: 768px) {
    .rsvp-form {
        max-width: 100% !important; /* Rompe cualquier candado de tamaño */
        width: 100% !important; /* Obliga a usar todo el ancho de la columna de Bootstrap */
    }

        /* Hacemos que los textos del formulario se vean más grandes en pantallas grandes */
        .rsvp-form .form-label {
            font-size: 1.25rem !important;
        }

        /* Hace los campos para escribir más altos y con letra grande */
        .rsvp-form .custom-input {
            font-size: 1.15rem !important;
            padding: 15px !important;
            height: auto !important;
        }

        /* Hace el botón de enviar más imponente */
        .rsvp-form .btn-canva-pro {
            font-size: 1.25rem !important;
            padding: 12px !important;
        }
}
/* ==========================================
   TEXTURA DE CONFETI Y DESTELLOS DE FIESTA (FIJO)
   ========================================== */
.position-relative {
    position: relative;
}

.confetti-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25; /* Sutil y elegante para que no compita con el texto */
    /* Creamos puntos de confeti rosa y dorado de diferentes tamaños usando gradientes radiales */
    background-image: radial-gradient(circle, #e066a6 15%, transparent 16%), radial-gradient(circle, #fcd1e6 10%, transparent 11%), radial-gradient(circle, #f39c12 8%, transparent 9%), radial-gradient(circle, #e066a6 12%, transparent 13%), radial-gradient(circle, #f1c40f 10%, transparent 11%);
    /* Distribución y tamaño del patrón por toda la tarjeta */
    background-size: 240px 240px;
    background-position: 0 0, 40px 120px, 130px 30px, 180px 190px, 80px 210px;
}

/* Forzamos que el contenedor de texto real siempre flote arriba del confeti */
.section-container {
    position: relative;
    z-index: 1;
}
/* SOLUCIÓN DEFINITIVA: El contador inicia oculto y aparece solo tras 1.5 segundos */
#countdown, .countdown-container {
    opacity: 0;
    animation: aparecerSuave 1.2s ease-in-out forwards;
    animation-delay: 1.0s; /* Le da 1.5 segundos exactos al JS para que pinte la hora real en secreto */
}
.day-Sem {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px; /* Da el espacio fino entre letras estilo Canva */
    color: var(--texto-mutado); /* El café/gris suave elegante */
    display: block; /* Asegura que se comporte correctamente en el bloque */
}
/* ==========================================
   EFECTO CHIDOTE PARA LA FLECHA DE DESPLAZAMIENTO
   ========================================== */
.Cell-Flet {
    display: inline-block;
    font-size: 1.8rem; /* Tamaño ideal, ni muy gigante ni muy chica */
    color: var(--rosa-principal); /* El rosa premium de Rosita */
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(224, 102, 166, 0.2);
    /* Activamos la animación: se mueve suave de arriba a abajo para siempre */
    animation: flotarFlecha 1.6s infinite ease-in-out;
    cursor: pointer;
    transition: all 0.3s ease;
}

    /* Efecto opcional: si pasan el mouse sobre ella, se ilumina más */
    .Cell-Flet:hover {
        color: #c44d8c;
        transform: scale(1.2);
    }

/* LA MAGIA DEL MOVIMIENTO (Animación de vaivén vertical) */
@keyframes flotarFlecha {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6; /* Se vuelve un poquito más tenue arriba */
    }

    50% {
        transform: translateY(8px); /* Baja 8 píxeles de forma fluida */
        opacity: 1; /* Brilla al máximo cuando baja */
    }
}
/* Animación pura de CSS */
@keyframes aparecerSuave {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
