/* ==========================================================================
   1. IMPORTACIÓN DE FUENTES DEL INFRAMUNDO
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nosifer&family=Butcherman&family=Metal+Mania&family=UnifrakturMaguntia&family=MedievalSharp&family=Creepster&family=Cinzel:wght@700&display=swap');

/* ==========================================================================
   2. RESET, CONFIGURACIÓN BASE Y CURSORES
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body, #campo-santo {
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Metal Mania', cursive;
    cursor: url('./img/daga.png') 5 28, auto !important;
}

/* --- SISTEMA DE CURSORES MÍSTICOS --- */
#escena-portal, 
#escena-portal *, 
.titulo-mictlan, 
.instruccion {
    cursor: url('./img/daga.png') 16 16, pointer !important;
}

.zona-tumba, 
.alma-maestra,
.botones-exchange button,
#luna-soulgeist, 
a, 
button,
.opcion,
.btn-ritual-grimorio,
.btn-ritual-secundario,
.boton-cerrar-codice,
.cerrar-pacto,
.pentaculo-cursor {
    cursor: url('./img/pentaculo.png') 16 16, pointer !important;
}

#wallet-input, #email, #password, #oraculo-input {
    cursor: url('./img/pentaculo.png') 16 16, text !important;
}

/* --- ESCUDO DE EVENTOS --- */
.moneda-sustraer, 
.moneda-sustraer img, 
.nombre-cripto, 
.simbolo-cripto, 
.balance-proyectado,
.info-tumba {
    pointer-events: none !important;
}

/* ==========================================================================
   3. PORTAL DE ENTRADA Y ESCENA PRINCIPAL
   ========================================================================== */
#escena-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #111 url('img/Entrada.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1.5s ease, visibility 1.5s;
    z-index: 2000;
}

.titulo-mictlan {
    font-family: 'Metal Mania', cursive; 
    font-size: 5rem;
    color: #00ffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.4), 2px 2px 10px #000;
    transition: transform 0.5s ease, text-shadow 0.5s ease;
    z-index: 20;
}

.titulo-mictlan:hover {
    transform: scale(1.05);
    text-shadow: 0 0 25px rgba(0, 255, 255, 1);
}

.instruccion {
    margin-top: 30px;
    font-family: 'Metal Mania', cursive;
    font-size: 1.6rem;
    letter-spacing: 4px;
    color: #ff0000;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.9), 0 0 25px rgba(255, 0, 0, 0.5);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.instruccion:hover {
    color: #fff;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    transform: scale(1.05);
}

#campo-santo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('img/Criptos1.png') no-repeat center center;
    background-size: cover;
    z-index: 100;
    display: none; 
}

#contenedor-criptos {
    position: relative;
    width: 100%;
    height: 100vh;
}

.resplandor-suelo {
    position: absolute;
    bottom: -10px;
    width: 130%;
    left: -15%;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(20px);
}

/* ==========================================================================
   4. LAS TUMBAS - DESKTOP
   ========================================================================== */
.zona-tumba {
    overflow: visible !important;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease; 
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 150;
}
.info-tumba {
    width: 120px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zona-tumba::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 100px;
    height: 30px;
    background: radial-gradient(ellipse, var(--color-cripto, #00ffff) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.zona-tumba:hover::after {
    opacity: 0.5;
}

.zona-tumba:hover {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
}

.moneda-sustraer {
    width: 60px;
    height: 60px;
    opacity: 0;
    transform: translateY(30px) scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.moneda-sustraer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.moneda-flotante {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
    transform: translateY(10px) scale(0.8);
    animation: pulsoEspectral 3s infinite alternate;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-cripto);
    box-shadow: 0 0 15px var(--color-cripto), inset 0 0 10px var(--color-cripto);
}

.simbolo-cripto {
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-cripto);
    filter: drop-shadow(0 0 5px var(--color-cripto));
}

.nombre-cripto {
    font-family: 'Metal Mania', cursive;
    color: var(--color-cripto, #fff); 
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    text-shadow: 0 0 5px var(--color-cripto), 0 0 15px var(--color-cripto);
    filter: brightness(1.2) saturate(1.5); 
}

.balance-proyectado {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #fff;
    margin-top: 5px;
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 1px 1px 2px #000, 0 0 10px var(--color-cripto); 
    filter: drop-shadow(0 0 5px rgba(0,0,0,1));
    font-weight: bold;
    height: 14px;
    white-space: nowrap;
}

.zona-tumba:hover .moneda-sustraer {
    opacity: 1;
    transform: translateY(-60px) scale(1.2);
    animation: levitarMictlan 3s infinite ease-in-out;
}

.zona-tumba:hover .moneda-flotante {
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 0 15px var(--color-cripto)) brightness(1.2);
    animation: levitarMictlan 3s infinite ease-in-out;
}

.zona-tumba:hover .nombre-cripto {
    opacity: 1;
}

.zona-tumba:hover .balance-proyectado {
    opacity: 1;
    transform: translateY(-8px);
}

/* ==========================================================================
   5. ALMA MAESTRA Y PILARES
   ========================================================================== */
.zona-tumba.alma-maestra {
    position: absolute !important;
    transform: translate(-50%, -100%) !important;
    z-index: 90;
    height: auto !important;
    width: 120px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.alma-maestra .sigilo-soulgeist {
    width: 100px; 
    height: 100px;
    background: url('img/Soul.png') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
    opacity: 0.7;
    transition: opacity 0.5s ease;
    margin-bottom: 5px;
    animation: flotarSoulgeist 4s ease-in-out infinite;
}

.alma-maestra:hover {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}

.alma-maestra .nombre-cripto {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-top: 5px;
    opacity: 1 !important;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.balance-actual {
    font-family: 'Nosifer', cursive;
    font-size: 0.5rem;
    color: #00ffff;
    text-shadow: 1px 1px 2px #000, 0 0 8px rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    letter-spacing: 1px;
}

.zona-tumba.alma-maestra:hover::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 100px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 255, 255, 0.3) 0%, transparent 80%);
    filter: blur(10px);
    z-index: -1;
    animation: pulsoAlma 2s infinite alternate;
}

.inscripcion-pilar {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 100;
    writing-mode: vertical-rl; 
    text-orientation: upright;
    font-family: 'Nosifer', cursive;
    letter-spacing: 5px;
    font-weight: bold;
    transition: all 0.6s ease;
}

.pilar-izquierdo {
    top: 35%; 
    left: 51%; 
    color: #008b8b;
    text-shadow: 2px 2px 4px #000;
    animation: resplandor-azul 5s infinite ease-in-out;
}

.pilar-izquierdo:hover {
    color: #00ffff;
    opacity: 1 !important;
    transform: scale(1.05);
    text-shadow: 0 0 15px #00ffff, 0 0 5px #000;
}

.pilar-derecho {
    top: 35%;
    left: 63%;
    color: #8b0000;
    text-shadow: 2px 2px 4px #000;
    animation: resplandor-rojo 3.5s infinite ease-in-out;
}

.pilar-derecho:hover {
    color: #ff0000;
    opacity: 1 !important;
    transform: scale(1.05);
    text-shadow: 0 0 15px #ff0000, 0 0 5px #000;
}

.inscripcion-pilar span {
    font-size: 0.6rem;
    opacity: 0.7;
}

.inscripcion-pilar small {
    writing-mode: horizontal-tb;
    font-size: 0.5rem;
    margin-top: 10px;
    color: #666;
    opacity: 0.3;
    transition: 0.5s;
    letter-spacing: 1px;
}

.inscripcion-pilar:hover span {
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

.inscripcion-pilar:hover small {
    opacity: 1;
    color: #fff;
}

/* ==========================================================================
   6. EFECTOS DE AMBIENTACIÓN
   ========================================================================== */
.niebla-contenedor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    pointer-events: none;
    z-index: 500; 
    opacity: 0.6;
}

.niebla-capa {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.15) 40%, rgba(200, 230, 230, 0.3) 80%, rgba(150, 180, 180, 0.4) 100%);
    filter: blur(45px) contrast(120%);
    bottom: -100px;
    animation: moverNiebla 20s linear infinite;
}

.niebla-trasera {
    animation: moverNiebla 35s linear infinite reverse;
    opacity: 0.7;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 60%);
    bottom: -20px;
    filter: blur(60px);
}

.almaviajera { 
    position: fixed;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #fff, var(--color-alma) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    filter: blur(4px);
    mix-blend-mode: screen;
    animation: distorsionarNiebla 0.3s infinite alternate;
}

.rastro-niebla {
    position: fixed;
    background: var(--color-alma);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    filter: blur(6px);
    opacity: 0.4;
}

/* --- CANDELABRO Y MENÚ PRINCIPAL (CORREGIDO Y AJUSTADO A LAS LLAMAS) --- */
.candelabro-central {
    position: fixed !important;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px; 
    z-index: 1000;
    pointer-events: none;
    filter: brightness(0.8) contrast(1.2) saturate(0.8) drop-shadow(0 0 15px #000);
    display: none; 
    opacity: 0;
    transition: opacity 1s ease-in;
}

.candelabro-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.img-candelabro {
    width: 100%;
    height: auto;
    display: block;
}

/* ✅ MENÚ TEXTOS: AJUSTADO EXACTAMENTE ENCIMA DE LAS LLAMAS */
.menu-textos {
    display: none !important; /* Oculto al inicio */
    position: fixed !important;
    bottom: 40px !important;  /* 👈 POSICIÓN SOBRE LAS LLAMAS: súbelo o bájalo aquí */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 220px !important;   /* Ancho exacto para que quepan los 3 */
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 1001 !important; /* Encima del candelabro */
    pointer-events: auto !important;
}

/* Mostrar solo dentro del cementerio */
#campo-santo .menu-textos {
    display: flex !important;
}

/* Estilos de los enlaces */
.menu-textos .opcion {
    font-family: 'Nosifer', serif !important;
    font-size: 11px !important;
    color: #8b0000 !important;
    text-shadow: 2px 2px 4px #000 !important;
    font-weight: bold !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

/* Posición individual para que estén inclinados como querías */
.menu-textos .leyes    { transform: translate(0, 0) rotate(-10deg) !important; }
.menu-textos .oraculo  { transform: translate(0, -8px) !important; }
.menu-textos .alianzas { transform: translate(0, 0) rotate(10deg) !important; }

/* Hover */
.menu-textos .leyes:hover    { color: #ff0000 !important; opacity: 1 !important; transform: translate(0, 0) rotate(-10deg) scale(1.1) !important; filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.6)) !important; }
.menu-textos .oraculo:hover  { color: #ff0000 !important; opacity: 1 !important; transform: translate(0, -8px) scale(1.1) !important; filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.6)) !important; }
.menu-textos .alianzas:hover { color: #ff0000 !important; opacity: 1 !important; transform: translate(0, 0) rotate(10deg) scale(1.1) !important; filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.6)) !important; }

/* ✅ VERSIÓN MÓVIL: ARREGLADO PARA QUE NO CHOQUE CON BOTÓN DE SALIR */
@media (max-width: 600px) {
    .menu-textos {
        bottom: 20px !important; /* Más abajo para no chocar */
        width: 180px !important;
    }
    .menu-textos .opcion {
        font-size: 8px !important; /* Más pequeño */
    }
    /* Hacemos el botón de salir más pequeño */
    .boton-salir { 
        transform: scale(0.8) !important;
        top: 5px !important;
        right: 5px !important;
    }
}

/* ==========================================================================
   7. VENTANAS MODALES, INTERFACES Y RITUALES
   ========================================================================== */
#modal-ritual {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #0a0000, #1f0a0a) !important;
    border: 3px solid #6b0000 !important;
    padding: 28px 22px !important;
    z-index: 3000;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 0 45px rgba(139, 0, 0, 0.85), 0 0 20px rgba(0,0,0,0.95) !important;
    width: 360px !important;
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-height: 180px;
    display: none;
}

.contenido-ritual h3 { font-family: 'Metal Mania', cursive; color: var(--color-ritmo); font-size: 1.8rem; margin-bottom: 10px; }
.contenido-ritual p { font-size: 0.9rem; color: #ccc; margin-bottom: 20px; }

#modal-ritual #titulo-ritual {
    color: var(--color-ritmo, #f7931a) !important;
    text-shadow: 0 0 20px currentColor !important;
    font-size: 1.75rem !important;
}

#modal-ritual input,
#modal-ritual select {
    background: #0c0c0c !important;
    border: 2px solid #4a0000 !important;
    color: #ddd !important;
    padding: 12px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-family: monospace;
}

.botones-exchange { 
    display: flex; 
    gap: 10px !important; 
    justify-content: center; 
    margin-top: 18px !important;
}
.botones-exchange button { 
    background: transparent; 
    color: #fff; 
    border: 1px solid #fff; 
    padding: 8px 18px !important; 
    font-size: 0.55rem !important;
    min-width: 105px !important;
    height: 38px !important;
    font-family: 'Nosifer', cursive !important; 
    flex: 1; 
    transition: 0.3s; 
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
}

#btn-cosecha-enviar {
    background: #c44a00 !important;
    color: #fff !important;
    border: 2px solid #ff8800 !important;
}
#btn-cosecha-cancelar {
    background: #1f1f1f !important;
    color: #ccc !important;
    border: 2px solid #4a0000 !important;
}

#btn-cosecha-enviar:hover { background: #ff5500 !important; transform: scale(1.04) !important; box-shadow: 0 0 10px #fff; }
#btn-cosecha-cancelar:hover { background: #330000 !important; color: #fff !important; }

/* --- CONTRATO PERGAMINO DE ENTIDADES --- */
.modal-pergamino {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 750px;
    background: url('img/contrato.png') no-repeat center center;
    background-size: contain;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.pergamino-content { width: 80%; margin-top: 35px; text-align: center; color: #2a1b0a; font-family: 'Nosifer', 'Metal Mania'; }
.pergamino-titulo { font-size: 1.5rem; margin-bottom: 15px; color: #4a0000; }
.pergamino-texto { color: #2a1b0a; font-size: 0.8rem; line-height: 1.3; font-weight: bold; padding: 0 10px; text-align: center; }
.pergamino-botones { margin-top: 40px; display: flex; gap: 20px; }
.btn-ritual { padding: 10px 20px; border: none; font-family: 'Nosifer', cursive; background: #4a0000; color: #e0c097; box-shadow: 2px 2px 5px #000; transition: 0.3s; }
.btn-ritual:hover { transform: scale(1.1); background: #ff0000; color: #fff; }

/* --- CÓDICE Y INTERFAZ GRIMORIO GENERAL --- */
.capa-oscura {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center; align-items: center;
    z-index: 100000 !important;
}

.pergamino-quemado {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 750px;
    background: url('img/contrato.png') no-repeat center center;
    background-size: contain;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 80px 100px 80px;
    box-sizing: border-box;
    text-align: center;
}

#codice-titulo { font-family: 'Nosifer', cursive; color: #4a0000; font-size: 09rem; margin-bottom: 20px; }
#codice-cuerpo { font-family: 'Nosifer', serif; color: #2a1b0a; font-size: 0.75rem; line-height: 1.5; font-weight: bold; }
.boton-cerrar-codice { margin-top: 30px; font-family: 'Nosifer', cursive; color: #600; font-size: 0.6rem; transition: 0.3s; }
.boton-cerrar-codice:hover { color: #ff0000; transform: scale(1.1); }

/* --- GRIMORIO --- */
.grimorio-container {
    background: url('img/grimorio.png') no-repeat center center !important;
    background-size: 100% 100% !important;
    width: 100% !important;
    max-width: 1080px !important;
    height: auto !important;
    min-height: 620px !important;
    margin: 20px auto !important;
    position: relative !important;
    padding: 45px 70px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    filter: drop-shadow(0 0 20px #000) !important;
}

.grimorio-container button, 
.grimorio-container .input-pergamino-goth,
.grimorio-container #google-btn-container iframe,
.grimorio-container .btn-ritual-grimorio,
.grimorio-container .btn-ritual-secundario,
.grimorio-container #toggle-auth-text,
.pentaculo-cursor {
    cursor: url('./img/pentaculo.png') 16 16, pointer !important;
}

.grimorio-container .pagina-izquierda {
    position: absolute !important;
    top: 20% !important;
    left: 23% !important;
    width: 25% !important;
    height: 70% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    box-sizing: border-box !important;
    padding: 10px 20px !important;
    z-index: 30 !important;
    color: #7a1c1c !important;
}

.grimorio-container .pagina-derecha {
    position: absolute !important;
    top: 20% !important;        
    right: 25% !important;
    width: 25% !important;      
    height: 70% !important;     
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important; 
    gap: 15px !important;       
    box-sizing: border-box !important;
    padding: 10px 20px !important;
    z-index: 30 !important;
    color: #7a1c1c !important;
}

.grimorio-container .formulario-goth {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 90% !important;
    margin: 0 !important;
}

.input-pergamino-goth {
    background: rgba(42, 27, 10, 0.05);
    border: 1px solid rgba(74, 0, 0, 0.4);
    font-family: 'MedievalSharp', serif;
    color: #4a0000;
    text-align: center;
    border-radius: 2px;
    outline: none;
    font-size: 0.8rem !important;
    padding: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.input-pergamino-goth::placeholder {
    color: rgba(74, 0, 0, 0.5);
}

.btn-ritual-grimorio {
    background: #4a0000;
    color: #fff;
    border: none;
    font-family: 'Metal Mania', cursive;
    letter-spacing: 1px;
    padding: 10px 15px;
    width: 100%;
    filter: drop-shadow(0 0 5px #000);
    font-size: 0.75rem !important;
    margin-top: 5px !important;
}
.btn-ritual-secundario {
    background: transparent;
    color: #8B0000;
    border: 1px solid #8B0000;
    font-family: 'MedievalSharp', serif;
    border-radius: 3px;
    font-size: 0.7rem !important;
    padding: 5px 12px !important;
}

#google-btn-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 180px !important;
    min-height: 45px !important;
    margin: 14px auto !important;
    position: relative !important;
}
#google-btn-container::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    z-index: 10 !important;
    cursor: url('./img/pentaculo.png') 16 16, pointer !important;
    pointer-events: none !important;
}
#google-btn-container iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.grimorio-container .divisor-arcano {
    border-top: 1px solid rgba(139, 0, 0, 0.25) !important;
    width: 70% !important;
    margin: 5px 0 !important;
}

.grimorio-container .cambio-modo-contenedor,
.grimorio-container #new-user-helper {
    position: relative !important;
    font-family: 'nosifer', cursive !important;
    font-size: 0.7rem !important;
    color: #7a1c1c !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 15px !important;
    padding-bottom: 0 !important;
}
.grimorio-container #new-user-helper p {
    margin-bottom: 5px !important;
    color: #7a1c1c !important;
}

#toggle-auth-text {
    cursor: url('./img/pentaculo.png') 16 16, pointer !important;
    color: #7a1c1c !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

/* Responsivo Grimorio */
@media (min-width: 1025px) {
    .grimorio-container { padding: 65px 90px !important; }
    .pagina-izquierda { width: 46% !important; padding-right: 45px !important; }
    .pagina-derecha { width: 46% !important; padding-left: 45px !important; }
}
@media (max-width: 1024px) {
    .grimorio-container { padding: 35px 25px !important; min-height: 680px !important; }
    .pagina-izquierda, .pagina-derecha { width: 100% !important; max-width: 380px !important; margin: 12px auto !important; padding: 18px 15px !important; }
    .pagina-izquierda { border-bottom: 3px solid rgba(139, 0, 0, 0.35) !important; }
    .pagina-derecha { border-top: 3px solid rgba(139, 0, 0, 0.35) !important; }
    .grimorio-container h2 { font-size: 1.05rem !important; margin-bottom: 12px !important; }
    .grimorio-container label, .grimorio-container p { font-size: 0.9rem !important; }
    .input-pergamino-goth { padding: 13px !important; font-size: 0.75rem !important; }
    .btn-ritual-grimorio { padding: 13px !important; font-size: 0.9rem !important; }
    #google-btn-container { margin: 15px 0 !important; max-width: 170px !important; }
}
@media (max-width:  480px) {
    .grimorio-container { padding: 25px 18px !important; }
    .pagina-izquierda, .pagina-derecha { max-width: 340px !important; padding: 15px !important; }
    .grimorio-container h2 { font-size: 1.15rem !important; }
    #google-btn-container { max-width: 180px !important; }
}

/* --- ORÁCULO DE OBSIDIANA --- */
#pantalla-oraculo {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.5s ease;
}

.espejo-arcaico {
    position: relative;
    width: 1200px; height: 1200px;
    background: url('img/espejo.png') no-repeat center center !important;
    background-size: contain !important;
    filter: brightness(0.7) contrast(1.2) !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.oraculo-contenido {
    width: 450px;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: -20px;
}

.oraculo-titulo { font-family: 'Nosifer', cursive !important; color: #ff0000 !important; font-size: 2.2rem !important; text-shadow: 0 0 15px #ff0000, 3px 3px 5px #000000 !important; margin: 0 0 15px 0 !important; }
.oraculo-cuerpo p { font-family: 'UnifrakturMaguntia', serif !important; color: #ffffff !important; font-size: 1.2rem !important; text-shadow: 2px 2px 4px #000000, 0 0 10px rgba(255, 0, 0, 0.5) !important; margin: 0 0 25px 0 !important; }

#oraculo-input {
    background: rgba(0, 0, 0, 0.6) !important;
    border: none !important;
    border-bottom: 2px solid #ff0000 !important;
    color: #ff0000 !important;
    font-family: 'Nosifer', cursive !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    width: 320px !important; height: 45px !important;
    outline: none !important;
    padding: 10px !important;
    resize: none !important;
    text-shadow: 0 0 8px #ff0000 !important;
}
/* Añade esto a tu CSS para darle atmósfera al mensaje de entrada */
.oraculo-cuerpo p {
    animation: aparecer 2s ease-in-out;
}

@keyframes aparecer {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.btn-invocar { margin-top: 30px !important; background: #000000 !important; color: #ff0000 !important; border: 2px solid #ff0000 !important; font-family: 'Nosifer', cursive !important; font-size: 0.7rem !important; padding: 12px 35px !important; transition: all 0.3s ease !important; }
.btn-invocar:hover { background: #ff0000 !important; color: #000000 !important; box-shadow: 0 0 20px #ff0000 !important; }
.cerrar-pacto { margin-top: 40px !important; color: #ff0000 !important; font-family: 'Metal Mania', cursive !important; font-size: 1.2rem !important; text-shadow: 0 0 8px #ff0000, 2px 2px 4px #000000 !important; transition: transform 0.2s !important; }
.cerrar-pacto:hover { transform: scale(1.1); }

/* --- ALERTAS --- */
.modal-alerta-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    align-items: center; justify-content: center;
}

.modal-alerta-caja {
    background: #0d0d0d;
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px #ff0000, inset 0 0 15px rgba(255, 0, 0, 0.3);
    padding: 30px;
    width: 400px;
    text-align: center;
    border-radius: 5px;
    animation: emergerMictlan 0.3s ease-out;
}

#alerta-titulo { font-family: 'Nosifer', cursive !important; color: #ff0000; font-size: 1.3rem; margin-bottom: 15px; text-shadow: 0 0 8px #ff0000; }
#alerta-mensaje { font-family: 'UnifrakturMaguntia', serif !important; color: #ffffff; font-size: 1.1rem; margin-bottom: 25px; line-height: 1.4; }
.btn-cerrar-alerta { background: #000; color: #ff0000; border: 1px solid #ff0000; font-family: 'Metal Mania', cursive !important; padding: 8px 25px; font-size: 1rem; transition: all 0.2s; }
.btn-cerrar-alerta:hover { background: #ff0000; color: #000; box-shadow: 0 0 10px #ff0000; }

/* ========================================================================== 
   8. ANIMACIONES Y TIMELINES 
   ========================================================================== */
@keyframes cieloMictlan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulsoEspectral {
    from { filter: brightness(0.5) blur(1px); }
    to   { filter: brightness(1.2) blur(0px); }
}

@keyframes distorsionarNiebla {
    0%   { transform: scale(1) skew(5deg); opacity: 0.8; }
    100% { transform: scale(1.4) skew(-5deg); opacity: 0.5; }
}

@keyframes moverNiebla {
    0%   { transform: translateX(0) translateY(0); }
    50%  { transform: translateX(-25%) translateY(-20px); }
    100% { transform: translateX(-50%) translateY(0); }
}

@keyframes emergerMictlan {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

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

@keyframes pulsoAlma {
    from { opacity: 0.4; transform: scale(1); }
    to   { opacity: 0.8; transform: scale(1.4); }
}

@keyframes resplandor-azul {
    0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 2px #008b8b); }
    50%      { opacity: 0.8; filter: drop-shadow(0 0 10px #00ffff); }
}

@keyframes resplandor-rojo {
    0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 2px #8b0000); }
    50%      { opacity: 0.9; filter: drop-shadow(0 0 12px #ff0000); }
}

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

/* ========================================================================== 
   9. AJUSTE DE PRECISIÓN HORIZONTAL Y BLOQUEO VERTICAL MÓVIL 
   ========================================================================== */

/* --- 9.1 VISTA HORIZONTAL EN MÓVILES (LANDSCAPE) --- */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #aviso-rotar { display: none !important; }
    .candelabro-central { top: 0 !important; left: 50% !important; transform: translateX(-50%) !important; }
    .menu-textos { flex-direction: row !important; justify-content: space-between !important; }
    .opcion { font-size: 10px !important; color: #ff0000 !important; }
    .pilar-izquierdo { left: 45.6% !important; }
    .pilar-derecho   { left: 56.6% !important; }
}

/* --- 9.2 VISTA VERTICAL EN MÓVILES (PORTRAIT) --- */
@media screen and (max-width: 550px) and (orientation: portrait) {
    #contenedor-criptos, #campo-santo, .candelabro-central { display: none !important; }
    #aviso-rotar {
        display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important;
        position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important;
        background: #050505 !important; z-index: 9999999 !important; color: #8b0000 !important; text-align: center !important;
        padding: 30px !important; box-sizing: border-box !important;
    }
    #aviso-rotar h2 { font-family: 'Nosifer', sans-serif !important; font-size: 14px !important; text-shadow: 0 0 8px #ff0000 !important; margin-bottom: 15px !important; }
    #aviso-rotar p { font-family: 'Creepster', sans-serif !important; font-size: 15px !important; color: #fff !important; line-height: 1.4 !important; }
    .icono-giro {
        display: block !important; width: 35px; height: 55px; margin-top: 25px;
        border: 2px solid #8b0000; border-radius: 5px; position: relative;
        animation: rotarMictlanFinal 2.3s infinite ease-in-out;
    }
    .icono-giro::after {
        content: '' !important; position: absolute !important; bottom: 3px !important; left: 50% !important;
        transform: translateX(-50%) !important; width: 5px !important; height: 5px !important;
        background: #ff0000 !important; border-radius: 50% !important;
    }
}

@keyframes rotarMictlanFinal {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}
/* ==================================================================
   COORDENADAS MILIMÉTRICAS ABSOLUTAS (SOLUCIÓN FINAL DESTRUIDORA DE CACHÉ)
   ================================================================== */

/* Forzamos el contenedor del grimorio a ser un bloque rígido y estable */
.grimorio-container {
    background: url('img/grimorio.png') no-repeat center center !important;
    background-size: 100% 100% !important;
    width: 1050px !important;
    height: 620px !important;
    max-width: 98vw !important;
    max-height: 95vh !important;
    position: relative !important; /* Base sagrada de coordenadas */
    display: block !important;     /* Estrictamente bloque para evitar herencias flex */
    padding: 0 !important;
    box-sizing: border-box !important;
    filter: drop-shadow(0 0 20px #000) !important;
}
/* Base para el cursor del pentáculo en todos los botones e interactivos del grimorio */
.grimorio-container button, 
.grimorio-container .input-pergamino-goth,
.grimorio-container #google-btn-container iframe, /* Asegura el cursor dentro del iframe de Google */
.grimorio-container .btn-ritual-grimorio,
.grimorio-container .btn-ritual-secundario,
.grimorio-container #toggle-auth-text,
.pentaculo-cursor {
    cursor: url('./img/pentaculo.png') 16 16, pointer !important;
}

/* ➡️ PÁGINA IZQUIERDA: Formulario Tradicional perfectamente centrado en su pergamino */
.grimorio-container .pagina-izquierda {
    position: absolute !important;
    top: 20% !important;        /* Bajado lo suficiente para esquivar el marco de cuero superior */
    left: 23% !important;       /* Margen exacto desde el borde izquierdo del libro */
    width: 25% !important;      /* Ancho perfecto limitando con el centro del libro */
    height: 70% !important;     /* Altura máxima para no pisar el fondo */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Alineación limpia desde arriba */
    gap: 15px !important;       /* Separación balanceada y constante entre elementos */
    box-sizing: border-box !important;
    padding: 10px 20px !important;
    z-index: 30 !important;
    color: #7a1c1c !important;
}

/* ⬅️ PÁGINA DERECHA: Google Auth y helpers en perfecta simetría */
.grimorio-container .pagina-derecha {
    position: absolute !important;
    top: 20% !important;        
    right: 25% !important;      /* Margen exacto desde el borde derecho del libro */
    width: 25% !important;      
    height: 70% !important;     
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important; 
    gap: 15px !important;       
    box-sizing: border-box !important;
    padding: 10px 20px !important;
    z-index: 30 !important;
    color: #7a1c1c !important;
}

/* 📌 CONTROL ESTRICTO DE FORMULARIOS E INPUTS */
.grimorio-container .formulario-goth {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;       /* Separación interna de los inputs */
    width: 90% !important;
    margin: 0 !important;
}

.grimorio-container .input-pergamino-goth {
    font-size: 0.8rem !important;
    padding: 8px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #7a1c1c !important;
}

.grimorio-container .btn-ritual-grimorio {
    font-size: 0.75rem !important;
    padding: 10px !important;
    width: 100% !important;
    margin-top: 5px !important;
}

/* 📌 CONTROL DEL CONTENEDOR BOTÓN GOOGLE NATIVO CON CURSOR FORZADO */
#google-btn-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 45px !important;
    margin: 10px 0 0 0 !important;
    position: relative !important; /* Permite posicionar la capa encima */
}

/* Capa transparente superior que fuerza el cursor del pentáculo */
#google-btn-container::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    cursor: url('./img/pentaculo.png') 16 16, pointer !important;
    pointer-events: none !important; /* 🔥 Hace que el clic ignore esta capa y presione el botón real de Google */
}

/* El divisor sutil del lado derecho */
.grimorio-container .divisor-arcano {
    border-top: 1px solid rgba(139, 0, 0, 0.25) !important;
    width: 70% !important;
    margin: 5px 0 !important;
}

/* 📌 PIES DE PÁGINA ACOMODADOS */
.grimorio-container .cambio-modo-contenedor,
.grimorio-container #new-user-helper {
    position: relative !important;
    font-family: 'nosifer', cursive !important;
    font-size: 0.7rem !important;
    color: #7a1c1c !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 15px !important; /* Empuja el texto al fondo de la hoja de manera segura */
    padding-bottom: 0 !important;
}

.grimorio-container #new-user-helper p {
    margin-bottom: 5px !important;
    color: #7a1c1c !important;
}

.grimorio-container .btn-ritual-secundario {
    font-size: 0.7rem !important;
    padding: 5px 12px !important;
    cursor: pointer !important;
}

/* Corrección de enlaces de intercambio */
#toggle-auth-text {
    
    cursor: url('./img/pentaculo.png') 16 16, pointer !important;
    color: #7a1c1c !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}
.efecto-impacto {
    /* Usamos filter en lugar de transform porque no altera el layout ni el tamaño */
    filter: drop-shadow(0 0 15px white) brightness(1.5);
    transition: filter 0.3s ease;
}
/* Oculta SOLO el balance de arriba a la izquierda */
.alma-maestra .balance-actual { 
    display: none !important; 
}

/* El balance del Soulgeist (el que generas en el script) se mantendrá visible */
#balance-soulgeist {
    display: block !important;
}
/* Busca el contenedor superior y ocúltalo */
.nombre-de-tu-clase-superior-izquierda {
    display: none !important;
}
/* ====================== MODAL COSECHA MEJORADO ====================== */
#modal-ritual {
    background: linear-gradient(145deg, #0a0000, #1f0a0a) !important;
    border: 3px solid #6b0000 !important;
    box-shadow: 0 0 45px rgba(139, 0, 0, 0.85),
                0 0 20px rgba(0,0,0,0.95) !important;
    width: 360px !important;
    padding: 28px 22px !important;
}

#modal-ritual #titulo-ritual {
    color: var(--color-ritmo, #f7931a) !important;
    text-shadow: 0 0 20px currentColor !important;
    font-size: 1.75rem !important;
}

#modal-ritual input,
#modal-ritual select {
    background: #0c0c0c !important;
    border: 2px solid #4a0000 !important;
    color: #ddd !important;
}

.botones-exchange {
    gap: 10px !important;
    margin-top: 18px !important;
}

.botones-exchange button {
    padding: 8px 18px !important;
    font-size: 0.55rem !important;
    min-width: 105px !important;
    height: 38px !important;
    font-family: 'Nosifer', cursive !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
}

/* Botón principal */
#btn-cosecha-enviar {
    background: #c44a00 !important;
    color: #fff !important;
    border: 2px solid #ff8800 !important;
}

/* Botón cancelar */
#btn-cosecha-cancelar {
    background: #1f1f1f !important;
    color: #ccc !important;
    border: 2px solid #4a0000 !important;
}

#btn-cosecha-enviar:hover {
    background: #ff5500 !important;
    transform: scale(1.04) !important;
}

#btn-cosecha-cancelar:hover {
    background: #330000 !important;
    color: #fff !important;
}
/* ====================== GRIMORIO RESPONSIVO - VERSIÓN FINAL ====================== */

.grimorio-container {
    background: url('img/grimorio.png') no-repeat center center !important;
    background-size: 100% 100% !important;
    width: 100% !important;
    max-width: 1080px !important;
    height: auto !important;
    min-height: 620px !important;
    margin: 20px auto !important;
    position: relative !important;
    padding: 45px 70px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

/* ====================== ESCRITORIO ====================== */
@media (min-width: 1025px) {
    .grimorio-container {
        padding: 65px 90px !important;
    }

    .pagina-izquierda {
        width: 46% !important;
        padding-right: 45px !important;
    }

    .pagina-derecha {
        width: 46% !important;
        padding-left: 45px !important;
    }
}

/* ====================== MÓVIL ====================== */
@media (max-width: 1024px) {
    .grimorio-container {
        /* Mantenemos tu escala que ya funciona bien */
        transform: scale(0.7);
        transform-origin: top center; 
        
        /* Centrado absoluto */
        position: obsolute !important;
        top: 30% !important;   /* Ajusta este % (10% a 20%) para subir o bajar el libro */
        left: 50% !important;
        transform: translate(-50%, 0) scale(0.7); /* El translate(-50%) lo centra horizontalmente */
        
        /* Aseguramos que no ocupe espacio extra */
        width: 90% !important;
        margin: 0 !important;
    }

    .pagina-izquierda,
    .pagina-derecha {
        width: 100% !important;
        max-width: 380px !important;
        margin: 12px auto !important;
        padding: 18px 15px !important;
    }

    .pagina-izquierda {
        border-bottom: none !important;
    }

    .pagina-derecha {
        border-top: none !important;
    }

    /* Ajuste fino de textos y botones */
    .grimorio-container h2 {
        font-size: 1.05rem !important;
        margin-bottom: 12px !important;
    }

    .grimorio-container label,
    .grimorio-container p {
        font-size: 0.9rem !important;
    }

    .input-pergamino-grimorio {
        padding: 13px !important;
        font-size: 0.75rem !important;
    }

    .btn-ritual-grimorio {
        padding: 13px !important;
        font-size: 0.9rem !important;
    }

    #google-btn-container {
        margin: 15px 0 !important;
    }
}

/* ====================== PANTALLAS MUY PEQUEÑAS ====================== */
@media (max-width: 480px) {
    .grimorio-container {
        padding: 25px 18px !important;
transform: scale(0.7); 
        transform-origin: top center; /* Hace que se encoja desde arriba */
        margin-top: -30px !important; /* Compensa el espacio que deja el scale */
        margin-bottom: -30px !important;
    }

    .pagina-izquierda,
    .pagina-derecha {
        max-width: 340px !important;
        padding: 15px !important;
    }

    .grimorio-container h2 {
        font-size: 1.15rem !important;
    }
}

/* Ocultar Leyes, Oráculo y Alianzas hasta entrar al cementerio */
.menu-textos {
    display: none !important;
}

/* Mostrarlos solo cuando ya estés dentro del cementerio */
#campo-santo .menu-textos {
    display: flex !important;
}
/* ====================== BOTÓN GOOGLE AJUSTADO ====================== */

#google-btn-container {
    width: 100% !important;
    max-width: 180px !important;     /* ← Este es el que controla el tamaño */
    margin: 14px auto !important;
    display: flex !important;
    justify-content: center !important;
}

/* Versión móvil más ajustada */
@media (max-width: 1024px) {
    #google-btn-container {
        max-width: 170px !important;
        margin: 15px auto !important;
    }
}

@media (max-width: 480px) {
    #google-btn-container {
        max-width: 180px !important;   /* Aún más pequeño en celulares */
    }
}

/* Forzar que el botón interno de Google respete el tamaño */
#google-btn-container iframe {
    width: 100% !important;
    max-width: 100% !important;
}
/* ==================================================================
   ALINEACIÓN QUIRÚRGICA FINAL SOBRE LAS TRES LLAMAS (PC)
   ================================================================== */

#campo-santo .menu-textos {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    /* Controla la altura general de las 3 letras juntas */
    margin-top: -85px !important; 
    width: 0 !important;
    height: 0 !important;
    z-index: 99999 !important;
}

#campo-santo .menu-textos .opcion {
    position: absolute !important;
    width: 140px !important; /* Caja de texto fija para que no se mueva el texto */
    text-align: center !important;
    font-family: 'Nosifer', serif !important;
    font-size: 13.5px !important;
    color: #ff2222 !important;
    text-shadow: 0 0 10px #ff0000, 2px 2px 4px #000 !important;
    font-weight: bold !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

#campo-santo .menu-textos .opcion:hover {
    color: #ffffff !important;
    text-shadow: 0 0 15px #ff0000 !important;
}

/* UBICACIÓN EN PC (SOBRE LAS LLAMAS DEL CANDELABRO) */
#campo-santo .leyes { left: -175px !important; top: 25px !important; }
#campo-santo .oraculo { left: -70px !important; top: -5px !important; }
#campo-santo .alianzas { left: 35px !important; top: 25px !important; }

/* ==================================================================
   ADAPTACIÓN TOTAL PARA DISPOSITIVOS MÓVILES (SOLUCIÓN REAL)
   ================================================================== */
@media (max-width: 1024px) {
    
    /* 1. VOLVEMOS INVISIBLE EL CANDELABRO PERO SIN VOLVER INVISIBLE A SUS HIJOS */
    #candelabro-contenedor,
    .candelabro-central,
    .contenedor-velas,
    #candelabro,
    #velas,
    .velas {
        background: none !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Ocultamos cualquier etiqueta <img> que esté pintando el candelabro directamente */
    #campo-santo div[class*="candelabro"] img,
    #campo-santo div[id*="candelabro"] img,
    .candelabro-central img,
    #candelabro img {
        display: none !important;
    }

    /* 2. BARRA DE MENÚ SUPERIOR (FORZADA A APARECER) */
    #campo-santo .menu-textos {
        display: flex !important;       /* Se vuelve fila horizontal */
        visibility: visible !important; /* Rompe cualquier ocultamiento heredado */
        opacity: 1 !important;          /* Rompe cualquier opacidad heredada */
        position: fixed !important;
        
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 46px !important;
        margin-top: 0 !important;
        transform: none !important;
        
        /* Capa negra sólida en el techo para que tus textos resalten */
        background-color: transparent !important;
        background: transparent!important; 
        
        
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 0 75px 0 15px !important; /* Protege la cruz de la derecha */
        z-index: 999999999 !important;  /* Máxima prioridad en pantalla */
    }

    /* 3. FORZAMOS A LAS OPCIONES A MOSTRARSE EN ROJO */
    #campo-santo .menu-textos .opcion {
        display: inline-block !important; /* Fuerza a que existan en línea */
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        
        font-size: 11px !important;     /* Tamaño ideal para móviles */
        color: #ff2222 !important;      /* Tu rojo característico */
        text-shadow: 0 0 8px #ff0000, 2px 2px 3px #000 !important;
    }

    /* 4. MANTENEMOS LA CRUZ DE SALIR PEQUEÑA EN LA BARRA */
    .btn-salir, .boton-salir, #boton-salir, .close-btn, .btn-close {
        position: fixed !important;
        top: 8px !important;
        right: 15px !important;
        z-index: 1000000000 !important;
        transform: scale(0.68) !important;
        transform-origin: right center !important;
    }
}
@media (max-width: 1024px) {
    /* 1. La zona de patrocinadores se vuelve un botón flotante limpio */
    .zona-patrocinadores {
        position: fixed !important;
        top: 70px !important; /* Lo bajamos tantito para que no choque con tu menú de letras */
        right: 20px !important;
        padding: 8px 12px !important;
        background: rgba(0, 0, 0, 0.85) !important;
    }

    /* 2. Engañamos al script: El contenedor original se vuelve invisible pero gigante */
    #reproductor-ad {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important; /* Se vuelve 100% invisible pero SÍ EXISTE para el script */
        z-index: 2 !important;
    }

    /* 3. El texto se queda visible abajo, estilizado y libre de estorbos */
    .zona-patrocinadores p {
        position: relative !important;
        z-index: 1 !important;
        margin: 0 !important;
        font-size: 0.8rem !important;
        color: #ff2222 !important; /* Rojo encendido para que sepan que es interactivo */
        text-shadow: 0 0 8px #ff0000 !important;
    }

    /* Ocultamos el texto secundario de los corchetes que ya no se ocupa en móvil */
    #reproductor-ad span {
        display: none !important;
    }
}

/* El main debe crecer para empujar el footer hacia abajo */
main {
    flex: 1;
}

#cursor-serpiente {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    display: flex; /* Para alinear las letras */
    gap: 2px;
}

.letra-serpiente {
    font-family: 'Nosifer', cursive;
    color: #8b0000;
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.6;
    transition: transform 0.1s ease;
}
.cerrar-pacto {
    margin-top: 20px !important; 
    background: transparent !important; /* Fondo transparente para elegancia */
    border: 1px solid #ff0000 !important; /* Borde fino rojo */
    color: #ff0000 !important; 
    font-family: 'Nosifer', cursive !important; 
    font-size: 0.8rem !important; 
    padding: 8px 20px !important; 
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 0 5px #ff0000 !important;
}

.cerrar-pacto:hover {
    background: #ff0000 !important; 
    color: #000000 !important; 
    box-shadow: 0 0 15px #ff0000 !important;
}
/* --- AJUSTE MÓVIL PARA BOTÓN VIDEO --- */
@media (max-width: 1024px) {
    .zona-patrocinadores {
        right: auto !important; /* Desactiva el derecho */
        left: 20px !important;  /* Lo mueve a la izquierda */
        top: 60px !important;   /* Ajusta la altura para que no estorbe */
        transform: scale(0.8);  /* Lo hace un poco más pequeño en móvil */
    }
}
@media (max-width: 1024px) {
    .icono-billetera {
        top: 20px !important; 
        right: 20px !important;
        transform: scale(0.8); /* Lo ajustamos un poco para que no estorbe en pantallas pequeñas */
    }
}
/* ==================== BÓVEDA DEL MICTLÁN - AJUSTE FINO ==================== */

#modal-boveda button {
    padding: 8px 12px !important;
    font-size: 0.6rem !important;
    font-family: 'Nosifer', cursive !important;
    color: #ffdddd !important;
    background: #3f0000 !important;
    border: 2px solid #b30000 !important;
    text-shadow: 1px 1px 3px #000 !important;
    margin: 10px auto !important;
    width: 60% !important;
    max-width: 190px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(180, 0, 0, 0.5) !important;
    transition: all 0.3s ease !important;
}

#modal-boveda button:hover {
    background: #6b0000 !important;
    color: #ffffff !important;
    border-color: #ff2222 !important;
    transform: scale(0.7) !important;
}

/* Texto dentro del pergamino */
#boveda-cuerpo p {
    color: #ff4444 !important;
    text-shadow: 1px 1px 3px #000 !important;
    font-size: 0.8rem !important;
    margin-bottom: 18px !important;
}

#boveda-cuerpo p:first-child {
    color: #ff0000 !important;
    font-size: 0.9rem !important;
}

/* Estilo para la invocación de Google */
.invocacion-goth {
    margin-top: 20px;
    text-align: center;
    font-family: 'MedievalSharp', cursive;
    color: #8B0000;
}

#google-btn-container iframe {
    filter: invert(1) hue-rotate(180deg) brightness(0.8);
    border-radius: 5px;
    cursor: pointer;
}
.ventana-mistica {
    background: #000;
    border: 2px solid #cc0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    padding: 20px;
    width: 300px;
    text-align: center;
    font-family: 'Nosifer', cursive;
    color: #cc0000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* ==================== ESTILO PARA LEYES Y SUB-MODALES ==================== */

#codice-titulo {
    color: #ff2222 !important;
    text-shadow: 0 0 8px #ff0000, 2px 2px 4px #000 !important;
    font-size: 1.6rem !important;
    margin-bottom: 20px !important;
}

#codice-cuerpo {
    color: #ffdddd !important;
    line-height: 1.7 !important;
    font-size: 1.05rem !important;
    text-shadow: 1px 1px 2px #000 !important;
}

#codice-cuerpo span.link-ley {
    color: #ff0000 !important;
    text-shadow: 0 0 8px #ff0000 !important;
}

#codice-cuerpo span.link-ley:hover {
    color: #ff6666 !important;
}

.btn-subley {
    background: #3a0000 !important;
    color: #ffdddd !important;
    border: 2px solid #b30000 !important;
    padding: 12px 20px !important;
    font-family: 'Nosifer', cursive !important;
    font-size: 0.95rem !important;
    margin: 8px 0 !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.3s !important;
}

.btn-subley:hover {
    background: #6b0000 !important;
    color: #ffffff !important;
    border-color: #ff4444 !important;
    transform: scale(1.03) !important;
}
/* ==================================================================
   ESTILO GRIMORIO PURIFICADO: TEXTO NEGRO Y TÍTULOS EN ROJO SANGRE
   ================================================================== */

/* 1. EL TÍTULO DEL PERGAMINO (ROJO SANGRE OPACO, SIN RESPLANDOR NEÓN) */
#codice-titulo,
#pantalla-codice h2,
#pantalla-codice .pergamino-titulo {
    color: #4a0000 !important;
text-shadow: 0 0 2px rgba(255,255,255,0.3) !important;
    font-size: 1.2rem !important;
    margin-bottom: 25px !important;
    font-weight: bold !important;
    opacity: 1 !important;
    text-align: center !important;
}

/* 2. EL CUERPO GENERAL DE TEXTO (BITSO, BINANCE, LEYES, PRIVACIDAD, ETC.) */
#pantalla-codice #codice-cuerpo,
#pantalla-codice #codice-cuerpo p,
#pantalla-codice #codice-cuerpo ul,
#pantalla-codice #codice-cuerpo li,
#pantalla-codice .pergamino-quemado #codice-cuerpo *,
#pantalla-codice .pergamino-quemado #codice-cuerpo {
    color: #2c1a00 !important;
    text-shadow: none !important; /* SE ELIMINA CUALQUIER HALO O BRILLO ROJO FEO */
    font-family: 'Nosifer', cursive !important;
    font-weight: bold !important;
    text-align: center !important; /* Mantiene la simetría central */
    opacity: 1 !important;
}

/* 3. COBERTURA DE MÁRGENES PARA TEXTOS LARGOS (VELO DE PRIVACIDAD) */
#pantalla-codice #codice-cuerpo p {
    width: 80% !important;
    max-width: 480px !important;
    margin: 15px auto !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    font-size: 0.60rem !important;
    font-family: 'MedievalSharp', cursive !important;
    font-weight: normal !important;
}

/* 4. ENLACES INTERACTIVOS EN REPOSO (MANTIENEN EL TONO OSCURO) */
#pantalla-codice #codice-cuerpo span,
#pantalla-codice #codice-cuerpo span.link-ley,
#pantalla-codice #codice-cuerpo a,
.link-ley {
    display: block !important;
    width: fit-content !important;
    margin: 8px auto !important;
    color: #111111 !important; /* Negro ceniza oscuro para denotar interacción */
    text-shadow: none !important;
    letter-spacing: 2px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

/* 5. EFECTO HOVER (CUANDO EL MOUSE SE POSA ENCIMA ENCIENDE EN ROJO SANGRE CLEAN) */
#pantalla-codice #codice-cuerpo span.link-ley:hover,
#pantalla-codice #codice-cuerpo a:hover {
    color: #8b0000 !important; /* Cambia al mismo rojo místico del título */
    text-shadow: none !important; /* Sin resplandores molestos */
    cursor: pointer;
}

/* 6. ENTORNO DEL ABISMO */
#pantalla-codice {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(2px) !important;
}
.contenedor-estado {
    position: absolute; /* Esto evita que empuje cualquier otro elemento */
    top: 210px;         /* Ajusta este valor para bajarlo o subirlo exactamente bajo el video */
    left: 20px;         /* Alineado a la izquierda */
    z-index: 9999;        /* Asegura que esté por encima de la niebla pero debajo de botones críticos */
   
}

.texto-estado {
    font-family: 'Nosifer', monospace;
    font-size: 10px;
    color: #00f2ff !important;
    letter-spacing: 1px;
    margin: 0; /* Importante: elimina cualquier margen que pueda estar empujando */
    user-select: none;
}

#tokensQuemados {
    color: #00f2ff !important; /* Sustituye este código por el HEX exacto de tu texto "PODER" */
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.6); /* Un resplandor suave que hace que destaque */
    font-weight: bold;
    transition: all 0.3s ease;
}
/* ── Ajuste móvil texto quema de tokens ─────────────────────── */
@media (max-width: 1024px) {
    .contenedor-estado {
        top: auto !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        width: 90% !important;
        z-index: 100 !important;
    }

    .texto-estado {
        font-size: 8px !important;
    }
}
.punto-activo {
    color: #ff0000;
    margin-right: 5px;
    animation: palpitar 1.5s infinite;
}

@keyframes palpitar {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}
/* Clase para los activos en Punto Rojo (BTC/LTC) */
.tumba-sellada {
    pointer-events: auto; /* <--- CAMBIA 'none' POR 'auto' */
    filter: grayscale(100%) brightness(0.7) !important; 
    cursor: not-allowed !important;
}

/* Desactivamos las animaciones de levitación en el sello */
.tumba-sellada .moneda-flotante, 
.tumba-sellada .moneda-sustraer {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Opcional: Cambiamos el texto para que el usuario sepa que está en mantenimiento */
.tumba-sellada .nombre-cripto::after {
    content: ' [SELT]'; /* O " [PRONTO]" */
    color: #ff0000;
    font-size: 0.7rem;
    display: block;
}

/* ── Ajuste móvil pergamino de leyes (Unificado para Modo Horizontal / Landscape) ─────────────────────── */
@media (max-width: 1024px) and (orientation: landscape), (max-height: 500px) {
    #pantalla-codice .pergamino-quemado {
        height: 98vh !important; 
        width: calc(98vh * 0.85) !important; 
        max-height: 480px !important;
        max-width: 410px !important; 
        
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important; 
        box-sizing: border-box !important;
        overflow: hidden !important; 

        /* Dejamos el padding del contenedor base estándar */
        padding: 45px 15px 30px 15px !important; 
    }

    /* FORZAMOS ROJO FUERTE EN EL TÍTULO */
    #pantalla-codice .pergamino-quemado h2,
    #pantalla-codice .pergamino-quemado #codice-titulo,
    #codice-titulo {
        font-size: 0.65rem !important;
        margin-bottom: 6px !important;
        text-align: center !important;
        color: #ff0000 !important; /* Rojo puro */
        font-weight: 900 !important;
        text-shadow: none !important; /* Quitamos la sombra para evitar el tono rosa */
    }

    /* EL TRUCO PARA QUE EL TEXTO NO SE SALGA HACIA LOS LADOS */
    #codice-cuerpo {
        width: 72% !important; /* Forzamos a que el texto ocupe solo el centro limpio del pergamino */
        max-width: 72% !important;
        margin: 0 auto !important; /* Lo centramos perfectamente */
        height: auto !important;
    }

    /* ROJO SANGRE ULTRA-ESPECÍFICO Y CONTROL DE LÍNEAS */
    #pantalla-codice .pergamino-quemado #codice-cuerpo p,
    #pantalla-codice #codice-cuerpo p,
    #codice-cuerpo p {
        font-size: 0.45rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 4px auto !important;
        line-height: 1.2 !important;
        text-align: center !important;
        
        /* Forzamos un rojo vivo y grueso para que no se vea rosa ni pálido */
        color: #ff0000 !important; 
        font-weight: 900 !important; 
        text-shadow: none !important; 
    }

    #pantalla-codice .pergamino-quemado #codice-cuerpo span,
    #pantalla-codice #codice-cuerpo span.link-ley,
    .link-ley {
        font-size: 0.45rem !important;
        letter-spacing: 0.5px !important;
        margin: 3px auto !important;
        display: block !important;
        color: #ff3333 !important;
        font-weight: 900 !important;
        text-shadow: none !important;
    }

    .btn-subley {
        font-size: 0.45rem !important;
        padding: 4px 8px !important;
    }

    /* ── Bóveda separada (Mismo control estricto de ancho de texto y rojo puro) ── */
    #modal-boveda .pergamino-quemado {
        height: 98vh !important;
        width: calc(98vh * 0.85) !important;
        max-height: 480px !important;
        max-width: 410px !important;
        padding: 50px 15px 35px 15px !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #modal-boveda #boveda-cuerpo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 72% !important; /* Encapsulado central */
        max-width: 72% !important;
        margin: 0 auto !important;
        gap: 4px !important;
    }

    #modal-boveda .btn-ritual-grimorio {
        width: 95% !important;
        font-size: 0.45rem !important;
        padding: 4px 6px !important;
        text-align: center !important;
        white-space: normal !important;
    }

    #modal-boveda h2 {
        font-size: 0.65rem !important;
        color: #ff0000 !important;
        font-weight: 900 !important;
        text-shadow: none !important;
    }

    #modal-boveda p,
    #modal-boveda #boveda-cuerpo p {
        font-size: 0.45rem !important;
        color: #ff0000 !important;
        font-weight: 900 !important;
        text-shadow: none !important;
    }
}
