/* css/style.css */

/* --- BOTÓN DE PAUSA UNIVERSAL (Mantiene la sincronía visual de todo el sitio) --- */
body.pausa-preloader * { animation-play-state: paused !important; }
body.pausa-preloader #preloader-absoluto,
body.pausa-preloader #preloader-absoluto *,
body.pausa-preloader #preloader-absoluto *::after { animation-play-state: running !important; }
/* ------------------------------------------------------------------------- */

body, html {
    font-family: 'Cinzel', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.txt-reclama, .txt-acceso, .frase-guia {
    font-family: 'Cinzel', serif !important;
    letter-spacing: 4px;
}

.header-ticker {
    position: fixed; top: 0; left: 0; width: 100%; height: 40px;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(229, 192, 123, 0.3); z-index: 1000;
    display: flex; align-items: center; overflow: hidden;
}

.ticker-wrap { width: 100%; overflow: hidden; display: flex; }
.ticker-move { display: flex; white-space: nowrap; animation: tickerLoop 35s linear infinite; }
.ticker-group { display: flex; flex-shrink: 0; }
.ticker-item {
    padding: 0 40px; color: #e5c07b; font-family: 'Cinzel', serif;
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
    text-shadow: 0 0 8px rgba(229, 192, 123, 0.4); line-height: 40px;
}
.ticker-item.highlight { color: #00ffff; text-shadow: 0 0 10px rgba(0, 255, 255, 0.6); }

@keyframes tickerLoop { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- CONTADOR SOCIAL --- */
#wrapper-contador-social {
    position: fixed; top: 40px; left: 0; width: 100%;
    height: 100px; z-index: 950; background: transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 0; margin: 0; pointer-events: none;
}

.bloque-numeros { display: flex; gap: 5px; align-items: center; margin: 0; padding: 0; position: relative; }

.digit-box {
    width: 34px; height: 48px; background: #000;
    border-radius: 4px; overflow: hidden; position: relative;
    border: 1px solid rgba(229, 192, 123, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.digit-strip {
    position: absolute; width: 100%; top: 0; left: 0;
    display: flex; flex-direction: column; transition: transform 1s ease-in-out;
}

.digit-strip span {
    width: 100%; height: 48px; 
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: bold;
    color: #e5c07b; text-shadow: 0 0 5px #000;
}

.digit-space { width: 10px; }

.txt-poderatiums-ganados {
    margin-top: 5px; font-family: 'Cinzel', serif; font-size: 0.95rem;
    color: #00ffff; letter-spacing: 3px; font-weight: 800;
    text-shadow: 2px 2px 3px #000, -2px -2px 3px #000, 0 0 10px #000;
    transition: all 0.2s ease;
}

.impacto-vibracion { animation: quake 0.1s infinite; }
@keyframes quake {
    0% { transform: translate(0, 0); }
    33% { transform: translate(1px, -1px); }
    66% { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); }
}

.impacto-slam { animation: slamEffect 0.4s ease-out forwards; }
@keyframes slamEffect {
    0% { transform: translateY(0); }
    20% { transform: translateY(8px) scale(0.98); }
    100% { transform: translateY(0) scale(1); }
}

.digit-bloom { 
    border-color: #00ffff !important; 
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), inset 0 0 10px rgba(229, 192, 123, 0.4) !important;
}

.festejo-particle {
    position: absolute; width: 4px; height: 4px;
    background: #e5c07b; border-radius: 50%;
    pointer-events: none; z-index: -1;
    box-shadow: 0 0 8px #00ffff;
}

/* --- EFECTO FUEGOS ARTIFICIALES FONDO --- */
.fuego-artificial-bg {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -2; /* Sobre el universo (-4), pero detrás del templo (3) */
}

/* --- EFECTO ESTRELLA FUGAZ --- */
.estrella-fugaz {
    position: fixed;
    width: 180px; /* Largo de la estela */
    height: 2px;  /* Grosor */
    /* La cabeza es blanca, el centro es cian y la cola es transparente */
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,255,255,0.4) 60%, rgba(255,255,255,1) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -3; /* Detrás del templo (3) y delante del universo (-4) */
    filter: drop-shadow(0 0 8px #00ffff);
    transform-origin: right center; /* Gira sobre su propia cabeza */
}

@media (max-width: 768px) {
    #wrapper-contador-social { top: 40px; }
    .digit-box { width: 24px; height: 34px; }
    .digit-strip span { font-size: 1.3rem; height: 34px; }
    .txt-poderatiums-ganados { font-size: 0.95rem; margin-top: 5px; }
}

/* --- STAR WARS --- */
.star-wars-container {
    position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 700px; height: 55vh; overflow: hidden;
    perspective: 350px; z-index: 10; pointer-events: none;
}
.star-wars-crawl {
    position: absolute; top: 100%; width: 100%; text-align: center;
    color: #e5c07b; font-family: 'Cinzel', serif; font-weight: 700;
    line-height: 1.8; 
    transform: rotateX(20deg); 
    transform-style: preserve-3d;
    animation: crawlMove 30s linear forwards;
}
.star-wars-crawl p, .crawl-title {
    display: inline-block; background: rgba(0, 0, 0, 0.8);
    padding: 5px 15px; margin-bottom: 1.2rem; border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5); word-break: break-word; 
    transform: translateZ(0); 
    backface-visibility: hidden;
}

.crawl-title { color: #00ffff !important; text-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 2px 2px 4px #000; font-size: 25px !important; font-weight: 800; }
.star-wars-crawl p:last-child { color: #00ffff !important; font-weight: 800; border: 1px solid rgba(0, 255, 255, 0.2); }
.resaltado-cian { color: #00ffff !important; text-shadow: 0 0 10px rgba(0, 255, 255, 0.6); font-weight: 800; }

@media (max-width: 768px) {
    .star-wars-container { perspective: 200px; bottom: 90px; height: 55vh; width: 100%; }
    .star-wars-crawl { transform: rotateX(10deg); }
    .star-wars-crawl p { font-size: 1.1rem; line-height: 1.4; max-width: 85%; box-sizing: border-box; }
    .crawl-title { font-size: 1.5rem !important; max-width: 85%; }
}
@keyframes crawlMove { 0% { top: 100%; opacity: 0; } 5% { opacity: 1; } 80% { opacity: 1; } 100% { top: -180%; opacity: 0; } }

/* --- CONTENEDOR DE VIDEO CINEMATOGRÁFICO (LIGHTBOX) --- */
#contenedor-video-presentacion {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; max-width: 900px;
    z-index: 1500; opacity: 0; visibility: hidden; 
    pointer-events: none; transition: all 1s ease;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    background: rgba(20, 20, 20, 0.75); 
    padding: 30px; 
    border-radius: 12px;
    border: 1px solid #ffdd00; 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 -25px 50px rgba(0, 0, 0, 0.95); 
    backdrop-filter: blur(5px); 
}

#contenedor-video-presentacion::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5); 
    z-index: -1; 
    pointer-events: none;
    border-radius: 0;
}

#contenedor-video-presentacion.mostrar-video { opacity: 1; visibility: visible; pointer-events: auto; }

.video-wrapper {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: 0px; overflow: hidden;
    background: transparent; 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
    border: none; 
    transition: box-shadow 0.4s ease; 
}

.video-wrapper:hover,
.video-wrapper.video-reproduciendo {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

#wistia-player { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; } 

#overlay-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(3px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10; transition: opacity 0.8s ease;
}

.iniciar-cine-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center;
}

.btn-cine {
    background: linear-gradient(180deg, #fceeaa 0%, #d4af37 45%, #8a6300 100%);
    color: #000; font-family: 'Cinzel', serif; font-weight: 900;
    font-size: 2.2rem; 
    padding: 30px 60px;
    letter-spacing: 4px; text-transform: uppercase;
    border: 1px solid #ffdf73; border-radius: 6px; cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.9), 0 0 30px rgba(229, 192, 123, 0.25);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.btn-cine:hover { transform: scale(1.05); filter: brightness(1.2); }

.txt-iniciando {
    color: #00ffff; font-family: 'Cinzel', serif; font-size: 1.1rem;
    letter-spacing: 3px; font-weight: 800;
    text-shadow: 2px 2px 3px #000, -2px -2px 3px #000, 0 0 10px #000;
}

.btn-saltar-cine {
    background: transparent; border: 1px solid rgba(229, 192, 123, 0.4); 
    color: #e5c07b; font-family: 'Cinzel', serif; font-size: 1rem; letter-spacing: 3px; font-weight: 700;
    padding: 10px 25px; border-radius: 30px; cursor: pointer;
    transition: all 0.3s ease; backdrop-filter: blur(5px);
}
.btn-saltar-cine:hover { background: rgba(229, 192, 123, 0.1); border-color: #ffdf73; color: #fff; transform: scale(1.05); }

@media (max-width: 768px) {
    #contenedor-video-presentacion { width: 95%; padding: 20px; }
    .btn-cine { font-size: 1.6rem; padding: 20px 40px; }
    .txt-iniciando { font-size: 0.9rem; }
}

/* --- CARRUSEL DE RELIQUIAS (Ajustado a 35s exactos) --- */
.contenedor-boveda-final {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; max-width: 600px; height: auto;
    opacity: 0; visibility: hidden; 
    z-index: 910; 
    pointer-events: none;
    transition: opacity 2s ease, visibility 2s ease;
    display: grid; place-items: center;
}
.contenedor-boveda-final.activar { opacity: 1; visibility: visible; pointer-events: auto; }

.contenedor-boveda-final::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.65); z-index: -2; pointer-events: none; opacity: 0;
}

.iniciar-carrusel::before {
    animation: telonLightbox 42s ease-in-out infinite 0s; 
}
.iniciar-carrusel::after {
    animation: telonLightbox 42s ease-in-out infinite 0s, titileoEstrellas 3s linear infinite 0s;
}
.iniciar-carrusel .boveda-bucle {
    animation: carruselReliquias 42s ease-in-out infinite;
}

.contenedor-boveda-final::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 160px 120px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 180px 50px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 100px 180px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 250px 220px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 280px 90px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 320px 280px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 360px 150px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 400px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 450px 200px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 380px 320px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 420px 420px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 210px 380px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 110px 340px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 50px 410px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 10px 260px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 150px 290px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 290px 400px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 350px 460px, #00ffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 480px 10px, #ffffff, rgba(0,0,0,0));
    background-size: 500px 500px;
}

@keyframes telonLightbox {
    0% { opacity: 0; } 
    2.38% { opacity: 1; } 
    26.19% { opacity: 1; } 
    28.57% { opacity: 0; } 
    100% { opacity: 0; }
}

@keyframes titileoEstrellas {
    0%   { opacity: 0.2; filter: brightness(0.2) drop-shadow(0 0 2px rgba(0, 255, 255, 0)); transform: translate(-50%, -50%); }
    15%  { opacity: 1.0; filter: brightness(1.8) drop-shadow(0 0 15px rgba(0, 255, 255, 1)); transform: translate(-50%, -50%); }
    25%  { opacity: 0.5; filter: brightness(0.8) drop-shadow(0 0 5px rgba(0, 255, 255, 0.4)); transform: translate(-50%, -50%); }
    35%  { opacity: 1.0; filter: brightness(2.0) drop-shadow(0 0 18px rgba(0, 255, 255, 1)); transform: translate(-50%, -50%); }
    50%  { opacity: 0.1; filter: brightness(0.1) drop-shadow(0 0 0px rgba(0, 255, 255, 0)); transform: translate(-50%, -50%); }
    65%  { opacity: 0.9; filter: brightness(1.5) drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)); transform: translate(-50%, -50%); }
    75%  { opacity: 0.3; filter: brightness(0.4) drop-shadow(0 0 2px rgba(0, 255, 255, 0.1)); transform: translate(-50%, -50%); }
    85%  { opacity: 1.0; filter: brightness(1.6) drop-shadow(0 0 12px rgba(0, 255, 255, 0.9)); transform: translate(-50%, -50%); }
    100% { opacity: 0.2; filter: brightness(0.2) drop-shadow(0 0 2px rgba(0, 255, 255, 0)); transform: translate(-50%, -50%); }
}

.boveda-bucle {
    grid-area: 1 / 1; width: 100%; height: auto;
    display: block; opacity: 0;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.95));
    cursor: pointer; pointer-events: none; 
}

/* Evitar que la portada manual sea gigante en PC */
#img-portada-manual { width: auto; max-height: 55vh; }

@keyframes carruselMensajes {
    0% { opacity: 0; pointer-events: none; transform: scale(1); filter: brightness(1); }
    2.38% { opacity: 1; pointer-events: none; transform: scale(1); filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)); }
    7.14% { opacity: 1; pointer-events: none; transform: scale(1); filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)); }
    9.52% { opacity: 0; pointer-events: none; transform: scale(1); filter: brightness(1); }
    100% { opacity: 0; pointer-events: none; transform: scale(1); }
}

.item-2, .item-4, .item-6 { cursor: default !important; pointer-events: none !important; }
.iniciar-carrusel .item-2, .iniciar-carrusel .item-4, .iniciar-carrusel .item-6 { animation-name: carruselMensajes; }

.iniciar-carrusel .item-2 { animation-delay: 0s; }
.iniciar-carrusel .item-4 { animation-delay: 4s; }
.iniciar-carrusel .item-6 { animation-delay: 8s; }
.iniciar-carrusel .item-1 { animation-delay: 12s; }
.iniciar-carrusel .item-3 { animation-delay: 16s; }
.iniciar-carrusel .item-5 { animation-delay: 20s; }

/* 24s a 26s: Pausa contemplativa del Templo solo */

/* MAGIA: LA PORTADA COMO ITEM-7 QUE APARECE A LOS 26s */
.iniciar-carrusel .item-7 { animation-delay: 26s; }

/* FUSIÓN CROSSFADE: EL MENSAJE SE ADELANTA AL SEGUNDO 29 PARA CRUZARSE CON LA PORTADA */
.iniciar-carrusel .item-8 { 
    animation-name: carruselRecompensaFinal;
    animation-delay: 29s; 
}

/* --- ESTILO SEGURO CON CONTRASTE PARA EL MENSAJE DE RECOMPENSA --- */
#mensaje-recompensa-final {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 550px;
    box-sizing: border-box;
    padding: 40px 30px;
    
    /* Clonación exacta del panel oscuro de los submenús */
    background: rgba(0, 0, 0, 0.75); 
    backdrop-filter: blur(8px); 
    border: 1px solid rgba(229, 192, 123, 0.3); 
    border-radius: 15px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9); 
}

.texto-recompensa {
    font-family: 'Cinzel', serif;
    color: #00ffff;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.btn-recompensa {
    font-family: 'Cinzel', serif;
    color: #000;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    padding: 12px 35px;
	text-align: center; 
	display: inline-block;
    background: linear-gradient(180deg, #fceeaa 0%, #d4af37 45%, #8a6300 100%);
    border: 1px solid #ffdf73;
    border-radius: 8px;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.9);
    transition: all 0.3s ease;
}

.btn-recompensa:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* --- EFECTO DE ENFOQUE --- */
#telon-enfoque {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 900; opacity: 0; visibility: hidden; transition: opacity 0.5s ease;
    pointer-events: none;
}
.focus-modo-decreto #telon-enfoque { opacity: 1; visibility: visible; }
.focus-modo-decreto #canvas-rayos { z-index: 950 !important; }
.focus-modo-decreto .boveda-bucle { animation-play-state: paused !important; }

.mensaje-enfocado {
    z-index: 1000 !important;
    transform: scale(1.15) !important;
    filter: brightness(1.3) drop-shadow(0 0 40px rgba(0, 255, 255, 0.7)) !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.onda-choque {
    position: fixed; border: 2px solid #00ffff; border-radius: 50%;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    animation: expansionOnda 0.6s ease-out forwards;
}
@keyframes expansionOnda {
    from { width: 0; height: 0; opacity: 1; }
    to { width: 200px; height: 200px; opacity: 0; }
}

#login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#login-overlay.active { opacity: 1; visibility: visible; }
#canvas-monedas-front { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2001; pointer-events: none; }
.moneda-acceso-wrap { position: relative; z-index: 2002; text-align: center; perspective: 1000px; }

.moneda-3d {
    width: 320px; height: 320px; cursor: default; pointer-events: none; border-radius: 50%;
    filter: drop-shadow(0px 30px 40px rgba(0, 0, 0, 0.9)) brightness(1.2);
    transform: scale(0) rotateY(180deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#login-overlay.active .moneda-3d { animation: giroYResplandorInfinito 4s infinite ease-in-out; }

@keyframes giroYResplandorInfinito {
    0% { transform: rotateY(0deg) scale(1); filter: drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.8)); }
    20% { transform: rotateY(-180deg) scale(1); filter: drop-shadow(0 0 25px rgba(229, 192, 123, 0.4)) drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.8)); }
    40% { transform: rotateY(-360deg) scale(1); filter: drop-shadow(0 0 25px rgba(229, 192, 123, 0.4)) drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.8)); }
    50% { transform: rotateY(-360deg) scale(1); filter: drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.8)); }
    70% { transform: rotateY(-540deg) scale(1); filter: drop-shadow(0 0 25px rgba(229, 192, 123, 0.4)) drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.8)); }
    90% { transform: rotateY(-720deg) scale(1); filter: drop-shadow(0 0 25px rgba(229, 192, 123, 0.4)) drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.8)); }
    100% { transform: rotateY(-720deg) scale(1); filter: drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.8)); }
}

.txt-reclama { color: #00ffff; margin-bottom: 30px; font-weight: bold; font-size: 1.4rem; letter-spacing: 5px; text-transform: uppercase; text-shadow: 0 0 15px rgba(0, 255, 255, 0.7); animation: brilloSuave 3s infinite ease-in-out; }
@keyframes brilloSuave { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.txt-acceso { color: #e5c07b; margin-top: 30px; font-weight: bold; letter-spacing: 5px; text-shadow: 0 0 10px #e5c07b; }

body { margin: 0; padding: 0; background-image: url('../images/fondo-web-1.png'); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; background-color: #000; min-height: 100vh; overflow-x: hidden; }

#canvas-rayos { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.8; }

/* Capa Templo */
.capa-templo {
    position: fixed; top: 15vh; left: 0; width: 100%; height: 100%; 
    background-image: url('../images/templo-capa-22.png'); background-size: cover;
    background-position: center bottom; z-index: 3; pointer-events: auto; 
    cursor: pointer; filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.8));
    animation: entradaInicialTemplo 10s ease-in-out 1 0s;
}

@keyframes entradaInicialTemplo {
    0% { transform: scale(1); }
    30% { transform: scale(1.50); }
    70% { transform: scale(1.50); }
    100% { transform: scale(1); }
}

/* --- FOOTER FLOTANTE --- */
.footer-flotante { 
    position: fixed; 
    bottom: 0px; 
    left: 0; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    gap: 5px; 
    z-index: 1000; 
}

.icon-container { 
    display: flex; 
    gap: 25px; 
    align-items: flex-end; 
    line-height: 0; 
    font-size: 0; 
}

.social-container {
    display: flex;
    width: 460px; 
    justify-content: space-between; 
    align-items: center;
}

.icon-nav { 
    width: 70px; 
    height: 70px; 
    cursor: pointer; 
    filter: drop-shadow(0px 10px 8px rgba(0, 0, 0, 0.9)); 
    transition: all 0.3s ease; 
}

.icono-guardian, .icon-boveda-especial { 
    width: 70px !important; 
    height: 70px !important; 
}

.icon-social {
    width: 45px;
    height: 45px;
    cursor: pointer;
    filter: drop-shadow(0px 8px 6px rgba(0, 0, 0, 0.9));
    transition: all 0.3s ease;
}

@media (hover: hover) { 
    .icon-nav:hover { 
        transform: translateY(-10px); 
        filter: drop-shadow(0px 20px 15px rgba(0, 0, 0, 1)); 
    } 
    .icon-social:hover { 
        transform: translateY(-8px) scale(1.1); 
        filter: drop-shadow(0px 12px 10px rgba(0, 0, 0, 1)); 
    }
}

.moneda-especial { height: 130px !important; width: auto !important; animation: latidoPoderCompleto 3.5s infinite ease-in-out; }
@keyframes latidoPoderCompleto { 
    0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.9)); } 
    50% { transform: scale(1.05) translateY(-15px); filter: drop-shadow(0px 15px 20px rgba(0, 0, 0, 1)); } 
}

/* --- CLASES DE ENVOLTORIO COMPARTIDAS --- */
.wrap-boveda, .wrap-libertas { 
    position: relative; 
    display: inline-flex; 
    flex-direction: column; 
    align-items: center; 
    width: 70px; 
}

/* --- ESTILOS COMPARTIDOS DE PANELES OSCUROS --- */
#sub-menu-boveda { left: 50%; transform: translateX(-35%) translateY(20px); }
#sub-menu-boveda.mostrar { opacity: 1; visibility: visible; transform: translateX(-35%) translateY(0); }

/* Ajustes Libertas (alineado a la derecha y con flex end) */
#sub-menu-libertas { right: 0px; left: auto; align-items: flex-end; transform: translateY(20px); }
#sub-menu-libertas.mostrar { opacity: 1; visibility: visible; transform: translateY(0); }

/* Ajustes Origen (desplazado a la derecha para centrar entre iconos) */
#sub-menu-origen { right: -55px; left: auto; align-items: flex-end; transform: translateY(20px); }
#sub-menu-origen.mostrar { opacity: 1; visibility: visible; transform: translateY(0); }

#sub-menu-boveda, #sub-menu-libertas, #sub-menu-origen { 
    position: absolute; 
    bottom: 85px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.5s ease; 
    z-index: 1001; 

    background: rgba(0, 0, 0, 0.75); 
    padding: 25px 30px 25px 20px; 
    border-radius: 15px; 
    border: 1px solid rgba(229, 192, 123, 0.3); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(8px); 
}

.item-sub-wrap {
    position: relative; display: flex; align-items: center; justify-content: flex-start; text-decoration: none; width: max-content; 
}

/* Invertir elementos dentro de Libertas y Origen */
#sub-menu-libertas .item-sub-wrap, #sub-menu-origen .item-sub-wrap { flex-direction: row-reverse; justify-content: flex-end; }

.icon-sub { 
    width: 55px; height: 55px; position: relative; z-index: 10; 
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.9)); transition: transform 0.3s ease; flex-shrink: 0; 
}

.ribbon-proximamente {
    position: relative; margin-left: -20px; z-index: 1; pointer-events: none; white-space: nowrap; 
}

/* Ajuste de margen para Libertas y Origen */
#sub-menu-libertas .ribbon-proximamente, #sub-menu-origen .ribbon-proximamente { margin-left: 0; margin-right: -20px; }

.ribbon-proximamente span {
    display: inline-block; 
    background: linear-gradient(180deg, #fceeaa 0%, #d4af37 45%, #8a6300 100%);
    padding: 8px 20px 8px 35px; 
    color: #000; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6); 
    font-family: 'Cinzel', serif; font-weight: 900; font-size: 16px; letter-spacing: 1.5px;
    border: 1px solid #ffdf73; border-left: none; border-radius: 0 8px 8px 0; 
    box-shadow: 4px 4px 10px rgba(0,0,0,0.8);
}

/* Ajuste de diseño de la cinta para Libertas y Origen */
#sub-menu-libertas .ribbon-proximamente span, #sub-menu-origen .ribbon-proximamente span {
    padding: 8px 35px 8px 20px; 
    border-left: 1px solid #ffdf73; 
    border-right: none; 
    border-radius: 8px 0 0 8px; 
}

@keyframes carruselReliquias {
    0% { opacity: 0; pointer-events: none; transform: scale(0.95); }
    2.38% { opacity: 1; pointer-events: auto; transform: scale(1); }
    7.14% { opacity: 1; pointer-events: auto; transform: scale(1); }
    9.52% { opacity: 0; pointer-events: none; transform: scale(0.95); }
    100% { opacity: 0; pointer-events: none; transform: scale(0.95); }
}

/* --- ANIMACIÓN ESPECÍFICA PARA LA FUSIÓN DEL BOTÓN RECOMPENSA --- */
@keyframes carruselRecompensaFinal {
    0% { opacity: 0; pointer-events: none; transform: scale(0.95); }
    2.38% { opacity: 1; pointer-events: auto; transform: scale(1); } 
    10.71% { opacity: 1; pointer-events: auto; transform: scale(1); } 
    13.09% { opacity: 0; pointer-events: none; transform: scale(0.95); } 
    100% { opacity: 0; pointer-events: none; transform: scale(0.95); }
}

@media (max-width: 768px) {
    .footer-flotante { bottom: 0px; gap: 10px; } 
    .icon-container { width: 100%; gap: 0; justify-content: space-evenly; padding: 0 5px; }
    .social-container { width: 100%; justify-content: space-around; padding: 0 10px; margin-bottom: 0px; }
    .icon-social { width: 50px; height: 50px; }
	.capa-templo { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center bottom; z-index: 3; filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.8)); }
    
    #sub-menu-boveda { transform: translateX(-30%) translateY(20px); }
    #sub-menu-boveda.mostrar { transform: translateX(-30%) translateY(0); }
    #sub-menu-libertas { right: 0; left: auto; transform: translateY(20px); }
    #sub-menu-libertas.mostrar { transform: translateY(0); }
    
    #sub-menu-origen { right: -50px; left: auto; transform: translateY(20px); }
    #sub-menu-origen.mostrar { transform: translateY(0); }

    /* Responsive recompensa */
    #mensaje-recompensa-final { padding: 25px 20px; }
    .texto-recompensa { font-size: 1.5rem; letter-spacing: 3px; }
    .btn-recompensa { font-size: 1.5rem; font-weight: 900; padding: 12px 25px; text-align: center; display: inline-block; }
	.ribbon-proximamente span { font-size: 18px; } 
}

@media (max-width: 600px) { body { background-position: center top; } .capa-templo { top: 0; } }

@media (hover: hover) {
    .item-sub-wrap:hover .icon-sub { transform: scale(1.15); }
    .item-sub-wrap:hover .ribbon-proximamente span { filter: brightness(1.2); }
}
.item-sub-wrap:active .icon-sub { transform: scale(0.95); transition: all 0.1s; }

#mensaje-final-boveda { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 650px; background: rgba(0, 0, 0, 0.85); padding: 40px 30px; border: 1px solid rgba(229, 192, 123, 0.3); border-radius: 20px; backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8); pointer-events: none; opacity: 0; visibility: hidden; transition: all 1s ease; text-align: center; }
#mensaje-final-boveda.mostrar-mensaje { opacity: 1; visibility: visible; }
.linea-oro { color: #e5c07b; font-size: 1.6rem; font-weight: 800; text-shadow: 0 0 20px rgba(229, 192, 123, 0.6); margin-bottom: 20px; display: block; }
.linea-secundaria { color: #00ffff !important; font-size: 1rem; line-height: 1.6; text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); display: block; }

.ocultar-gradual { opacity: 0 !important; transform: scale(1) !important; transition: all 0.8s ease-in-out !important; pointer-events: none !important; }
#timer-acceso { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); font-family: 'Orbitron', sans-serif; font-size: 2.5rem; font-weight: bold; letter-spacing: 5px; z-index: 2050; transition: all 0.5s ease; opacity: 0; visibility: hidden; }
#timer-acceso.timer-visible { opacity: 1 !important; visibility: visible !important; }
.timer-verde { color: #00ff00; text-shadow: 0 0 15px rgba(0, 255, 0, 0.7); }
.timer-rojo { color: #ff0000; text-shadow: 0 0 20px rgba(255, 0, 0, 0.8); animation: parpadeoUrgente 0.5s infinite alternate; }
@keyframes parpadeoUrgente { from { opacity: 1; transform: translateX(-50%) scale(1); } to { opacity: 0.7; transform: translateX(-50%) scale(1.1); } }
.pausa-movil, .pausa-movil .ticker-move { animation-play-state: paused !important; }

/* --- SISTEMA DE USUARIOS ONLINE --- */
.online-users-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -15px; pointer-events: none; }
.led-verde { width: 8px; height: 8px; background-color: #00cc00; border-radius: 50%; box-shadow: 0 0 5px rgba(0, 204, 0, 0.4); animation: latidoLed 1.5s infinite alternate ease-in-out; }
#contador-online { font-family: 'Cinzel', serif; font-size: 0.8rem; color: #e5c07b; font-weight: 700; letter-spacing: 2px; background-color: rgba(0, 0, 0, 0.85); padding: 3px 10px; border-radius: 4px; text-shadow: 0 0 5px rgba(0, 0, 0, 0.9); }
@keyframes latidoLed { from { opacity: 0.3; transform: scale(0.9); box-shadow: 0 0 2px rgba(0, 204, 0, 0.2); } to { opacity: 0.85; transform: scale(1.05); box-shadow: 0 0 6px rgba(0, 204, 0, 0.6), 0 0 12px rgba(0, 204, 0, 0.3); } }

/* --- AVISO DE NUEVA VERSIÓN PWA (TOAST) --- */
#toast-actualizacion { 
    position: fixed; 
    bottom: -150px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: rgba(0, 0, 0, 0.95); 
    border: 1px solid rgba(229, 192, 123, 0.4); 
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 0, 0, 1); 
    border-radius: 8px; 
    padding: 15px 25px; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    z-index: 9999; 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    backdrop-filter: blur(10px); 
    width: max-content; 
    max-width: 90%; 
    opacity: 0; 
    visibility: hidden; 
}

#toast-actualizacion.mostrar-toast { 
    bottom: 40px; 
    opacity: 1; 
    visibility: visible; 
}

#toast-actualizacion span { color: #00ffff; font-family: 'Cinzel', serif; font-weight: 800; font-size: 1.3rem; letter-spacing: 2px; text-shadow: 0 0 8px rgba(0, 255, 255, 0.6); }
#btn-actualizar-app { background: linear-gradient(180deg, #fceeaa 0%, #d4af37 45%, #8a6300 100%); color: #000; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.3rem; letter-spacing: 1px; border: 1px solid #ffdf73; border-radius: 4px; padding: 8px 15px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.8); transition: all 0.2s ease; }
#btn-actualizar-app:hover { transform: scale(1.05); filter: brightness(1.2); }
#btn-actualizar-app:active { transform: scale(0.95); }

@media (max-width: 768px) {
    #toast-actualizacion { flex-direction: column; gap: 12px; padding: 15px 20px; text-align: center; }
    #toast-actualizacion.mostrar-toast { bottom: 25px; }
    #toast-actualizacion span { font-size: 1.3rem; }
	#btn-actualizar-app { font-size: 1.5rem; }
}

@media all and (display-mode: standalone) {
    #btn-install-app { display: none !important; }
}

/* --- RECORDATORIO ÉPICO AL INICIO --- */
#recordatorio-epico {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000; 
    font-family: 'Cinzel', serif;
    color: #e5c07b;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 8px;
    text-shadow: 0 0 5px #000; 
    text-align: center;
    white-space: nowrap;
    pointer-events: none; 
    opacity: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 30px 60px;
    border-radius: 15px;
    border: 1px solid #00ffff; 
    backdrop-filter: blur(5px);
    
    animation: aparicionEpica 3s forwards;
}

@keyframes aparicionEpica {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95); }
    33% { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 25px rgba(0, 255, 255, 0.8), inset 0 0 10px rgba(229, 192, 123, 0.4), 0 15px 40px rgba(0, 0, 0, 0.95); }
    40% { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(229, 192, 123, 0.2), 0 15px 40px rgba(0, 0, 0, 0.95); }
    66% { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(229, 192, 123, 0.2), 0 15px 40px rgba(0, 0, 0, 0.95); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(229, 192, 123, 0.2), 0 15px 40px rgba(0, 0, 0, 0.95); }
}

@media (max-width: 768px) {
    #recordatorio-epico {
        font-size: 2.2rem;
        letter-spacing: 2px;
        line-height: 1.3;
        white-space: normal;
        width: 90%;
        padding: 20px 25px;
    }
}

/* --- FONDO DE UNIVERSO ANIMADO (ILUSIÓN DE BUCLE) --- */
#video-fondo-universo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -4; 
    pointer-events: none; 
    animation: suavizarSalto 8s infinite; 
}

@keyframes suavizarSalto {
    0%   { opacity: 1; }
    85%  { opacity: 1; } 
    92%  { opacity: 0; } 
    100% { opacity: 1; } 
}

/* --- POSTER VIDEO ÚNICO DE ENTRADA --- */
#poster-video-unico {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%; 
    max-width: 600px; 
    z-index: 920; 
    opacity: 0; 
    visibility: hidden; 
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================================
   --- PRELOADER ABSOLUTO --- 
   ======================================================== */
/* ========================================================
   --- PRELOADER ABSOLUTO --- 
   ======================================================== */
#preloader-absoluto {
    position: fixed; top: 0; bottom: 0; left: 0; right: 0;
    background: #000; z-index: 9999;
    /* Eliminamos el display:flex para evitar bugs de centrado en móviles */
    transition: opacity 0.8s ease;
    pointer-events: all; /* Evita que el usuario toque la web de fondo */
}

/* CORRECCIÓN: Anclaje absoluto a los 4 bordes para centrado matemático */
.preloader-img {
    position: absolute; top: 0; bottom: 0; left: 0; right: 0; 
    width: 100%; height: 100%;
    background-size: contain; 
    background-position: center center !important; 
    background-repeat: no-repeat;
    opacity: 0;
}

/* CORRECCIÓN: La caja de texto mantiene su propio centrado independiente */
.preloader-texto-caja {
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%);
    z-index: 10000;
    
    background: rgba(0, 0, 0, 0.85);
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid #00ffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9); 
    
    animation: hideTextAtEnd 6s linear forwards;
}

/* CARGA CONDICIONAL RESPONSIVE DE IMÁGENES */
@media (max-width: 768px) {
    .preloader-img-1 { background-image: url('../images/logomovil-01.jpg'); }
    .preloader-img-2 { background-image: url('../images/logomovil-02.jpg'); }
    .preloader-img-3 { background-image: url('../images/logomovil-03.jpg'); }
}
@media (min-width: 769px) {
    .preloader-img-1 { background-image: url('../images/logoPC-01.jpg'); }
    .preloader-img-2 { background-image: url('../images/logoPC-02.jpg'); }
    .preloader-img-3 { background-image: url('../images/logoPC-03.jpg'); }
}

/* COREOGRAFÍA DE LAS IMÁGENES (6 SEGUNDOS) */
.preloader-img-1 { animation: showImg1 6s linear forwards; }
.preloader-img-2 { animation: showImg2 6s linear forwards; }
.preloader-img-3 { animation: showImg3 6s linear forwards; }

@keyframes showImg1 {
    0% { opacity: 0; } 
    5% { opacity: 1; } 
    28% { opacity: 1; } 
    36% { opacity: 0; } 
    100% { opacity: 0; }
}

@keyframes showImg2 {
    0% { opacity: 0; } 
    28% { opacity: 0; } 
    36% { opacity: 1; } 
    60% { opacity: 1; } 
    68% { opacity: 0; } 
    100% { opacity: 0; }
}

@keyframes showImg3 {
    0% { opacity: 0; } 
    60% { opacity: 0; } 
    68% { opacity: 1; } 
    100% { opacity: 1; }
}

/* CORRECCIÓN: TEXTO CON FONDO OSCURO, BORDES ELEGANTES Y JUSTO EN EL CENTRO */
.preloader-texto-caja {
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%);
    z-index: 10000;
    
    background: rgba(0, 0, 0, 0.85); /* Fondo negro de contraste */
    padding: 15px 30px;
    border-radius: 8px;
    border: 1px solid #00ffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9); /* Sombra elegante */
    
    animation: hideTextAtEnd 6s linear forwards;
}

.txt-ingresando {
    font-family: 'Cinzel', serif; color: #00ffff; font-size: 1.6rem;
    letter-spacing: 5px; font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

@keyframes hideTextAtEnd {
    0%, 60% { opacity: 1; } 
    68%, 100% { opacity: 0; } 
}

.txt-ingresando .puntos::after {
    content: ''; animation: puntosCarga 1.5s steps(4, end) infinite;
}

@keyframes puntosCarga {
    0% { content: ''; } 
    25% { content: '.'; } 
    50% { content: '..'; } 
    75% { content: '...'; } 
    100% { content: ''; }
}

/* ========================================================
   --- HOLOGRAMA DEL CIELO (Sándwich 3D de Profundidad) ---
   ======================================================== */
.boveda-holograma {
    position: fixed;
    top: 140px; /* ANCLAJE FIJO: Exactamente por debajo de "Usuarios Online" */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2; /* MAGIA 3D: Debajo del templo (3) y sobre los rayos (1) */
    opacity: 0;
    pointer-events: none;
    white-space: nowrap; /* Mantiene la frase en una sola línea inviolable */
}
.holograma-texto {
    position: relative;
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #e0ffff; /* Cian muy claro, casi blanco por la luz */
    letter-spacing: 6px;
    text-shadow: 
        0 0 5px rgba(0, 255, 255, 0.8), 
        0 0 15px rgba(0, 255, 255, 0.8), 
        0 0 30px rgba(0, 255, 255, 0.6), 
        0 0 50px rgba(0, 255, 255, 0.4);
    animation: flickerHolograma 0.15s infinite alternate;
}

/* Aberración Cromática (Desfase rojo y azul de proyector antiguo) */
.holograma-texto::before, .holograma-texto::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.holograma-texto::before {
    color: rgba(255, 0, 50, 0.8); 
    animation: aberracionHolograma 2s infinite linear alternate-reverse;
}

.holograma-texto::after {
    color: rgba(0, 50, 255, 0.8); 
    animation: aberracionHolograma 2.5s infinite linear alternate-reverse;
}

/* Rayas de proyector superpuestas (Scanlines) */
.boveda-holograma::after {
    content: "";
    position: absolute; top: -20%; left: 0; width: 100%; height: 140%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 2px, transparent 2px, transparent 4px);
    z-index: 10;
    pointer-events: none;
}

/* --- CLASE DE GATILLO (La activa el JS) --- */
.boveda-holograma.encender-proyector {
    animation: proyectorAparicion 42s ease-in-out infinite;
}

@keyframes proyectorAparicion {
    0%, 82.5% { opacity: 0; filter: blur(10px); transform: scale(0.95); } /* Invisible en la sombra */
    83.33% { opacity: 1; filter: blur(0px); transform: scale(1); } /* Aparece sincronizado en el seg 35 */
    99% { opacity: 1; filter: blur(0px); transform: scale(1); } 
    100% { opacity: 0; filter: blur(8px); transform: scale(1.05); } /* Muere en el seg 42 */
}

@keyframes flickerHolograma {
    0% { opacity: 0.95; transform: translateY(0) skewX(0deg); filter: brightness(1); }
    50% { opacity: 0.8; transform: translateY(-1px) skewX(-1deg); filter: brightness(1.2); }
    100% { opacity: 1; transform: translateY(1px) skewX(1deg); filter: brightness(0.9); }
}

@keyframes aberracionHolograma {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(30% 0 50% 0); transform: translate(1px, -1px); }
}

/* Ajuste Responsivo para que encaje siempre sin romperse */
@media (max-width: 768px) {
    .boveda-holograma { 
        top: 145px; /* Un poco más ajustado para las pantallas móviles */
    }
    .holograma-texto { 
        font-size: 1.2rem; 
        letter-spacing: 2px; 
    }
}

/* ========================================================
   --- DECRETO CENTRAL DE REMATE (SÓLO 3S FINALES) ---
   ======================================================== */
.decreto-center {
    top: 0; left: 0;
    width: 100%; height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: none; 
    z-index: 9999 !important; 
}

/* NUEVO: El Overlay Negro (Cinematic Blackout) */
.decreto-center::before {
    content: "";
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    /* Un 85% de oscuridad para no matar el universo 100%, pero dar un contraste brutal */
    background-color: rgba(0, 0, 0, 0.85); 
    z-index: -1; /* Se asegura de quedar por detrás de las letras */
    opacity: 0;
    pointer-events: none;
}

/* El gatillo enciende el fondo oscuro en la misma fracción de segundo */
.decreto-center.encender-proyector::before {
    animation: blackoutRemate 42s ease-in-out infinite;
}

@keyframes blackoutRemate {
    /* Mismos tiempos matemáticos que la frase: invisible hasta el segundo 39 */
    0%, 92.85% { opacity: 0; } 
    92.86% { opacity: 0; }
    /* Aparece junto con el texto */
    95.23% { opacity: 1; } 
    /* Se mantiene al máximo durante todo el zoom */
    99.9% { opacity: 1; } 
    /* Desaparece limpiamente para reiniciar el bucle */
    100% { opacity: 0; } 
}

/* Gatillo JS: Activa la animación del remate sincronizado */
.encender-proyector .center-text-remate {
    display: block;
    opacity: 0; 
    animation: remateCentral 42s ease-in-out infinite;
}

/* Estilos para el texto central gigante (ESTE SÍ LLEVA LA SOMBRA NEGRA EXTREMA) */

/* Estilos para el texto central gigante (ESTE SÍ LLEVA LA SOMBRA NEGRA) */
.center-text-remate {
    font-size: 5rem; 
    letter-spacing: 10px;
    text-shadow: 
        /* Resplandor cian interior (intacto) */
        0 0 5px rgba(0, 255, 255, 1), 
        0 0 15px rgba(0, 255, 255, 0.8),
        /* NUEVO: Borde negro al doble de grosor y 100% opaco */
        2px 2px 0px rgba(0, 0, 0, 1), 
        -2px -2px 0px rgba(0, 0, 0, 1),
        -2px 2px 0px rgba(0, 0, 0, 1),
        2px -2px 0px rgba(0, 0, 0, 1),
        /* NUEVO: Niebla negra de fondo para separar las letras del brillo del templo */
        0 0 30px rgba(0, 0, 0, 1),
        0 0 60px rgba(0, 0, 0, 1);
    transform-origin: center center; /* El zoom nace exactamente desde el núcleo */
}

@keyframes remateCentral {
    /* 0% a 92.85% (segundo 0 al 39): Totalmente invisible, esperando en el centro */
    0%, 92.85% { opacity: 0; transform: scale(0.8); filter: blur(10px); }
    
    /* 92.86% a 95.23% (segundo 39 al 40): FADE IN del centro del templo */
    92.86% { opacity: 0; transform: scale(0.8); filter: blur(10px); }
    95.23% { opacity: 1; transform: scale(1); filter: blur(0px); }
    
    /* 95.24% a 97.61% (segundo 40 al 41): SE QUEDA FIJO 1 SEGUNDO */
    97.61% { opacity: 1; transform: scale(1); filter: blur(0px); }
    
    /* 97.62% a 100% (segundo 41 al 42): ZOOM LIMPIO QUE ATRAVIESA LA PANTALLA */
    97.62% { opacity: 1; transform: scale(1); filter: blur(0px); }
    
    /* Mantenemos 100% de opacidad y 0 blur, pero con una escala gigante (20) para que "choque" */
    99.9% { opacity: 1; transform: scale(5); filter: blur(0px); } 
    
    /* En el último milisegundo se apaga para que el bucle reinicie limpio */
    100% { opacity: 0; transform: scale(5); filter: blur(0px); } 
}

/* Ajuste Responsivo para el remate */
@media (max-width: 768px) {
    .center-text-remate { font-size: 2.5rem; letter-spacing: 4px; }
}