/**
 * Sistema de la Materia de Lectura y Redacción IMCED
 * MÓDULO: Hoja de estilos principal para Pruebas Diagnósticas
 * UBICACIÓN: /css/prueba.css
 * @author    Dr. Daniel Olegario León Ruiz
 * @version   1.0.0
 * @since     25 de febrero de 2026
 */

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
}

/* -------------------------------------
   PANTALLA DE LOGIN
-------------------------------------- */
.login-screen { 
    background: linear-gradient(135deg, rgba(30,40,50,0.95) 0%, rgba(40,50,60,0.95) 100%); 
    border-radius: 16px; 
    padding: 3rem; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,200,0,0.2); 
    text-align: center; 
    max-width: 550px; 
    margin: 50px auto; 
}

.login-screen.hidden { 
    display: none; 
}

.logo-login { 
    width: 100px; 
    height: 100px; 
    padding: 8px; 
    background: linear-gradient(135deg, rgba(255,200,0,0.2) 0%, rgba(255,150,0,0.15) 100%); 
    border: 3px solid #FFD700; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 0 30px rgba(255,200,0,0.4); 
    margin: 0 auto 1.5rem; 
}

.logo-login img { 
    width: 85px; 
    height: 85px; 
    object-fit: contain; 
}

.login-title { 
    font-size: 2.5rem; 
    color: #FFD700; 
    text-shadow: 0 0 20px rgba(255,200,0,0.3); 
    margin-bottom: 0.5rem; 
}

.login-subtitle { 
    color: #d0d0d0; 
    font-size: 1rem; 
    margin-bottom: 2rem; 
}

.login-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.8rem; 
}

.form-group label { 
    color: #FFD700; 
    font-weight: 600; 
}

.form-group input { 
    padding: 1rem 1.5rem; 
    background: rgba(40,50,60,0.7); 
    border: 2px solid #64c8ff; 
    border-radius: 8px; 
    color: #e0e0e0; 
    font-size: 1rem; 
    font-family: 'Poppins', sans-serif; 
}

.form-group input:focus { 
    outline: none; 
    border-color: #FFD700; 
    box-shadow: 0 0 20px rgba(255,200,0,0.3); 
}

.login-button { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); 
    color: #1a1a1a; 
    padding: 1rem 2rem; 
    border: none; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: bold; 
    cursor: pointer; 
    box-shadow: 0 5px 20px rgba(255,200,0,0.4); 
}

.login-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 30px rgba(255,200,0,0.6); 
}

.error-message { 
    background: rgba(255,100,100,0.1); 
    color: #ff6464; 
    padding: 1rem; 
    border-radius: 8px; 
    border-left: 4px solid #ff6464; 
    display: none; 
}

.error-message.show { 
    display: block; 
}

/* -------------------------------------
   PANTALLA DE PRUEBAS
-------------------------------------- */
.pruebas-screen { 
    display: none; 
}

.pruebas-screen.active { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}

.header { 
    background: linear-gradient(135deg, rgba(30,40,50,0.95) 0%, rgba(40,50,60,0.95) 100%); 
    border-radius: 12px; 
    padding: 2rem; 
    border-left: 6px solid #FFD700; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    text-align: center; 
}

.header h1 { 
    color: #FFD700; 
    font-size: 2.2rem; 
    margin-bottom: 0.5rem; 
}

.header p { 
    color: #d0d0d0; 
}

.header-buttons { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    margin-top: 1.5rem; 
    flex-wrap: wrap; 
}

/* -------------------------------------
   BOTONES GENERALES
-------------------------------------- */
.btn { 
    padding: 0.8rem 1.5rem; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-size: 0.9rem; 
}

.btn-dashboard {
    background: linear-gradient(135deg, #64c8ff 0%, #4a9fd8 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dashboard:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(100,200,255,0.4);
}

.btn-logout { 
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4444 100%); 
    color: white; 
}

.btn-logout:hover { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(255,100,100,0.4); 
}

/* -------------------------------------
   LISTA DE PRUEBAS Y TARJETAS
-------------------------------------- */
.pruebas-lista { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 1.5rem; 
}

.prueba-card { 
    background: linear-gradient(135deg, rgba(30,40,50,0.95) 0%, rgba(40,50,60,0.95) 100%); 
    border-radius: 12px; 
    padding: 2rem; 
    border-left: 6px solid #64c8ff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    transition: all 0.3s ease; 
}

.prueba-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); 
    border-left-color: #FFD700; 
}

.prueba-card h3 { 
    color: #FFD700; 
    margin-bottom: 0.5rem; 
    font-size: 1.3rem; 
}

.prueba-card p { 
    color: #d0d0d0; 
    font-size: 0.9rem; 
    margin-bottom: 1rem; 
}

.prueba-meta { 
    display: flex; 
    gap: 1rem; 
    font-size: 0.85rem; 
    color: #64c8ff; 
    margin-bottom: 1.5rem; 
}

.btn-iniciar { 
    background: linear-gradient(135deg, #64ff64 0%, #00d946 100%); 
    color: #1a1a1a; 
    padding: 0.8rem 1.5rem; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    width: 100%; 
}

.btn-iniciar:hover { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(100,255,100,0.4); 
}

/* -------------------------------------
   INTERFAZ DE RESOLUCIÓN DEL EXAMEN
-------------------------------------- */
.examen-interface { 
    display: none; 
    background: linear-gradient(135deg, rgba(30,40,50,0.95) 0%, rgba(40,50,60,0.95) 100%); 
    border-radius: 12px; 
    padding: 2rem; 
    border-left: 6px solid #64ff64; 
}

.examen-interface.active { 
    display: block; 
}

.examen-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 2rem; 
    padding-bottom: 1.5rem; 
    border-bottom: 2px solid rgba(100,200,255,0.2); 
}

.examen-header h2 { 
    color: #FFD700; 
    font-size: 1.8rem; 
}

.temporizador { 
    background: linear-gradient(135deg, #ff6464 0%, #d94444 100%); 
    color: white; 
    padding: 0.8rem 1.5rem; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1.1rem; 
}

.pregunta-container { 
    margin-bottom: 2rem; 
    padding: 1.5rem; 
    background: rgba(40,50,60,0.5); 
    border-radius: 8px; 
    border-left: 4px solid #64c8ff; 
}

.pregunta-numero { 
    color: #FFD700; 
    font-weight: bold; 
    font-size: 0.9rem; 
    margin-bottom: 0.5rem; 
}

.pregunta-texto { 
    color: #e0e0e0; 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
    font-weight: 600; 
}

.opciones { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}

.opcion { 
    background: rgba(40,50,60,0.7); 
    border: 2px solid #64c8ff; 
    border-radius: 8px; 
    padding: 1rem; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

.opcion:hover { 
    border-color: #FFD700; 
    background: rgba(255,200,0,0.1); 
}

.opcion input[type="radio"] { 
    width: 20px; 
    height: 20px; 
    cursor: pointer; 
}

.opcion label { 
    cursor: pointer; 
    flex: 1; 
    color: #e0e0e0; 
}

.respuesta-abierta { 
    width: 100%; 
    padding: 1rem; 
    background: rgba(40,50,60,0.7); 
    border: 2px solid #64c8ff; 
    border-radius: 8px; 
    color: #e0e0e0; 
    font-family: 'Poppins', sans-serif; 
    min-height: 100px; 
}

.respuesta-abierta:focus { 
    outline: none; 
    border-color: #FFD700; 
    box-shadow: 0 0 15px rgba(255,200,0,0.2); 
}

.examen-botones { 
    display: flex; 
    gap: 1rem; 
    justify-content: space-between; 
    margin-top: 2rem; 
    padding-top: 1.5rem; 
    border-top: 2px solid rgba(100,200,255,0.2); 
}

.btn-enviar { 
    background: linear-gradient(135deg, #64ff64 0%, #00d946 100%); 
    color: #1a1a1a; 
    padding: 1rem 2rem; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
}

.btn-enviar:hover { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(100,255,100,0.4); 
}

.btn-cancelar { 
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4444 100%); 
    color: white; 
    padding: 1rem 2rem; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
}

.btn-cancelar:hover { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(255,100,100,0.4); 
}

/* -------------------------------------
   PANTALLA DE RESULTADOS
-------------------------------------- */
.resultado { 
    display: none; 
    background: linear-gradient(135deg, rgba(30,40,50,0.95) 0%, rgba(40,50,60,0.95) 100%); 
    border-radius: 12px; 
    padding: 2rem; 
    border-left: 6px solid #64ff64; 
    text-align: center; 
}

.resultado.active { 
    display: block; 
}

.resultado h2 { 
    color: #64ff64; 
    font-size: 2rem; 
    margin-bottom: 1rem; 
}

.resultado-numeros { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1rem; 
    margin: 2rem 0; 
}

.resultado-item { 
    background: rgba(40,50,60,0.7); 
    padding: 1.5rem; 
    border-radius: 8px; 
    border-left: 4px solid #64c8ff; 
}

.resultado-item h3 { 
    color: #FFD700; 
    font-size: 1.5rem; 
    margin-bottom: 0.5rem; 
}

.resultado-item p { 
    color: #d0d0d0; 
    font-size: 0.9rem; 
}

.btn-volver { 
    background: linear-gradient(135deg, #64c8ff 0%, #4a9fd8 100%); 
    color: white; 
    padding: 1rem 2rem; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    margin-top: 1.5rem; 
}

.btn-volver:hover { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(100,200,255,0.4); 
}

/* -------------------------------------
   DISEÑO RESPONSIVO (MÓVILES)
-------------------------------------- */
@media (max-width: 768px) {
    .examen-header { 
        flex-direction: column; 
        gap: 1rem; 
    }
    
    .examen-botones { 
        flex-direction: column; 
    }
    
    .resultado-numeros { 
        grid-template-columns: repeat(2, 1fr); 
    }
}