body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f0f2f5; 
    padding: 20px; 
    color: #333;
}

.container { 
    max-width: 850px; 
    margin: auto; 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

header { 
    border-bottom: 3px solid #0056b3; 
    margin-bottom: 25px; 
    text-align: center; 
    padding-bottom: 10px;
}

.section-title { 
    background: #0056b3; 
    color: white; 
    padding: 12px; 
    margin: 35px 0 15px 0; 
    font-weight: bold; 
    border-radius: 4px;
}

.q { 
    margin-bottom: 25px; 
    padding: 15px; 
    border-bottom: 1px solid #eee; 
}

.q p { font-weight: 600; margin-bottom: 15px; }

/* Estilo para las opciones verticales */
.option { 
    margin-bottom: 10px; 
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.option:hover {
    background: #f8f9fa;
}

.option label {
    cursor: pointer;
    display: block; /* Asegura que todo el ancho sea clicable */
}

.hidden { display: none; }

input[type="text"], select, textarea { 
    padding: 10px; 
    margin: 5px 0; 
    border: 1px solid #ccc; 
    border-radius: 4px;
    box-sizing: border-box; 
}

textarea { width: 100%; resize: vertical; }

button { 
    background: #28a745; 
    color: white; 
    padding: 18px; 
    border: none; 
    width: 100%; 
    cursor: pointer; 
    font-size: 1.2em; 
    border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
}

button:hover { background: #218838; }

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#setup input[type="text"] {
    width: 100%;
    display: block;
}

/* Estilos para la pantalla de resultados */
.results-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

.grade-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    color: white;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.pass { background-color: #28a745; }
.fail { background-color: #dc3545; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-top: 4px solid #0056b3;
}

.review-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9em;
}

.review-table th { background: #0056b3; color: white; padding: 12px; }
.review-table td { padding: 10px; border-bottom: 1px solid #eee; }

.correct-row { color: #28a745; }
.incorrect-row { color: #dc3545; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }