/* ==========================================================================
   ENHANCED CHART AND ANIMATION STYLES
   ========================================================================== */

/* Score Circle Styles */
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(from 0deg, #e0e7ff 0deg, #e0e7ff calc(var(--percentage, 0) * 3.6deg), #f1f5f9 calc(var(--percentage, 0) * 3.6deg), #f1f5f9 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.5s ease;
}

.score-circle.animated {
    transform: scale(1.05);
}

.score-circle.score-excellent {
    background: conic-gradient(from 0deg, #dcfce7 0deg, #22c55e calc(var(--percentage, 0) * 3.6deg), #f1f5f9 calc(var(--percentage, 0) * 3.6deg), #f1f5f9 360deg);
}

.score-circle.score-good {
    background: conic-gradient(from 0deg, #dbeafe 0deg, #3b82f6 calc(var(--percentage, 0) * 3.6deg), #f1f5f9 calc(var(--percentage, 0) * 3.6deg), #f1f5f9 360deg);
}

.score-circle.score-average {
    background: conic-gradient(from 0deg, #fef3c7 0deg, #f59e0b calc(var(--percentage, 0) * 3.6deg), #f1f5f9 calc(var(--percentage, 0) * 3.6deg), #f1f5f9 360deg);
}

.score-circle.score-low {
    background: conic-gradient(from 0deg, #fee2e2 0deg, #ef4444 calc(var(--percentage, 0) * 3.6deg), #f1f5f9 calc(var(--percentage, 0) * 3.6deg), #f1f5f9 360deg);
}

.score-inner {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.score-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

/* Chart Containers */
.chart-header {
    text-align: center;
    margin-bottom: 20px;
}

.chart-header h4 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}

.chart-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.score-details p {
    margin: 5px 0;
    color: #64748b;
}

.score-details strong {
    color: #1e293b;
}

/* Competency Chart Styles */
.competency-bars-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.competency-chart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.competency-chart-item.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.competency-name {
    min-width: 150px;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.9rem;
}

.competency-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.competency-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.competency-fill.excellent {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.competency-fill.good {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.competency-fill.average {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.competency-fill.low {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.competency-percentage {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in {
    animation: slideInLeft 0.6s ease forwards;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
}

/* Enhanced Progress Bar Animations */
.progress-bar-fill.animated {
    animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
    from {
        width: 0% !important;
    }
}

/* Responsive Design for Charts */
@media (max-width: 768px) {
    .score-display {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .competency-chart-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .competency-name {
        min-width: auto;
        text-align: center;
    }
    
    .competency-bar {
        width: 100%;
        max-width: 300px;
    }
    
    .competency-percentage {
        text-align: center;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-inner {
        width: 75px;
        height: 75px;
    }
    
    .score-number {
        font-size: 1.2rem;
    }
}

/* Estilos para el contenedor del caso de estudio */
.caso-estudio-container {
    margin: 20px 0 30px 0;
    padding: 20px;
    background-color: #f9f9ff;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    position: relative;
    z-index: 10; /* Asegurar que está sobre otros elementos */
}

.caso-estudio-header {
    margin-bottom: 15px;
    color: #1a365d !important; /* Azul oscuro para buen contraste */
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.caso-estudio-header i {
    color: #667eea !important;
}

.caso-estudio h2 {
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.caso-estudio p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.caso-estudio-container {
    transition: all 0.3s ease;
}

.caso-estudio-container:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

/* Estilos para versión imprimible */
@media print {
    .caso-estudio-container {
        background-color: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

/* Estilos para resultados */
#results-case-study .caso-estudio {
    margin-top: 15px;
}

/* Asegurarse que siempre esté visible */
.caso-estudio-container, .caso-estudio {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* ========================================
   CORRECCIÓN DE CONTRASTE MODO CLARO
   Forzar colores oscuros para legibilidad
   SOLO aplica cuando NO es modo oscuro
   ======================================== */

@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
    /* Título del cuestionario - siempre oscuro en modo claro */
    .questions-header h3,
    .ai-generated-questions .questions-header h3 {
        color: #1a202c !important; /* Gris muy oscuro */
        font-weight: 600;
    }
    
    /* Título del caso de estudio - siempre oscuro en modo claro */
    h3.caso-estudio-header,
    .caso-estudio-container h3.caso-estudio-header,
    .card .caso-estudio-header,
    .caso-estudio-container .caso-estudio-header {
        color: #1a365d !important; /* Azul oscuro */
        font-weight: 600;
    }
    
    /* Contenido del caso siempre legible en modo claro */
    .caso-estudio p,
    .caso-estudio-container p,
    #caso-estudio-principal p {
        color: #2d3748 !important; /* Gris oscuro */
    }
    
    /* Cuestionario estructurado título */
    .structured-questionnaire .questions-header h3 {
        color: #1a202c !important;
    }
}

/* Estilos para opciones tipo ficha */
.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.option-wrapper {
    position: relative;
    cursor: pointer;
}

.option-wrapper input[type="radio"] {
    display: none !important;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    min-height: 65px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.option-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.option-text {
    flex: 1;
    line-height: 1.5;
    font-weight: 500;
    color: #495057;
}

/* Estados hover con animaciones suaves */
.option-wrapper:hover .option-label {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
    transform: translateY(-3px);
}

.option-wrapper:hover .option-label::before {
    left: 100%;
}

.option-wrapper:hover .option-letter {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    transform: scale(1.1);
}

.option-wrapper:hover .option-text {
    color: #1565c0;
}

/* Estado seleccionado con animación */
.option-wrapper.selected .option-label,
.option-wrapper input[type="radio"]:checked + .option-label {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.option-wrapper.selected .option-letter,
.option-wrapper input[type="radio"]:checked + .option-label .option-letter {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    transform: scale(1.15);
}

.option-wrapper.selected .option-text,
.option-wrapper input[type="radio"]:checked + .option-label .option-text {
    color: #155724;
    font-weight: 600;
}

/* Estado correcto (después de validación) */
.option-wrapper.correct .option-label {
    background: linear-gradient(135deg, #d4edda 0%, #b8dcc6 100%);
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    animation: correctPulse 0.8s ease;
}

.option-wrapper.correct .option-letter {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.option-wrapper.correct .option-label::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
    animation: checkmarkAppear 0.5s ease;
}

/* Estado incorrecto (después de validación) */
.option-wrapper.incorrect .option-label {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b2b7 100%);
    border-color: #dc3545;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    animation: incorrectShake 0.6s ease;
}

.option-wrapper.incorrect .option-letter {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.option-wrapper.incorrect .option-label::after {
    content: "✗";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-size: 20px;
    font-weight: bold;
    animation: crossAppear 0.5s ease;
}

/* Contenedor de pregunta estructurada mejorado */
.question-container.structured {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #007bff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.question-container.structured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.question-container.structured:hover::before {
    opacity: 1;
}

.question-container.structured:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

/* Header de pregunta mejorado */
.question-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

/* Título de pregunta con mejor tipografía */
.question-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.question-number {
    color: #007bff;
    font-weight: 700;
    margin-right: 10px;
    font-size: 20px;
}

/* Metadatos de pregunta mejorados */
.question-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Indicadores de dificultad con gradientes */
.difficulty {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.difficulty-fácil, .difficulty-facil, .difficulty-easy {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #c3e6cb;
}

.difficulty-media, .difficulty-medium {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffeaa7;
}

.difficulty-difícil, .difficulty-dificil, .difficulty-hard {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f5c6cb;
}

/* Contador de opciones mejorado */
.options-count {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

/* Estilos adicionales para meta información */
.options-count {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e2e8f0;
    color: #64748b;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.difficulty-facil {
    background-color: #dcfce7;
    color: #166534;
}

.difficulty-media {
    background-color: #fef3c7;
    color: #92400e;
}

.difficulty-dificil {
    background-color: #fecaca;
    color: #991b1b;
}

/* Indicador de progreso de respuestas */
.progress-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #667eea;
    z-index: 1000;
}

.progress-indicator .progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

/* Estilos para preguntas */
.question-container {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-header {
    margin-bottom: 20px;
}

.question-title {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.question-number {
    color: #667eea;
    font-weight: bold;
}

.question-meta {
    margin-top: 8px;
}

.difficulty {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f1f5f9;
    color: #4a5568;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Estilos para explicaciones */
.explanation {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #17a2b8;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.explanation h4 {
    color: #17a2b8;
    font-size: 16px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.explanation-content {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
}

/* Pregunta respondida */
.question-container.answered {
    border-left-color: #28a745;
}

.question-container.answered .question-number {
    color: #28a745;
}

/* Animaciones */
@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes checkmarkAppear {
    0% { 
        opacity: 0; 
        transform: translateY(-50%) scale(0); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1); 
    }
}

@keyframes crossAppear {
    0% { 
        opacity: 0; 
        transform: translateY(-50%) rotate(-90deg); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(-50%) rotate(0deg); 
    }
}

/* ===== ESTILOS PARA FASE 5 - RESULTADOS Y ANÁLISIS ===== */

.results-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 20px 0;
}

.results-summary.excellent {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.results-summary.good {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.results-summary.needs-improvement {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.results-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.results-icon {
    font-size: 48px;
    margin-right: 20px;
    opacity: 0.9;
}

.results-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.competency-evaluated {
    margin: 5px 0 0 0;
    opacity: 0.8;
    font-size: 16px;
}

.results-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    color: #333;
    margin-top: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.metric-icon {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 15px;
}

.metric-card.score-card .metric-icon {
    color: #28a745;
}

.metric-card.answers-card .metric-icon {
    color: #17a2b8;
}

.metric-card.completion-card .metric-icon {
    color: #ffc107;
}

.metric-card.time-card .metric-icon {
    color: #6f42c1;
}

.metric-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin: 10px 0;
}

.metric-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.charts-section {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.chart-container h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

.recommendations-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #007bff;
}

.recommendations-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #495057;
}

.recommendations-section h3 i {
    margin-right: 10px;
    color: #ffc107;
}

.recommendation {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
    display: flex;
    align-items: flex-start;
}

.recommendation.excellent {
    border-left-color: #28a745;
}

.recommendation.good {
    border-left-color: #ffc107;
}

.recommendation.improvement {
    border-left-color: #dc3545;
}

.recommendation i {
    margin-right: 15px;
    margin-top: 3px;
    font-size: 18px;
    color: #007bff;
}

.recommendation.excellent i {
    color: #28a745;
}

.recommendation.good i {
    color: #ffc107;
}

.recommendation.improvement i {
    color: #dc3545;
}

.recommendation p {
    margin: 0;
    line-height: 1.5;
}

.actions-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.actions-section .btn {
    margin: 0 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.actions-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.actions-section .btn-primary {
    background: #007bff;
    color: white;
}

.actions-section .btn-secondary {
    background: #6c757d;
    color: white;
}

.actions-section .btn-info {
    background: #17a2b8;
    color: white;
}

.actions-section .btn i {
    font-size: 16px;
}

/* Animaciones para la entrada de resultados */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseScore {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.results-animated .metric-card {
    animation: slideInUp 0.6s ease forwards;
}

.results-animated .metric-card:nth-child(1) {
    animation-delay: 0.1s;
}

.results-animated .metric-card:nth-child(2) {
    animation-delay: 0.2s;
}

.results-animated .metric-card:nth-child(3) {
    animation-delay: 0.3s;
}

.results-animated .metric-card:nth-child(4) {
    animation-delay: 0.4s;
}

#score-animation {
    animation: pulseScore 2s ease-in-out infinite;
}

/* Responsive design para resultados */
@media (max-width: 768px) {
    .results-summary {
        padding: 20px;
        margin: 10px;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-icon {
        margin: 0 0 15px 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .actions-section .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
    
    .metric-value {
        font-size: 24px;
    }
}

/* Estilos adicionales para mejorar la experiencia visual */
.results-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    border-radius: 20px;
    pointer-events: none;
}

.results-content {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .option-wrapper .option-label {
        padding: 14px 16px;
        font-size: 14px;
        min-height: 55px;
    }
    
    .option-wrapper .option-letter {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 12px;
    }
    
    .question-container.structured {
        padding: 20px 16px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .question-meta {
        width: 100%;
        justify-content: flex-start;
    }
    
    .question-title {
        font-size: 16px;
    }
    
    .question-number {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .option-wrapper .option-label {
        padding: 12px 14px;
        font-size: 13px;
        min-height: 50px;
    }
    
    .question-container.structured {
        padding: 16px 12px;
        margin-bottom: 20px;
    }
    
    .explanation {
        padding: 16px;
        margin-top: 20px;
    }
}

/* Tema oscuro DESHABILITADO - Solo modo claro */
/* @media (prefers-color-scheme: dark) { ... } */

/* Estilos para Phase 5 - Resultados Mejorados */
.results-enhanced {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin: 20px 0;
}

.results-header-enhanced {
    text-align: center;
    margin-bottom: 40px;
}

.results-header-enhanced h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.score-display-enhanced {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.score-circle-enhanced {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.score-circle-enhanced .score-number {
    font-size: 2rem;
    margin-bottom: 5px;
}

.score-circle-enhanced .score-label {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.chart-container {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.chart-container h3 {
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

.competency-analysis {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.competency-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.competency-bar-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.competency-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.competency-info h4 {
    margin: 0;
    color: #2d3748;
}

.competency-score {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.competency-score.excellent {
    background: #10b981;
}

.competency-score.good {
    background: #3b82f6;
}

.competency-score.average {
    background: #f59e0b;
}

.competency-score.low {
    background: #ef4444;
}

.progress-bar-container {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.progress-bar-fill.excellent {
    background: #10b981;
}

.progress-bar-fill.good {
    background: #3b82f6;
}

.progress-bar-fill.average {
    background: #f59e0b;
}

.progress-bar-fill.low {
    background: #ef4444;
}

.competency-details {
    color: #6b7280;
    font-size: 0.85rem;
}

.recommendations-enhanced {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: transform 0.2s ease;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recommendation-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.recommendation-item.excellence .recommendation-icon {
    background: #10b981;
}

.recommendation-item.excellent .recommendation-icon {
    background: #3b82f6;
}

.recommendation-item.good .recommendation-icon {
    background: #06b6d4;
}

.recommendation-item.moderate .recommendation-icon {
    background: #f59e0b;
}

.recommendation-item.development .recommendation-icon {
    background: #ef4444;
}

.recommendation-item.improvement .recommendation-icon {
    background: #8b5cf6;
}

.recommendation-item.strength .recommendation-icon {
    background: #10b981;
}

.recommendation-item.mentoring .recommendation-icon {
    background: #f97316;
}

.recommendation-content h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.recommendation-content p {
    margin: 0;
    color: #4a5568;
    line-height: 1.5;
}

.answers-review-container {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.answers-review-summary {
    margin-bottom: 30px;
}

.review-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

.stat-item.correct {
    background: #10b981;
}

.stat-item.incorrect {
    background: #ef4444;
}

.stat-item.total {
    background: #667eea;
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-item {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.answer-item.correct {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.answer-item.incorrect {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.answer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.answer-status.correct {
    color: #10b981;
}

.answer-status.incorrect {
    color: #ef4444;
}

.answer-content p {
    margin: 8px 0;
    color: #4a5568;
}

.answer-explanation {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 3px solid #667eea;
}

.review-actions-mini {
    text-align: center;
    margin-top: 30px;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .score-display-enhanced {
        gap: 20px;
    }
    
    .score-circle-enhanced {
        width: 100px;
        height: 100px;
    }
    
    .score-circle-enhanced .score-number {
        font-size: 1.5rem;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .review-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        justify-content: center;
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
    }
}

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

.results-enhanced,
.competency-analysis,
.recommendations-enhanced,
.answers-review-container {
    animation: fadeIn 0.6s ease-out;
}

.competency-bar-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.competency-bar-item:nth-child(even) {
    animation-delay: 0.2s;
}

.recommendation-item:nth-child(1) { animation-delay: 0.1s; }
.recommendation-item:nth-child(2) { animation-delay: 0.2s; }
.recommendation-item:nth-child(3) { animation-delay: 0.3s; }
.recommendation-item:nth-child(4) { animation-delay: 0.4s; }
.recommendation-item:nth-child(5) { animation-delay: 0.5s; }

/* Estilos adicionales para revisión de respuestas */
.answers-review {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.review-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.review-header h2 {
    color: #2d3748;
    margin-bottom: 10px;
}

.review-header p {
    color: #6b7280;
}

.question-review {
    margin: 25px 0;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.question-review.correct {
    background: #f0fdf4;
    border-color: #10b981;
}

.question-review.incorrect {
    background: #fef2f2;
    border-color: #ef4444;
}

.question-review-header h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #2d3748;
}

.question-status.correct {
    color: #10b981;
}

.question-status.incorrect {
    color: #ef4444;
}

.options-review {
    margin: 20px 0;
}

.option-review {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    background: #f8f9fa;
}

.option-review.correct-option {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.option-review.user-selected {
    background: #dbeafe;
    border: 2px solid #3b82f6;
}

.option-review.correct-option.user-selected {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.option-letter {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.option-text {
    flex-grow: 1;
    color: #374151;
}

.correct-icon {
    color: #10b981;
    font-size: 1.2rem;
}

.user-icon {
    color: #3b82f6;
    font-size: 1.2rem;
}

.answer-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.explanation-review {
    background: #fef3c7;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #f59e0b;
}

.review-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Estilos para botones pequeños */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== ESTILOS PARA MODAL DE REVISIÓN ===== */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.review-modal-overlay.active .review-modal {
    transform: scale(1);
}

.review-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-review-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-review-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.review-modal-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.review-modal-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.correct {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.stat-card.incorrect {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.stat-card.percentage {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.stat-card i {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.review-modal-actions {
    padding: 20px;
    background-color: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* ===== ESTILOS PARA CONTENEDORES DE GRÁFICAS ===== */
#results-chart, #competency-chart {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.chart-header {
    margin-bottom: 20px;
    text-align: center;
}

.chart-header h4 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4CAF50 0deg, #4CAF50 var(--percentage, 0), #e0e0e0 var(--percentage, 0), #e0e0e0 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.score-circle.animated {
    animation: scoreAnimation 2s ease-out;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.score-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.score-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.score-details {
    text-align: center;
}

.score-details p {
    margin: 8px 0;
    font-size: 1rem;
}

/* Colores para diferentes niveles de puntuación */
.score-circle.score-excellent {
    background: conic-gradient(from 0deg, #4CAF50 0deg, #4CAF50 var(--percentage, 0), #e0e0e0 var(--percentage, 0), #e0e0e0 360deg);
}

.score-circle.score-good {
    background: conic-gradient(from 0deg, #2196F3 0deg, #2196F3 var(--percentage, 0), #e0e0e0 var(--percentage, 0), #e0e0e0 360deg);
}

.score-circle.score-average {
    background: conic-gradient(from 0deg, #FF9800 0deg, #FF9800 var(--percentage, 0), #e0e0e0 var(--percentage, 0), #e0e0e0 360deg);
}

.score-circle.score-low {
    background: conic-gradient(from 0deg, #f44336 0deg, #f44336 var(--percentage, 0), #e0e0e0 var(--percentage, 0), #e0e0e0 360deg);
}

/* Gráficas de competencias */
.competency-bars-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.competency-chart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.competency-chart-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.competency-chart-item.slide-in {
    animation: slideInFromLeft 0.6s ease-out;
}

.competency-name {
    flex: 0 0 200px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.competency-bar {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.competency-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
    position: relative;
}

.competency-fill.excellent {
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.competency-fill.good {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

.competency-fill.average {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

.competency-fill.low {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

.competency-percentage {
    flex: 0 0 50px;
    text-align: right;
    font-weight: bold;
    color: #333;
}

/* Animaciones */
@keyframes scoreAnimation {
    from {
        transform: scale(0.8) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Clases de animación para elementos */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in {
    animation: slideInFromLeft 0.6s ease-out;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .review-modal {
        width: 95%;
        margin: 10px;
    }
    
    .review-modal-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .score-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .competency-chart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .competency-name {
        flex: none;
    }
    
    .competency-bar {
        width: 100%;
    }
}

/* ============================================
   OPTIMIZACIÓN MÓVIL - MÁXIMO ANCHO DE PANTALLA
   ============================================ */
@media (max-width: 768px) {
    /* Opciones con letra en esquina para aprovechar espacio */
    .option-wrapper {
        position: relative;
    }
    
    .option-wrapper .option-label {
        padding: 10px 10px 10px 26px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: relative;
    }
    
    .option-wrapper .option-letter {
        position: absolute !important;
        top: -5px;
        left: -5px;
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
        margin-right: 0 !important;
        z-index: 2;
    }
    
    .option-wrapper .option-text,
    .option-wrapper .option-content {
        width: 100%;
        font-size: 0.88rem;
        line-height: 1.4;
    }
    
    /* Caso de estudio compacto */
    .caso-estudio,
    .case-study,
    .caso-context {
        padding: 10px !important;
        margin: 0 0 10px 0 !important;
        border-radius: 8px !important;
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }
    
    .caso-estudio h4,
    .case-study h4,
    .caso-context h4 {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }
    
    /* Pregunta compacta */
    .question-container.structured {
        padding: 10px 8px !important;
        margin-bottom: 10px !important;
    }
    
    .question-title {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    /* Ultra compacto para pantallas pequeñas */
    .option-wrapper .option-label {
        padding: 8px 8px 8px 22px !important;
        min-height: auto !important;
    }
    
    .option-wrapper .option-letter {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.65rem !important;
        top: -4px;
        left: -4px;
    }
    
    .option-wrapper .option-text,
    .option-wrapper .option-content {
        font-size: 0.82rem;
        line-height: 1.35;
    }
    
    .caso-estudio,
    .case-study,
    .caso-context {
        padding: 8px !important;
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }
    
    .question-container.structured {
        padding: 8px 6px !important;
    }
    
    .question-title {
        font-size: 0.85rem !important;
    }
}
