/* estilos.css - Identidad Visual Lumen Box */

:root {
    --oro: #9EA3AB;
    --oro-brillante: #BFC4C9;
    --negro-fondo: #202225;
    --gris-oscuro: #1a1a1a;
    --blanco: #ffffff;
}

body {
    background-color: var(--negro-fondo);
    color: var(--blanco);
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.contenedor {
    width: 90%;
    max-width: 450px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, #111, #202225);
    border-radius: 24px;
    border: 1px solid rgba(158, 163, 171, 0.13);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* El Logo con un suave resplandor */
.logo {
    max-width: 180px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

/* Barra de tiempo - Estilo Luz de Neón */
.barra-container {
    width: 100%;
    background: #222;
    height: 8px;
    border-radius: 10px;
    margin: 25px 0;
    overflow: hidden;
    box-shadow: inset 0 0 5px #202225;
}

#barra-tiempo {
    width: 100%;
    height: 100%;
    background: var(--oro);
    box-shadow: 0 0 15px var(--oro);
    transition: width 1s linear, background-color 0.5s ease;
}

h2 {
    font-size: 1.4em;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* Botones de opción como luminarias */
.opcion {
    display: block;
    width: 100%;
    padding: 18px;
    margin: 12px 0;
    background: var(--gris-oscuro);
    color: var(--blanco);
    border: 1px solid #333;
    border-radius: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.opcion:hover:not(:disabled) {
    border-color: var(--oro);
    background: #222;
    box-shadow: 0 0 15px rgba(158, 163, 171, 0.08);
}

.opcion:active:not(:disabled) {
    transform: scale(0.98);
    background: var(--oro);
    color: #202225;
}

.opcion:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Feedback de respuestas */
#feedback-container {
    margin-top: 25px;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.95em;
    min-height: 50px;
    transition: all 0.5s ease;
}

.msg-exito {
    color: var(--oro-brillante);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.msg-error {
    color: #ff4d4d;
}

small {
    display: block;
    margin-top: 8px;
    color: #aaa;
    font-style: italic;
}

/* Estilo para el botón de transición */
#btn-siguiente {
    display: none; /* Se activa por JS */
    width: auto;
    min-width: 220px;
    padding: 14px 30px;
    margin: 25px auto 0 auto;
    
    /* Forma Curva (Píldora) */
    border-radius: 50px; 
    border: none;
    
    /* Color y Gradiente */
    background: linear-gradient(145deg, #9EA3AB, #999fa8);
    color: #000;
    
    /* Tipografía */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Interactividad y Sombra */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    outline: none;
}

#btn-siguiente:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(145deg, #9EA3AB, #999fa8);
}

#btn-siguiente:active {
    transform: translateY(0);
}
/* Animación de la flecha */
@keyframes flechaMoviendose {
    0% { transform: translateX(0); }
    50% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}

#btn-siguiente span {
    display: inline-block;
    transition: transform 0.3s ease;
    animation: flechaMoviendose 1.5s infinite ease-in-out;
    margin-left: 10px;
}

/* Efecto extra: cuando el usuario pone el mouse encima, la flecha se queda fija a la derecha */
#btn-siguiente:hover span {
    animation: none;
    transform: translateX(10px);
}
/* Contenedor relativo para que el destello no se salga del botón */
#btn-siguiente {
    position: relative;
    overflow: hidden; /* Vital para que el flash se vea dentro del botón */
}

/* El destello (capa de luz blanca) */
#btn-siguiente::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* Empieza fuera del botón */
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent
    );
    transition: none;
}

/* Animación que se dispara al hacer clic */
#btn-siguiente.flash-active::after {
    left: 100%;
    transition: left 0.5s ease-in-out;
}