/* --- VARIABLES --- */
:root {
    --bg-dark: #0b0811;
    --gold-primary: #cca33b; 
    --gold-light: #e6c265;   
    --text-white: #ffffff;
    --text-muted: #dcdbe3;
    --card-bg: rgba(11, 8, 16, 0.88);
    --gold-gradient: linear-gradient(to bottom, #e6c265 0%, #cca33b 100%);
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- RESET GENERAL --- */
* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(to bottom, rgba(11, 8, 17, 0.7) 0%, rgba(11, 8, 17, 0.6) 50%, rgba(11, 8, 17, 0.9) 100%), url('fondo.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-system);
}

/* --- CONTENEDOR ANTIBORDES --- */
.wrapper {
    width: 100%;
    max-width: 460px;   
    margin: 0 auto;     
    padding: 0 20px;    
    transition: max-width 0.3s ease;
}

/* --- DESTELLOS FLOTANTES --- */
.destellos-contenedor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.copo {
    position: absolute;
    background: #e6c265;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px #e6c265, 0 0 16px #cca33b;
    opacity: 0;
    animation: flotarCopos 10s linear infinite;
}

.c1 { width: 4px; height: 4px; left: 10%; animation-delay: 0s; animation-duration: 9s; }
.c2 { width: 5px; height: 5px; left: 35%; animation-delay: 2s; animation-duration: 12s; }
.c3 { width: 3px; height: 3px; left: 75%; animation-delay: 4s; animation-duration: 8s; }
.c4 { width: 6px; height: 6px; left: 20%; animation-delay: 1s; animation-duration: 14s; }
.c5 { width: 4px; height: 4px; left: 55%; animation-delay: 5s; animation-duration: 10s; }
.c6 { width: 5px; height: 5px; left: 85%; animation-delay: 3s; animation-duration: 11s; }

/* --- ANIMACIONES --- */
.anim-entrada-logo {
    opacity: 0;
    animation: entradaLogo 1.2s cubic-bezier(0.215, 0.610, 0.355, 1) forwards, 
               flotarLogo 4s ease-in-out infinite alternate 1.2s;
}

.anim-item {
    opacity: 0;
    transform: translateY(30px);
    animation: aparecerDesdeAbajo 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.retraso-1 { animation-delay: 0.3s; }
.retraso-2 { animation-delay: 0.5s; }
.retraso-3 { animation-delay: 0.7s; }
.retraso-4 { animation-delay: 0.9s; }

@keyframes entradaLogo {
    0% { opacity: 0; transform: scale(0.7) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes flotarLogo {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

/* --- 1. PANTALLA DE INICIO --- */
.pantalla-inicio {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    width: 100%;
}

.logo-contenedor {
    margin-bottom: 15px;
}

.logo-imagen {
    width: 100%;
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.9));
}

.titulo-principal {
    font-family: var(--font-system);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.85);
    margin-bottom: 25px;
    line-height: 1.25;
}

/* NUEVA CÁPSULA MÍSTICA (Efecto Wow y Antiperdida de color) */
.capsula-lore {
    background: rgba(14, 11, 22, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(230, 194, 101, 0.15);
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.texto-pre-contador {
    font-family: var(--font-system);
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95); 
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Pregunta con súper destello de fondo */
.pregunta-resaltada {
    display: block;                  
    margin-top: 14px;                
    color: var(--gold-light);        
    font-weight: 800;                
    font-size: 1.15rem;              
    letter-spacing: 0.8px;
    text-shadow: 0 0 12px rgba(230, 194, 101, 0.6), 
                 0 0 25px rgba(204, 163, 59, 0.3), 
                 0 2px 4px rgba(0, 0, 0, 0.9);
}

.contador-contenedor {
    width: 100%;
    background: rgba(8, 6, 12, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 10px;
    margin-bottom: 35px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.reloj {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.tiempo-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.tiempo-numero {
    font-family: var(--font-system);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
}

.tiempo-etiqueta {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    margin-top: 3px;
    font-weight: 700;
}

.tiempo-divisor {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--gold-primary);
    margin-bottom: 14px;
}

.btn-principal {
    display: inline-block;
    width: 100%;
    padding: 18px 20px;
    background: var(--gold-gradient);
    border: none;
    color: #110e08;
    font-family: var(--font-system);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.2s ease;
}

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

/* --- 2 y 3. SECCIÓN UNIFICADA COMPACTA --- */
.seccion-registro-completa {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 20px 0;
    width: 100%;
}

.tarjeta-divina {
    background: var(--card-bg);
    border: 1px solid rgba(204, 163, 59, 0.25);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
}

.info-promesa {
    text-align: left;
    margin-bottom: 20px;
}

.promesa-titulo {
    font-family: var(--font-system);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold-light);
    margin-bottom: 12px;
    line-height: 1.45;
}

.promesa-texto {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.resaltado-oro {
    color: var(--gold-light);
    font-weight: 700;
}

.divisor-interno {
    height: 1px;
    background: linear-gradient(to right, rgba(204, 163, 59, 0), rgba(204, 163, 59, 0.35) 50%, rgba(204, 163, 59, 0));
    margin: 25px 0;
}

.formulario-contenedor h3 {
    font-family: var(--font-system);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
}

.form-grupo {
    margin-bottom: 22px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 8px;
    padding-left: 14px;
}

.form-grupo input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-system);
    transition: border-color 0.3s ease;
}

.form-grupo input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.btn-enviar {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-family: var(--font-system);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    background: var(--gold-primary);
    color: #0b0811;
    box-shadow: 0 5px 15px rgba(204, 163, 59, 0.3);
}

/* --- FOOTER --- */
footer {
    margin-top: 35px;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.75;
    text-align: center;
    width: 100%;
}

.enlaces-comunidad {
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

@keyframes flotarCopos {
    0% { transform: translateY(105vh) scale(0.5); opacity: 0; }
    10% { opacity: 0.9; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-5vh) scale(1.3); opacity: 0; }
}


/* ==========================================
   ADAPTACIÓN PREMIUM PARA COMPUTADORAS
   ========================================== */
@media (min-width: 768px) {
    .wrapper {
        max-width: 680px; 
    }

    .logo-imagen {
        max-width: 290px;
    }

    .titulo-principal {
        font-size: 2.3rem;
        margin-bottom: 30px;
    }

    /* La cápsula se adapta finamente en PC */
    .capsula-lore {
        padding: 28px 35px;
        border-radius: 20px;
        margin-bottom: 40px;
    }

    .texto-pre-contador {
        font-size: 1.2rem;
        line-height: 1.75;
    }

    .pregunta-resaltada {
        font-size: 1.35rem;
        margin-top: 16px;
    }

    .contador-contenedor {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .reloj {
        gap: 25px;
    }

    .tiempo-bloque {
        min-width: 80px;
    }

    .tiempo-numero {
        font-size: 3.2rem;
    }

    .tiempo-etiqueta {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .tiempo-divisor {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .btn-principal {
        max-width: 380px;
        font-size: 0.95rem;
        padding: 20px 30px;
    }

    .tarjeta-divina {
        padding: 45px 40px;
        border-radius: 32px;
    }

    .promesa-titulo {
        font-size: 1.1rem;
    }

    .promesa-texto {
        font-size: 1rem;
    }
}
/* Fondo oscuro que cubre toda la pantalla */
#modalDivino {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 8, 17, 0.85); /* Tu color oscuro con transparencia */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Clase que activa el modal (lo hace visible) */
#modalDivino.mostrar {
    opacity: 1;
    pointer-events: auto;
}

/* La tarjeta del mensaje */
.modal-contenido {
    background: #14111a;
    border: 2px solid #cca33b; /* Borde dorado místico */
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 25px rgba(204, 163, 59, 0.2);
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

#modalDivino.mostrar .modal-contenido {
    transform: translateY(0);
}

.modal-icono {
    font-size: 3rem;
    margin-bottom: 15px;
}

#modalTitulo {
    color: #cca33b;
    font-size: 1.6rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

#modalMensaje {
    color: #e0dad5;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Botón del modal */
.btn-modal {
    background: #cca33b;
    color: #0b0811;
    border: none;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-modal:hover {
    background: #e6b842;
}
