@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

/* Estilos generales */
body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(to top, #e6e9f0 0%, #ffffff 100%);
}

.container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    width: 90%;
    max-width: 700px;
    text-align: center;
}

/* Logo de la pantalla de inicio */
.logo {
    width: 300px;
    margin-bottom: 20px;
}

/* Logo para la pantalla de selección de carrera */
.logo-quiz-chico {
    width: 150px;
    margin-bottom: 15px;
}

/* Logo de la pantalla del examen */
.logo-quiz-grande {
    width: 225px;
    margin-bottom: 15px;
}

h1 {
    /* MODIFICADO (Verde Principal) */
    color: #006847;
    font-size: 1.8rem;
}

h2 {
    /* MODIFICADO (Dorado/Amarillo) */
    color: #ffb703;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Contenedor de Timer y Progreso */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

#timer-container {
    font-size: 1.2rem;
    font-weight: bold;
    /* MODIFICADO (Verde Principal) */
    color: #006847;
    background-color: #f0f2f5;
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 60px;
    text-align: center;
}

#progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    overflow: hidden; 
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: #28a745; /* Mantenemos verde para la barra de progreso */
    border-radius: 10px;
    transition: width 0.4s ease-in-out; 
}


/* Animaciones de botones */
.carrera-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    /* MODIFICADO (Verde Principal) */
    background-color: #006847;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none; 
    box-sizing: border-box; 
    transition: all 0.3s ease; 
    /* MODIFICADO (Sombra verde) */
    box-shadow: 0 4px 10px rgba(0, 104, 71, 0.2);
}

.carrera-btn:hover {
    /* MODIFICADO (Verde Oscuro) */
    background-color: #004d33;
    transform: translateY(-3px);
    /* MODIFICADO (Sombra verde) */
    box-shadow: 0 8px 15px rgba(0, 104, 71, 0.3);
}

/* Estilo para el botón "Volver" */
.volver-btn {
    font-family: 'Nunito', sans-serif;
    padding: 10px 20px;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volver-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}


/* Estilo para imagen de pregunta */
.pregunta-img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 15px auto;
    display: block;
    border-radius: 5px;
}

/* Estilos del Quiz */
#pregunta {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 20px 0;
}

#opciones .opcion-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    font-size: 1rem;
    text-align: left;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#opciones .opcion-btn:hover:not([disabled]) {
    background-color: #e0e0e0;
    /* MODIFICADO (Borde Verde) */
    border-color: #006847;
    transform: scale(1.02);
}

/* Clases de respuesta */
.opcion-btn.correcto {
    background-color: #c8e6c9; 
    color: #255d28; 
    font-weight: bold;
    border-color: #28a745;
}

.opcion-btn.incorrecto {
    background-color: #ffcdd2; 
    color: #c62828; 
    font-weight: bold;
    border-color: #dc3545;
}


#siguiente-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    color: #fff;
    background-color: #28a745; /* Mantenemos verde para "Siguiente" */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

#siguiente-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

/* Estilos para la Pantalla de Resultados */
.resultado-img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* --- ESTILO NUEVO AÑADIDO --- */
.registro-img {
    width: 100%;
    max-width: 500px; /* Ajusta si es necesario */
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 10px;
}

.resultado-frase {
    font-size: 1.3rem;
    color: #333;
    font-style: italic;
    line-height: 1.6;
    margin: 15px 0;
}

#resultado-texto {
    font-size: 1.5rem;
    font-weight: bold;
    /* MODIFICADO (Verde Oscuro) */
    color: #004d33;
    margin: 25px 0;
    white-space: pre-line; 
}


.oculto {
    display: none;
}