/* ═══════════════════════════════════════════
   BASE IA — Estilos de la seccion formativa
   "Entender para aplicar"
   ═══════════════════════════════════════════ */

/* ── Cabecera del curso ── */
.baseia-header {
  text-align: center;
  padding-bottom: 48px;
}
.baseia-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  letter-spacing: 0.04em;
}
.baseia-logo-accent {
  color: var(--navy-500);
}
.baseia-subtitle {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 8px;
  font-style: italic;
}
.baseia-intro {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 16px auto 0;
  line-height: 1.75;
}
.baseia-intro-note {
  font-size: 12px;
  color: var(--ink-faint, #999);
  max-width: 520px;
  margin: 8px auto 0;
  line-height: 1.6;
  font-style: italic;
}

/* ── Barra de progreso del itinerario ── */
.baseia-progress-wrap {
  max-width: 560px;
  margin: 32px auto 0;
}
.baseia-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 500;
}
.baseia-progress-count {
  font-weight: 700;
  color: var(--navy-600);
  font-size: 14px;
}
.baseia-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--navy-100);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.baseia-progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--navy-500), var(--navy-400));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px rgba(100,140,180,0.35);
}

/* ── Mapa de bloques (indice del curso) ── */
.baseia-roadmap {
  margin-top: 48px;
}
.baseia-roadmap-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.baseia-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.baseia-block-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--navy-100);
  background: #fff;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.baseia-block-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px 0 0 2px;
  transition: background 0.3s;
}
.baseia-block-card[data-phase="1"]::before { background: var(--navy-400); }
.baseia-block-card[data-phase="2"]::before { background: var(--navy-500); }
.baseia-block-card[data-phase="3"]::before { background: var(--navy-600); }
.baseia-block-card[data-phase="4"]::before { background: var(--navy-700); }
.baseia-block-card[data-phase="5"]::before { background: var(--navy-800); }
.baseia-block-card:hover {
  border-color: var(--navy-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.baseia-block-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-500);
  background: var(--navy-50);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.04em;
}
.baseia-block-card h3 {
  font-size: 16px;
  margin-top: 10px;
  color: var(--ink);
  font-family: 'DM Serif Display', Georgia, serif;
}
.baseia-block-chapters {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}
.baseia-block-chapters li {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(220, 230, 243, 0.3);
  transition: all 0.3s;
}
.baseia-block-chapters li:last-child { border-bottom: none; }
.baseia-ch-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-400);
  min-width: 20px;
  flex-shrink: 0;
  transition: all 0.25s ease;
  padding: 1px 2px;
  border-radius: 4px;
  text-align: center;
}
.baseia-ch-available {
  cursor: pointer;
  font-weight: 500;
}
.baseia-ch-available:hover {
  color: var(--navy-600);
}
.baseia-ch-lock {
  width: 14px;
  height: 14px;
  opacity: 0.3;
  flex-shrink: 0;
  margin-left: auto;
}

/* Capítulos activos (desbloqueados) */
.baseia-ch-active {
  color: var(--navy-600);
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  position: relative;
  transition: all 0.25s ease;
}
.baseia-ch-active .baseia-ch-num {
  color: var(--navy-600);
}
.baseia-ch-active::after {
  content: '→';
  margin-left: auto;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  color: var(--navy-400);
  font-size: 14px;
  flex-shrink: 0;
}
.baseia-ch-active:hover {
  background: var(--navy-50);
  padding-left: 10px;
  padding-right: 8px;
  color: var(--navy-700);
}
.baseia-ch-active:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.baseia-ch-active:hover .baseia-ch-num {
  background: var(--navy-500);
  color: #fff;
  padding: 1px 6px;
}

/* Capítulos bloqueados */
.baseia-block-chapters li:not(.baseia-ch-active) {
  opacity: 0.55;
  cursor: default;
}
.baseia-block-chapters li:not(.baseia-ch-active):hover {
  color: var(--ink-soft);
  padding-left: 0;
  opacity: 0.65;
}
.baseia-block-chapters li:not(.baseia-ch-active):hover .baseia-ch-lock {
  animation: lockShake 0.4s ease;
}
@keyframes lockShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

/* Flash highlight al navegar a un capítulo */
.baseia-ch-highlight {
  animation: chapterFlash 1.5s ease;
}
@keyframes chapterFlash {
  0%  { box-shadow: 0 0 0 0 rgba(100,140,180,0.5); }
  30% { box-shadow: 0 0 20px 4px rgba(100,140,180,0.3); }
  100%{ box-shadow: none; }
}

/* ── Contenedor de capitulo ── */
.baseia-chapter {
  margin-top: 56px;
  border-top: 2px solid var(--navy-100);
  padding-top: 48px;
}
.baseia-chapter-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.baseia-chapter-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
}
.baseia-chapter-meta {
  flex: 1;
}
.baseia-chapter-phase {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.baseia-chapter-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 4px;
  color: var(--ink);
}

/* ── Imagen de cabecera del capitulo ── */
.baseia-chapter-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  margin-bottom: 28px;
}
.baseia-chapter-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1), filter 0.8s ease;
}
.baseia-chapter-img:hover img {
  transform: scale(1.08);
  filter: brightness(1.08) contrast(1.02);
}
.baseia-chapter-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(11,18,34,0.35) 100%);
  pointer-events: none;
}

/* ── Secciones del capitulo ── */
.baseia-section {
  margin-bottom: 32px;
  border-radius: 12px;
  border: 1px solid var(--navy-100);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s;
}
.baseia-section:hover {
  border-color: var(--navy-200);
}
.baseia-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s;
}
.baseia-section-header:hover {
  background: var(--navy-50);
}
.baseia-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.baseia-section-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  fill: none;
}
/* Colores por tipo de seccion */
.baseia-section[data-type="contexto"] .baseia-section-icon { background: rgba(74, 122, 184, 0.1); }
.baseia-section[data-type="contexto"] .baseia-section-icon svg { stroke: var(--navy-500); }
.baseia-section[data-type="concepto"] .baseia-section-icon { background: rgba(44, 182, 125, 0.1); }
.baseia-section[data-type="concepto"] .baseia-section-icon svg { stroke: #2CB67D; }
.baseia-section[data-type="demo"] .baseia-section-icon { background: rgba(196, 150, 66, 0.1); }
.baseia-section[data-type="demo"] .baseia-section-icon svg { stroke: var(--warm-500); }
.baseia-section[data-type="accion"] .baseia-section-icon { background: rgba(74, 122, 184, 0.1); }
.baseia-section[data-type="accion"] .baseia-section-icon svg { stroke: var(--navy-600); }
.baseia-section[data-type="ejercicio"] .baseia-section-icon { background: rgba(44, 182, 125, 0.08); }
.baseia-section[data-type="ejercicio"] .baseia-section-icon svg { stroke: #2CB67D; }
.baseia-section[data-type="preguntas"] .baseia-section-icon { background: rgba(196, 150, 66, 0.08); }
.baseia-section[data-type="preguntas"] .baseia-section-icon svg { stroke: var(--warm-500); }
.baseia-section[data-type="test"] .baseia-section-icon { background: rgba(74, 122, 184, 0.12); }
.baseia-section[data-type="test"] .baseia-section-icon svg { stroke: var(--navy-600); }
.baseia-section[data-type="cierre"] .baseia-section-icon { background: rgba(44, 182, 125, 0.1); }
.baseia-section[data-type="cierre"] .baseia-section-icon svg { stroke: #2CB67D; }

.baseia-section-label {
  flex: 1;
}
.baseia-section-label strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}
.baseia-section-label span {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
  display: block;
}
.baseia-section-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--ink-faint);
}
.baseia-section.open .baseia-section-arrow {
  transform: rotate(180deg);
  color: var(--navy-500);
}

/* Contenido expandible */
.baseia-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
  opacity: 0;
}
.baseia-section.open .baseia-section-body {
  max-height: 5000px;
  opacity: 1;
}
.baseia-section-content {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.baseia-section-content p + p {
  margin-top: 12px;
}
.baseia-section-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* Auto-abrir la primera seccion */
.baseia-section.open-default .baseia-section-body {
  max-height: 5000px;
  opacity: 1;
}

/* ── Callout (destacados dentro del contenido) ── */
.baseia-callout {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}
.baseia-callout-info {
  background: rgba(74, 122, 184, 0.06);
  border-left: 3px solid var(--navy-400);
  color: var(--ink-muted);
}
.baseia-callout-tip {
  background: rgba(44, 182, 125, 0.06);
  border-left: 3px solid #2CB67D;
  color: var(--ink-muted);
}
.baseia-callout-warning {
  background: rgba(196, 150, 66, 0.06);
  border-left: 3px solid var(--warm-500);
  color: var(--ink-muted);
}
.baseia-callout strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

/* ── Etiqueta de límite (Cap. 3) ── */
.baseia-limit-tag {
  display: inline-block;
  background: rgba(99, 149, 237, 0.10);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ── Phase tags (Cap. 4 — Antes/Durante/Después) ── */
.baseia-phase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.baseia-phase-tag.antes {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}
.baseia-phase-tag.durante {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.baseia-phase-tag.despues {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

/* ── Pregunta filtro (Cap. 3 y 4) ── */
.baseia-filter-question {
  background: rgba(99, 149, 237, 0.07);
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  margin: 8px 0 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
}
.baseia-filter-question strong {
  font-style: normal;
}

/* ── Listas con estilo ── */
.baseia-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.baseia-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
}
.baseia-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--navy-300);
}

/* ── Pasos numerados (accion guiada) ── */
.baseia-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.baseia-steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(220, 230, 243, 0.3);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.baseia-steps li:last-child { border-bottom: none; }
.baseia-steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-500), var(--navy-400));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Comparativa antes/despues ── */
.baseia-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.baseia-compare-col {
  padding: 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.baseia-compare-col.before {
  background: rgba(231, 76, 60, 0.05);
  border: 1px solid rgba(231, 76, 60, 0.15);
}
.baseia-compare-col.after {
  background: rgba(44, 182, 125, 0.05);
  border: 1px solid rgba(44, 182, 125, 0.15);
}
.baseia-compare-col strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.baseia-compare-col.before strong { color: #c0392b; }
.baseia-compare-col.after strong { color: #2CB67D; }

/* ── Preguntas de reflexion ── */
.baseia-reflection {
  margin: 16px 0;
}
.baseia-reflection-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(220, 230, 243, 0.3);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.baseia-reflection-item:last-child { border-bottom: none; }
.baseia-reflection-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(196, 150, 66, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
}

/* ── Mini Test ── */
.baseia-test {
  margin: 16px 0;
}
.baseia-test-question {
  padding: 16px 0;
  border-bottom: 1px solid rgba(220, 230, 243, 0.3);
}
.baseia-test-question:last-child { border-bottom: none; }
.baseia-test-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}
.baseia-test-q-num {
  color: var(--navy-500);
  flex-shrink: 0;
}
.baseia-test-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 24px;
}
.baseia-test-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--navy-100);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.25s;
  background: #fff;
  user-select: none;
}
.baseia-test-opt:hover {
  border-color: var(--navy-300);
  background: var(--navy-50);
}
.baseia-test-opt.selected {
  border-color: var(--navy-400);
  background: rgba(74, 122, 184, 0.06);
  color: var(--ink);
  font-weight: 500;
}
.baseia-test-opt.correct {
  border-color: #2CB67D;
  background: rgba(44, 182, 125, 0.08);
  color: #1a8f5e;
}
.baseia-test-opt.incorrect {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
  color: #c0392b;
  opacity: 0.7;
}
.baseia-test-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--navy-200);
  flex-shrink: 0;
  transition: all 0.25s;
  position: relative;
}
.baseia-test-opt.selected .baseia-test-radio {
  border-color: var(--navy-500);
}
.baseia-test-opt.selected .baseia-test-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--navy-500);
}
.baseia-test-opt.correct .baseia-test-radio {
  border-color: #2CB67D;
}
.baseia-test-opt.correct .baseia-test-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #2CB67D;
}
.baseia-test-feedback {
  display: none;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin-left: 24px;
}
.baseia-test-feedback.show { display: block; }
.baseia-test-feedback.correct {
  background: rgba(44, 182, 125, 0.08);
  color: #1a8f5e;
}
.baseia-test-feedback.incorrect {
  background: rgba(231, 76, 60, 0.05);
  color: #c0392b;
}

/* Boton verificar test */
.baseia-test-submit {
  margin-top: 20px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.baseia-test-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 52, 96, 0.2);
}
.baseia-test-result {
  display: none;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.baseia-test-result.show { display: block; }
.baseia-test-result.good {
  background: rgba(44, 182, 125, 0.08);
  border: 1px solid rgba(44, 182, 125, 0.2);
  color: #1a8f5e;
}
.baseia-test-result.needs-work {
  background: rgba(196, 150, 66, 0.08);
  border: 1px solid rgba(196, 150, 66, 0.2);
  color: #96700a;
}

/* ── Cierre del capitulo ── */
.baseia-cierre-key {
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-50), rgba(220, 230, 243, 0.3));
  border: 1px solid var(--navy-200);
  margin: 16px 0;
  text-align: center;
}
.baseia-cierre-key p {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  color: var(--navy-700);
  font-style: italic;
  line-height: 1.6;
}
.baseia-next-chapter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--navy-100);
  margin-top: 16px;
  transition: all 0.3s;
  cursor: default;
}
.baseia-next-chapter.locked {
  opacity: 0.6;
}
.baseia-next-label {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
}
.baseia-next-title {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 2px;
}
.baseia-next-arrow {
  width: 20px;
  height: 20px;
  color: var(--navy-400);
}

/* ── Ejercicio interactivo: clasificacion ── */
.baseia-exercise {
  margin: 16px 0;
}
.baseia-exercise-scenario {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--navy-100);
  margin-bottom: 10px;
  transition: all 0.3s;
}
.baseia-exercise-scenario p {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}
.baseia-exercise-btns {
  display: flex;
  gap: 8px;
}
.baseia-exercise-btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--navy-200);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink-soft);
}
.baseia-exercise-btn:hover {
  border-color: var(--navy-400);
  color: var(--navy-600);
}
.baseia-exercise-btn.good-use { border-color: rgba(44, 182, 125, 0.3); }
.baseia-exercise-btn.good-use:hover {
  background: rgba(44, 182, 125, 0.06);
  border-color: #2CB67D;
  color: #1a8f5e;
}
.baseia-exercise-btn.bad-use { border-color: rgba(231, 76, 60, 0.2); }
.baseia-exercise-btn.bad-use:hover {
  background: rgba(231, 76, 60, 0.04);
  border-color: #e74c3c;
  color: #c0392b;
}
.baseia-exercise-feedback {
  display: none;
  font-size: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.6;
}
.baseia-exercise-feedback.show { display: block; }
.baseia-exercise-feedback.correct {
  background: rgba(44, 182, 125, 0.06);
  color: #1a8f5e;
}
.baseia-exercise-feedback.incorrect {
  background: rgba(231, 76, 60, 0.04);
  color: #c0392b;
}
.baseia-exercise-scenario.answered {
  opacity: 0.85;
  pointer-events: none;
}
.baseia-exercise-scenario.answered.correct-answer {
  border-color: rgba(44, 182, 125, 0.3);
}
.baseia-exercise-scenario.answered.incorrect-answer {
  border-color: rgba(231, 76, 60, 0.2);
}

/* ── Scroll-to-top FAB ── */
.baseia-scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--navy-200);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  color: var(--navy-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 0;
}
.baseia-scroll-top:hover {
  background: #fff;
  border-color: var(--navy-300);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.baseia-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Teaser Base IA (homepage) ── */
.baseia-teaser {
  padding: 64px 32px;
  background: #fff;
  text-align: center;
}
.baseia-teaser h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.baseia-teaser-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.baseia-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft, #5A6577);
  background: #fff;
  border: 1px solid var(--navy-100, #E1E9F4);
  border-radius: 20px;
  padding: 6px 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.baseia-teaser-badge:hover {
  border-color: var(--navy-300);
  transform: translateY(-1px);
}
.baseia-teaser-badge svg {
  stroke: var(--navy-500, #3A5F8A);
  flex-shrink: 0;
}

/* Dark mode — teaser homepage */
[data-theme="dark"] .baseia-teaser {
  background: #0D1117;
}
[data-theme="dark"] .baseia-teaser h2 {
  color: #E8EDF2;
}
[data-theme="dark"] .baseia-teaser-badge {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #9CA3AF;
}

/* ── LinkedIn Share CTA inline (entre bloques) ── */
.baseia-share-cta {
  text-align: center; margin: 40px 0; padding: 32px 24px;
  border: 1px solid var(--navy-100); border-radius: 14px;
  background: var(--navy-50);
}
.baseia-share-cta h3 {
  font-family: 'DM Serif Display', serif; font-size: 17px;
  color: var(--navy-800); margin-bottom: 6px;
}
.baseia-share-cta p {
  font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.65;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.baseia-share-cta .share-clipboard-nota { color: var(--ink-faint); }
.baseia-share-cta .share-clipboard-nota svg { stroke: var(--ink-faint); }
[data-theme="dark"] .baseia-share-cta {
  background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .baseia-share-cta h3 { color: #fff; }
[data-theme="dark"] .baseia-share-cta p { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════
   CLOSURE PANELS — Mensajes de cierre de bloque
   ═══════════════════════════════════════════ */

/* ── Panel base ── */
.baseia-closure {
  position: relative;
  overflow: hidden;
  margin: 40px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fffe 0%, #ffffff 60%, #f0faf8 100%);
  border: 1px solid rgba(22, 160, 134, 0.12);
  box-shadow: 0 6px 24px rgba(22, 160, 134, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  padding: 40px 32px;
  opacity: 0;
  transform: translateY(20px);
  background-size: 200% 200%;
  animation: bcSlideIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
             bcGradientShift 8s ease-in-out 1s infinite alternate;
}
@keyframes bcSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Staggered entry sequence ── */
.bc-seq {
  opacity: 0;
  transform: translateY(10px);
  animation: bcSeqIn 400ms ease-out forwards;
}
[data-seq="1"] { animation-delay: 200ms; }
[data-seq="2"] { animation-delay: 350ms; }
[data-seq="3"] { animation-delay: 450ms; }
[data-seq="4"] { animation-delay: 550ms; }
[data-seq="5"] { animation-delay: 650ms; }
[data-seq="6"] { animation-delay: 800ms; }
@keyframes bcSeqIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Panel entry glow ── */
.baseia-closure::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: transparent;
  opacity: 0;
  z-index: -1;
  animation: bcGlowPulse 1.8s ease-out 300ms forwards;
}
@keyframes bcGlowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 160, 134, 0); opacity: 0; }
  30%  { box-shadow: 0 0 20px 4px rgba(22, 160, 134, 0.15); opacity: 1; }
  70%  { box-shadow: 0 0 30px 8px rgba(22, 160, 134, 0.08); opacity: 1; }
  100% { box-shadow: 0 0 0 0 rgba(22, 160, 134, 0); opacity: 0; }
}

/* ── Top border sweep (light ray) ── */
.baseia-closure::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #16A086, transparent);
  border-radius: 2px;
  opacity: 0;
  animation: bcBorderSweep 1s ease-in-out 400ms forwards;
}
@keyframes bcBorderSweep {
  0%   { left: -60px; opacity: 0; }
  20%  { opacity: 0.7; }
  100% { left: calc(100% + 60px); opacity: 0; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .baseia-closure,
  .bc-seq {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .baseia-closure::before,
  .baseia-closure::after { animation: none; display: none; }
  .bc-badge-ring, .bc-badge-check { stroke-dashoffset: 0 !important; animation: none; }
  .bc-badge-outer { animation: none; }
  .bc-badge-inner { opacity: 1; animation: none; }
  .bc-badge-glow { opacity: 1; animation: none; }
  .bc-progress-fill { transition: none !important; }
  .bc-progress-fill--shimmer::after { display: none; }
  .baseia-closure,
  .baseia-closure--final { background-size: 100% !important; }
  .bc-sparkle { display: none; }
  .baseia-closure-btn-primary { animation: none; opacity: 1; transform: none; }
}

/* ── Icon: Achievement badge (all panels) ── */
.bc-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 20px;
}
.bc-badge {
  position: relative;
  width: 64px;
  height: 64px;
}
.bc-badge-svg {
  width: 64px;
  height: 64px;
}
/* Larger badge for final panel */
.baseia-closure--final .bc-badge {
  width: 88px;
  height: 88px;
}
.baseia-closure--final .bc-badge-svg {
  width: 88px;
  height: 88px;
}
/* Outer decorative dashed ring — slow rotation */
.bc-badge-outer {
  transform-box: fill-box;
  transform-origin: center;
  animation: bcBadgeRotate 25s linear infinite;
}
@keyframes bcBadgeRotate {
  to { transform: rotate(360deg); }
}
/* Inner subtle fill — gentle pulse */
.bc-badge-inner {
  opacity: 0;
  animation: bcBadgeInnerPulse 3s ease-in-out 1.4s infinite;
}
@keyframes bcBadgeInnerPulse {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}
/* Main ring — draws in */
.bc-badge-ring {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: bcRingDraw 1.2s ease-out 400ms forwards;
}
@keyframes bcRingDraw {
  to { stroke-dashoffset: 0; }
}
/* Checkmark — draws after ring */
.bc-badge-check {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: bcBadgeCheckDraw 500ms ease-out 1200ms forwards;
}
@keyframes bcBadgeCheckDraw {
  to { stroke-dashoffset: 0; }
}
/* Glow behind badge */
.bc-badge-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,160,134,0.15) 0%, transparent 70%);
  opacity: 0;
  animation: bcGlowIn 1s ease-out 800ms forwards;
  z-index: -1;
}
@keyframes bcGlowIn {
  to { opacity: 1; }
}
.bc-final-label {
  display: block;
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16A086;
  opacity: 0;
  animation: bcFadeIn 400ms ease-out 1500ms forwards;
}
@keyframes bcFadeIn {
  to { opacity: 1; }
}

/* ── Progress bar ── */
.bc-progress {
  margin-bottom: 24px;
}
.bc-progress-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint, #8b95a1);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.bc-progress-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(22, 160, 134, 0.08);
  overflow: hidden;
}
.bc-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #16A086, #1ABC9C);
  width: var(--bc-pct, 0%);
  transition: width 800ms cubic-bezier(0.16, 1, 0.3, 1) 500ms;
}
/* shimmer for final panel */
.bc-progress-fill--shimmer {
  position: relative;
}
.bc-progress-fill--shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: bcShimmer 1.5s ease-in-out 1.2s infinite;
}
@keyframes bcShimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ── Titulo ── */
.baseia-closure-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ── Cuerpo del mensaje ── */
.baseia-closure-body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.baseia-closure-body p + p {
  margin-top: 16px;
}

/* ── Logo ── */
.baseia-closure-logo {
  margin: 24px 0 8px;
  text-align: center;
}
.baseia-closure-logo img {
  height: 36px;
  width: auto;
  opacity: 0.85;
}
.baseia-closure-logo-dark {
  display: none;
}

/* ── Decorative dots ── */
.bc-dots {
  text-align: center;
  font-size: 16px;
  letter-spacing: 6px;
  color: rgba(22, 160, 134, 0.35);
  margin: 12px 0 20px;
}

/* ── Botones ── */
.baseia-closure-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.baseia-closure-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.baseia-closure-btn:focus-visible {
  outline: 2px solid #16A086;
  outline-offset: 2px;
}
/* Primary button */
.baseia-closure-btn-primary {
  background: #16A086;
  color: #fff;
  border: none;
}
.baseia-closure-btn-primary:hover {
  background: #128A73;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 160, 134, 0.35);
}
/* Arrow hover animation */
.bc-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.baseia-closure-btn-primary:hover .bc-arrow {
  transform: translateX(4px);
}
/* Secondary button */
.baseia-closure-btn-secondary {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--navy-200, #d1d5db);
}
.baseia-closure-btn-secondary:hover {
  border-color: var(--navy-300, #9ca3af);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ── Button bounce entrance ── */
[data-seq="6"] .baseia-closure-btn-primary {
  animation: bcBtnBounce 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 900ms both;
}
@keyframes bcBtnBounce {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Panel final — special treatment ── */
.baseia-closure--final {
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, #f0faf8 0%, #ffffff 40%, #f4fdfb 100%);
  background-size: 200% 200%;
  animation: bcSlideIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
             bcGradientShift 6s ease-in-out 1s infinite alternate;
  border-color: rgba(22, 160, 134, 0.18);
  box-shadow: 0 8px 32px rgba(22, 160, 134, 0.12), 0 2px 6px rgba(0,0,0,0.04);
}
@keyframes bcGradientShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ── Floating sparkles (final panel) ── */
.bc-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #16A086;
  pointer-events: none;
  opacity: 0;
}
.bc-sparkle--1 { top: 15%; left: 10%; animation: bcSparkle 2.5s ease-in-out 0.5s infinite; }
.bc-sparkle--2 { top: 25%; right: 12%; animation: bcSparkle 3s ease-in-out 1s infinite; background: #1ABC9C; }
.bc-sparkle--3 { bottom: 30%; left: 8%; animation: bcSparkle 2.8s ease-in-out 1.5s infinite; width: 3px; height: 3px; }
.bc-sparkle--4 { bottom: 20%; right: 15%; animation: bcSparkle 3.2s ease-in-out 0.8s infinite; background: #1ABC9C; width: 3px; height: 3px; }
.bc-sparkle--5 { top: 40%; left: 5%; animation: bcSparkle 2.6s ease-in-out 2s infinite; width: 2px; height: 2px; }
.bc-sparkle--6 { top: 60%; right: 7%; animation: bcSparkle 3.5s ease-in-out 0.3s infinite; width: 2px; height: 2px; background: #1ABC9C; }
@keyframes bcSparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  50%      { opacity: 0.5; transform: scale(1.2) translateY(-8px); }
}
.baseia-closure--final .baseia-closure-body {
  max-width: 560px;
  margin: 0 auto;
}
.baseia-closure--final .baseia-closure-logo {
  margin: 24px auto 8px;
}
.baseia-closure--final .baseia-closure-actions {
  justify-content: center;
}

/* ── Particles canvas ── */
.bc-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Indicador discreto de bloque completado ── */
.baseia-bloque-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(22, 160, 134, 0.06);
  border: 1px solid rgba(22, 160, 134, 0.15);
  color: #16A086;
  font-size: 13px;
  font-weight: 500;
  margin: 24px 0;
  font-family: 'DM Sans', sans-serif;
}

/* ── Dark mode ── */
[data-theme="dark"] .baseia-closure {
  background: linear-gradient(135deg, #1a2530 0%, #1F2933 60%, #1a2e2a 100%);
  border-color: rgba(22, 160, 134, 0.12);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.15);
}
[data-theme="dark"] .baseia-closure--final {
  background: linear-gradient(135deg, #1a2e2a 0%, #1F2933 40%, #1b2b28 100%);
  background-size: 200% 200%;
  border-color: rgba(22, 160, 134, 0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
}
[data-theme="dark"] .bc-sparkle {
  background: rgba(26, 188, 156, 0.6);
}
[data-theme="dark"] .bc-sparkle--2,
[data-theme="dark"] .bc-sparkle--4,
[data-theme="dark"] .bc-sparkle--6 {
  background: rgba(22, 160, 134, 0.5);
}
[data-theme="dark"] .baseia-closure-title {
  color: #E8EDF2;
}
[data-theme="dark"] .baseia-closure-body {
  color: #9CA3AF;
}
[data-theme="dark"] .bc-check-circle {
  background: rgba(22, 160, 134, 0.12);
}
[data-theme="dark"] .bc-progress-track {
  background: rgba(22, 160, 134, 0.1);
}
[data-theme="dark"] .bc-progress-label {
  color: #6B7280;
}
[data-theme="dark"] .bc-badge-glow {
  background: radial-gradient(circle, rgba(22,160,134,0.2) 0%, transparent 70%);
}
[data-theme="dark"] .bc-dots {
  color: rgba(22, 160, 134, 0.25);
}
[data-theme="dark"] .baseia-closure-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(22, 160, 134, 0.25);
}
[data-theme="dark"] .baseia-closure-btn-secondary {
  border-color: rgba(255,255,255,0.07);
  color: #9CA3AF;
}
[data-theme="dark"] .baseia-closure-btn-secondary:hover {
  border-color: rgba(255,255,255,0.15);
  color: #E8EDF2;
}
[data-theme="dark"] .baseia-closure-logo-light {
  display: none;
}
[data-theme="dark"] .baseia-closure-logo-dark {
  display: inline;
}
[data-theme="dark"] .baseia-bloque-done {
  background: rgba(22, 160, 134, 0.08);
  border-color: rgba(22, 160, 134, 0.12);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .baseia-closure {
    padding: 28px 20px;
    margin: 32px 0;
  }
  .baseia-closure--final {
    padding: 36px 20px;
  }
  .bc-badge {
    width: 52px;
    height: 52px;
  }
  .bc-badge-svg {
    width: 52px;
    height: 52px;
  }
  .baseia-closure--final .bc-badge {
    width: 72px;
    height: 72px;
  }
  .baseia-closure--final .bc-badge-svg {
    width: 72px;
    height: 72px;
  }
  .baseia-closure-actions {
    flex-direction: column;
  }
  .baseia-closure-btn {
    text-align: center;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════
   BASE IA — 3-Level Navigation System
   ═══════════════════════════════════════════ */

/* ── Full-bleed: page-header & photo-banner break out of section-inner constraint ── */
/* ── Full-bleed: page-header & photo-banner break out of section-inner constraint ── */
#page-baseia > .section {
  padding: 0;
}
#page-baseia > .section > .section-inner {
  max-width: none;
}
.baseia-level .page-header,
.baseia-level .photo-banner {
  width: 100%;
}
/* L3 chapter content + nav bar: constrain width since section-inner is now uncapped */
#baseia-level-3 .baseia-chapter {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
#baseia-level-3 .baseia-l3-nav {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Level containers ── */
.baseia-level { display: none; }
.baseia-level.baseia-level--active {
  display: block;
  animation: baseiaLevelIn 300ms ease-out;
}
@keyframes baseiaLevelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .baseia-level.baseia-level--active { animation: none; }
}

.baseia-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── Page header integration (blue band) ── */
.baseia-header-compact {
  padding: 80px 32px 40px;
}
/* L2/L3 header inner: match content width (960px) for left-alignment continuity */
.baseia-level .baseia-header-compact .inner {
  max-width: 960px;
  padding-left: 24px;
  padding-right: 24px;
}
/* Larger, bolder eyebrow for phase/chapter location in Base IA headers */
.baseia-header-compact .eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
}
/* Breadcrumb current item — bolder to highlight where you are */
.baseia-breadcrumb--light .baseia-bc-current {
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}
.baseia-header-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 16px;
}
.baseia-header-back:hover { color: #fff; }
.baseia-header-back:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 2px; border-radius: 2px; }

/* Breadcrumb — light variant for blue page-header */
.baseia-breadcrumb--light { padding-top: 0; margin-bottom: 12px; }
.baseia-breadcrumb--light a { color: rgba(255,255,255,0.55); }
.baseia-breadcrumb--light a:hover { color: #fff; }
.baseia-breadcrumb--light .baseia-bc-sep { color: rgba(255,255,255,0.2); }
.baseia-breadcrumb--light .baseia-bc-current { color: rgba(255,255,255,0.75); }

/* L3 meta & section link inside page-header (white tones) */
.page-header .baseia-l3-meta { color: rgba(255,255,255,0.45); }
.page-header .baseia-l3-meta-sep { color: rgba(255,255,255,0.3); }
.page-header .baseia-l3-section-link {
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
}
.page-header .baseia-l3-section-link:hover { color: #fff; }

/* Global progress */
.baseia-l1-progress {
  max-width: 520px;
  margin: 32px auto 0;
  text-align: center;
}
.baseia-l1-progress-label {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  color: #0B0F1A;
  margin-bottom: 6px;
}
.baseia-l1-progress-text {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 10px;
}
.baseia-progress-track {
  height: 10px;
  background: rgba(22,160,134,0.12);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.baseia-progress-track--thin { height: 4px; box-shadow: none; }
.baseia-l1-progress-note {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 8px;
  font-style: italic;
}
.baseia-progress-track-fill {
  height: 100%;
  background: #16A086;
  border-radius: 4px;
  width: 0%;
  transition: width 400ms ease;
}

/* Continue button */
.baseia-continue-btn {
  display: none;
  margin: 20px auto 0;
  padding: 10px 24px;
  background: #16A086;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 200ms ease;
}
.baseia-continue-btn:hover { background: #1ABC9C; }
.baseia-continue-btn:focus-visible { outline: 2px solid #16A086; outline-offset: 2px; }

/* Section cards grid */
.baseia-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 32px auto 48px;
}

/* Section card */
.baseia-section-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: box-shadow 400ms ease, transform 400ms ease, border-color 400ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  animation: baseiaCardGlow 5s ease-in-out infinite;
}
@keyframes baseiaCardGlow {
  0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 0 rgba(22,160,134,0); }
  50%      { box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 12px -2px rgba(22,160,134,0.12); }
}
.baseia-section-card:hover {
  box-shadow: 0 4px 16px rgba(22,160,134,0.10), 0 2px 6px rgba(0,0,0,0.05);
  transform: translateY(-2px);
  border-color: rgba(22,160,134,0.35);
  animation: none;
}
.baseia-section-card:focus-visible { outline: 2px solid #16A086; outline-offset: 2px; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .baseia-section-card { animation: none; }
}

.baseia-sc-badge {
  display: inline-block;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #16A086;
  background: rgba(22,160,134,0.08);
  padding: 2px 10px;
  border-radius: 20px;
}
.baseia-sc-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: #0B0F1A;
  margin-top: 8px;
}
.baseia-sc-desc {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.baseia-sc-meta {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #6B7280;
  margin-top: 12px;
}
.baseia-sc-progress { margin-top: 12px; }
.baseia-sc-progress-text {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: #6B7280;
  margin-bottom: 4px;
}

/* Status indicators on cards */
.baseia-sc-status {
  position: absolute;
  top: 12px;
  right: 12px;
}
.baseia-sc-pulse {
  width: 10px;
  height: 10px;
  background: #16A086;
  border-radius: 50%;
  animation: baseiaPulse 2s infinite;
}
@keyframes baseiaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}
.baseia-sc-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #16A086;
  background: rgba(22,160,134,0.08);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── BREADCRUMB ── */
.baseia-breadcrumb {
  display: flex;
  align-items: center;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  padding: 24px 0 0;
  flex-wrap: wrap;
}
.baseia-breadcrumb a {
  color: #16A086;
  text-decoration: none;
  cursor: pointer;
}
.baseia-breadcrumb a:hover { text-decoration: underline; }
.baseia-breadcrumb a:focus-visible { outline: 2px solid #16A086; outline-offset: 2px; border-radius: 2px; }
.baseia-bc-sep {
  color: #D1D5DB;
  margin: 0 8px;
  user-select: none;
}
.baseia-bc-current { color: #374151; }

/* ── LEVEL 2: Section view ── */

/* Chapter list */
.baseia-chapter-list {
  margin: 16px 0 32px;
}
.baseia-chapter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.baseia-chapter-row:hover {
  background: rgba(22,160,134,0.04);
  border-color: rgba(22,160,134,0.3);
}
.baseia-chapter-row:focus-visible { outline: 2px solid #16A086; outline-offset: 2px; }

/* Status circle */
.baseia-cr-status {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
}
.baseia-cr-status--pending {
  border: 1.5px solid #D1D5DB;
  background: transparent;
}
.baseia-cr-status--inprogress {
  border: 1.5px solid #16A086;
  background: transparent;
  position: relative;
}
.baseia-cr-status--inprogress::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: #16A086;
  border-radius: 50%;
}
.baseia-cr-status--done {
  background: #16A086;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.baseia-cr-info { flex: 1; min-width: 0; }
.baseia-cr-num {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #6B7280;
}
.baseia-cr-title {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0B0F1A;
}
.baseia-cr-time {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #6B7280;
  background: #F3F4F6;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Section navigation at bottom of L2 */
.baseia-section-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid #D1D5DB;
  gap: 16px;
}

/* ── LEVEL 3: Chapter view ── */
.baseia-l3-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #6B7280;
  margin-top: 8px;
}
.baseia-l3-meta-sep { color: #16A086; }

/* Chapter navigation bar */
.baseia-l3-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 32px;
  border-top: 1px solid #D1D5DB;
  margin-top: 48px;
  gap: 16px;
}
.baseia-l3-nav-center {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px 20px;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.baseia-l3-nav-center:hover {
  color: #16A086;
  border-color: rgba(22,160,134,0.4);
  background: rgba(22,160,134,0.04);
  box-shadow: 0 2px 8px rgba(22,160,134,0.08);
}
.baseia-l3-nav-right { text-align: right; }
.baseia-l3-section-done {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: #16A086;
  margin-bottom: 4px;
}

/* (Old L1/L2 back links and hero image removed — now using .baseia-header-back inside page-header and .photo-banner) */

/* ── L3: "Parte de" section link (inside page-header — styled via .page-header .baseia-l3-section-link above) ── */
.baseia-l3-section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.baseia-l3-section-link:hover { text-decoration: underline; }

/* ── L3: Active chapter — remove default chapter spacing ── */
#baseia-level-3 .baseia-chapter.baseia-ch--active {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ── L3: Chapter image — full-bleed like .photo-banner ── */
#baseia-level-3 .baseia-chapter.baseia-ch--active .baseia-chapter-img {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  height: 280px;
  max-height: 280px;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 32px;
}
#baseia-level-3 .baseia-chapter.baseia-ch--active .baseia-chapter-img img {
  max-height: 280px;
  transform: none;
}
#baseia-level-3 .baseia-chapter.baseia-ch--active .baseia-chapter-img:hover img {
  transform: none;
  filter: brightness(1.12) contrast(1.05) saturate(1.1);
}
#baseia-level-3 .baseia-chapter.baseia-ch--active .baseia-chapter-img::after {
  border-radius: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,18,34,0.5) 100%);
}

/* ── Nav buttons — reuse project .btn classes, just override for baseia context ── */
.baseia-section-nav .btn,
.baseia-l3-nav .btn {
  font-size: 13px;
  text-align: left;
  max-width: 320px;
}
.baseia-l3-nav .btn-teal {
  text-align: right;
}

/* Hide chapters in level 3 by default — show only active */
#baseia-level-3 .baseia-chapter { display: none; }
#baseia-level-3 .baseia-chapter.baseia-ch--active { display: block; }
/* Hide chapter header/badge/phase inside L3 — replaced by L3 header */
#baseia-level-3 .baseia-chapter.baseia-ch--active .baseia-chapter-header { display: none; }
/* Hide share CTAs and inter-chapter elements in L3 — they live outside chapter divs */
#baseia-level-3 .baseia-share-cta { display: none; }
#baseia-level-3 > .baseia-closure { display: none; }
#baseia-level-3 > .baseia-bloque-done { display: none; }

/* sr-only utility */
.baseia-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
