/* VARIABLES GLOBALES (TEMA STITCH) */
:root {
    /* TONOS AZULES (STITCH) */
    --stitch-blue: #6A95C2;      /* Azul medio/grisáceo del cuerpo de Stitch */
    --stitch-dark: #2A4866;      /* Azul oscuro de su nariz/ojos, ideal para textos legibles */
    --stitch-cyan: #A4D8ED;      /* Azul cielo/cyan de los globos y las líneas del pastel */
    
    /* TONOS ROSAS (NIÑA / DETALLES) */
    --pink-pastel: #FFC0CB;      /* Rosa suave del betún del pastel y las flores base */
    --pink-accent: #F48FB1;      /* Rosa un poco más fuerte para contraste (orejas, globos oscuros) */
    
    /* FONDOS */
    --bg-white: #FFFFFF;
    --bg-soft-pink: #FFF5F8;     /* Un blanco con un ligerísimo toque de rosa para fondos secundarios */
}

body, html {
    margin: 0; 
    padding: 0; 
    width: 100%; 
    /* ¡CAMBIO CLAVE! Esto evita que SweetAlert reinicie el scroll */
    min-height: 100vh; 
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

/* UTILIDADES */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }

/* =========================================
   PANTALLA DE CARGA (SPLASH SCREEN)
   ========================================= */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--bg-white);
    z-index: 99999;
    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; }

.loader-img-pulse {
    width: 130px; height: auto;
    /* Sombra adaptada al color primario */
    filter: drop-shadow(0 10px 15px rgba(0, 39, 118, 0.3)); 
    animation: pulseLoader 1.2s infinite alternate ease-in-out;
}

.loader-texto {
    font-size: 1.1rem; font-weight: 600;
    color: var(--stitch-dark);
    letter-spacing: 3px; text-transform: uppercase;
    margin-top: 25px;
    animation: fadeTexto 1.2s infinite alternate ease-in-out;
}

@keyframes pulseLoader {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.1); }
}

@keyframes fadeTexto {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* =========================================
   REDISEÑO: CORTINA DE BIENVENIDA
   ========================================= */
#welcome-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Fondo tropical degradado con colores de la temática */
    background: linear-gradient(135deg, var(--stitch-blue), var(--stitch-cyan));
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.curtain-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    max-width: 90%;
    width: 380px;
    border: 4px dashed var(--pink-accent); /* Borde estilo recorte/boleto */
}

.curtain-stitch-img {
    width: 140px;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

.curtain-title {
    color: var(--stitch-dark);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.curtain-text {
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Animación para que el botón "Abrir Invitación" palpite */
.btn-pulse {
    animation: pulseBtn 2s infinite;
    background-color: var(--pink-accent) !important;
    border: 3px solid var(--bg-white);
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 30px;
    width: 100%;
}

@keyframes pulseBtn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 143, 177, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(244, 143, 177, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 143, 177, 0); }
}

/* =========================================
   SECCIÓN HERO (STITCH THEME)
   ========================================= */
#hero-stitch {
    position: relative;
    width: 100%;
    height: 100dvh; 
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
    /* 1. AGREGAMOS LA IMAGEN DE FONDO AQUÍ */
    /* Cambia 'fondo-hawaii.jpg' por el nombre de tu imagen de fondo */
    background: url('../image/hero2.png') center/cover no-repeat;
    background-color: var(--stitch-cyan); /* Color de respaldo por si tarda en cargar */
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* 2. EL DEGRADADO PASA AL OVERLAY CON TRANSPARENCIA */
    /* Usamos RGBA para darle un 85% y 80% de opacidad. 
       El 164, 216, 237 es el código RGB exacto de tu color --stitch-cyan (#A4D8ED) */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(164, 216, 237, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    margin-top: -50px; /* Para compensar visualmente el espacio de la ola de abajo */
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--stitch-dark);
    margin-bottom: 15px;
}

.hero-title {
    /* Aquí te sugiero importar una fuente como 'Baloo 2' o 'Fredoka One' de Google Fonts */
    font-family: 'Montserrat', sans-serif; 
    font-weight: 800;
    /* La magia del clamp: en móvil será de 4rem, y crecerá fluido hasta 6rem en PC */
    font-size: clamp(4rem, 10vw, 6rem);
    line-height: 1;
    margin: 0;
    /* Texto con efecto Stitch: Color azul con sombra rosa */
    color: var(--stitch-blue);
    text-shadow: 3px 3px 0px var(--bg-white), 6px 6px 0px var(--pink-pastel);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--pink-accent);
    margin-top: 10px;
}

/* --- ANIMACIÓN: ELEMENTOS FLOTANTES --- */
.floating-elements-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Evita que estorben si el usuario quiere tocar algo */
    z-index: 2;
}

.floating-item {
    position: absolute;
    opacity: 0.6;
    /* Usamos la misma animación suave para todos */
    animation: flotarElemento 6s infinite ease-in-out alternate;
}

/* Posiciones y colores de los Corazones */
.h1 { left: 10%; bottom: 20%; font-size: 2rem; animation-delay: 0s; color: var(--pink-pastel); }
.h2 { left: 80%; bottom: 50%; font-size: 1.5rem; animation-delay: 1.5s; color: var(--stitch-cyan); }
.h3 { left: 30%; bottom: 70%; font-size: 2.5rem; animation-delay: 3s; color: var(--pink-accent); }

/* Posiciones y colores de los Regalos */
.g1 { left: 70%; bottom: 15%; font-size: 2.2rem; animation-delay: 0.5s; color: var(--stitch-blue); }
.g2 { left: 20%; bottom: 45%; font-size: 1.8rem; animation-delay: 2.5s; color: var(--pink-pastel); }
.g3 { left: 85%; bottom: 80%; font-size: 1.6rem; animation-delay: 1s; color: var(--stitch-cyan); }

/* La animación base (suben, se agrandan y giran un poquito) */
@keyframes flotarElemento {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.4; }
    100% { transform: translateY(-100px) scale(1.2) rotate(15deg); opacity: 0.8; }
}

/* --- ICONO SCROLL DOWN --- */
.scroll-down-icon {
    color: var(--stitch-dark);
    font-size: 2rem;
    animation: bounceUpDown 2s infinite;
    cursor: pointer;
}

@keyframes bounceUpDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(15px); }
    60% { transform: translateY(7px); }
}

/* --- OLA DECORATIVA (WAVE DIVIDER) CORREGIDA --- */
.wave-divider {
    position: absolute;
    bottom: -1px; /* Bajamos la ola 1px para evitar líneas finas de corte */
    left: 0;
    width: 100%;
    overflow: hidden; /* Corta cualquier excedente */
    line-height: 0;
    z-index: 4;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%; /* Forzamos a que mida exactamente 100%, sin el calc() */
    height: 60px;
}

.wave-divider .shape-fill {
    /* Este color debe ser EXACTAMENTE el mismo que el fondo de la siguiente sección */
    fill: var(--bg-white); 
}

@media (min-width: 768px) {
    .wave-divider svg {
        height: 100px; /* En web la ola se hace más alta y pronunciada */
    }
}

/* Contenedor circular */
.hero-image-wrapper {
    width: 200px; /* Tamaño del círculo (puedes ajustarlo si lo quieres más grande o chico) */
    height: 200px; /* IMPORTANTE: El ancho y alto deben ser iguales para que sea un círculo */
    margin: 0 auto 20px auto; /* Lo centra horizontalmente y le da espacio abajo */
    border-radius: 50%; /* Hace que el contenedor sea redondo */
    overflow: hidden; /* ¡CLAVE! Corta cualquier parte de la imagen que se salga del círculo */
    
    /* Detalles estéticos (Opcional pero recomendado) */
    border: 5px solid var(--bg-white);
    box-shadow: 0 10px 25px rgba(42, 72, 102, 0.3); /* Sombra con el azul oscuro de Stitch */
    background-color: var(--bg-white); /* Fondo por si tu imagen es PNG transparente */
}

/* La imagen en sí */
.stitch-hero-img {
    width: 100%;
    height: 100%;
    /* ¡LA MAGIA OCURRE AQUÍ! 
       'cover' hace que la imagen se expanda para llenar todo el círculo 
       recortando los sobrantes, PERO sin deformar la cara del personaje */
    object-fit: cover; 
    
    /* Si la cara de Stitch queda muy arriba o muy abajo, puedes ajustarla así: */
    /* object-position: center top; */
}

/* =========================================
   SECCIÓN CUÁNDO Y DÓNDE (CORREGIDA)
   ========================================= */
.section-blanca {
    background-color: var(--bg-white);
    padding: 80px 20px 100px 20px; /* Padding generoso abajo para evitar cortes */
    position: relative;
    z-index: 3;
}

.section-rosa {
    background-color: var(--bg-soft-pink);
    padding: 80px 20px 100px 20px; /* Padding generoso abajo para evitar cortes */
    position: relative;
    z-index: 3;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--stitch-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: var(--pink-accent);
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- EL GRID --- */
.lugar-grid {
    display: grid; 
    grid-template-columns: 1fr; /* MÓVIL: 1 columna */
    gap: 80px; /* MÓVIL: Gap gigante para que el ícono de -35px quepa sin encimarse */
    margin-top: 60px; /* Empuja las tarjetas lejos del título */
}

@media (min-width: 768px) {
    .lugar-grid {
        grid-template-columns: 1fr 1fr; /* WEB: 2 columnas */
        gap: 40px; /* WEB: Gap normal porque están lado a lado */
    }
}

/* --- LAS TARJETAS --- */
.lugar-card {
    background: var(--bg-soft-pink);
    border-radius: 20px;
    padding: 50px 30px 30px;
    position: relative;
    box-shadow: 0 10px 25px rgba(164, 216, 237, 0.3);
    border-top: 6px solid var(--stitch-blue);
    display: flex;
    flex-direction: column;
    /* Eliminamos height y márgenes manuales. El Grid se encarga del tamaño. */
}

.lugar-icon {
    width: 70px;
    height: 70px;
    background: var(--stitch-blue);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    position: absolute;
    top: -35px; /* Flota 35px hacia arriba */
    left: calc(50% - 35px);
    box-shadow: 0 5px 15px rgba(106, 149, 194, 0.4);
    border: 4px solid var(--bg-white);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--stitch-dark);
    margin-bottom: 15px;
}

.fecha-texto {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--stitch-dark);
    margin-bottom: 5px;
}

.hora-texto {
    font-size: 1.1rem;
    color: var(--pink-accent);
    font-weight: bold;
}

.decoracion-card {
    font-size: 4rem;
    color: rgba(255, 192, 203, 0.3);
    margin-top: auto; 
    padding-top: 20px;
}

.lugar-name {
    font-weight: bold;
    color: var(--stitch-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.lugar-address {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid var(--stitch-cyan);
    width: 100%;
}

/* =========================================
   SECCIÓN CUENTA REGRESIVA
   ========================================= */
#cuenta-regresiva {
    background-color: var(--bg-white); /* Conecta perfecto con la ola del hero */
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), 
                url('../image/descarga.jfif') center/cover no-repeat;
    /* padding: 60px 20px 20px; /* Menos padding abajo para que se una visualmente con "Cuándo y Dónde" */
    padding: 182px 20px;
    position: relative;
    z-index: 3;
}

.countdown-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--pink-accent); /* Título en color rosa */
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 8px; /* Menos espacio entre cajas en celular */
    flex-wrap: nowrap; /* ¡Clave! Prohíbe terminantemente que bajen a otra línea */
}

.countdown-box {
    background: var(--stitch-blue);
    border: 3px solid var(--stitch-cyan);
    border-radius: 12px; /* Un poco menos curvo para ajustarse al tamaño */
    padding: 10px 5px; /* Menos padding interno en celular */
    min-width: 60px; /* Reducimos el ancho mínimo */
    flex: 1; /* Permite que las cajas se encojan equitativamente si la pantalla es muy pequeña */
    max-width: 90px; /* Evita que crezcan demasiado en PC */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 20px rgba(42, 72, 102, 0.25);
}

.cd-number { 
    color: var(--bg-white); 
    /* Fluido: 1.3rem en móvil, hasta 2.2rem en web */
    font-size: clamp(1.3rem, 6vw, 2.2rem); 
    font-weight: bold;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.cd-label { 
    color: var(--stitch-cyan); 
    /* Fluido: se hace más pequeño en celulares */
    font-size: clamp(0.55rem, 2vw, 0.75rem); 
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Recuperamos el tamaño original para pantallas de computadora */
@media (min-width: 768px) {
    .countdown-container {
        gap: 15px; 
    }
    .countdown-box {
        padding: 15px;
        min-width: 80px;
        border-radius: 18px;
    }
}

.cd-label { 
    color: var(--stitch-cyan); /* Color claro para que contraste con el azul oscuro */
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 8px;
}

.mensaje-fiesta {
    color: var(--pink-accent);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* --- GALERÍA GRID AUTOMÁTICA --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    padding: 20px 10px;
}

/* --- ESTILO BASE DE LA FOTO (Oculta y pequeña al inicio) --- */
.foto-galeria {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 5px solid var(--bg-white); /* Marco estilo foto impresa */
    box-shadow: 0 8px 15px rgba(42, 72, 102, 0.15);
    
    /* Preparativos para la animación */
    opacity: 0; 
    transform: translateY(50px) scale(0.8);
    /* Transición con un efecto de "rebote" (cubic-bezier) */
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform; /* Optimización extrema para móviles */
}

/* Inclinamos las fotos pares a la derecha y las impares a la izquierda (Escondidas) */
.foto-galeria:nth-child(even) { transform: translateY(50px) scale(0.8) rotate(5deg); }
.foto-galeria:nth-child(odd) { transform: translateY(50px) scale(0.8) rotate(-5deg); }

/* --- CLASES CUANDO SE HACEN VISIBLES CON JS --- */
.foto-galeria.visible:nth-child(even) { opacity: 1; transform: translateY(0) scale(1) rotate(5deg); }
.foto-galeria.visible:nth-child(odd) { opacity: 1; transform: translateY(0) scale(1) rotate(-5deg); }

/* --- EFECTO HOVER INTERACTIVO --- */
.foto-galeria.visible:hover {
    transform: scale(1.15) rotate(0deg) !important; /* Se endereza y crece */
    z-index: 10;
    position: relative;
    box-shadow: 0 15px 30px rgba(164, 216, 237, 0.6);
    border-color: var(--pink-pastel);
}

@media (min-width: 768px) {
    .galeria-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .foto-galeria { height: 180px; }
}

/* =========================================
   LIGHTBOX / VISOR DE GALERÍA
   ========================================= */
#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Cubre toda la pantalla */
    background-color: rgba(10, 25, 47, 0.95); /* Azul muy oscuro semitransparente */
    z-index: 999999; /* Aseguramos que esté por encima de TODO */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Lo mantenemos oculto y listo para animar */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Cuando le agregamos esta clase con JS, se muestra suavemente */
#lightbox-modal.activo {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh; /* Evita que se salga en celulares alargados */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 4px solid var(--bg-white);
    
    /* Animación de zoom al abrir */
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#lightbox-modal.activo .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--bg-white);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--pink-accent); /* La X se pone rosa al pasar el mouse */
    transform: scale(1.1);
}

/* =========================================
   SECCIÓN RSVP (VIDEO BACKGROUND)
   ========================================= */
#rsvp-whatsapp {
    position: relative;
    padding: 100px 20px 120px;
    overflow: hidden; /* Evita que el video sobresalga de la sección */
    background-color: var(--stitch-dark); /* Color de respaldo si el video falla */
}

/* Configuraciones del Video */
.rsvp-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llena toda la sección sin deformarse */
    z-index: 0;
    pointer-events: none;
}

/* Capa oscura sobre el video */
.rsvp-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 72, 102, 0.6); /* Azul oscuro de Stitch al 60% de opacidad */
    z-index: 1;
}

/* Elevamos el contenido para que no quede debajo del video */
.rsvp-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Modificamos los títulos para que resalten sobre el video oscuro */
.titulo-video {
    color: var(--bg-white) !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.subtitulo-video {
    color: var(--pink-pastel) !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* =========================================
   TARJETA DE WHATSAPP (ESTILO STITCH)
   ========================================= */
.rsvp-stitch-card {
    /* RGBA del --stitch-blue (#6A95C2) al 85% de opacidad para efecto vidrio */
    background: rgba(106, 149, 194, 0.85); 
    backdrop-filter: blur(8px); /* Desenfoca el video que pasa por detrás de la tarjeta */
    
    border-radius: 30px;
    padding: 70px 30px 40px; 
    max-width: 500px;
    margin: 60px auto 0;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); /* Sombra más oscura para separar del video */
    border: 4px dashed var(--stitch-cyan);
}

/* --- STITCH ASOMÁNDOSE --- */
.stitch-peeking {
    position: absolute;
    top: -85px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    z-index: 2;
    pointer-events: none;
}

.peeking-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: peekBounce 3s infinite ease-in-out;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.4)); 
}

@keyframes peekBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- TEXTOS E INPUTS --- */
.rsvp-card-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--bg-white);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 0px rgba(42, 72, 102, 0.5);
}

.form-stitch-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    margin-bottom: 18px;
    border: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--stitch-dark);
    background-color: var(--bg-white);
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.1);
    outline: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-stitch-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--pink-pastel), inset 0 4px 6px rgba(0,0,0,0.05);
}

/* --- BOTÓN WHATSAPP --- */
.btn-stitch-wa {
    background-color: #25D366;
    color: white;
    border: 3px solid var(--bg-white);
    padding: 15px 25px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-stitch-wa:hover {
    transform: translateY(-5px) scale(1.03);
    background-color: #1ebe57;
}

/* =========================================
   EFECTO EXPLOSIÓN DE EMOJIS (RSVP)
   ========================================= */
.emoji-particle {
    position: fixed; /* Se pinta por encima de toda la pantalla */
    pointer-events: none; /* Evita que bloqueen clics */
    z-index: 999999;
    font-size: 2rem; /* Tamaño de los emojis */
    
    /* El truco de la animación: usan las variables que inyectaremos desde JS */
    animation: explodeEmoji 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes explodeEmoji {
    0% { 
        transform: translate(-50%, -50%) scale(0.2); 
        opacity: 1; 
    }
    70% { 
        opacity: 1; 
    }
    100% { 
        /* Van a la dirección aleatoria y desaparecen */
        transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(var(--rot)); 
        opacity: 0; 
    }
}

/* =========================================
   MINIJUEGO: MISIÓN ESPACIAL
   ========================================= */

#minijuego {
    /* Fondo azul oscuro espacial */
    background-color: var(--stitch-dark);
    /* Patrón de estrellas hecho 100% con CSS (sin imágenes) */
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
    
    padding: 80px 20px;
    position: relative;
    border-top: 5px solid var(--stitch-cyan); /* Línea divisoria superior */
    border-bottom: 5px solid var(--pink-accent); /* Línea divisoria inferior */
}

/* Modificamos los títulos solo para esta sección para que resalten en la oscuridad */
#minijuego .section-title {
    color: var(--bg-white);
    text-shadow: 0 0 15px rgba(164, 216, 237, 0.8); /* Brillo cyan estilo neón */
}

#minijuego .section-subtitle {
    color: var(--pink-pastel);
    font-weight: bold;
}
.game-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px); /* Desenfoca lo que hay detrás */
    -webkit-backdrop-filter: blur(12px); /* Soporte para iPhone */
    
    border: 2px solid rgba(255, 255, 255, 0.3); /* Borde de cristal */
    border-radius: 25px;
    padding: 20px 15px;
    box-shadow: 0 10px 25px rgba(164, 216, 237, 0.4);
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--stitch-dark);
}

.game-stat {
    background: var(--bg-white);
    padding: 8px 15px;
    border-radius: 15px;
    border: 2px solid var(--stitch-cyan);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    color: var(--stitch-dark);
}

.game-board {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(to bottom, #0F2027, #203A43, #2C5364); /* Fondo noche/espacio */
    border-radius: 15px;
    overflow: hidden; /* ¡Clave! Oculta todo lo que salga de la caja */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--stitch-cyan);
    box-shadow: 0 0 20px rgba(164, 216, 237, 0.4);
    
}

.game-start-btn {
    z-index: 10;
    font-size: 1.3rem;
    padding: 15px 30px;
    background-color: var(--pink-accent);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 15px rgba(244, 143, 177, 0.8);
}

/* Las naves y objetos cayendo */
.falling-item {
    position: absolute;
    top: -50px;
    font-size: 2.5rem; /* Tamaño del emoji */
    cursor: pointer;
    user-select: none; /* Evita que el usuario seleccione el emoji como texto */
    -webkit-tap-highlight-color: transparent; /* Quita el destello azul al tocar en móviles */
    z-index: 5;
    animation: fallDown 2.2s linear forwards; /* 2.2s tardan en tocar el suelo */
    transition: transform 0.1s;
}

/* La animación que simula gravedad */
@keyframes fallDown {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(380px) rotate(180deg); }
}

/* =========================================
   FOOTER FESTICLICK
   ========================================= */
.festiclick-footer {
    background-color: var(--stitch-dark); /* Fondo oscuro elegante */
    color: var(--bg-white);
    text-align: center;
    padding: 25px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border-top: 3px solid var(--stitch-cyan);
}

.festiclick-footer a {
    color: var(--pink-accent); /* Color distintivo para tu marca */
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.festiclick-footer a:hover {
    color: var(--bg-white);
}

/* =========================================
   REPRODUCTOR DE MÚSICA
   ========================================= */
.music-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999; /* Por encima de todo */
}

.btn-music {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--stitch-blue);
    color: var(--bg-white);
    border: 3px solid var(--stitch-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(42, 72, 102, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    outline: none;
}

/* Clase que se activa con JS cuando suena la música */
.btn-music.playing {
    background-color: var(--pink-accent); /* Cambia a rosa para indicar que está activo */
    border-color: var(--bg-white);
    animation: pulseMusic 1.5s infinite alternate ease-in-out;
}

@keyframes pulseMusic {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(244, 143, 177, 0.5); }
    100% { transform: scale(1.1); box-shadow: 0 0 25px rgba(244, 143, 177, 0.9); }
}

/* =========================================
   BOTÓN AGENDAR CALENDARIO
   ========================================= */
.btn-stitch-calendario {
    background-color: var(--pink-accent);
    color: var(--bg-white);
    border: 3px solid var(--bg-white);
    padding: 12px 15px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 15px rgba(244, 143, 177, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 15px; /* Lo separa del pastel */
}

.btn-stitch-calendario:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: #e07a9d; /* Un rosa ligeramente más oscuro */
    color: var(--bg-white);
}

/* =========================================
   ANIMACIÓN DE EMOJIS CAYENDO (CORTINA)
   ========================================= */
#welcome-curtain {
    overflow: hidden; /* Evita que se creen barras de desplazamiento */
}

.curtain-content {
    position: relative;
    z-index: 10; /* Mantiene la tarjeta por encima de los emojis */
}

.falling-emoji-cortina {
    position: absolute;
    top: -10%; /* Nacen justo arriba del borde de la pantalla */
    z-index: 1; /* Pasan por detrás de la tarjeta */
    pointer-events: none; /* Evita que el usuario los seleccione o toque por error */
    user-select: none;
    animation: fallCortina linear forwards;
}

@keyframes fallCortina {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(120vh) rotate(360deg); opacity: 0; }
}

/* =========================================
   MURO DE BUENOS DESEOS (OHANA)
   ========================================= */
.deseo-form-card {
    background: var(--bg-white);
    max-width: 500px;
    margin: 0 auto 40px auto;
    padding: 25px 20px;
    border-radius: 25px;
    border: 3px solid var(--stitch-cyan);
    box-shadow: 0 10px 25px rgba(42, 72, 102, 0.1);
}

.deseo-textarea {
    resize: none;
    border-radius: 15px !important;
    font-family: 'Montserrat', sans-serif;
}

.muro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-height: 480px;
    overflow-y: auto;
    padding: 10px;
}

/* Estilizar la barra de scroll del muro */
.muro-grid::-webkit-scrollbar {
    width: 8px;
}
.muro-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}
.muro-grid::-webkit-scrollbar-thumb {
    background: var(--stitch-blue);
    border-radius: 10px;
}

.deseo-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 20px;
    text-align: left;
    position: relative;
    border-bottom: 4px solid var(--pink-accent);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    animation: popIn 0.4s ease-out forwards;
}

.deseo-card::after {
    content: '🌺';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.3rem;
    opacity: 0.85;
}

.deseo-autor {
    color: var(--stitch-dark);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    padding-right: 25px;
}

.deseo-texto {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.texto-vacio {
    grid-column: 1 / -1;
    color: var(--stitch-dark);
    font-style: italic;
    opacity: 0.8;
    padding: 20px;
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   SECCIÓN: NOTAS DE LA MISIÓN
   ========================================= */
.mision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 950px;
    margin: 0 auto;
}

.mision-card {
    background: var(--bg-soft-pink);
    border-radius: 25px;
    padding: 30px 20px;
    border: 2px dashed var(--stitch-cyan);
    box-shadow: 0 8px 20px rgba(42, 72, 102, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(42, 72, 102, 0.15);
}

/* Alternamos el color del borde en la tarjeta de en medio para darle ritmo visual */
.mision-card:nth-child(2) {
    border-color: var(--pink-accent);
    background: #ffffff;
}

.mision-icon-wrapper {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--stitch-blue), var(--stitch-cyan));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px auto;
    font-size: 2rem;
    box-shadow: 0 6px 15px rgba(106, 149, 194, 0.4);
    animation: floatIcon 3s ease-in-out infinite;
}

/* La tarjeta de en medio lleva el círculo rosa */
.mision-card:nth-child(2) .mision-icon-wrapper {
    background: linear-gradient(135deg, var(--pink-accent), #ff9eb5);
    box-shadow: 0 6px 15px rgba(244, 143, 177, 0.4);
    animation-delay: 1.5s; /* Desfasa la animación para que no suban al mismo tiempo */
}

.mision-card-title {
    color: var(--stitch-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.mision-card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* Transición suave para desvanecer la cortina */
.curtain-fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
    pointer-events: none; /* Evita que le den doble clic mientras desaparece */
}

.btn-primario {
    background-color: var(--stitch-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn-primario:hover { transform: scale(1.05); }