:root {
    --gold: #D4AF37;
    --pastel-pink: #FDE8E9;
    --text-dark: #333333;
}

body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    overflow: hidden; /* Evita scrolls raros */
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfcfc;
}

/* =========================================
   PANTALLA DE CARGA (SPLASH SCREEN)
   ========================================= */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; /* Fondo blanco impecable */
    z-index: 99999; /* Por encima de absolutamente todo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* La imagen pulsante */
.loader-img-pulse {
    width: 130px; /* Tamaño ideal, puedes ajustarlo si tu imagen es muy ancha */
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(212, 175, 55, 0.3)); /* Sombrita dorada */
    animation: pulseLoader 1.2s infinite alternate ease-in-out;
}

/* El texto de carga */
.loader-texto {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2b5c3a; /* Verde del tema principal */
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 25px;
    animation: fadeTexto 1.2s infinite alternate ease-in-out;
}

/* Animación de latido para la imagen */
@keyframes pulseLoader {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.1); }
}

/* Animación de opacidad para el texto */
@keyframes fadeTexto {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* =========================================
   CORTINA DE BIENVENIDA Y EFECTO FLASH
   ========================================= */
#welcome-curtain {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100dvh;
    background-color: #FAFAFA;
    z-index: 99990; /* Por debajo del loader, pero encima del lobby */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    /* Evita que el contenedor interfiera después de ocultarse */
    transition: opacity 0.5s ease, visibility 0.5s ease; 
}

.curtain-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 500px;
    width: 100%;
    z-index: 2;
    position: relative;
    /* Animación de entrada suave al quitar el loader */
    animation: fadeInUp 0.8s ease-out forwards; 
}

.curtain-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2b5c3a;
    margin-bottom: 10px;
    margin-top: 0;
}

.curtain-message {
    font-family: 'Montserrat', sans-serif;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Animación Flash Mágico --- */
.flash-out {
    animation: flashMagic 1.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes flashMagic {
    0% { filter: brightness(1); opacity: 1; }
    30% { filter: brightness(10) contrast(1.5); background-color: #ffffff; opacity: 1; }
    100% { filter: brightness(1); opacity: 0; visibility: hidden; }
}

.hidden { display: none !important; }
.d-flex-center { display: flex; justify-content: center; align-items: center; height: 100vh; }
.font-playfair { font-family: 'Playfair Display', serif; }

/* --- LOBBY (HERO) CON VIDEO --- */
#lobby-view {
    position: relative;
    /* Usamos dvh para evitar que la barra del navegador móvil corte el botón */
    height: 100dvh; 
    min-height: 100vh; /* Fallback para navegadores antiguos */
    width: 100vw;
    background: radial-gradient(circle at center, #ffffff 0%, #fdfbf7 60%, #f4ebd8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    overflow: hidden;
}

/* --- REGLAS DEL VIDEO DE FONDO --- */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video llene la pantalla sin deformarse */
    z-index: 0; /* Capa más profunda */
    pointer-events: none; /* Evita que el usuario lo pause sin querer */
}

/* Capa de color sobre el video para garantizar el contraste del texto */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Si el video es claro, usa rgba(255,255,255,0.4) y texto oscuro */
    /* Si el video es oscuro, usa rgba(0,0,0,0.5) y texto blanco */
    background: rgba(26, 67, 40, 0.6);
    z-index: 1;
}

#lobby-view::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* Overlay oscuro para resaltar texto */
    z-index: 1;
}

.hero-content, .split-nav, .btn-floating-rsvp { z-index: 2; position: relative; }

.title { font-family: 'Playfair Display', serif; font-size: 4rem; margin: 10px 0; }

/* --- NAVEGACIÓN DUAL (SPLIT) --- */
.split-nav {
    position: absolute;
    bottom: 80px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-split {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px); 
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Aplicamos la animación pulsante */
    animation: latidoBotones 2s infinite alternate ease-in-out;
}

.btn-split.btn-right {
    animation-delay: 0.5s;
}

@keyframes latidoBotones {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
    100% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); border: 1px solid rgba(212, 175, 55, 0.5); }
}

.btn-split i { font-size: 1.8rem; }
.btn-split:hover { 
    background: rgba(255, 255, 255, 0.4); 
    transform: scale(1.08); 
    animation-play-state: paused; /* Pausa el latido si ponen el mouse encima */
}

/* --- BOTÓN RSVP --- */
.btn-floating-rsvp {
    position: absolute;
    bottom: 190px; /* Cambiar de 30px a 130px */
    padding: 12px 30px;
    border-radius: 30px;
    background-color: var(--gold);
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    z-index: 3;
    transition: background-color 0.3s ease;
}
.btn-floating-rsvp:hover {
    background-color: #b8972e;
}

/* --- MUNDOS (OVERLAYS) --- */
.overlay-world {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); /* Animación Premium */
}

/* Estado Inicial (Afuera de la pantalla) */
.slide-left { transform: translateX(-100%); }
.slide-right { transform: translateX(100%); }

/* Estado Activo (Cubriendo pantalla) */
.overlay-world.active { transform: translateX(0); }

/* Personalización por mundo */
#cumple-world { background-color: var(--pastel-pink); }
#bautizo-world { background-color: #FAFAFA; }

.btn-close-world {
    position: absolute;
    top: 20px;
    margin: 20px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1001;
}

.content-wrapper { padding: 40px 20px; text-align: center; }

/* --- LOBBY (HERO) NEUTRAL Y PREMIUM --- */
#lobby-view {
    position: relative;
    height: 100vh;
    width: 100vw;
    /* Degradado radial perlado/dorado muy sutil */
    background: radial-gradient(circle at center, #ffffff 0%, #fdfbf7 60%, #f4ebd8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-dark); /* Cambiamos a texto oscuro */
    overflow: hidden;
}

/* Ajustamos los textos para fondo claro */
.hero-eyebrow {
    color: #888888;
}

.hero-title {
    color: var(--gold); /* Danna en dorado */
    text-shadow: none;
}

.hero-subtitle {
    color: #a39161;
}

/* --- EFECTO DESTELLOS (POLVO DE HADAS / LUZ) --- */
.sparkles-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.6);
    opacity: 0;
    animation: floatSparkle 6s infinite ease-in-out;
}

/* Posiciones aleatorias para las 5 partículas */
.sparkle:nth-child(1) { left: 20%; top: 80%; animation-delay: 0s; }
.sparkle:nth-child(2) { left: 70%; top: 60%; animation-delay: 2s; }
.sparkle:nth-child(3) { left: 40%; top: 30%; animation-delay: 4s; }
.sparkle:nth-child(4) { left: 80%; top: 90%; animation-delay: 1s; }
.sparkle:nth-child(5) { left: 10%; top: 40%; animation-delay: 3s; }

@keyframes floatSparkle {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    50% { transform: translateY(-100px) scale(1.2); opacity: 0.8; }
    100% { transform: translateY(-200px) scale(0.5); opacity: 0; }
}

/* Ajuste del contador para que se vea horizontal y con espacio */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio entre las cajitas */
    margin-top: 30px;
}

.countdown-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 12px 15px;
    min-width: 65px; /* Asegura que todas las cajitas midan lo mismo */
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(5px);
}

.cd-number { 
    color: #ffffff; 
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.cd-label { 
    color: rgba(255, 255, 255, 0.8); 
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* --- REAJUSTE DE CAPAS Y TEXTOS --- */
/* Subimos el índice Z de todo el contenido para que flote sobre el video */
.sparkles-container { z-index: 2; }
.guest-greeting-top { 
    z-index: 3; 
    color: #ffffff; 
    text-align: center;
    margin-bottom: 25px; /* Más aire antes del título principal */
    font-size: 1.1rem;
    line-height: 1.4;
}
.hero-content { 
    z-index: 3; 
    position: relative; 
    text-align: center; 
    width: 100%;
    padding: 0 20px;
    margin-bottom: 260px; /* Cambiar de 130px a 200px */
}
.split-nav {
    position: absolute;
    bottom: 90px; /* Cambiar de 95px a 40px */
    width: 90%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    z-index: 3;
}

/* Ajuste de tipografías para fondo de video oscuro */
.hero-eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    color: var(--gold);
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    margin: 5px 0; /* Menos margen vertical para que el subtítulo suba un poco */
}

.hero-subtitle {
    color: #ffffff;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
}

.cd-number { 
    color: #ffffff; 
}

.cd-label { 
    color: rgba(255, 255, 255, 0.8); 
}

/* =========================================
   MUNDO 1: CUMPLEAÑOS (CAMPANITA)
   ========================================= */

#cumple-world {
    background-color: #F7FCF8; /* Fondo general verde muuuuy pálido */
}

/* --- 1. HERO CUMPLEAÑOS --- */

.cumple-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.cumple-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 67, 40, 0.6); /* Filtro verde oscuro para no perder el texto */
    z-index: 1;
}

.cumple-hero {
    position: relative;
    /* Cambiamos el height fijo por min-height: 100vh para que siempre cubra toda la pantalla inicial */
    min-height: 100vh; 
    width: 100%;
    background-color: #1a4328; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.magical-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    z-index: 2; /* Sube de nivel */
}

.cumple-hero-content {
    position: relative;
    z-index: 3; /* Sube de nivel */
    margin-top: -30px;
}

.cumple-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9); /* Cambiado a blanco para mejor contraste */
    margin-bottom: 5px;
    font-weight: 600;
}

.cumple-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    /* Usamos clamp(min, ideal, max) para que la fuente se adapte fluida */
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    color: #ffffff;
    margin: 0;
    z-index: 3;
}

.cumple-name {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    color: var(--gold);
    margin: -10px 0 0 0;
    line-height: 1;
    text-shadow: 2px 4px 15px rgba(255, 255, 255, 0.8);
}

/* Ajuste del contenedor interno general */
.cumple-content-wrapper {
    padding: 0; /* Quitamos padding general para poder usar fondos de ancho completo en las siguientes secciones */
}

/* --- BOTÓN REGRESAR FLOTANTE (ESTILO PÍLDORA) --- */
.btn-close-world {
    position: fixed; /* Se mantiene en pantalla al hacer scroll */
    top: 20px;
    left: 20px;
    margin: 0;
    background: rgba(255, 255, 255, 0.85); /* Fondo blanco semitransparente */
    backdrop-filter: blur(5px); /* Efecto vidrio */
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 30px; /* Forma redondeada premium */
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a4328; /* Verde oscuro del tema para contraste */
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Sombra para despegarlo del fondo */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el icono y el texto */
}

.btn-close-world:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --- FLECHA ANIMADA DE SCROLL --- */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px; /* Separación desde el fondo del hero */
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff; /* Flecha blanca */
    font-size: 2.2rem;
    z-index: 10;
    cursor: pointer;
    animation: bounceFade 2s infinite; /* Animación infinita */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); /* Sombra para que se lea en videos claros */
}

/* Animación: Baja un poco, desaparece, vuelve a empezar */
@keyframes bounceFade {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    30% {
        opacity: 1; /* Aparece en su lugar original */
    }
    70% {
        transform: translate(-50%, 25px); /* Se desliza 25px hacia abajo */
        opacity: 0; /* Y desaparece */
    }
    100% {
        transform: translate(-50%, 25px);
        opacity: 0;
    }
}

/* --- 2. SECCIÓN HISTORIA --- */
.cumple-section-historia {
    position: relative;
    padding: 60px 20px;
    /* En móvil, la sección se adapta al contenido pero garantiza cubrir la pantalla vertical */
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: linear-gradient(rgba(247, 252, 248, 0.50), rgba(247, 252, 248, 0.50)), 
                url('../image/bosque.png') center/cover no-repeat;
}

.historia-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 sola columna en celulares */
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.historia-img-container {
    display: flex;
    justify-content: center;
}

.campanita-img {
    width: 220px; 
    animation: floatTinkerbell 4s ease-in-out infinite;
    filter: drop-shadow(0px 10px 15px rgba(34, 90, 56, 0.2));
}

@keyframes floatTinkerbell {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.historia-text-container {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: #2b5c3a;
    line-height: 1.8;
    text-align: center; /* Texto centrado en celular */
    min-height: 200px;
}

.texto-escritura {
    display: inline;
}

.cursor-escribiendo {
    display: inline-block;
    font-weight: 600;
    color: var(--gold);
    margin-left: 3px;
    animation: parpadeoCursor 1s step-end infinite;
}

@keyframes parpadeoCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================
   MEDIA QUERY: AJUSTE PARA MODO WEB (ESCRITORIO)
   ========================================= */
@media (min-width: 768px) {
    .cumple-section-historia {
        /* En escritorio forzamos la altura a 850px para lucir el fondo */
        min-height: 850px; 
        padding: 100px 40px;
        background-attachment: fixed; /* Mantenemos el efecto Parallax elegante */
    }
    
    .historia-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas exactas: 50% imagen, 50% texto */
        gap: 60px;
    }

    .historia-text-container {
        text-align: left; /* Alineamos a la izquierda para que parezca un libro de cuentos */
        font-size: 1.35rem; 
    }

    .campanita-img {
        width: 350px; /* Hacemos la ilustración mucho más grande en PC */
    }
}

/* --- 3. SECCIÓN IMAGEN (PARALLAX) --- */
.cumple-section-parallax {
    position: relative;
    /* Altura para celulares */
    height: 40vh; 
    width: 100%;
    overflow: hidden; /* Oculta lo que sobresalga */
    /* Pequeña sombra interna para integrarlo suavemente con las secciones blancas */
    box-shadow: inset 0px 10px 20px rgba(0,0,0,0.1), inset 0px -10px 20px rgba(0,0,0,0.1);
}

/* El overlay es un filtro sutil para que la imagen se vea más "premium" y menos cruda */
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(34, 90, 56, 0.2), rgba(212, 175, 55, 0.15));
    z-index: 1;
}

.parallax-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2; /* Se asegura de estar por encima de la imagen y el overlay */
}

/* --- TEXTO RADIANTE TINKER BELL --- */
.tinkerbell-glow-text {
    /* Tipografía cursiva de cuento de hadas */
    font-family: 'Great Vibes', cursive;
    /* Fluidez: 3.5rem en móvil, crece dinámicamente, tope de 6.5rem en web */
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    color: #fff9e6; /* Un tono casi blanco pero cálido */
    text-align: center;
    padding: 0 20px;
    
    /* Efecto radiante inicial (capas de luz) */
    text-shadow: 
        0 0 5px #fff,
        0 0 15px rgba(212, 175, 55, 0.8),
        0 0 30px rgba(212, 175, 55, 0.8),
        0 0 50px rgba(212, 175, 55, 1),
        0 0 80px rgba(255, 215, 0, 1),
        0 0 100px rgba(255, 215, 0, 1);
        
    /* Animación infinita para que la luz palpite */
    animation: pulseGlow 2.5s infinite alternate ease-in-out;
}

/* Animación de latido para el resplandor mágico */
@keyframes pulseGlow {
    0% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px rgba(212, 175, 55, 0.6),
            0 0 20px rgba(212, 175, 55, 0.8),
            0 0 40px rgba(212, 175, 55, 0.9),
            0 0 70px rgba(255, 215, 0, 1);
        transform: scale(0.98);
    }
    100% {
        text-shadow: 
            0 0 8px #fff,
            0 0 20px rgba(212, 175, 55, 0.8),
            0 0 40px rgba(212, 175, 55, 1),
            0 0 60px rgba(255, 215, 0, 1),
            0 0 100px rgba(255, 215, 0, 1),
            0 0 120px rgba(255, 215, 0, 1);
        transform: scale(1.02);
    }
}

.jarallax-img {
    width: 0%;
}

/* =========================================
   MEDIA QUERY: PARALLAX EN MODO WEB
   ========================================= */
@media (min-width: 768px) {
    .cumple-section-parallax {
        /* En escritorio la hacemos más imponente */
        height: 60vh; 
    }
}

@media (max-width: 700px) {
    .cumple-section-parallax {
        /* Reducimos la altura a 25vh para que no requiera hacer zoom horizontal */
        height: 25vh; 
        width: 100%;
    }

    .jarallax-img {
        /* Eliminamos el margen de 250px y permitimos que la imagen fluya natural */
        margin-top: 170px !important; 
        
        /* Forzamos a que respete los bordes de la imagen */
        object-fit: contain !important;
    }
}

/* --- LLUVIA DE POLVO DE HADAS --- */
.fairy-dust-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Se sitúa sobre el fondo oscuro, pero debajo del texto */
    pointer-events: none; /* Evita que las partículas bloqueen clics */
}

.dust {
    position: absolute;
    top: -20px; /* Inician fuera de la pantalla por arriba */
    background-color: #fff9e6; /* Color cálido */
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    animation: fallDust linear infinite;
    opacity: 0;
}

/* Animación de caída y balanceo sutil */
@keyframes fallDust {
    0% { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(1000px) translateX(40px) scale(1.2); opacity: 0; }
}

/* Distribución aleatoria de las partículas */
.dust:nth-child(1) { left: 5%; width: 4px; height: 4px; animation-duration: 6s; animation-delay: 0s; }
.dust:nth-child(2) { left: 15%; width: 3px; height: 3px; animation-duration: 8s; animation-delay: 2s; }
.dust:nth-child(3) { left: 25%; width: 5px; height: 5px; animation-duration: 5s; animation-delay: 1s; }
.dust:nth-child(4) { left: 35%; width: 2px; height: 2px; animation-duration: 9s; animation-delay: 3s; }
.dust:nth-child(5) { left: 45%; width: 4px; height: 4px; animation-duration: 7s; animation-delay: 0.5s; }
.dust:nth-child(6) { left: 55%; width: 3px; height: 3px; animation-duration: 6.5s; animation-delay: 4s; }
.dust:nth-child(7) { left: 65%; width: 5px; height: 5px; animation-duration: 5.5s; animation-delay: 1.5s; }
.dust:nth-child(8) { left: 75%; width: 3px; height: 3px; animation-duration: 8.5s; animation-delay: 0.2s; }
.dust:nth-child(9) { left: 85%; width: 4px; height: 4px; animation-duration: 6s; animation-delay: 3.5s; }
.dust:nth-child(10) { left: 95%; width: 2px; height: 2px; animation-duration: 7.5s; animation-delay: 2.8s; }
.dust:nth-child(11) { left: 10%; width: 4px; height: 4px; animation-duration: 5s; animation-delay: 1.2s; }
.dust:nth-child(12) { left: 30%; width: 5px; height: 5px; animation-duration: 9s; animation-delay: 2.2s; }
.dust:nth-child(13) { left: 50%; width: 3px; height: 3px; animation-duration: 6s; animation-delay: 0.8s; }
.dust:nth-child(14) { left: 70%; width: 4px; height: 4px; animation-duration: 7.8s; animation-delay: 3.1s; }
.dust:nth-child(15) { left: 90%; width: 3px; height: 3px; animation-duration: 8s; animation-delay: 1.8s; }

/* --- 4. SECCIÓN CUÁNDO Y DÓNDE --- */
.cumple-section-lugar {
    padding: 100px 20px;
    background-color: #F7FCF8;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor Grid: 1 columna en móvil, 2 en web */
.lugar-grid {
    display: grid;
    grid-template-columns: 1fr; /* Móvil: 1 columna */
    gap: 70px; /* Mucho espacio en vertical para que los iconos flotantes no choquen */
    max-width: 900px;
    width: 100%;
}

@media (min-width: 768px) {
    .lugar-grid {
        grid-template-columns: 1fr 1fr; /* Escritorio: 2 columnas iguales */
        gap: 40px; /* Reducimos el gap horizontal */
    }
}

.lugar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(34, 90, 56, 0.08);
    border-top: 5px solid var(--gold);
    position: relative;
    /* Flexbox interno para que el contenido se distribuya y ambas tarjetas midan lo mismo */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Icono flotante */
.lugar-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    position: absolute;
    top: -30px;
    left: calc(50% - 30px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    border: 2px solid #F7FCF8;
}

.lugar-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2b5c3a;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Estilos de la Tarjeta 1 (Fecha) */
.fecha-detalles {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fecha-texto {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.hora-texto {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #666;
}

.decoracion-card {
    font-size: 3.5rem;
    color: rgba(212, 175, 55, 0.15); /* Dorado muy transparente */
    margin-top: 20px;
}

/* Estilos de la Tarjeta 2 (Mapa) */
.lugar-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; 
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: #f0f0f0; 
}

.btn-llegar {
    display: inline-block;
    background-color: #2b5c3a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(43, 92, 58, 0.3);
}

.btn-llegar:hover {
    background-color: #1a4328;
    transform: translateY(-2px);
    color: #ffffff;
}

/* --- BOTÓN CALENDARIO --- */
.btn-calendario {
    display: inline-block;
    border: 2px solid var(--gold);
    color: var(--gold);
    background-color: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2; /* Se asegura de estar por encima del icono decorativo de fondo */
}

.btn-calendario:hover {
    background-color: var(--gold);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* =========================================
   5. SECCIÓN IMAGEN CON FRASE
   ========================================= */
.cumple-section-frase {
    position: relative;
    padding: 100px 20px;
    background-color: #ffffff; /* Contraste limpio con las secciones anteriores */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.frase-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frase-img {
    width: 150px;
    margin-bottom: 30px;
    /* Efecto de sombra dorada suave para que resalte en el fondo blanco */
    filter: drop-shadow(0 15px 25px rgba(212, 175, 55, 0.25));
    /* Reutilizamos la animación flotante que ya tienes en tu CSS */
    animation: floatTinkerbell 5s ease-in-out infinite; 
}

.frase-texto {
    font-family: 'Great Vibes', cursive;
    /* En móvil 2.8rem, escala fluida, tope de 4.5rem en web */
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: var(--gold); /* Dorado elegante */
    line-height: 1.3;
    margin: 0;
    text-shadow: 1px 2px 4px rgba(212, 175, 55, 0.1); /* Sombra muy sutil para dar volumen */
}

/* --- DESTELLOS DE FONDO (Opcional) --- */
.sparkles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Un degradado radial invertido para dar luz al centro */
    
    background: linear-gradient(rgba(247, 252, 248, 0.75), rgba(247, 252, 248, 0.75)), 
                url('../image/frase-cumple.png') center/cover no-repeat;
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   MEDIA QUERY: AJUSTES PARA ESCRITORIO
   ========================================= */
@media (min-width: 768px) {
    .cumple-section-frase {
        padding: 150px 40px; /* Más aire (respiro visual) en web */
    }
    
    .frase-img {
        width: 200px; /* Imagen más grande en monitores */
        margin-bottom: 40px;
    }
}

/* =========================================
   6. SECCIÓN ITINERARIO (TIMELINE)
   ========================================= */
.cumple-section-itinerario {
    padding: 60px 20px;
    background-color: #F7FCF8; 
    /* Seguro anti-scroll horizontal en móviles */
    overflow-x: hidden; 
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* La línea vertical central/lateral */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(212, 175, 55, 0.4); 
    top: 0;
    bottom: 0;
    left: 20px; /* En móvil, la línea va a la izquierda */
    margin-left: -1px;
}

.timeline-item {
    /* Ajuste de padding para celular: dejamos 60px a la izquierda para el icono */
    padding: 20px 0 20px 60px; 
    position: relative;
    width: 100%;
    /* CLAVE: Obliga al navegador a calcular el ancho incluyendo el padding */
    box-sizing: border-box; 
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 0;
    top: 20px; 
    background: #F7FCF8; /* Se iguala al fondo para tapar la línea vertical detrás */
    border: 2px solid var(--gold);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    box-sizing: border-box;
}

.timeline-content {
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    position: relative;
    border-top: 4px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2b5c3a;
    margin: 0 0 10px 0;
}

.timeline-time {
    font-family: 'Montserrat', sans-serif;
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.timeline-desc {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   MEDIA QUERY: TIMELINE EN MODO ESCRITORIO
   ========================================= */
@media (min-width: 768px) {
    .timeline::after {
        left: 50%; /* La línea pasa al centro exacto */
    }

    .timeline-item {
        width: 50%;
        padding: 20px 40px;
    }

    /* Elementos de la izquierda */
    .timeline-item.left {
        left: 0;
    }

    .timeline-item.left .timeline-icon {
        right: -20px; /* Centra el icono en la línea */
        left: auto;
    }

    .timeline-item.left .timeline-content {
        text-align: right;
    }

    /* Elementos de la derecha */
    .timeline-item.right {
        left: 50%;
    }

    .timeline-item.right .timeline-icon {
        left: -20px; /* Centra el icono en la línea */
    }
}

/* =========================================
   6. SECCIÓN MESA DE REGALOS
   ========================================= */
.cumple-section-regalos {
    padding: 80px 20px;
    background-color: #F7FCF8; /* Mantiene el ritmo de color */
    display: flex;
    justify-content: center;
    align-items: center;
}

.regalos-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 30px 40px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--gold);
}

.regalos-icon {
    width: 70px;
    height: 70px;
    background: #ffffff;
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    position: absolute;
    top: -35px;
    left: calc(50% - 35px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    border: 2px solid #F7FCF8;
}

.regalos-desc {
    font-family: 'Montserrat', sans-serif;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.mesas-botones-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn-regalo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #2b5c3a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid #2b5c3a;
    transition: all 0.3s ease;
}

.btn-regalo:hover {
    background-color: #2b5c3a;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(43, 92, 58, 0.2);
}

.sobre-efectivo {
    font-family: 'Montserrat', sans-serif;
    color: #777;
    padding-top: 20px;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

/* =========================================
   SECCIÓN INTERACTIVA: MINIJUEGO
   ========================================= */
.cumple-section-minijuego {
    padding: 80px 20px;
    background-color: #ffffff; /* Contraste limpio */
    display: flex;
    justify-content: center;
    align-items: center;
}

.minijuego-card {
    background: #F7FCF8;
    border-radius: 20px;
    padding: 40px 20px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    position: relative;
    /* Previene que las luces se salgan de la tarjeta */
    overflow: hidden; 
}

.minijuego-icono-header {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
    animation: floatTinkerbell 4s infinite ease-in-out;
}

.minijuego-desc {
    font-family: 'Montserrat', sans-serif;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- INTERFAZ DEL JUEGO ACTIVO --- */
.juego-stats {
    display: flex;
    justify-content: space-between;
    padding: 12px 25px;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2b5c3a;
    font-size: 1.2rem;
}

.area-juego {
    width: 100%;
    height: 350px; /* Altura de la "cancha" */
    background: radial-gradient(circle at bottom, #2b5c3a 0%, #1a4328 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    /* Cambia el cursor a una mirilla para dar sensación de juego en PC */
    cursor: crosshair; 
}

.shadow-inner {
    box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

/* --- LAS PARTÍCULAS / HADAS --- */
.hada-objetivo {
    position: absolute;
    width: 45px;
    height: 45px;
    /* Resplandor dorado circular */
    background: radial-gradient(circle, #fff9e6 10%, rgba(212, 175, 55, 0.8) 50%, rgba(212, 175, 55, 0) 80%);
    border-radius: 50%;
    /* forwards mantiene el elemento en el frame final al terminar */
    animation: caerMagia linear forwards;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    /* Evita seleccionar elementos de texto al hacer clics rápidos */
    user-select: none; 
}

/* Ponemos una estrellita blanca al centro de la luz */
.hada-objetivo::after {
    content: '\f005'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(212, 175, 55, 1);
}

/* Animación de la caída */
@keyframes caerMagia {
    0% { transform: translateY(-50px) scale(0.8); opacity: 0; }
    10% { opacity: 1; transform: translateY(0px) scale(1.2); }
    90% { opacity: 1; }
    100% { transform: translateY(370px) scale(0.8); opacity: 0; }
}

/* Clase para animación de aparición suave del premio */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   7. SECCIÓN DE DESPEDIDA CON FOTO
   ========================================= */
.cumple-section-despedida {
    padding: 80px 20px 100px; /* Un poco más de padding abajo antes del footer */
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.despedida-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en celulares */
    gap: 50px;
    max-width: 1000px;
    width: 100%;
    align-items: center;
}

/* --- ESTILOS DE LA FOTO --- */
.despedida-foto {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 10px; /* Espacio para que la rotación no corte la sombra */
}

.marco-foto {
    position: relative;
    padding: 15px; /*
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2); */
    /* Rotación juguetona */
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efecto al pasar el mouse por la foto en PC */
.marco-foto:hover {
    transform: rotate(0deg) scale(1.02);
}

.img-festejada {
    width: 100%;
    max-width: 280px; 
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.decoracion-esquina {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--gold);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* --- ESTILOS DEL TEXTO --- */
.despedida-texto {
    text-align: center;
}

.despedida-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2b5c3a; /* Verde oscuro del tema */
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.despedida-parrafo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.firma-despedida {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: 1px 1px 3px rgba(212, 175, 55, 0.2);
}

/* =========================================
   MEDIA QUERY: DESPEDIDA EN ESCRITORIO
   ========================================= */
@media (min-width: 768px) {
    .despedida-grid {
        grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
        gap: 60px;
    }

    .despedida-texto {
        text-align: left; /* Alineamos el texto a la izquierda en PC */
    }
    
    .img-festejada {
        max-width: 380px; /* Foto más grande en PC */
    }
    
    .firma-despedida {
        font-size: 4rem;
    }
}

/* =========================================
   8. FOOTER MINIMALISTA
   ========================================= */
.cumple-footer {
    background-color: #fcfcfc;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2); /* Borde sutil dorado */
}

.cumple-footer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #888888;
    margin: 0;
}

/* El enlace a tu página de Facebook */
.footer-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #2b5c3a; /* Cambia al verde del tema al pasar el mouse */
    text-decoration: underline;
}

/* Animación del corazón */
.corazon-latido {
    color: #e25555; /* Rojo suave/pastel */
    display: inline-block;
    animation: latido 1.5s infinite ease-in-out;
}

@keyframes latido {
    0% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.25); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/**AQUI**/

/* =========================================
   MUNDO 2: BAUTIZO
   ========================================= */
#bautizo-world {
    background-color: #FAFAFA; /* Base blanca cremosa y elegante */
}

/* 1. Hero Bautizo */
.bautizo-hero {
    position: relative;
    min-height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f4ebd8; /* Color crema de respaldo si el video tarda en cargar */
    overflow: hidden;
}

/* --- VIDEO DE FONDO BAUTIZO --- */
.bautizo-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Capa blanca semi-transparente para un efecto celestial y garantizar lectura */
.bautizo-video-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255, 215, 0, 0.19); 
    z-index: 1;
}

.bautizo-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.bautizo-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    /*background: rgba(255, 255, 255, 0.6);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(5px);*/
}

.bautizo-hero-content .cumple-eyebrow {
    color: #e1d1a7 !important; /* Dorado oscuro */
    font-size: 1.1rem;
    
}

/* 2. Frase Espiritual */
/* 2. Frase Espiritual */
.bautizo-section-frase {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Evita que las palomas se vean fuera de esta sección */
    background-color: transparent;
}

.frase-espiritual-content {
    position: relative;
    z-index: 2; /* Mantiene el texto por encima de las palomas */
    max-width: 800px;
    margin: 0 auto;
}

.icono-espiritual {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.9;
    filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.3));
}

.texto-espiritual {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8); /* Sombra blanca para que resalte si pasa una paloma detrás */
}

/* --- ANIMACIÓN DE PALOMAS CAYENDO --- */
.doves-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; /* Las palomas no bloquean el clic o el scroll */
    z-index: 1;
}

.dove {
    position: absolute;
    top: -50px;
    color: var(--gold);
    opacity: 0;
    animation: fallDove linear infinite;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.2));
}

/* Caída con un ligero balanceo simulando el vuelo */
@keyframes fallDove {
    0% { transform: translateY(0) translateX(0) rotate(-15deg) scale(0.8); opacity: 0; }
    15% { opacity: 0.3; } /* Opacidad baja para que sea sutil */
    50% { transform: translateY(400px) translateX(30px) rotate(15deg) scale(1); }
    85% { opacity: 0.3; }
    100% { transform: translateY(800px) translateX(-20px) rotate(-15deg) scale(0.8); opacity: 0; }
}

/* Tiempos, tamaños y posiciones aleatorias para cada paloma */
.dove:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; font-size: 1rem; }
.dove:nth-child(2) { left: 30%; animation-duration: 15s; animation-delay: 2s; font-size: 1.6rem; }
.dove:nth-child(3) { left: 55%; animation-duration: 11s; animation-delay: 6s; font-size: 1.2rem; }
.dove:nth-child(4) { left: 75%; animation-duration: 14s; animation-delay: 1s; font-size: 1.5rem; }
.dove:nth-child(5) { left: 85%; animation-duration: 16s; animation-delay: 4s; font-size: 1.1rem; }
.dove:nth-child(6) { left: 20%; animation-duration: 13s; animation-delay: 8s; font-size: 1.4rem; }

/* 3. Padres y Padrinos */
.bautizo-section-padrinos {
    padding: 60px 20px 80px;
    background-color: #fdfbf7;
}

.padres-padrinos-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .padres-padrinos-grid {
        grid-template-columns: 1fr 1fr; /* Dos columnas en PC */
    }
}

/* La tarjeta contenedora blanca */
.main-card-guias {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 25px;
    border-top: 5px solid var(--gold);
    text-align: center;
}

.guias-title {
    font-family: 'Playfair Display', serif;
    color: #2b5c3a;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 30px;
}

.guias-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Las mini-tarjetas de cada persona */
.padrino-card {
    background: #fdfbf7;
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    
    /* Reglas añadidas para evitar el scroll horizontal */
    width: 100%;
    box-sizing: border-box; 
    overflow: hidden; 
    word-wrap: break-word; /* Permite que textos largos pasen a otra línea */
}

.padrino-rol {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 5px;
}

.padrino-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}

/* 6. Árbol de los Deseos (Estilo Tinkerbell) */
.bautizo-section-arbol {
    padding: 80px 20px;
    /* Transición de blanco al verde oscuro del bosque */
    background: linear-gradient(to bottom, #FAFAFA 0%, #1a4328 100%);
    position: relative;
}

.arbol-container {
    background: rgba(255, 255, 255, 0.85); /* Un poco más transparente */
    backdrop-filter: blur(10px); /* Efecto vidrio esmerilado */
    max-width: 700px;
    margin: 0 auto;
    border-radius: 30px; /* Bordes mucho más suaves */
    padding: 40px 30px;
    text-align: center;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.arbol-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2b5c3a;
    margin-bottom: 10px;
}

.arbol-desc {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    margin-bottom: 30px;
}

.arbol-visual {
    height: 320px; /* Un poco más alto */
    background: url('../image/bosque.png') center/cover no-repeat;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    /* Efecto viñeta profunda para que parezca un portal mágico */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.6), 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

/* La hoja / deseo flotante */
.deseo-burbuja {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    border: 1px solid var(--gold);
    padding: 10px 15px;
    border-radius: 20px 20px 20px 0; /* Forma de hoja de texto */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #2b5c3a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 200px;
    animation: flotarDeseo 8s ease-in-out infinite alternate;
}

.deseo-burbuja strong { display: block; color: var(--gold); font-size: 0.75rem; margin-bottom: 3px; }

@keyframes flotarDeseo {
    0% { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(-15px) translateX(10px); }
}

.form-control-magico {
    width: 100%;
    box-sizing: border-box; /* ¡Esta es la magia que evita el desbordamiento! */
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 15px 20px;
    border-radius: 30px; 
    font-family: 'Montserrat', sans-serif;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

textarea.form-control-magico {
    border-radius: 20px; /* Menos curvo para el área de texto */
    resize: none;
}

.form-control-magico:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), inset 0 2px 5px rgba(0,0,0,0.02);
    transform: translateY(-2px);
}

.btn-magico {
    background-color: var(--gold);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.btn-magico:hover { background-color: #b8972e; transform: scale(1.05); }

/* 7. Conexión */
.bautizo-section-conexion {
    background-color: #1a4328; /* Verde oscuro continuo */
    padding: 60px 20px 80px;
    text-align: center;
    color: #fff;
}
.conexion-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold); margin-bottom: 10px; }
.conexion-desc { font-family: 'Montserrat', sans-serif; opacity: 0.8; margin-bottom: 30px; }

/* =========================================
   MODAL RSVP Y BOLETO DIGITAL
   ========================================= */
#rsvp-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100dvh;
    z-index: 99995; /* Por encima de todo, debajo del splash */
    display: flex;
    justify-content: center;
    align-items: center;
}

.rsvp-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.rsvp-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 40px 25px;
    z-index: 2;
    text-align: center;
    border-top: 5px solid var(--gold);
    animation: fadeInUp 0.4s ease-out forwards;
}

.btn-close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}
.btn-close-modal:hover { color: #e25555; }

/* --- DISEÑO DEL BOLETO --- */
.digital-ticket {
    background: #F7FCF8;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ticket-header {
    background: #1a4328;
    color: #fff;
    padding: 15px;
}
.ticket-header h3 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }
.ticket-header p { margin: 5px 0 0; font-family: 'Great Vibes', cursive; font-size: 2.5rem; color: var(--gold); line-height: 1; text-shadow: none; }

.ticket-body {
    padding: 20px;
    border-bottom: 2px dashed rgba(212, 175, 55, 0.5);
    position: relative;
}

/* Efecto de troquelado (huecos a los lados) */
.ticket-body::before, .ticket-body::after {
    content: '';
    position: absolute;
    bottom: -15px;
    width: 30px; height: 30px;
    background: #ffffff; /* Color del modal para camuflarse */
    border-radius: 50%;
}
.ticket-body::before { left: -16px; border-right: 2px solid rgba(212, 175, 55, 0.3); }
.ticket-body::after { right: -16px; border-left: 2px solid rgba(212, 175, 55, 0.3); }

.ticket-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    text-align: left;
}
.ticket-info span { font-size: 0.75rem; color: #888; text-transform: uppercase; }
.ticket-info strong { font-size: 1.1rem; color: #2b5c3a; font-family: 'Montserrat', sans-serif; font-weight: 700; }

.ticket-footer {
    padding: 12px;
    background: #fdfbf7;
    color: #a39161;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Centrar el contenedor del QR --- */
.ticket-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}