/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
}

body {
    font-family: 'baby_girly_script', cursive, sans-serif;
    background: #fff;
    color: #fff;

    overflow-x: hidden;
    overflow-y: auto;

    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: auto;
}

/* Fuente personalizada */
@font-face {
    font-family: 'baby_girly_script';
    src: url('../../Assets/fonts/baby_girly_script/Baby\ Girly.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.hidden { display: none !important; }

/* Bloqueo real solo si tu JS añade estas clases */
body.bloqueado-scroll,
body.desbloqueando-scroll {
    overflow: hidden !important;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    touch-action: none;
}

body.scroll-activo {
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

#puertas.abierto {
    touch-action: none;
}

/* MARK:GENERAL */
:root {
    --color-primario: #ffcc33;
    --color-secundario: #5a2e0d;
    --texto-suelto-sombra:
        0px 2px 2px var(--color-secundario),
        0px -2px 2px var(--color-secundario),
        2px 0px 2px var(--color-secundario),
        -2px -0px 2px var(--color-secundario);
}
.icono-botones-sombra {
    filter:
        drop-shadow(0px 0px 1px var(--color-secundario))
        drop-shadow(0px 0px 1px var(--color-secundario))
        drop-shadow(0px 0px 2px var(--color-secundario))
        drop-shadow(0px 0px 2px var(--color-secundario));
}


/* =========================================================
   MARK: OVERLAY
========================================================= */
:root {
    --overlay-texto-color: var(--color-primario);
    --overlay-texto-size: 50px;
    --overlay-texto-family: inherit;
    --overlay-texto-weight: 600;
    --overlay-texto-sombra:
        0px 2px 2px rgb(68, 39, 0),
        0px -2px 2px rgb(68, 39, 0),
        2px 0px 2px rgb(77, 46, 6),
        -2px -0px 2px rgb(67, 42, 8);

    --overlay-texto-desplazamiento-y: 40px;
    --overlay-bg: transparent;
    --overlay-blur: 0px;
}

/* =========================================================
   MARK: CONTROLES
========================================================= */
:root {
    --controles-top: max(15px, env(safe-area-inset-top));
    --controles-right: 15px;

    --control-btn-size: 60px;
    --control-btn-icon-size: 26px;
    --control-btn-icon-color: #bd3e3e;

    --control-btn-bg: rgba(241, 211, 87, 0.541);
    --control-btn-blur: 8px;

    --control-btn-shadow:
        6px 6px 12px rgba(90, 46, 13, 0.4), 
        -6px -6px 12px rgba(255, 255, 255, 0.3);
}

/* =========================================================
   MARK: SCROLL
========================================================= */
:root {
    --scroll-hint-color: #ffffff;
    --scroll-hint-texto-size: 18px;
    --scroll-hint-texto-family: sans-serif;
    --scroll-hint-texto-weight: 500;
    --scroll-hint-icono-size: 20px;
    --scroll-hint-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    --scroll-hint-animacion-duracion: 3s;
    --scroll-texto-sombra:
        0px 2px 2px #000000,
        0px -2px 2px #000000,
        2px 0px 2px #000000,
        -2px -0px 2px #000000;
}

/* =========================================================
   MARK: SECCIÓN FAMILIA (PAPÁS Y PADRINOS)
========================================================= */
:root {
       
    --familia-ancho: 100px;
    --familia-bottom: 33%;

    --familia-opacidad: 0.95;

    /* none | animacion-giro | animacion-latido */
    --seccion-animacion: animacion-latido;
    --familia-duracion-animacion:10s;

    --familia-fade-duracion: 5.4s;
    
    --borde-neon: #d6900d;
    --resplandor-neon: rgba(255, 178, 89, 0.45);
    
    /* --- CONFIGURACIÓN DE CAJAS (Para que se vean parejas) --- */
    --caja-bg: rgba(61, 32, 4, 0.22);
    --caja-blur: 12px;
    --caja-padding: 35px 20px;
    --caja-max-width: 480px;

    
    /* Sombra de texto unificada */
    --texto-suelto-sombra:
        0px 2px 2px var(--color-secundario),
        0px -2px 2px var(--color-secundario),
        2px 0px 2px var(--color-secundario),
        -2px -0px 2px var(--color-secundario);
}

.seccion-familia {
    font-size: var(--info-extra-font-size);
    font-family: var(--info-extra-font-family);
    font-weight: var(--info-extra-font-weight);
    color: var(--info-extra-texto-color); 
        
    margin: 20% auto;
    padding: 1.8rem var(--caja-padding);
    width: 96%; 
    max-width: 90%;
    margin-left: auto;
    margin-right: auto; 
    
    
    background: var(--caja-bg);
    border: 2px solid var(--borde-neon);
    border-radius: 20px;
    box-shadow: 0 0 15px var(--resplandor-neon);
    
    -webkit-backdrop-filter: blur(var(--caja-blur));
    backdrop-filter: blur(var(--caja-blur));
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
}


.familia-bloque {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seccion-familia h3 {
    color: var(--nombre-color);
    font-size: 24px;
    margin-bottom: 5px;
    font-family: inherit;
    font-weight: 700;
    text-shadow: var(--texto-suelto-sombra);
    margin: 0;
}

.nombres-familia {
    font-size: 42px; /* Un poco más grande para llenar la caja ancha */
    line-height: 1.1;
    color: #ffffff;
    text-shadow: var(--texto-suelto-sombra);
}

.separador-familia {
    width: 60%;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primario), transparent);
    margin: 30px 0;
}


/* =========================================================
   MARK: INTRO
========================================================= */
:root {
    /* CONTENEDOR PRINCIPAL */
    --tarjeta-evento-bg: rgba(231, 189, 82, 0.326);
    --tarjeta-evento-blur: 0px;
    --tarjeta-evento-shadow: 0 -15px 30px rgba(205, 157, 75, 0.5);

    /* IMAGEN FONDO */
    --imagen-fondo: url("album/foto.jpg?cache=15");

    /* NOMBRE */
    --nombre-color: #fcc059;
    --nombre-size: 80px;
    --nombre-font-family: inherit;
    --nombre-font-weight: 700;
    --nombre-text-shadow: 3px 3px #a90808;


    /* SUBTÍTULO */
    --subtitulo-bg: #f5e596;
    --subtitulo-color: #7c3f1c;
    --subtitulo-size: 30px;
    --subtitulo-font-family: inherit;
    --subtitulo-font-weight: 700;
    --subtitulo-text-shadow: none;

    /* IMAGEN DECORATIVA */
    --imagen-decorativa-width: 160px;
    --balanceo: imagenBalanceo 3.2s ease-in-out infinite;
    --pulso: imagenPulso 2.4s ease-in-out infinite;
    --flotacion: imagenFlotacion 3.4s ease-in-out infinite;
    --imagen-decorativa-animacion: var(--pulso);

    /* FECHA Y HORA */
    --fecha-hora-color: #ffffff;
    --fecha-hora-size: 35px;
    --fecha-hora-font-family: inherit;
    --fecha-hora-font-weight: 700;

    /* TEXTO "FALTAN" */
    --faltan-color: var(--fecha-hora-color);
    --faltan-size: 35px;
    --faltan-font-family: var(--fecha-hora-font-family);
    --faltan-font-weight: var(--fecha-hora-font-weight);

    /* NÚMEROS DEL COUNTDOWN */
    --countdown-number-color: #ffffff;
    --countdown-number-size: 40px;
    --countdown-number-font-family: inherit;
    --countdown-number-font-weight: 700;

    /* UNIDADES DEL COUNTDOWN */
    --countdown-unit-color: #ffffff;
    --countdown-unit-size: 26px;
    --countdown-unit-font-family: inherit;
    --countdown-unit-font-weight: 500;
    --countdown-unit-letter-spacing: 0.04em;
}

/* =========================================================
   MARK: INFO EXTRA
========================================================= */
:root {
    --info-extra-bg: rgba(79, 123, 159, 0.511);
    --info-extra-border-color: var(--color-primario);
    --info-extra-box-shadow: 0 8px 24px rgba(70, 104, 126, 0.82);
    --info-extra-blur: 1px;

    --info-extra-icon-size: 80px;

    --info-extra-texto-color: var(--color-primario);
    --info-extra-font-size: 33px;
    --info-extra-font-family: inherit;
    --info-extra-font-weight: 500;
}

/* =========================================================
   MARK: BOTONES
========================================================= */
:root {
    /* SECCIÓN GENERAL */
    --buttons-section-bg: rgba(232, 216, 107, 0.4);
    --buttons-section-box-shadow: 0 8px 30px rgba(193, 147, 38, 0.8);
    --buttons-section-blur: 1px;
    --buttons-border-color: var(--color-secundario);

    /* TEXTO EXTERIOR: HORARIO ITINERARIO */
    --info-horario-color: white;
    --info-horario-font-size: 35px;
    --info-horario-font-family: inherit;
    --info-horario-font-weight: 700;
    --info-horario-icon-size: 70px;

    /* TEXTO EXTERIOR: DIRECCIÓN */
    --buttons-info-color: #ffffff;
    --buttons-info-font-size: 30px;
    --buttons-info-font-family: inherit;
    --buttons-info-font-weight: 500;

    /* BOTONES */
    --boton-bg: var(--color-primario);
    --boton-box-shadow: 0 8px 20px rgba(164, 137, 4, 0.55);

    --boton-texto-color: var(--color-secundario);
    --boton-texto-font-size: 28px;
    --boton-texto-font-family: inherit;
    --boton-texto-font-weight: 600;

    --boton1-icono-size: 32px;
    --boton1-icono-espacio-derecha: -4%;

    --boton2-icono-size: 28px;
    --boton2-icono-espacio-derecha: -3%;

    /* TEXTO FINAL */
    --texto-final-color: #ffffff;
    --texto-final-font-size: 40PX;
    --texto-final-font-family: inherit;
    --texto-final-font-weight: 700;
}

/* =========================================================
   MARK: FOOTER
========================================================= */
:root {
    /* FOOTER DE CRÉDITO */
    --footer-texto-color: #ffffff;
    --footer-texto-size: 35px;
    --footer-texto-weight: 500;
    --footer-texto-family: inherit;

    /* CONTENEDOR DE REDES */
    --redes-contenedor-bg: rgba(255, 255, 255, 0.08);
    --redes-contenedor-border-top: none;
    --redes-contenedor-shadow-superior: 0 -10px 28px rgba(144, 77, 19, 0.388);
    --redes-contenedor-blur: 3px;

    /* GIRASOL */
    --girasol-contenedor-size: 95px;
    --girasol-icono-size: 70px;
    --girasol-icono-color: #FFD700;
    --girasol-petalos-color: #FFA500;
    --girasol-duracion-giro: 10s;

    /* TEXTO PRINCIPAL DE REDES */
    --redes-texto-color: #ffffff;
    --redes-texto-size: 40px;
    --redes-texto-weight: 500;
    --redes-texto-family: inherit;

    /* BOTÓN / CTA */
    --redes-cta-bg: var(--boton-bg);
    --redes-cta-color: var(--boton-texto-color);
    --redes-cta-size: 25px;
    --redes-cta-weight: 700;
    --redes-cta-family: inherit;
}


/* MARK: RESPONSIVE */
@media (max-width: 400px) {
    :root {
        --overlay-texto-size: 40px;
        --scroll-hint-texto-size: 16px;
        --scroll-hint-icono-size: 16px;
        --nombre-size: 80px;
        --fecha-hora-size: 30px;
        --info-horario-font-size: 30px;
        --buttons-info-font-size: 26px;
        --boton-texto-font-size: 20px;
        --boton1-icono-size: 24px;
        --boton2-icono-size: 22px;
        --redes-texto-size: 32px;
        --info-extra-font-size: 28px;
    }

    .segment {
        min-width: 48px !important;
    }
}






















/* MARK: ICONOS */
.icono-botones-wrap {
    display: inline-block;
    flex-shrink: 0;
}

.icono-botones {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0;
    background-color: var(--boton-texto-color);

    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-image: none;

    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-image: none;
}


/* =========================================================
   MARK: CONTROLES
========================================================= */
.controles-fijos {
    position: fixed;
    top: var(--controles-top);
    right: var(--controles-right);
    z-index: 5000;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =========================================================
   BOTONES DE CONTROL
========================================================= */
.control-btn {
    width: var(--control-btn-size);
    height: var(--control-btn-size);
    border: none;
    border-radius: 50%;
    outline: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--control-btn-bg);
    box-shadow: var(--control-btn-shadow);

    -webkit-backdrop-filter: blur(var(--control-btn-blur));
    backdrop-filter: blur(var(--control-btn-blur));

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-btn:active {
    transform: scale(1.1);
}

.control-btn i {
    font-size: var(--control-btn-icon-size);
    color: var(--control-btn-icon-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1;
}


/* =========================================================
   MARK: PUERTAS
========================================================= */
#puertas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    cursor: pointer;
    overflow: hidden;
    perspective: 1600px;
    transform-style: preserve-3d;

    --duracion-apertura: 2.2s;
    --angulo-apertura: 82deg;
    --distancia-corrediza: 110%;
    --distancia-vertical: 110%;
    --solapamiento-horizontal: 0px;
    --solapamiento-vertical: 0px;

    --posicion-izquierda: center center;
    --posicion-derecha: center center;

    --desplazamiento-apertura: 4%;
    --duracion-fade-overlay: 0.9s;
    --duracion-fade-ambiente: 1.15s;
    --duracion-salida-final: 420ms;

    --direccion-horizontal: izquierda;
    --direccion-vertical: arriba;
    --ancho-puerta-unica: 100%;
    --alto-puerta-unica: 100%;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(0, 0, 0, 0.28) 40%,
            rgba(0, 0, 0, 0.78) 100%
        );
    opacity: 1;
    transition:
        opacity var(--duracion-salida-final) ease,
        background var(--duracion-fade-ambiente) ease;
}

/* Halo/aro ambiental */
#puertas::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 215, 120, 0.22) 0%,
            rgba(255, 255, 255, 0.08) 16%,
            rgba(0, 0, 0, 0.18) 34%,
            rgba(0, 0, 0, 0) 58%
        );
    transition:
        opacity var(--duracion-fade-ambiente) ease,
        filter var(--duracion-fade-ambiente) ease,
        transform var(--duracion-fade-ambiente) ease;
}

#puertas.abierto {
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(0, 0, 0, 0.08) 35%,
            rgba(0, 0, 0, 0.16) 100%
        );
}

#puertas.abierto::before {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.08);
}

.puerta {
    position: absolute;
    z-index: 2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity, filter;
    transition:
        transform var(--duracion-apertura) cubic-bezier(.22, .8, .18, 1),
        opacity calc(var(--duracion-apertura) * 0.82) ease,
        filter calc(var(--duracion-apertura) * 0.82) ease;
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: none;
}

#puertas[data-apertura="giro"] .puerta,
#puertas[data-apertura="corrediza"] .puerta {
    top: 0;
    width: calc(50% + (var(--solapamiento-horizontal) / 2));
    height: 100%;
}

#puertas[data-apertura="giro"] .izquierda,
#puertas[data-apertura="corrediza"] .izquierda {
    left: 0;
    background-image: var(--puerta-izquierda);
    background-position: var(--posicion-izquierda);
    background-size: cover;
    background-repeat: no-repeat;
}

#puertas[data-apertura="giro"] .derecha,
#puertas[data-apertura="corrediza"] .derecha {
    right: 0;
    background-image: var(--puerta-derecha);
    background-position: var(--posicion-derecha);
    background-size: cover;
    background-repeat: no-repeat;
}

#puertas[data-apertura="giro"] .izquierda {
    transform-origin: left center;
}

#puertas[data-apertura="giro"] .derecha {
    transform-origin: right center;
}

#puertas[data-apertura="corrediza"] .izquierda,
#puertas[data-apertura="corrediza"] .derecha {
    transform-origin: center center;
}

#puertas[data-apertura="giro"] .izquierda,
#puertas[data-apertura="corrediza"] .izquierda {
    z-index: 2;
}

#puertas[data-apertura="giro"] .derecha,
#puertas[data-apertura="corrediza"] .derecha {
    z-index: 3;
}

#puertas[data-apertura="giro"].abierto .izquierda {
    transform:
        rotateY(calc(var(--angulo-apertura) * -1))
        translateX(calc(var(--desplazamiento-apertura) * -1));
    opacity: 0.96;
    filter: brightness(0.90);
}

#puertas[data-apertura="giro"].abierto .derecha {
    transform:
        rotateY(var(--angulo-apertura))
        translateX(var(--desplazamiento-apertura));
    opacity: 0.96;
    filter: brightness(0.90);
}

#puertas[data-apertura="corrediza"] .puerta {
    box-shadow: none;
}

#puertas[data-apertura="corrediza"].abierto .izquierda {
    transform: translateX(calc(var(--distancia-corrediza) * -1));
    opacity: 0.98;
    filter: brightness(0.92);
}

#puertas[data-apertura="corrediza"].abierto .derecha {
    transform: translateX(var(--distancia-corrediza));
    opacity: 0.98;
    filter: brightness(0.92);
}

#puertas[data-apertura="vertical"] .puerta {
    width: 100%;
    height: calc(50% + (var(--solapamiento-vertical) / 2));
    left: 0;
}

#puertas[data-apertura="vertical"] .izquierda {
    top: 0;
    background-image: var(--puerta-izquierda);
    background-position: var(--posicion-izquierda);
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: center top;
    z-index: 2;
}

#puertas[data-apertura="vertical"] .derecha {
    top: calc(50% - (var(--solapamiento-vertical) / 2));
    right: auto;
    background-image: var(--puerta-derecha);
    background-position: var(--posicion-derecha);
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: center bottom;
    z-index: 3;
}

#puertas[data-apertura="vertical"].abierto .izquierda {
    transform: translateY(calc(var(--distancia-vertical) * -1));
    opacity: 0.98;
    filter: brightness(0.92);
}

#puertas[data-apertura="vertical"].abierto .derecha {
    transform: translateY(var(--distancia-vertical));
    opacity: 0.98;
    filter: brightness(0.92);
}

#puertas[data-apertura="corrediza-una"] .izquierda {
    top: 0;
    left: 0;
    width: var(--ancho-puerta-unica);
    height: 100%;
    background-image: var(--puerta-izquierda);
    background-position: var(--posicion-izquierda);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 3;
}

#puertas[data-apertura="corrediza-una"] .derecha {
    display: none;
}

#puertas[data-apertura="corrediza-una"][data-direccion-horizontal="izquierda"].abierto .izquierda {
    transform: translateX(calc(var(--distancia-corrediza) * -1));
    opacity: 0.98;
    filter: brightness(0.92);
}

#puertas[data-apertura="corrediza-una"][data-direccion-horizontal="derecha"].abierto .izquierda {
    transform: translateX(var(--distancia-corrediza));
    opacity: 0.98;
    filter: brightness(0.92);
}

#puertas[data-apertura="vertical-una"] .izquierda {
    top: 0;
    left: 0;
    width: 100%;
    height: var(--alto-puerta-unica);
    background-image: var(--puerta-izquierda);
    background-position: var(--posicion-izquierda);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 3;
}

#puertas[data-apertura="vertical-una"] .derecha {
    display: none;
}

#puertas[data-apertura="vertical-una"][data-direccion-vertical="arriba"].abierto .izquierda {
    transform: translateY(calc(var(--distancia-vertical) * -1));
    opacity: 0.98;
    filter: brightness(0.92);
}

#puertas[data-apertura="vertical-una"][data-direccion-vertical="abajo"].abierto .izquierda {
    transform: translateY(var(--distancia-vertical));
    opacity: 0.98;
    filter: brightness(0.92);
}

#puertas.abierto .overlay {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(3px);
}

#puertas.abierto .overlay p {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    filter: blur(4px);
}

/* Ajusta la duración del fade final */
#puertas {
    --duracion-salida-final: 900ms; /* antes 420ms */
}

/* Estado final con desvanecimiento */
#puertas.finalizando {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--duracion-salida-final) cubic-bezier(.22, .61, .36, 1),
        visibility 0s linear var(--duracion-salida-final);
}

/* Opcional: desvanece también un poco más las puertas al final */
#puertas.finalizando .puerta {
    opacity: 0;
    transition:
        opacity var(--duracion-salida-final) ease,
        transform var(--duracion-apertura) cubic-bezier(.22, .8, .18, 1),
        filter calc(var(--duracion-apertura) * 0.82) ease;
}

/* Opcional: desvanece el halo/fondo del overlay */
#puertas.finalizando::before,
#puertas.finalizando .overlay {
    opacity: 0;
    transition: opacity var(--duracion-salida-final) ease;
}


/* =========================================================
   MARK: OVERLAY
========================================================= */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;

    pointer-events: none;

    background: var(--overlay-bg);

    -webkit-backdrop-filter: blur(var(--overlay-blur));
    backdrop-filter: blur(var(--overlay-blur));

    transition:
        opacity var(--duracion-fade-overlay) ease,
        transform var(--duracion-fade-overlay) ease,
        filter var(--duracion-fade-overlay) ease;
}

.overlay p {
    margin: 0;
    color: var(--overlay-texto-color);
    font-size: var(--overlay-texto-size);
    font-family: var(--overlay-texto-family);
    font-weight: var(--overlay-texto-weight);
    text-shadow: var(--overlay-texto-sombra);
    line-height: 1.2;

    opacity: 1;
    transform: translateY(var(--overlay-texto-desplazamiento-y)) scale(1);

    transition:
        opacity var(--duracion-fade-overlay) ease,
        transform var(--duracion-fade-overlay) ease,
        filter var(--duracion-fade-overlay) ease;
}










/* =========================================================
   MARK: FONDO
========================================================= */
video,
.img-bg {
    width: 100%;
    display: block;
    border: none;
}

.pantalla-completa {
    width: 100%;
    position: relative;
}

.sticky-foto {
    position: relative;
    z-index: 1;
    margin-top: -1px;
    overflow: hidden;
}

/* =========================================================
   FOTO VISIBLE
   - muestra la foto en pantalla completa
   - el resto de la web usa otra imagen de fondo
========================================================= */
.sticky-foto[data-foto="visible"] {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
}

.sticky-foto[data-foto="visible"] .img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.sticky-foto[data-foto="visible"] ~ #info-evento {
    position: relative;
    z-index: 10;
    background: transparent;
}

.sticky-foto[data-foto="visible"] ~ #info-evento::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--imagen-fondo);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* =========================================================
   FOTO COMPACTA
   - no se muestra como bloque visible
   - solo define el fondo desde ahí hasta el final de la web
========================================================= */
.sticky-foto[data-foto="compacta"] {
    height: 0;
    min-height: 0;
    overflow: visible;
}

.sticky-foto[data-foto="compacta"] .img-bg {
    display: none;
}

.sticky-foto[data-foto="compacta"] ~ #info-evento {
    position: relative;
    z-index: 10;
    background: transparent;
}

.sticky-foto[data-foto="compacta"] ~ #info-evento::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--imagen-fondo);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;    
    z-index: -1;
    pointer-events: none;
}

/* =========================================================
   MARK: CARROUSEL
========================================================= */
.sticky-foto {
    position: relative;
}

.sticky-foto-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sticky-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    opacity: 1;
    will-change: transform;
    z-index: 1;
}

.sticky-slide.active {
    transform: translateX(0%);
    z-index: 2;
}

.sticky-slide.next {
    z-index: 3;
}

.sticky-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* animaciones */
.sticky-slide.animating-in-right {
    animation: stickyInFromRight var(--sticky-slide-duracion, 900ms) ease forwards;
}

.sticky-slide.animating-out-left {
    animation: stickyOutToLeft var(--sticky-slide-duracion, 900ms) ease forwards;
}

.sticky-slide.animating-in-left {
    animation: stickyInFromLeft var(--sticky-slide-duracion, 900ms) ease forwards;
}

.sticky-slide.animating-out-right {
    animation: stickyOutToRight var(--sticky-slide-duracion, 900ms) ease forwards;
}

@keyframes stickyInFromRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0%); }
}

@keyframes stickyOutToLeft {
    from { transform: translateX(0%); }
    to   { transform: translateX(-100%); }
}

@keyframes stickyInFromLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0%); }
}

@keyframes stickyOutToRight {
    from { transform: translateX(0%); }
    to   { transform: translateX(100%); }
}

/* zonas táctiles invisibles */
.sticky-touch {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    z-index: 20;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sticky-touch-left {
    left: 0;
}

.sticky-touch-right {
    right: 0;
}

/* en compacta no mostramos el carrusel como bloque */
.sticky-foto[data-foto="compacta"] .sticky-foto-slider,
.sticky-foto[data-foto="compacta"] .sticky-touch {
    display: none;
}








/* =========================================================
   MARK: INTRO
========================================================= */
#info-evento {
    position: relative;
    z-index: 20;
    margin-top: -1px;

    background: transparent;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: var(--tarjeta-evento-shadow);

    overflow: clip;
}

/* capa de color/blur encima de la imagen de fondo */
#info-evento::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: var(--tarjeta-evento-bg);

    -webkit-backdrop-filter: blur(var(--tarjeta-evento-blur));
    backdrop-filter: blur(var(--tarjeta-evento-blur));

    pointer-events: none;
}

#info-evento > * {
    position: relative;
    z-index: 1;
}

#main-content.hidden {
    display: none;
}


/* =========================================================
   TARJETA DEL EVENTO
========================================================= */
.tarjeta-evento {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;

    padding: 60px 20px 0px 0px;
    margin-bottom: 0 !important;

    text-align: center;
    color: white;

    background: transparent;
    box-shadow: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}


/* =========================================================
   NOMBRE Y SUBTÍTULO
========================================================= */
.nombre {
    margin: 0 0 10px;
    color: var(--nombre-color);
    font-size: var(--nombre-size);
    font-family: var(--nombre-font-family);
    font-weight: var(--nombre-font-weight);
    text-shadow: var(--nombre-text-shadow);
    line-height: 1.1;
}

.subtitulo {
    display: inline-block;
    margin: 0;
    padding: 5px 20px;
    border-radius: 20px;

    background: var(--subtitulo-bg);
    color: var(--subtitulo-color);
    font-size: var(--subtitulo-size);
    font-family: var(--subtitulo-font-family);
    font-weight: var(--subtitulo-font-weight);
    text-shadow: var(--subtitulo-text-shadow);
    line-height: 1.2;
}


/* =========================================================
  IMAGEN DECORATIVA
========================================================= */
.imagen-decorativa {
    width: var(--imagen-decorativa-width);
    max-width: 100%;
    margin: 10px auto 0;
    display: block;
    transform-origin: center bottom;
    animation: var(--imagen-decorativa-animacion);
}

.animacion-balanceo,
.imagen-decorativa.animacion-balanceo {
    animation: imagenBalanceo 3.2s ease-in-out infinite;
}

.animacion-pulso,
.imagen-decorativa.animacion-pulso {
    animation: imagenPulso 2.4s ease-in-out infinite;
}

.animacion-flotacion,
.imagen-decorativa.animacion-flotacion {
    animation: imagenFlotacion 3.4s ease-in-out infinite;
}

@keyframes imagenBalanceo {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(-5deg); }
    50%  { transform: rotate(0deg); }
    75%  { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes imagenPulso {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

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


/* =========================================================
   FECHA Y HORA
========================================================= */
.bloque-datos {
    margin-top: 1.6rem;
    text-align: center;
}

.fecha,
.hora {
    margin: 0;
    color: var(--fecha-hora-color);
    font-size: var(--fecha-hora-size);
    font-family: var(--fecha-hora-font-family);
    font-weight: var(--fecha-hora-font-weight);
    text-shadow: var(--texto-suelto-sombra);
    line-height: 1.15;
}

.fecha {
    margin-bottom: 0.6rem;
}


/* =========================================================
   CONTADOR
========================================================= */
.contador {
    margin-top: 2rem;
    margin-bottom: 0;
    text-align: center;
}

#label-faltan {
    margin: 0 0 1.5rem;
    color: var(--faltan-color);
    font-size: var(--faltan-size);
    font-family: var(--faltan-font-family);
    font-weight: var(--faltan-font-weight);
    text-shadow: var(--texto-suelto-sombra);
    line-height: 1.15;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
}

.number {
    display: inline-block;
    min-width: 2.3ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    line-height: 1;

    color: var(--countdown-number-color);
    font-size: var(--countdown-number-size);
    font-family: var(--countdown-number-font-family);
    font-weight: var(--countdown-number-font-weight);
    text-shadow: var(--texto-suelto-sombra);
}

.unit {
    margin-top: 5px;
    color: var(--countdown-unit-color);
    font-size: var(--countdown-unit-size);
    font-family: var(--countdown-unit-font-family);
    font-weight: var(--countdown-unit-font-weight);
    letter-spacing: var(--countdown-unit-letter-spacing);
    text-shadow: var(--texto-suelto-sombra);
    line-height: 1.1;
}


/* =========================================================
   UTILIDAD PARA OCULTAR TEXTO BASE
========================================================= */
.sr-only {
    display: none;
}


/* =========================================================
   MARK: INFO EXTRA
========================================================= */
.info-extra {
    font-size: var(--info-extra-font-size);
    font-family: var(--info-extra-font-family);
    font-weight: var(--info-extra-font-weight);
    color: var(--info-extra-texto-color);

    margin: 0 1rem 80px 0px;
    padding: 1.8rem;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;

    background: var(--info-extra-bg);
    border: 2px solid var(--info-extra-border-color);
    border-radius: 20px;
    box-shadow: var(--info-extra-box-shadow);

    -webkit-backdrop-filter: blur(var(--info-extra-blur));
    backdrop-filter: blur(var(--info-extra-blur));

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    text-align: center;
    text-shadow: var(--texto-suelto-sombra);
}

.info-extra span {
    display: block;
    color: var(--info-extra-texto-color);
    font-size: var(--info-extra-font-size);
    font-family: var(--info-extra-font-family);
    font-weight: var(--info-extra-font-weight);
    line-height: 1.35;
    overflow-wrap: break-word;
}


/* =========================================================
   MARK: BOTONES
========================================================= */
.buttons-section {
    padding: 3.2rem 1.4rem 4.2rem;
    margin: 0 auto;
    width: 95%;

    border-radius: 20px;
    border: 2px solid var(--buttons-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: var(--buttons-section-bg);
    box-shadow: var(--buttons-section-box-shadow);

    -webkit-backdrop-filter: blur(var(--buttons-section-blur));
    backdrop-filter: blur(var(--buttons-section-blur));
}


/* =========================================================
   BLOQUES DE INFORMACIÓN
========================================================= */
.buttons-info,
.buttons-info--horario,
.buttons-info--direccion,
.buttons-cierre {
    width: 90%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.buttons-info--horario {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;

    color: var(--info-horario-color);
    font-size: var(--info-horario-font-size);
    font-family: var(--info-horario-font-family);
    font-weight: var(--info-horario-font-weight);
    text-shadow: var(--texto-suelto-sombra);
}

.buttons-info--horario span {
    color: var(--info-horario-color);
    font-size: var(--info-horario-font-size);
    font-family: var(--info-horario-font-family);
    font-weight: var(--info-horario-font-weight);
    line-height: 1.2;
    overflow-wrap: break-word;
}

.buttons-info--direccion {
    margin-bottom: 2rem;
    text-shadow: var(--texto-suelto-sombra);
}

.buttons-info--direccion span {
    display: inline-block;
    color: var(--buttons-info-color);
    font-size: var(--buttons-info-font-size);
    font-family: var(--buttons-info-font-family);
    font-weight: var(--buttons-info-font-weight);
    line-height: 1.35;
    overflow-wrap: break-word;
}


/* =========================================================
   CONTENEDOR DE BOTONES
========================================================= */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    margin-top: 0;
}


/* =========================================================
   BOTONES
========================================================= */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    padding: 1.35rem 2px;
    border-radius: 12px;
    text-decoration: none;

    background: var(--boton-bg);
    box-shadow: var(--boton-box-shadow);

    transition: transform 0.22s ease, filter 0.22s ease;
}

.btn span,
.btn {
    color: var(--boton-texto-color) !important;
    font-size: var(--boton-texto-font-size);
    font-family: var(--boton-texto-font-family);
    font-weight: var(--boton-texto-font-weight);
    letter-spacing: 0.4px;
    line-height: 1.15;
    text-align: center;
}

.btn:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}


/* =========================================================
   TEXTO FINAL
========================================================= */
.buttons-cierre {
    margin-top: 2.7rem;
    text-shadow: var(--texto-suelto-sombra);
}

.buttons-cierre span {
    display: inline-block;
    color: var(--texto-final-color);
    font-size: var(--texto-final-font-size);
    font-family: var(--texto-final-font-family);
    font-weight: var(--texto-final-font-weight);
    line-height: 1.1;
}


/* =========================================================
   MARK: SCROLL
========================================================= */
.scroll-hint {
    position: absolute;
    bottom: var(--scroll-hint-bottom);
    left: 0;
    width: 100%;
    padding-inline: 12px;

    text-align: center;
    color: var(--scroll-hint-color);
    text-shadow: var(--scroll-texto-sombra);
    animation: bounce var(--scroll-hint-animacion-duracion) infinite;
    z-index: 25;

    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.scroll-hint p {
    margin: 0 0 0.2rem;
    color: var(--scroll-hint-color);
    font-size: var(--scroll-hint-texto-size);
    font-family: var(--scroll-hint-texto-family);
    font-weight: var(--scroll-hint-texto-weight);
    line-height: 1.2;
}

.scroll-hint .fa-chevron-down {
    display: block;
    color: var(--scroll-hint-color);
    font-size: var(--scroll-hint-icono-size);
    line-height: 1;
}


/* =========================================================
   ANIMACIÓN
========================================================= */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/* =========================================================
   MARK: FOOTER
========================================================= */
.footer-credito {
    text-align: center;
    padding: 4rem 1rem 1.5rem;
}

.footer-credito span {
    color: var(--footer-texto-color);
    font-size: var(--footer-texto-size);
    font-weight: var(--footer-texto-weight);
    font-family: var(--footer-texto-family);
    text-shadow: var(--texto-suelto-sombra);
    line-height: 1.35;
}


/* =========================================================
   SECCIÓN DE REDES
========================================================= */
.tiktok-section {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    max-width: 100vw;

    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding-bottom: 60px !important;
    padding: 0;
    text-align: center;
    overflow-x: clip;
}

/* =========================================================
   TARJETA / ENLACE CLICKEABLE
========================================================= */
.tiktok-link {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 2rem 1.6rem calc(2.4rem + env(safe-area-inset-bottom, 0px));
    margin-bottom: -60px !important;
    box-sizing: border-box;

    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;

    background: var(--redes-contenedor-bg);

    border-top: var(--redes-contenedor-border-top);
    border-left: none;
    border-right: none;
    border-bottom: none;

    border-radius: 30px 30px 0px 0px;
    box-shadow: var(--redes-contenedor-shadow-superior);

    -webkit-backdrop-filter: blur(var(--redes-contenedor-blur));
    backdrop-filter: blur(var(--redes-contenedor-blur));

    transition: transform 0.28s ease, filter 0.28s ease;
}

.tiktok-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.03);
}


/* =========================================================
   GIRASOL
========================================================= */
.girasol-container {
    position: relative;
    width: var(--girasol-contenedor-size);
    height: var(--girasol-contenedor-size);
    text-shadow: var(--texto-suelto-sombra) !important;
}

.girasol-icon {
    font-size: var(--girasol-icono-size);
    color: var(--girasol-icono-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.girasol-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='48' fill='none' stroke='%23FFA500' stroke-width='4' stroke-dasharray='10, 5'/></svg>");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    animation: girarGirasol var(--girasol-duracion-giro) linear infinite;
}

@keyframes girarGirasol {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* =========================
   ANIMACIONES
========================= */
@keyframes animacion-giro{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}
@keyframes animacion-latido{
    0%, 100%{
        transform: scale(1);
    }
    25%{
        transform: scale(1.08);
    }
    50%{
        transform: scale(0.96);
    }
    75%{
        transform: scale(1.1);
    }
}
/* Latido */
.flor-overlay img{
    animation: var(--flor-animacion) var(--flor-duracion-animacion) ease-in-out infinite;
}
 
/* =========================================================
   TEXTO PRINCIPAL
========================================================= */
.tiktok-text {
    margin: 0;
    color: var(--redes-texto-color);
    font-size: var(--redes-texto-size);
    font-weight: var(--redes-texto-weight);
    font-family: var(--redes-texto-family);
    text-shadow: var(--texto-suelto-sombra);
    line-height: 1.35;
    text-align: center;
}


/* =========================================================
   BOTÓN CTA
========================================================= */
.tiktok-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 1rem 1.4rem;
    border-radius: 15px;

    background: var(--redes-cta-bg);
    color: var(--redes-cta-color);
    font-size: var(--redes-cta-size);
    font-weight: var(--redes-cta-weight);
    font-family: var(--redes-cta-family);
    box-shadow: var(--redes-cta-sombra);
    line-height: 1.1;
    text-align: center;
}
/* =========================================================
   MARK: PASES ESTILO PIZTACHE (3 NIVELES)
========================================================= */
.acceso-personalizado {
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    background: transparent !important; 
    box-shadow: none !important;
    border: none !important;
}

.tarjeta-pase {
    background: #fff9e6; 
    border: 2px dashed #d4179b;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    position: relative;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(110, 68, 40, 0.1);
}

.icono-pase {
    color: #d4177f;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.saludo-invitado {
    color: #6e284e;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.linea-decorativa {
    height: 1px;
    background: linear-gradient(to right, transparent, #d4178b, transparent);
    margin: 15px 0;
}

.detalles-reserva {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 10px 0;
}

.item-reserva {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8b2b50;
    font-weight: 700;
    letter-spacing: 1px;
}

.numero {
    font-size: 1.6rem;
    font-weight: 800;
    color: #6e2849;
    line-height: 1;
}

.divisor-vertical {
    width: 1px;
    height: 30px;
    background: #d41795;
    opacity: 0.3;
}

/* --- ELEMENTOS OCULTOS POR DEFECTO (MAGIA DE NIVELES) --- */
.cont-dulceros-oculto {
    display: none;
    align-items: center;
}

.item-dulceros {
    margin-left: 15px;
}

.opciones-gold-oculta {
    display: none;
    margin-top: 15px;
    border-top: 1px dashed #d4179b;
    padding-top: 15px;
}

.box-opcion-oculta {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.label-gold {
    font-size: 0.8rem;
    color: #6e284e;
    margin-bottom: 5px;
}

.select-gold {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #d417a5;
    font-family: 'Poppins', sans-serif;
    width: 90%;
    color: #6e2857;
    background-color: #fff9e6; /* Adaptado al color de tu tarjeta */
}

/* --- BOTONES DE CONFIRMACIÓN (TUS EFECTOS CON CLASES NUEVAS) --- */
.cont-confirmacion {
    display: flex;
    margin-top: 20px;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-confirmar, .btn-cancelar {
    transition: all 0.3s ease;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-confirmar { background: #76a361; color: white; }
.btn-cancelar { background: #e74c3c; color: white; }

.btn-confirmar:hover, .btn-cancelar:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-confirmar:active, .btn-cancelar:active {
    transform: scale(0.95);
}

/* --- MENSAJE DE ÉXITO AL CONFIRMAR --- */
.mensaje-exito-pase {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.4);
}

.mensaje-exito-titulo {
    color: #76a361;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.mensaje-exito-texto {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #8b5a2b;
}