/* practica-combinada.css - Estilos para la funcionalidad de práctica combinada */

/* Estructura principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.form-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

/* Filtros de búsqueda */
.filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.filter-container label {
    font-weight: 600;
    color: #2c3e50;
}

.filter-container select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    min-width: 200px;
}

/* Grid de análisis */
.analyses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analysis-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
    position: relative;
    background-color: #f9f9f9;
    cursor: pointer;
}

.analysis-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.analysis-card.selected {
    border-color: #3498db;
    background-color: #ebf7fd;
}

.analysis-card.selected::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.analysis-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.analysis-details {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.analysis-date {
    font-size: 13px;
    color: #95a5a6;
}

.analysis-questions {
    font-weight: 600;
    color: #3498db;
}

/* Indicador de carga */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Página de práctica */
.practice-info {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #f0f4f8;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: center;
}

/* Casos de estudio y preguntas */
.case-study-section {
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background-color: #f0f4f8;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.section-entity {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

.section-questions {
    padding: 20px;
}

.caso-estudio {
    background-color: #f5f7fa;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.caso-estudio h2 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.caso-estudio p {
    margin-bottom: 0;
    line-height: 1.6;
}

.question-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.question-header {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.question-difficulty {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
    color: white;
}

.question-container[data-difficulty="ALTA"] .question-difficulty {
    background-color: #e74c3c;
}

.question-container[data-difficulty="MEDIA"] .question-difficulty {
    background-color: #f39c12;
}

.question-container[data-difficulty="BAJA"] .question-difficulty,
.question-container[data-difficulty="FÁCIL"] .question-difficulty {
    background-color: #2ecc71;
}

.question-source {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 15px;
    font-style: italic;
}

.options-container {
    margin-bottom: 15px;
}

.option {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: #f5f7fa;
    transform: translateX(5px);
}

.option.selected {
    border-color: #3498db;
    background-color: #ebf7fd;
}

.option.correct {
    border-color: #2ecc71;
    background-color: #eafaf1;
}

.option.incorrect {
    border-color: #e74c3c;
    background-color: #fdedeb;
}

/* Ayuda visual para la respuesta correcta */
.option.correct::after {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-left: 8px;
}

.option.incorrect::after {
    content: "✗";
    color: #c0392b;
    font-weight: bold;
    margin-left: 8px;
}

.explanation-container {
    background-color: #f8f9fa;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

/* Botones y acciones */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.btn-primary, 
.btn-secondary {
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-primary:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Sección de resultados */
.results-container {
    padding: 20px;
}

.results-summary {
    text-align: center;
    margin: 20px 0 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.score {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.score-details {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.progress-container {
    margin: 15px 0;
}

.progress-bar {
    height: 12px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress {
    height: 100%;
    transition: width 1s ease;
    background-color: #3498db;
}

.feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.feedback-excellent {
    background-color: #eafaf1;
    color: #27ae60;
}

.feedback-good {
    background-color: #ebf7fd;
    color: #2980b9;
}

.feedback-average {
    background-color: #fff3cd;
    color: #856404;
}

.feedback-poor {
    background-color: #f8d7da;
    color: #721c24;
}

.results-questions .case-study-section {
    margin-bottom: 30px;
}

.results-questions .section-questions {
    padding: 15px;
}

.results-questions .question-container {
    margin-bottom: 20px;
    padding: 15px;
}

/* Conclusión */
.conclusion {
    background-color: #eaf2f8;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
}

.conclusion h3 {
    color: #3498db;
    margin-top: 0;
}

/* Mensajes de error */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #e74c3c;
}

/* Instrucciones */
.instructions {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid #3498db;
}

.instructions h3 {
    color: #3498db;
    margin-top: 0;
}

.instructions ul {
    margin-left: 20px;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state a {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .analyses-grid {
        grid-template-columns: 1fr;
    }

    .practice-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary, 
    .btn-secondary {
        width: 100%;
    }
}

       /* Ocultar contenido cuando se imprime */
        @media print {
          body {
            display: none !important;
          }
          
          /* Alternativa: mostrar una advertencia */
          body::before {
            content: "La impresión de este contenido no está permitida";
            display: block;
            font-size: 24px;
            text-align: center;
            margin: 40% auto;
          }
        }
        
        /* Clase para proteger contenido */
        .protected-content {
          user-select: none; /* Previene selección de texto */
          -webkit-user-select: none;
          -moz-user-select: none;
          -ms-user-select: none;
        }
     