/* --- IMPORTACIÓN DE FUENTE --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* --- VARIABLES DE COLOR --- */
:root {
    --primary-color: #FB7701;    /* Naranja Principal */
    --secondary-color: #2c3e50;  /* Azul Oscuro (Títulos) */
    --accent-blue: #0110fb;      /* Azul para Radio Buttons */
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --bg-color: #f0f2f5;
    --text-color: #333;
    --white: #ffffff;
}

/* --- ESTILOS BASE --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.quiz-container {
    background: var(--white);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- LOGO Y ENLACE --- */
.logo-container { 
    text-align: center; 
    margin-bottom: 10px; 
}

.logo-container a {
    display: inline-block;
    text-decoration: none;
    line-height: 0; /* Elimina espacio extra bajo el logo */
}

#quiz-logo { 
    max-width: 180px; 
    height: auto; 
    transition: transform 0.3s ease;
    cursor: pointer;
}

#quiz-logo:hover { 
    transform: scale(1.05); 
}

.centered-title {
    text-align: center;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* --- TEMPORIZADOR STICKY --- */
#timer {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--error-color);
    background: #fdf2f2;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #fab1a0;
    position: sticky;
    top: 10px;
    z-index: 100;
}

/* --- INPUTS Y FORMULARIO --- */
.input-group { 
    margin: 30px 0; 
    text-align: center; 
}

.input-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 10px; 
}

.input-group input {
    padding: 12px 15px;
    width: 100%;
    max-width: 350px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline-color: var(--primary-color);
}

/* --- BLOQUE DE PREGUNTAS --- */
.question-block {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    text-align: left;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .options-grid { grid-template-columns: 1fr 1fr; }
}

/* --- OPCIONES Y RADIO BUTTONS --- */
label {
    background: white;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

label:hover { 
    background: #e1f5fe; /* Fondo azul clarito al pasar el mouse */
    border-color: var(--accent-blue); 
}

/* Aquí está el azul específico que pediste */
input[type="radio"] { 
    margin-right: 10px; 
    accent-color: var(--accent-blue); 
}

/* --- BOTONES --- */
button {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 20px auto;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

button:hover { opacity: 0.9; }

button:disabled {
    background-color: #bdc3c7 !important;
    cursor: not-allowed;
}

#start-btn { background: var(--primary-color); color: white; }
#submit-btn { background: var(--success-color); color: white; max-width: 100%; }
.btn-restart { background: var(--secondary-color); color: white; }

/* --- SECCIÓN DE REVISIÓN DE ERRORES --- */
#review-container {
    margin-top: 30px;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 10px;
    border: 1px solid #eee;
}

.error-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--error-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.txt-red { color: var(--error-color); font-weight: 600; }
.txt-green { color: var(--success-color); font-weight: 600; }

/* --- PANTALLA DE RESULTADOS --- */
#result-screen { text-align: center; }

#score-text { 
    font-size: 2.5rem; 
    font-weight: 600; 
    color: var(--primary-color); 
    margin: 15px 0;
}

/* --- UTILIDADES --- */
.hidden { display: none; }