/* ==========================================================================
   PLATAFORMA INTERACTIVA DE ENTRENAMIENTO: SIELE EIO TAREA 2
   Estilos CSS Adaptables (Mobile-First & Fully Responsive)
   ========================================================================== */

:root {
  /* Paleta Institucional SIELE */
  --siele-burgundy: #8B0029;
  --siele-burgundy-dark: #58001A;
  --siele-burgundy-light: #B81D46;
  --siele-burgundy-soft: #FFF1F2;
  --siele-gold: #D97706;
  --siele-gold-light: #F59E0B;
  --siele-gold-soft: #FEF3C7;
  
  /* Escala de Grises y Fondos */
  --color-navy: #0F172A;
  --color-dark: #1E293B;
  --color-slate: #334155;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;
  --color-bg-light: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #F1F5F9;
  
  /* Acentos Semánticos */
  --color-green: #059669;
  --color-green-light: #10B981;
  --color-green-soft: #ECFDF5;
  --color-blue: #0284C7;
  --color-blue-soft: #E0F2FE;
  --color-purple: #7C3AED;
  --color-purple-soft: #F3E8FF;
  --color-red: #DC2626;
  --color-red-soft: #FEE2E2;
  
  /* Tipografía */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  /* Sombras y Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 30px -10px rgba(15, 23, 42, 0.18);
  
  /* Transición estándar */
  --transition: all 0.22s ease-in-out;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-light);
  color: var(--color-dark);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

a {
  color: var(--siele-burgundy);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--siele-burgundy-light);
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--siele-burgundy-dark) 0%, var(--siele-burgundy) 65%, #A00B33 100%);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(88, 0, 26, 0.25);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: #FFFFFF;
  color: var(--siele-burgundy);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-badge span {
  color: var(--siele-gold);
}

.site-title-wrap {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-subtitle {
  font-size: 0.78rem;
  opacity: 0.88;
  font-weight: 400;
}

/* Botón Hamburguesa Móvil */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: var(--transition);
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Barra de Navegación */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-item a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-item a:hover,
.nav-item a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* ==========================================================================
   HERO / PRESENTACIÓN PRINCIPAL
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-light) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 38px 20px 32px;
  text-align: center;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--siele-burgundy-soft);
  color: var(--siele-burgundy);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border: 1px solid rgba(139, 0, 41, 0.15);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--siele-burgundy);
  background: linear-gradient(120deg, transparent 0%, rgba(139, 0, 41, 0.08) 100%);
  padding: 0 4px;
  border-radius: 4px;
}

.hero-desc {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  color: var(--color-slate);
  max-width: 780px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 25px;
}

.stat-card {
  background: var(--color-bg-card);
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--siele-burgundy);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   CONTENEDOR GENERAL Y ESTRUCTURA DE PÁGINA
   ========================================================================== */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 18px 60px;
  width: 100%;
  flex: 1;
}

.section-block {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.section-header {
  margin-bottom: 24px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.section-icon {
  width: 38px;
  height: 38px;
  background: var(--siele-burgundy-soft);
  color: var(--siele-burgundy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 0.96rem;
  color: var(--color-muted);
  max-width: 820px;
}

/* ==========================================================================
   MÓDULO 1: RADIOGRAFÍA DEL EXAMEN Y REGLAS
   ========================================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.rule-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.rule-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.rule-card.highlighted {
  border-color: var(--siele-burgundy-light);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--siele-burgundy-soft) 100%);
}

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

.rule-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--siele-burgundy);
  background: var(--siele-burgundy-soft);
  padding: 4px 10px;
  border-radius: 12px;
}

.rule-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.rule-desc {
  font-size: 0.92rem;
  color: var(--color-slate);
  margin-bottom: 14px;
  flex: 1;
}

.rule-subpoints {
  list-style: none;
  font-size: 0.86rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-subpoints li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-slate);
}

.rule-subpoints li span.icon {
  color: var(--color-green);
  font-weight: 900;
}

/* Comparativa: Errores vs Soluciones */
.comparison-box {
  margin-top: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 620px;
}

.comparison-table th {
  background: var(--color-bg-alt);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-border);
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.bad-cell {
  background: #FFF5F5;
  color: #991B1B;
}

.good-cell {
  background: #F0FDF4;
  color: #166534;
}

/* ==========================================================================
   MÓDULO 2: LAS 5 ESTRATEGIAS MAESTRAS
   ========================================================================== */
.strategies-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.strategy-tab-btn {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  min-height: 44px;
}

.strategy-tab-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border-hover);
}

.strategy-tab-btn.active {
  background: var(--siele-burgundy);
  color: #FFFFFF;
  border-color: var(--siele-burgundy);
  box-shadow: 0 4px 12px rgba(139, 0, 41, 0.25);
}

.strategy-panel {
  display: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.28s ease;
}

.strategy-panel.active {
  display: block;
}

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

.strategy-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .strategy-inner-grid {
    grid-template-columns: 1fr;
  }
}

.strategy-text-side h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.strategy-text-side p {
  color: var(--color-slate);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.callout-box {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--siele-burgundy);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.callout-box.tip {
  border-left-color: var(--siele-gold);
  background: var(--siele-gold-soft);
  color: #78350F;
}

.callout-box.success {
  border-left-color: var(--color-green);
  background: var(--color-green-soft);
  color: #064E3B;
}

/* ==========================================================================
   CRONÓMETRO Y SEMÁFORO VISUAL (ESTRATEGIA 5)
   ========================================================================== */
.semaphore-bar-wrap {
  margin: 20px 0;
  background: var(--color-bg-alt);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.semaphore-track {
  height: 24px;
  border-radius: 12px;
  background: #E2E8F0;
  display: flex;
  overflow: hidden;
  margin-bottom: 12px;
}

.sema-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
}

.sema-red { width: 37.5%; background: #EF4444; } /* 0 - 45s */
.sema-yellow { width: 12.5%; background: #F59E0B; } /* 45 - 60s */
.sema-green { width: 25%; background: #10B981; } /* 60 - 90s */
.sema-gold { width: 16.6%; background: #6366F1; } /* 90 - 110s */
.sema-closing { width: 8.4%; background: #EC4899; } /* 110 - 120s */

.sema-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  font-size: 0.82rem;
}

.sema-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sema-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   MÓDULO 3: SIMULADOR DE BLOC DE NOTAS (2 MINUTOS)
   ========================================================================== */
.notepad-simulator {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.notepad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-alt);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--color-border);
}

.timer-display {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--siele-burgundy);
  letter-spacing: 0.05em;
}

.timer-display.urgent {
  color: var(--color-red);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.timer-controls {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--siele-burgundy);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--siele-burgundy-light);
  box-shadow: 0 4px 12px rgba(139, 0, 41, 0.25);
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-slate);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: #E2E8F0;
  color: var(--color-navy);
}

.btn-green {
  background: var(--color-green);
  color: #FFFFFF;
}

.btn-green:hover {
  background: var(--color-green-light);
}

.btn-red {
  background: var(--color-red);
  color: #FFFFFF;
}

.notepad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 650px) {
  .notepad-grid {
    grid-template-columns: 1fr;
  }
}

.quadrant-box {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.quadrant-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--siele-burgundy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quadrant-textarea {
  width: 100%;
  height: 90px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.9rem;
  resize: vertical;
  background: #FFFFFF;
  color: var(--color-dark);
}

.quadrant-textarea:focus {
  outline: none;
  border-color: var(--siele-burgundy);
  box-shadow: 0 0 0 3px rgba(139, 0, 41, 0.12);
}

.notepad-eval-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* ==========================================================================
   MÓDULO 4: GRABADORA ORAL Y MICRÓFONO EN VIVO
   ========================================================================== */
.recorder-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.recorder-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.mic-visualizer-canvas {
  width: 100%;
  max-width: 600px;
  height: 70px;
  background: #0F172A;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

.record-btn-large {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  background: var(--color-red);
  color: #FFFFFF;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transition: var(--transition);
}

.record-btn-large:hover {
  transform: scale(1.06);
}

.record-btn-large.recording {
  background: #111827;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.playback-zone {
  width: 100%;
  max-width: 600px;
  margin-top: 15px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: none;
}

.playback-zone.active {
  display: block;
}

.playback-audio-el {
  width: 100%;
  margin-top: 8px;
}

/* ==========================================================================
   MÓDULO 5: BANCO DE EJERCICIOS PRÁCTICOS OFICIALES (3 SETS)
   ========================================================================== */
.exercise-sets-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.set-tab-btn {
  flex: 1;
  min-width: 220px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
}

.set-tab-btn:hover {
  border-color: var(--siele-burgundy-light);
  transform: translateY(-2px);
}

.set-tab-btn.active {
  border-color: var(--siele-burgundy);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--siele-burgundy-soft) 100%);
  box-shadow: var(--shadow-sm);
}

.set-tab-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--siele-burgundy);
  letter-spacing: 0.05em;
}

.set-tab-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* Selector de Opción 1 vs Opción 2 */
.option-switch-bar {
  display: flex;
  background: var(--color-bg-alt);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  max-width: 440px;
}

.option-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-slate);
  transition: var(--transition);
  min-height: 44px;
}

.option-btn.active {
  background: #FFFFFF;
  color: var(--siele-burgundy);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Contenedor del Ejercicio Activo */
.exercise-workspace {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.exercise-stage-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
}

@media (max-width: 960px) {
  .exercise-stage-grid {
    grid-template-columns: 1fr;
  }
}

.photo-column {
  padding: 24px;
  background: #0F172A;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  aspect-ratio: 16 / 9;
  background: #1E293B;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-frame:hover img {
  transform: scale(1.02);
}

.photo-caption {
  margin-top: 12px;
  color: #94A3B8;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-zoom {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-zoom:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Columna de Consignas y Práctica */
.guide-column {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #FFFFFF;
}

.consigna-box {
  background: var(--siele-burgundy-soft);
  border-left: 4px solid var(--siele-burgundy);
  padding: 14px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.consigna-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--siele-burgundy);
  margin-bottom: 6px;
}

.checklist-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-slate);
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--siele-burgundy);
  margin-top: 2px;
  flex-shrink: 0;
}

.checklist-item.checked {
  color: var(--color-muted);
  text-decoration: line-through;
}

/* Acordeón de Andamiajes y Vocabulario */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  background: var(--color-bg-alt);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.accordion-header:hover {
  background: #E2E8F0;
}

.accordion-body {
  padding: 16px;
  font-size: 0.9rem;
  display: none;
  background: #FFFFFF;
}

.accordion-body.open {
  display: block;
}

/* Reproductor de Audio Modelo Incorporado */
.model-audio-player-box {
  background: linear-gradient(135deg, #F8FAFC 0%, var(--siele-burgundy-soft) 100%);
  border: 1px solid var(--siele-burgundy-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.audio-badge-speaker {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--siele-burgundy);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-audio-ctrl {
  width: 100%;
  margin-top: 6px;
}

/* ==========================================================================
   MÓDULO 6: CALCULADORA Y RÚBRICA INTERACTIVA DE AUTOEVALUACIÓN
   ========================================================================== */
.rubric-calculator {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 850px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-criterion-group {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

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

.criterion-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.criterion-points-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--siele-burgundy);
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.slider-row {
  margin-bottom: 14px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-slate);
  margin-bottom: 6px;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  accent-color: var(--siele-burgundy);
  cursor: pointer;
}

.calc-result-panel {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.total-score-number {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--siele-gold-light);
  line-height: 1;
}

.level-badge-result {
  font-size: 1.15rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: #94A3B8;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 4px solid var(--siele-burgundy);
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #CBD5E1;
}

.footer-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   MODAL DE ZOOM PARA IMÁGENES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-content-wrap {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img-el {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.modal-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--color-red);
}

/* ==========================================================================
   OPTIMIZACIONES ESPECÍFICAS DE RESPONSIVIDAD (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    padding: 10px 14px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--siele-burgundy-dark);
    flex-direction: column;
    padding: 15px;
    gap: 8px;
    border-bottom: 2px solid var(--siele-gold);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-item a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .hero-section {
    padding: 26px 14px 22px;
  }

  .main-wrapper {
    padding: 20px 12px 40px;
  }

  .strategy-panel {
    padding: 18px 14px;
  }

  .photo-column {
    padding: 14px;
  }

  .guide-column {
    padding: 18px 14px;
  }

  .notepad-simulator {
    padding: 18px 14px;
  }

  .recorder-card {
    padding: 20px 14px;
  }

  .rubric-calculator {
    padding: 20px 14px;
  }

  .timer-box {
    width: 100%;
    justify-content: space-between;
  }

  .timer-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .total-score-number {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 12px 10px;
  }

  .btn {
    width: 100%;
  }

  .timer-controls {
    flex-direction: column;
  }
}
