/* Estilos principales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Contenedor principal */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    font-size: 28px;
    letter-spacing: 1px;
}

/* Formularios */
.form-section, .test-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-section h2, .test-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 22px;
    border-bottom: 3px solid #7f8c8d;
    padding-bottom: 10px;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Preguntas */
.question-container {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 5px solid #3498db;
}

.question-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.question-number {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
}

/* Opciones de respuesta */
.options-group {
    margin-top: 15px;
}

.option-item {
    margin-bottom: 12px;
    padding: 12px;
    background-color: white;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    background-color: #ecf0f1;
    border-color: #3498db;
}

.option-item input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.option-item label {
    margin: 0;
    display: inline;
    font-weight: normal;
    cursor: pointer;
}

/* Botones */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-secondary {
    background-color: #7f8c8d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5d6d7b;
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

/* Alineación de botones */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group .btn {
    flex: 1;
}

/* Mensajes */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Resultados */
.results-section {
    background: linear-gradient(135deg, #ecf0f1 0%, #fff 100%);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #bdc3c7;
}

.score-display {
    text-align: center;
    margin: 30px 0;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
    color: #27ae60;
    margin: 20px 0;
}

.score-percentage {
    font-size: 24px;
    color: #7f8c8d;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

.summary-table th,
.summary-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #bdc3c7;
}

.summary-table th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

.summary-table tr:hover {
    background-color: #f9f9f9;
}

/* Navegación */
.nav-links {
    text-align: center;
    margin-top: 30px;
}

.nav-links a {
    margin: 0 10px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.card p {
    color: #7f8c8d;
    font-size: 14px;
}

.card .btn {
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 22px;
    }
    
    .form-section, .test-section {
        padding: 20px;
    }
    
    .score-number {
        font-size: 36px;
    }
    
    .button-group {
        flex-direction: column;
    }
}
