/* --- Estilos Globales y de Branding --- */
:root {
    /* MODIFICACIÓN: Nuevo color primario y paleta asociada */
    --primary-color: #045184; /* Azul principal solicitado (versión opaca) */
    --primary-color-light: #0670b3; /* Tono más claro para hover */
    --background-gradient-start: #e8f4fa; /* Gradiente sutil basado en el nuevo color */
    --background-gradient-end: #d1e9f5;
    --font-family-lato: 'Lato', sans-serif;
}

body {
    font-family: var(--font-family-lato);
    background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
    min-height: 100vh;
}

/* --- Contenedor Principal (Card) --- */
.card {
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

/* --- Formularios --- */
.form-control {
    border-radius: 10px;
    border: 1px solid #ced4da;
    padding-left: 3.5rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(4, 81, 132, 0.25);
}

.form-floating label {
    padding-left: 2.5rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* --- Botones --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 0.75rem;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-color-light);
    border-color: var(--primary-color-light);
    transform: translateY(-2px);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(4, 81, 132, 0.5);
}

/* --- Enlaces --- */
a {
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color-light);
    text-decoration: underline !important;
}

/* --- Iconos en los inputs --- */
.form-floating {
    position: relative;
}

.form-floating i.fas {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
    pointer-events: none;
}



/* --- ESTILOS ADICIONALES PARA LA PÁGINA DE EVALUACIÓN --- */

/* --- Barra de Navegación --- */
.navbar-custom {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link,
.navbar-custom .btn-outline-light {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s, filter 0.3s;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .btn-outline-light:hover {
    color: #fff;
    filter: brightness(1.2);
}

/* --- NUEVO: Contenedor Blanco Principal --- */
.content-wrapper {
    background-color: #ffffff;
    min-height: 100vh; /* Ocupa toda la altura de la ventana */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15); /* Sombra sutil para separarlo del fondo */
    position: relative; /* Para asegurar que la sombra se vea bien */
}

/* --- Contenedor Principal --- */
.evaluation-container {
    max-width: 800px;
}

/* --- Barra de Progreso Personalizada (Stepper) --- */
.progress-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.progress-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}
.step {
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s, color 0.3s;
}
.step.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.2);
}
.step.completed {
    background-color: #28a745;
    color: white;
}

/* --- Tarjeta de Pregunta --- */
.question-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Cuadrícula de Respuestas --- */
.answers-grid {
    display: grid;
    gap: 1rem;
}
.answer-option {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}
.answer-option:hover {
    border-color: var(--primary-color);
    background-color: #e8f4fa;
    transform: translateY(-2px);
}
.answer-option input[type="radio"] {
    display: none;
}
.answer-option.selected {
    border-color: var(--primary-color);
    background-color: #e8f4fa;
    box-shadow: 0 0 0 0.1rem rgba(4, 81, 132, 0.25);
}
.answer-option .option-text {
    font-weight: 500;
    margin: 0;
    color: #333;
}

/* --- Botones de Navegación --- */
#prevBtn {
    background-color: #6c757d;
    border-color: #6c757d;
}
#prevBtn:hover:not(:disabled) {
    background-color: #5a6268;
    border-color: #545b62;
}
#nextBtn:disabled {
    background-color: #a0c3e0;
    border-color: #a0c3e0;
    cursor: not-allowed;
}