/* ==========================================================================
   LEARNING TOLEDO — AULA VIRTUAL DEL ESTUDIANTE (EXPERIENCIA ACADÉMICA)
   ========================================================================== */

/* 1. CABECERA SUPERIOR DEL CURSO */
.student-course-header-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.5rem;
}

.student-course-code-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.student-course-title-display {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.student-header-progress-box {
  min-width: 220px;
}

.student-progress-bar-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.student-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* 2. LAYOUT DEL AULA EN 2 COLUMNAS (CURRÍCULO IZQUIERDA + CONTENIDO DERECHA) */
.student-learn-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Columna Izquierda: Panel Curricular */
.student-curriculum-panel {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.student-curriculum-header {
  padding: 1.15rem 1.35rem;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.student-modules-tree {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  gap: 0.85rem;
  background: #F8FAFC;
}

/* Tarjeta individual por Módulo */
.student-module-item {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0 !important;
  min-height: fit-content !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease;
}

.student-module-item:hover {
  border-color: #94A3B8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.student-module-item.active-module-container {
  border-color: #3B82F6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.student-module-header {
  padding: 1rem 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  user-select: none;
  background: #FFFFFF;
  transition: background 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.student-module-header:hover {
  background: #F1F5F9;
}

.student-module-header.expanded {
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.student-module-item.locked .student-module-header {
  background: #FFFFFF;
  cursor: pointer;
}

.student-mod-chevron {
  font-size: 0.95rem;
  font-weight: 800;
  color: #64748B;
  margin-top: 0.15rem;
  width: 14px;
  flex-shrink: 0;
}

.student-mod-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.15rem;
}

.student-mod-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.4;
  margin: 0.15rem 0 0.35rem 0;
  white-space: normal;
  word-break: break-word;
  display: block;
}

.student-mod-progress-text {
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 600;
}

.student-lock-badge {
  font-size: 0.95rem;
  margin-top: 0.2rem;
  color: #64748B;
  flex-shrink: 0;
}

/* Lista Vertical de Lecciones */
.student-module-lessons {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  background: #FFFFFF !important;
  box-sizing: border-box !important;
}

.student-lesson-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.75rem 0.85rem 0.75rem 1.15rem !important;
  text-decoration: none !important;
  color: #0F172A !important;
  border-left: 3.5px solid transparent !important;
  border-bottom: 1px solid #F1F5F9 !important;
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
  transition: all 0.12s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
}

.student-lesson-item .student-lesson-title-text {
  color: #0F172A !important;
  font-weight: 700 !important;
}

.student-lesson-item:hover:not(.active):not(.locked) {
  background: #EFF6FF !important;
}

.student-lesson-item:hover:not(.active):not(.locked) .student-lesson-title-text {
  color: #1D4ED8 !important;
}

.student-lesson-item.active {
  background: #EFF6FF !important;
  border-left-color: #2563EB !important;
  opacity: 1 !important;
}

.student-lesson-item.active .student-lesson-title-text {
  color: #1D4ED8 !important;
  font-weight: 800 !important;
}

.student-lesson-item.active .student-lesson-num {
  color: #2563EB !important;
  font-weight: 800 !important;
}

.student-lesson-item.active .student-lesson-status-icon {
  color: #2563EB !important;
  font-weight: 800 !important;
}

/* Lecciones Completadas: EXACTAMENTE como la 1.1 con formato claro, nítido y verde destacado */
.student-lesson-item.completed {
  color: #065F46 !important;
  opacity: 1 !important;
}

.student-lesson-item.completed .student-lesson-title-text {
  color: #065F46 !important;
  font-weight: 700 !important;
}

.student-lesson-item.completed .student-lesson-num {
  color: #059669 !important;
  font-weight: 800 !important;
}

.student-lesson-item.completed .student-lesson-status-icon {
  color: #059669 !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
}

/* ÚNICAMENTE las deshabilitadas con candado tienen el formato opaco */
.student-lesson-item.locked {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.8) !important;
  color: #94A3B8 !important;
}

.student-lesson-item.locked .student-lesson-title-text {
  color: #94A3B8 !important;
  font-weight: 500 !important;
}

.student-lesson-item.locked .student-lesson-num {
  color: #94A3B8 !important;
}

.student-lesson-item.locked .student-lesson-status-icon {
  color: #94A3B8 !important;
}

.student-lesson-item.assessment-node {
  background: #FAF5FF !important;
  border-left-color: #9333EA !important;
}

.student-lesson-status-icon {
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: #64748B;
}

.student-lesson-num {
  font-weight: 800;
  font-size: 0.8rem;
  margin-right: 0.35rem;
  color: #2563EB;
}

.student-lesson-title-text {
  flex: 1;
  word-break: break-word;
}

/* 3. COLUMNA DERECHA: VIEWPORT DE LECTURA Y ESTUDIO */
.student-content-viewport {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  min-height: 650px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  width: 100%;
  box-sizing: border-box;
}

.student-document-container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Breadcrumb Superior */
.student-reading-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.student-reading-breadcrumb span.active {
  color: #2563EB;
  font-weight: 700;
}

/* Hero Header de la Lección */
.student-lesson-hero-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 2rem 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.student-lesson-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.student-lesson-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #93C5FD;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.student-lesson-completed-pill {
  background: #059669;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.student-lesson-progress-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.student-lesson-hero-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
}

.student-lesson-hero-desc {
  font-size: 1rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

.student-lesson-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.84rem;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  flex-wrap: wrap;
}

.student-lesson-hero-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* 4. TARJETAS TEMÁTICAS DIFERENCIADAS (CADA BLOQUE DE CONTENIDO) */
.student-thematic-block-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.student-thematic-block-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-color: #CBD5E1;
}

.student-thematic-block-header {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.student-thematic-block-index {
  display: flex;
  align-items: center;
}

.thematic-num {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.student-thematic-block-info {
  flex: 1;
  min-width: 0;
}

.thematic-type-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.15rem;
}

.student-thematic-block-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
}

.student-thematic-type-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

/* Toolbar de expansión y contracción de puntos temáticos */
.thematic-toolbar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1.25rem;
  background: #F1F5F9;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.thematic-count-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}

.thematic-buttons-group {
  display: flex;
  gap: 0.5rem;
}

.btn-thematic-action {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-thematic-action:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
}

.student-thematic-block-header.clickable {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.student-thematic-block-header.clickable:hover {
  background: #E2E8F0;
}

.thematic-toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  font-size: 1.1rem;
  font-weight: 800;
  color: #2563EB;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.student-thematic-block-header.clickable:hover .thematic-toggle-arrow {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.student-thematic-block-body {
  padding: 1.75rem 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1E293B;
  border-top: 1px solid #E2E8F0;
}

.student-prose p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.student-prose p:last-child {
  margin-bottom: 0;
}

/* TARJETA DE COMPROBACIÓN / EVALUACIÓN DEL PUNTO TEMÁTICO */
.thematic-point-quiz-card {
  margin-top: 2rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 2px solid #BFDBFE;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
  transition: all 0.2s ease;
}

.thematic-point-quiz-card.passed {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: #86EFAC;
}

.point-quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.point-quiz-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #1D4ED8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.point-quiz-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #64748B;
}

.thematic-point-quiz-card.passed .point-quiz-status {
  background: #DCFCE7;
  color: #166534;
  border-color: #86EFAC;
  font-weight: 800;
}

.point-quiz-question-text {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.point-quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.point-quiz-option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1E293B;
  transition: all 0.15s ease;
  user-select: none;
}

.point-quiz-option-label:hover {
  border-color: #3B82F6;
  background: #F8FAFC;
}

.point-quiz-option-label.selected {
  border-color: #2563EB;
  background: #EFF6FF;
}

.point-quiz-option-label.correct-choice {
  border-color: #16A34A;
  background: #F0FDF4;
  color: #166534;
  font-weight: 600;
}

.point-quiz-option-label.wrong-choice {
  border-color: #DC2626;
  background: #FEF2F2;
  color: #991B1B;
}

.point-quiz-radio {
  margin-top: 0.2rem;
  accent-color: #2563EB;
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.point-quiz-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.point-quiz-feedback {
  font-size: 0.9rem;
  font-weight: 600;
}

.feedback-success {
  color: #15803D;
  background: #DCFCE7;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #86EFAC;
}

.feedback-error {
  color: #B91C1C;
  background: #FEE2E2;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #FCA5A5;
}

/* Bloque temático bloqueado hasta aprobar el anterior */
.student-thematic-block-card.point-locked {
  opacity: 0.65;
  background: #F8FAFC;
  border-style: dashed;
}

.student-thematic-block-card.point-locked .student-thematic-block-header {
  cursor: not-allowed !important;
}

/* 5. TARJETA DE EVALUACIÓN DE LA UNIDAD / QUIZ */
.student-unit-assessment-card {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 2px solid #C7D2FE;
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.student-unit-assessment-card.passed {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: #86EFAC;
}

/* Barra de Navegación Inferior */
.student-bottom-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1.5px solid #E2E8F0;
  gap: 1rem;
  flex-wrap: wrap;
}

.student-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.student-nav-btn.primary {
  background: #2563EB;
  color: #FFFFFF;
  border: 1px solid #2563EB;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.student-nav-btn.primary:hover {
  background: #1D4ED8;
}

.student-nav-btn.secondary {
  background: #FFFFFF;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.student-nav-btn.secondary:hover {
  background: #F8FAFC;
  color: #0F172A;
}

/* ==========================================================================
   ESTILOS DE TABLAS ACADÉMICAS (COMPATIBILIDAD MARKDOWN Y CHATGPT)
   ========================================================================== */
.academic-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: #FFFFFF;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
  font-family: inherit;
}

.academic-table thead th {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.85rem 1.15rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #334155;
  white-space: nowrap;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.academic-table tbody td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  line-height: 1.65;
  vertical-align: top;
}

.academic-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.academic-table tbody tr:hover {
  background: #EFF6FF;
}

.academic-table tbody td:first-child {
  font-weight: 700;
  color: #0F172A;
}

/* Callouts Académicos */
.academic-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #EFF6FF;
  border-left: 4px solid #3B82F6;
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.academic-callout-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.academic-callout-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1E3A8A;
  font-weight: 500;
}

.academic-paragraph {
  margin-bottom: 1.25rem;
  line-height: 1.78;
  font-size: 1.05rem;
  color: #1E293B;
  text-align: justify;
}

.academic-bullet-list,
.academic-ordered-list {
  margin: 1.25rem 0 1.5rem 1.5rem;
  padding-left: 0.5rem;
  line-height: 1.75;
  color: #1E293B;
}

.academic-bullet-list li,
.academic-ordered-list li {
  margin-bottom: 0.5rem;
}

.academic-h1 { font-size: 1.85rem; font-weight: 800; color: #0F172A; margin: 2rem 0 1rem 0; }
.academic-h2 { font-size: 1.5rem; font-weight: 800; color: #0F172A; margin: 1.75rem 0 0.75rem 0; }
.academic-h3 { font-size: 1.25rem; font-weight: 800; color: #0F172A; margin: 1.5rem 0 0.5rem 0; }
.academic-h4 { font-size: 1.05rem; font-weight: 700; color: #334155; margin: 1.25rem 0 0.5rem 0; }

.academic-inline-code {
  background: #F1F5F9;
  color: #0F172A;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.88em;
}

/* Reproductor de Video */
.academic-video-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #000000;
  margin: 1.75rem 0;
}

.academic-video-player {
  width: 100%;
  max-height: 520px;
  display: block;
  outline: none;
}

/* ==========================================================================
   CHECKLIST DE VERIFICACIÓN DE LECTURA Y EXAMEN MODULAR OBLIGATORIO
   ========================================================================== */
.student-reading-checklist-card {
  background: #F8FAFC;
  border: 2px solid #CBD5E1;
  border-radius: 14px;
  padding: 2rem 2.25rem;
  margin: 3.5rem 0 2rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.checklist-header {
  margin-bottom: 1.5rem;
}

.checklist-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.checklist-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.4rem 0;
}

.checklist-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.checklist-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.checklist-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: #1E293B;
  line-height: 1.5;
}

.checklist-item-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: #2563EB;
  cursor: pointer;
  flex-shrink: 0;
}

.chk-label-text {
  flex: 1;
}

.checklist-action-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1.5rem;
}

.student-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #94A3B8 !important;
  border-color: #94A3B8 !important;
  box-shadow: none !important;
}

/* Indicador de Examen Modular en Temario */
.student-module-assessment-slot {
  margin-top: 0.5rem;
  border-top: 1px dashed #CBD5E1;
  padding-top: 0.5rem;
  background: #FAF5FF;
}

.assessment-slot-header {
  padding: 0.35rem 1rem 0.2rem 1rem;
}

.assessment-slot-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #7E22CE;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

/* Tarjeta de Examen Modular Bloqueado (Faltan checks) */
.student-assessment-locked-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.locked-icon-badge {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.locked-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.locked-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.75rem 0;
}

.locked-desc {
  font-size: 1rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.locked-progress-panel {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.locked-lessons-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.locked-lesson-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.locked-lesson-status-row.done {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.locked-lesson-status-row.pending {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.locked-lesson-status-row .status-icon {
  font-weight: 800;
  margin-right: 0.5rem;
}

.locked-lesson-status-row .lesson-name {
  flex: 1;
}

.locked-lesson-status-row .status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.locked-lesson-status-row.done .status-badge {
  background: #DCFCE7;
  color: #166534;
}

.locked-lesson-status-row.pending .status-badge {
  background: #FEE2E2;
  color: #991B1B;
}

/* Pestaña clara de Abrir/Cerrar en cabecera de módulo */
.student-mod-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-top: 0.35rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .student-learn-layout {
    grid-template-columns: 1fr;
  }
  .student-curriculum-panel {
    position: static;
    max-height: 380px;
  }
  .student-content-viewport {
    padding: 2rem 1.5rem;
  }
  .student-lesson-hero-title {
    font-size: 1.6rem;
  }
}
