:root {
  --cobalt: #002FA7;
  --cobalt-dark: #002077;
  --cobalt-soft: #EEF3FC;
  --pink: #E8508C;
  --gold: #C9A24A;
  --gold-light: #D9B968;
  --ink: #111111;
  --muted: #4A4A4A;
  --border: #D9E1EE;
  --surface: #F7F9FC;
  --white: #FFFFFF;
  --green: #137A4B;
  --green-bg: #ECF8F2;
  --yellow: #9A6700;
  --yellow-bg: #FEF8E8;
  --red: #B4232C;
  --red-bg: #FDF0F1;
  --radius: 6px;
  --max-w: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cobalt);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

.ui-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -2px;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.brand-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--cobalt);
  font-weight: 500;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--cobalt-soft);
  color: var(--cobalt);
  text-decoration: none;
}

.nav-link.active {
  background: var(--cobalt);
  color: var(--white);
  font-weight: 500;
}

/* ---------------- JOURNEY STEPPER (MAÑANA 1) ---------------- */
.journey-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.journey-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  flex: 1;
}

.journey-step {
  position: relative;
  min-width: 0;
}

.journey-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -0.35rem;
  width: 0.7rem;
  height: 1.5px;
  background: var(--border);
  transform: translateY(-50%);
  pointer-events: none;
}

.journey-step.is-completed:not(:last-child)::after {
  background: var(--green);
}

.journey-step-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.journey-step-link:hover {
  background: var(--white);
  border-color: var(--border);
  color: var(--cobalt);
}

.journey-step.is-current .journey-step-link {
  background: var(--white);
  border-color: var(--cobalt);
  color: var(--cobalt);
  box-shadow: 0 2px 8px rgba(0, 47, 167, 0.08);
}

.journey-step.is-completed .journey-step-link {
  color: var(--ink);
}

.journey-step.is-completed.is-current .journey-step-link {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(19, 122, 75, 0.1);
}

.journey-step-dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #BCC7DA;
  background: var(--white);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.journey-step-dot .step-check {
  display: none;
  line-height: 0;
}

.journey-step-dot .step-check .ui-icon {
  width: 13px;
  height: 13px;
  vertical-align: 0;
}

.journey-step.is-current .journey-step-dot {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
}

.journey-step.is-completed .journey-step-dot {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.journey-step.is-completed .journey-step-dot .step-num {
  display: none;
}

.journey-step.is-completed .journey-step-dot .step-check {
  display: inline-flex;
}

.journey-step-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.journey-step-title {
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journey-step.is-current .journey-step-title {
  font-weight: 600;
}

.journey-step-time {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.journey-progress-meta {
  flex-shrink: 0;
}

.journey-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cobalt);
  white-space: nowrap;
}

.journey-progress-pill.all-done {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green);
}

/* ---------------- COVER HERO (PROPUESTA 2) ---------------- */
.cover-hero {
  background: var(--cobalt);
  color: var(--white);
  padding: 4.5rem 1.5rem 3.25rem;
}

.cover-inner, .module-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cover-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.cover-title {
  margin: 0 0 1.4rem;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.accent-bar-pink {
  width: 72px;
  height: 6px;
  background: var(--pink);
  margin: 1rem 0 1.75rem;
}

.cover-subtitle-box {
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.cover-kicker-gold {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.cover-sub-title {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.cover-sub-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  font-weight: 300;
}

.cover-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero-primary {
  background: var(--white);
  color: var(--cobalt);
  padding: 0.78rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-hero-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  padding: 0.78rem 1.4rem;
  border-radius: 4px;
  font-weight: 400;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.cover-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
}

.cover-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px dashed var(--gold-light);
  padding: 0.32rem 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
}

.cover-progress-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.cover-progress-pill.all-done {
  border-style: solid;
  border-color: #7CE0B0;
  background: rgba(19, 122, 75, 0.28);
  color: #FFFFFF;
}

.cover-hero :focus-visible,
.module-hero :focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---------------- MODULE HERO ---------------- */
.module-hero {
  background: var(--cobalt);
  color: var(--white);
  padding: 2.25rem 1.5rem 2rem;
}

.module-hero .cover-eyebrow {
  margin-bottom: 0.65rem;
}

.module-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  font-weight: 300;
  line-height: 1.15;
}

.module-hero .accent-bar-pink {
  margin: 0.85rem 0 1.15rem;
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.52rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.hero-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.hero-action-btn.hero-action-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--cobalt);
  font-weight: 500;
}

.hero-action-btn.hero-action-primary:hover {
  background: #F4F7FD;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.85rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.94);
}

.hero-pill strong {
  color: var(--gold-light);
  font-weight: 500;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.hero-pills + .hero-meta-grid {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.hero-meta-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.hero-meta-item strong {
  color: var(--gold-light);
  font-weight: 500;
}

.module-hero code {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  padding: 0.08em 0.36em;
}

.hero-meta-sublist {
  margin: 0.3rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.hero-meta-sublist li {
  margin-bottom: 0.2rem;
}

/* ---------------- MAIN LAYOUT ---------------- */
.page-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
}

.page-main.has-toc {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.content-column {
  min-width: 0;
}

.toc-sidebar {
  min-width: 0;
}

.toc-sticky {
  position: sticky;
  top: 5.25rem;
  max-height: calc(100vh - 6.25rem);
  overflow-y: auto;
  padding-right: 0.4rem;
}

.toc-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--cobalt);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: block;
  padding: 0.38rem 0.5rem 0.38rem 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
  line-height: 1.35;
  border-radius: 0 4px 4px 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.toc-list a:hover {
  color: var(--cobalt);
  border-left-color: var(--cobalt);
  background: #F4F7FC;
  text-decoration: none;
}

.toc-list a.is-active {
  color: var(--cobalt);
  border-left-color: var(--cobalt);
  background: var(--cobalt-soft);
  font-weight: 500;
}

/* Mobile quick section jump (hidden on desktop) */
.mobile-toc-bar {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cobalt);
  border-radius: var(--radius);
}

.mobile-toc-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.mobile-toc-select {
  width: 100%;
  padding: 0.52rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
}

.toc-progress {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.toc-progress-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.btn-complete-module {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 0.85rem;
  border: 1.5px solid var(--cobalt);
  background: var(--white);
  color: var(--cobalt);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.btn-complete-module:hover {
  background: var(--cobalt-soft);
}

.btn-complete-module.completed {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.btn-complete-module.completed:hover {
  background: #0F643D;
  border-color: #0F643D;
}

.btn-complete-module.just-completed {
  transform: scale(1.02);
}

/* ---------------- EDITORIAL SECTIONS (INDEX) ---------------- */
.editorial-h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 300;
  color: var(--cobalt);
  margin: 0;
  line-height: 1.15;
}

.intro-section, .intro-stage-section, .concepts-stage-section, .vocab-section, .roadmap-section {
  margin-bottom: 4.25rem;
  scroll-margin-top: 5.5rem;
}

.intro-lead {
  max-width: 820px;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

/* ---------------- INTRODUCCIÓN PROYECTABLE (INDEX) ---------------- */
.facilitator-intro-card {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.facilitator-intro-name {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.facilitator-intro-role {
  margin: 0 0 0.7rem;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--cobalt);
}

.facilitator-intro-bio {
  margin: 0;
  max-width: 820px;
  font-size: 0.96rem;
  color: var(--muted);
}

.icebreaker-card {
  border-top: 4px solid var(--gold);
  background: linear-gradient(180deg, #FDFBF7 0%, #FFFFFF 35%);
}

.icebreaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.icebreaker-item {
  padding: 1.35rem 1.35rem 1.45rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cobalt);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.icebreaker-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.icebreaker-q {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.ladder-bridge-card {
  border-top: 3px solid var(--cobalt);
}

.intro-diagram-bridge {
  max-width: 820px;
  margin: 0.25rem 0 1.5rem;
  padding: 0.85rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: #FBF9F4;
  border-radius: 0 4px 4px 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.ladder-steps-strip {
  list-style: none;
  margin: 1.15rem 0 1.35rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.ladder-steps-strip li {
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.ladder-step-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 600;
}

.ladder-steps-strip li strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cobalt);
  line-height: 1.25;
}

.ladder-steps-strip li span:last-child {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.ladder-bridge-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.intro-start-cta {
  margin-top: 2rem;
  padding: 2rem 2.25rem;
  background: var(--cobalt);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.intro-start-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.intro-start-title {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.35;
}

.intro-start-btn {
  white-space: nowrap;
}

.diagram-bridge-card {
  border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, #FBFCFF 0%, #FFFFFF 55%);
}

.diagram-bridge-card h3 {
  margin: 0.15rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cobalt);
}

.diagram-bridge-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.stat-frame {
  border: 1.5px solid var(--cobalt);
  padding: 1.5rem 2rem;
  margin: 2rem 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-col {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--cobalt);
  line-height: 1;
}

.stat-unit {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--cobalt);
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.stat-desc {
  flex: 1;
  min-width: 240px;
  font-size: 0.95rem;
  color: var(--muted);
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.label-cobalt {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.lead-small {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.vocab-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.vocab-head-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cobalt);
  letter-spacing: 0.04em;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.vocab-item {
  display: flex;
  flex-direction: column;
}

.vocab-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cobalt);
}

.vocab-item h3 a {
  color: inherit;
}

.vocab-item p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.vocab-diagram-link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cobalt);
}

.vocab-cta-row {
  margin-top: 1.75rem;
  padding: 1.15rem 1.4rem;
  background: var(--cobalt-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--pink);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.vocab-cta-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 560px;
}

.btn-glossary-cta {
  display: inline-block;
  background: var(--cobalt);
  color: var(--white);
  padding: 0.62rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.btn-glossary-cta:hover {
  background: var(--cobalt-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.roadmap-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.roadmap-hours {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--cobalt);
  font-weight: 500;
}

.module-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.module-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.module-label-row .label-cobalt {
  margin-bottom: 0;
}

.module-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  background: var(--green-bg);
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.module-done-badge .ui-icon {
  width: 12px;
  height: 12px;
  vertical-align: 0;
}

.module-done-badge[hidden] {
  display: none;
}

.module-left h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
}

.module-duration {
  font-size: 0.9rem;
  color: var(--cobalt);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.btn-module {
  display: inline-block;
  background: var(--cobalt);
  color: var(--white);
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-module:hover {
  background: var(--cobalt-dark);
  text-decoration: none;
}

.editorial-ol {
  padding-left: 1.25rem;
  margin: 1rem 0 1.25rem;
}

.editorial-ol li {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.editorial-ol li::marker {
  color: var(--cobalt);
  font-weight: 600;
}

.te-llevas {
  padding-top: 0.75rem;
  border-top: 1.5px solid var(--cobalt);
  font-size: 0.92rem;
}

.te-llevas .label-cobalt {
  display: inline;
  margin-right: 0.75rem;
}

.break-banner {
  text-align: center;
  padding: 0.65rem;
  background: var(--surface);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}

.upcoming-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.upcoming-card h3 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.upcoming-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.instructor-banner {
  background: var(--cobalt);
  color: var(--white);
  padding: 2.75rem 2.25rem;
  border-radius: var(--radius);
}

.instructor-bio {
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 820px;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.instructor-meta {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------------- CONTENT CARDS ---------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 2rem;
  margin-bottom: 1.75rem;
  scroll-margin-top: 5.75rem;
}

.card > hr:last-child {
  display: none;
}

.card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ---------------- PROGRESSIVE DISCLOSURE CARDS ---------------- */
.disclosure-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding: 0.52rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.disclosure-toolbar-info {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.btn-disclosure-master {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.34rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--cobalt);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-disclosure-master:hover {
  background: var(--cobalt-soft);
  border-color: var(--cobalt);
}

.btn-disclosure-master[aria-expanded="true"] .disclosure-chevron {
  transform: rotate(180deg);
}

.toc-disclosure-wrap {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.btn-disclosure-toc {
  width: 100%;
  border-radius: 4px;
  padding: 0.44rem 0.7rem;
}

.disclosure-card {
  padding: 0;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.disclosure-card:not([open]) {
  background: #FAFBFD;
}

.disclosure-card:hover {
  border-color: #B7C7E3;
}

.disclosure-card[open] {
  border-color: #C4D2EA;
}

.disclosure-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.75rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.disclosure-summary::-webkit-details-marker {
  display: none;
}

.disclosure-summary:hover {
  background: #F4F7FC;
}

.disclosure-heading-group {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.disclosure-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.disclosure-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cobalt);
  line-height: 1.25;
}

.disclosure-title-sm {
  font-size: 1.06rem;
  font-weight: 500;
}

.disclosure-action-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--cobalt);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.disclosure-summary:hover .disclosure-action-pill {
  background: var(--cobalt-soft);
  border-color: var(--cobalt);
}

.disclosure-chevron {
  transition: transform 0.18s ease;
}

.disclosure-pill-open {
  display: none;
}

.disclosure-card[open] > .disclosure-summary .disclosure-pill-closed {
  display: none;
}

.disclosure-card[open] > .disclosure-summary .disclosure-pill-open {
  display: inline;
}

.disclosure-card[open] > .disclosure-summary .disclosure-chevron {
  transform: rotate(180deg);
}

.disclosure-body {
  padding: 0.35rem 2rem 1.75rem;
  border-top: 1px solid var(--border);
}

.disclosure-body > :first-child {
  margin-top: 1rem;
}

.disclosure-body > hr:last-child {
  display: none;
}

/* Inline nested disclosure (e.g. Caso 2 Pista paralela opcional) */
.disclosure-inline {
  margin: 1.35rem 0 0.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  scroll-margin-top: 5.75rem;
}

.disclosure-inline > .disclosure-summary {
  padding: 0.95rem 1.25rem;
  background: #FBF9F4;
}

.disclosure-inline > .disclosure-summary:hover {
  background: #F7F2E6;
}

.disclosure-inline > .disclosure-body {
  padding: 0.25rem 1.35rem 1.25rem;
  background: var(--white);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--cobalt);
  line-height: 1.25;
}

.card h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.card h4 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cobalt);
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.widget-intro {
  margin-top: 0;
  color: var(--muted);
}

blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: #FBF9F4;
  color: var(--ink);
  border-radius: 0 4px 4px 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-weight: 600;
  border-bottom: 2px solid var(--cobalt);
}

td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:hover td {
  background: #FAFBFD;
}

/* Code / Prompt cards */
.code-card {
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #F8FAFD;
}

.code-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.9rem;
  background: var(--cobalt-soft);
  border-bottom: 1px solid var(--border);
}

.code-card-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 600;
}

.btn-copy {
  background: var(--cobalt);
  color: var(--white);
  border: none;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--cobalt-dark);
}

.btn-copy.copied {
  background: var(--green);
}

.code-card pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1A233A;
}

code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86em;
  background: var(--cobalt-soft);
  color: var(--cobalt-dark);
  padding: 0.12em 0.35em;
  border-radius: 3px;
}

.code-card pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Downloads strip */
.downloads-card {
  border-top: 3px solid var(--cobalt);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.download-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s;
}

.download-item:hover {
  border-color: var(--cobalt);
  transform: translateY(-2px);
}

.download-badge {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.download-title {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.download-action {
  font-size: 0.82rem;
  color: var(--cobalt);
  font-weight: 500;
  margin-top: auto;
}

/* Interactive Semáforo */
.semaforo-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.sem-tab {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sem-tab:hover:not(.active) {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
}

.sem-green.active { background: var(--green); color: var(--white); border-color: var(--green); }
.sem-yellow.active { background: var(--yellow); color: var(--white); border-color: var(--yellow); }
.sem-red.active { background: var(--red); color: var(--white); border-color: var(--red); }

.sem-panel {
  display: none;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.sem-panel.active { display: block; }
#sem-panel-green { background: var(--green-bg); border-left: 4px solid var(--green); }
#sem-panel-yellow { background: var(--yellow-bg); border-left: 4px solid var(--yellow); }
#sem-panel-red { background: var(--red-bg); border-left: 4px solid var(--red); }

/* ---------------- INTERACTIVE QUIZ ---------------- */
.quiz-section {
  border-top: 4px solid var(--pink);
}

.quiz-note {
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  padding: 0.8rem 1rem;
  border-radius: 4px;
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.quiz-level-filters, .chart-controls {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-pill:hover:not(.active) {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background: var(--cobalt-soft);
}

.filter-pill.active {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
  font-weight: 500;
}

.quiz-scoreboard {
  font-size: 0.9rem;
  color: var(--cobalt);
}

.quiz-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cobalt), var(--pink));
  transition: width 0.25s ease;
}

.quiz-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.1rem;
  background: var(--white);
}

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

.quiz-level-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-weight: 600;
}

.quiz-q-title {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
}

.quiz-stem {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.quiz-options {
  display: grid;
  gap: 0.5rem;
}

.quiz-opt {
  text-align: left;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
}

.quiz-opt:disabled {
  cursor: default;
}

.quiz-opt-letter {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--cobalt);
}

.quiz-opt.is-correct {
  border-color: var(--green);
  background: var(--green-bg);
}

.quiz-opt.is-correct .quiz-opt-letter {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.quiz-opt.is-wrong {
  border-color: var(--red);
  background: var(--red-bg);
}

.quiz-opt.is-wrong .quiz-opt-letter {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.quiz-feedback {
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.quiz-feedback.ok {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  color: #0E5836;
}

.quiz-feedback.err {
  background: var(--red-bg);
  border-left: 3px solid var(--red);
  color: #821820;
}

.quiz-summary {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 2px solid var(--cobalt);
  border-radius: var(--radius);
  background: var(--cobalt-soft);
}

.quiz-summary h3 {
  margin: 0 0 0.5rem;
  color: var(--cobalt);
}

.quiz-footer-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.btn-secondary, .btn-secondary-sm, .btn-primary-sm {
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.btn-secondary {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover,
.btn-secondary-sm:hover {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.btn-primary-sm {
  padding: 0.42rem 0.9rem;
  border: none;
  background: var(--cobalt);
  color: var(--white);
  font-size: 0.85rem;
  transition: background 0.15s;
}

.btn-primary-sm:hover:not(:disabled) {
  background: var(--cobalt-dark);
}

.btn-primary-sm:disabled,
.btn-secondary-sm:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-secondary-sm {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 0.85rem;
  transition: border-color 0.15s, background 0.15s;
}

/* Decision widget (Caso 1) */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.decision-q label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cobalt);
  margin-bottom: 0.4rem;
}

.decision-q select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
}

.decision-result {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--cobalt);
  background: var(--cobalt-soft);
}

.decision-result.warn-red {
  background: var(--red-bg);
  border-left-color: var(--red);
}

/* Timer widget (Caso 1) */
.timer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.timer-box {
  background: var(--surface);
  border: 1.5px solid var(--cobalt);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  text-align: center;
  min-width: 220px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.timer-box.is-running {
  box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.14);
  background: var(--white);
}

.timer-display {
  font-size: 2.3rem;
  font-weight: 500;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.timer-btns, .timer-presets {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.timer-presets {
  margin-top: 0.55rem;
}

.preset-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.preset-btn.active {
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-weight: 600;
}

/* CSV Chart (Caso 2) */
.chart-stage {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}

.csv-details summary {
  cursor: pointer;
  color: var(--cobalt);
  font-weight: 500;
  font-size: 0.92rem;
}

/* Constructor interactivo de Encargo (Módulo 2) */
.encargo-builder {
  border-top: 4px solid var(--cobalt);
}

.encargo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.encargo-presets-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-right: 0.25rem;
}

.encargo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.encargo-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.encargo-field.full-width {
  grid-column: 1 / -1;
}

.encargo-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cobalt);
}

.encargo-field small {
  font-size: 0.8rem;
  color: var(--muted);
}

.encargo-field input,
.encargo-field select,
.encargo-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.encargo-field input:focus,
.encargo-field select:focus,
.encargo-field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}

.encargo-field textarea {
  min-height: 76px;
  resize: vertical;
}

.encargo-output-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.encargo-rule-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--green);
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  padding: 0.45rem 0.75rem;
  border-radius: 0 4px 4px 0;
}

/* Checkboxes */
.interactive-check {
  width: 17px;
  height: 17px;
  accent-color: var(--cobalt);
  vertical-align: middle;
  margin-right: 0.4rem;
  cursor: pointer;
}

/* Block closing & bottom pager */
.block-closing {
  margin-top: 2.5rem;
}

.block-closing-complete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: border-left-color 0.2s, background 0.2s;
}

.block-closing-complete.is-completed {
  border-left-color: var(--green);
  background: var(--green-bg);
}

.block-closing-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.block-closing-complete.is-completed .block-closing-eyebrow {
  color: var(--green);
}

.block-closing-title {
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 500;
}

.btn-complete-bottom {
  width: auto;
  min-width: 225px;
  padding: 0.62rem 1.2rem;
}

.bottom-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pager-btn:hover {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  text-decoration: none;
}

.pager-next {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.pager-next:hover {
  background: var(--cobalt-dark);
  border-color: var(--cobalt-dark);
  color: var(--white);
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 1.4rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--cobalt);
  color: var(--white);
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toc-list li.toc-sub a {
  padding-left: 1.45rem;
  font-size: 0.81rem;
}

/* ---------------- GLOSARIO VISUAL & SVG DIAGRAMS ---------------- */
.glossary-explorer {
  border-top: 4px solid var(--cobalt);
}

.glossary-search-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.75rem;
}

.glossary-search-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.glossary-search-input:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}

.glossary-search-status {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--cobalt);
  min-height: 1.2em;
}

.glossary-filter-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 1.15rem;
}

.diagram-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 0.7rem;
}

.diagram-index-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.diagram-index-chip:hover {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
  transform: translateY(-1px);
}

.diagram-index-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--cobalt);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.diagram-index-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.diagram-index-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.diagram-index-text small {
  font-size: 0.76rem;
  color: var(--muted);
}

.diagrams-section-header {
  margin: 2.5rem 0 1.5rem;
  scroll-margin-top: 5.75rem;
}

.diagram-card,
.diagram-embed-card {
  border-top: 3px solid var(--cobalt);
  scroll-margin-top: 5.5rem;
}

.diagram-embed-card {
  background: linear-gradient(180deg, #FBFCFF 0%, #FFFFFF 36%);
  border-top-color: var(--gold);
}

.diagram-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.diagram-course-badge,
.diagram-glossary-pill {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  border: 1px solid var(--border);
  text-decoration: none !important;
}

.diagram-course-badge:hover,
.diagram-glossary-pill:hover {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}

.diagram-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.diagram-figure {
  margin: 0;
}

.diagram-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.diagram-scroll svg {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
  --fg: #111111;
  --muted: #4A4A4A;
  --line: #B8C6DF;
  --surface: #FFFFFF;
  --accent: #002FA7;
  --accent-ink: #FFFFFF;
  --warm: #C42E6D;
  --s1: #F2F5FC;
  --s2: #E4ECFA;
  --s3: #D0DEF7;
  --s4: #B7CCF3;
  --s5: #99B7EE;
  --font-display: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.diagram-scroll svg text {
  fill: var(--fg);
  font-family: var(--font-body);
}

.diagram-scroll svg .band {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.5;
}

.diagram-scroll svg .band-you {
  fill: var(--accent);
  stroke: var(--accent);
}

.diagram-scroll svg text.on-accent {
  fill: var(--accent-ink);
}

.diagram-scroll svg .ttl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}

.diagram-scroll svg .tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--muted);
  font-weight: 500;
}

.diagram-scroll svg .desc {
  font-size: 15px;
}

.diagram-scroll svg .ex,
.diagram-scroll svg .lbl {
  font-size: 14px;
  fill: var(--muted);
}

.diagram-scroll svg .lbl-warm {
  font-size: 14px;
  fill: var(--warm);
  font-weight: 600;
}

.diagram-scroll svg .ln {
  stroke: var(--fg);
  stroke-width: 2;
  fill: none;
}

.diagram-scroll svg .ln-acc {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
}

.diagram-scroll svg .ln-dash {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 7 5;
}

.diagram-scroll svg .ln-warm {
  stroke: var(--pink);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.diagram-scroll svg .mk-fg { fill: var(--fg); }
.diagram-scroll svg .mk-acc { fill: var(--accent); }
.diagram-scroll svg .mk-warm { fill: var(--pink); }

.diagram-scroll svg .node {
  fill: var(--surface);
  stroke: var(--fg);
  stroke-width: 2;
}

.diagram-scroll svg .node-coord {
  fill: var(--accent);
  stroke: var(--accent);
}

.diagram-scroll svg .node-coord text {
  fill: var(--accent-ink);
}

.diagram-scroll svg .stp {
  stroke: var(--line);
  stroke-width: 1.5;
}

.diagram-scroll svg .st-ttl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.diagram-scroll svg .st-txt {
  font-size: 13.5px;
}

.diagram-scroll svg .st-rev {
  font-size: 13.5px;
  font-weight: 600;
}

.diagram-scroll svg .tools {
  font-size: 13px;
  fill: var(--accent);
  font-weight: 600;
}

.diagram-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.55;
}

.diagram-embed-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.diagram-footer-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cobalt);
}

.diagram-footer-link.secondary {
  color: var(--muted);
}

.diagram-footer-link.secondary:hover {
  color: var(--cobalt);
}

.is-glossary-hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .header-inner {
    padding: 0.6rem 1rem;
    gap: 0.55rem;
  }
  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .nav-link {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.34rem 0.72rem;
  }
  /* Móvil: cada grupo es un acordeón en línea (sin overflow horizontal) */
  .nav-group {
    display: contents;
  }
  .nav-submenu {
    position: static;
    flex: 1 0 100%;
    order: 0;
    min-width: 0;
    box-shadow: none;
    border-radius: var(--radius);
  }
  .journey-inner {
    padding: 0.55rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .journey-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .journey-step:not(:last-child)::after {
    display: none;
  }
  .journey-step-link {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.38rem 0.25rem;
    gap: 0.25rem;
  }
  .journey-step-title {
    font-size: 0.72rem;
    white-space: normal;
    line-height: 1.15;
  }
  .journey-step-title .step-num-prefix {
    display: none;
  }
  .journey-step-time {
    display: none;
  }
  .journey-progress-meta {
    display: flex;
    justify-content: flex-end;
  }
  .module-hero {
    padding: 1.65rem 1rem 1.5rem;
  }
  .hero-meta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }
  .page-main {
    padding: 1.5rem 1rem 3rem;
  }
  .page-main.has-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .toc-sidebar {
    display: none;
  }
  .mobile-toc-bar {
    display: block;
  }
  .card,
  .diagrams-section-header,
  .diagram-card,
  .diagram-embed-card {
    scroll-margin-top: 7.25rem;
  }
  .module-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .card {
    padding: 1.25rem 1rem;
  }
  .disclosure-card {
    padding: 0;
  }
  .disclosure-summary {
    padding: 0.95rem 1rem;
    gap: 0.65rem;
    flex-wrap: wrap;
  }
  .disclosure-title {
    font-size: 1.08rem;
  }
  .disclosure-body {
    padding: 0.25rem 1rem 1.25rem;
  }
  .disclosure-toolbar {
    padding: 0.5rem 0.75rem;
  }
  .block-closing-complete {
    flex-direction: column;
    align-items: stretch;
    padding: 1.1rem;
  }
  .btn-complete-bottom {
    width: 100%;
  }
  .vocab-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .icebreaker-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }
  .ladder-steps-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .facilitator-intro-card {
    padding: 1.2rem 1.15rem;
  }
  .intro-start-cta {
    padding: 1.4rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }
  .intro-start-btn,
  .btn-glossary-cta {
    white-space: normal;
    text-align: center;
  }
}


/* ---------------- MENÚ DÍA 1 / DÍA 2 ---------------- */
.main-nav {
  align-items: center;
}

.nav-group {
  position: relative;
}

.nav-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.nav-group-toggle .disclosure-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.15s;
}

.nav-group.open .nav-group-toggle .disclosure-chevron {
  transform: rotate(180deg);
}

.nav-group-toggle.active {
  background: var(--cobalt);
  color: var(--white);
  font-weight: 500;
}

.nav-submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  min-width: 330px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 32, 119, 0.14);
  z-index: 120;
}

.nav-group.open .nav-submenu {
  display: block;
}

.nav-sublink {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.9rem;
}

.nav-sublink:hover,
.nav-sublink:focus-visible {
  background: var(--cobalt-soft);
  color: var(--cobalt);
  text-decoration: none;
}

.nav-sublink.active {
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--pink);
}

.nav-sub-time {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.day-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--cobalt);
  flex-wrap: wrap;
}

.day-heading-tag {
  background: var(--cobalt);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.day-heading-text {
  color: var(--cobalt-dark);
  font-weight: 500;
}

.check-progress {
  display: inline-block;
  margin: 0.25rem 0 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-size: 0.82rem;
  font-weight: 500;
}

.check-progress.all-done {
  background: var(--green-bg);
  color: var(--green);
}

/* ---------------- CASO 3 · EVALUADOR ---------------- */
.eval-legend {
  margin: 0.5rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  background: var(--surface);
}

.eval-legend summary {
  cursor: pointer;
  color: var(--cobalt);
  font-weight: 500;
}

.eval-total-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.eval-total-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.eval-total-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eval-total-card strong {
  font-size: 2rem;
  line-height: 1.1;
  color: var(--cobalt);
}

.eval-total-of {
  font-size: 0.82rem;
  color: var(--muted);
}

.eval-verdict {
  margin: 0.5rem 0 1rem;
  font-weight: 500;
  color: var(--cobalt-dark);
}

.eval-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eval-q {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.eval-q summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.eval-q-num {
  font-weight: 600;
  color: var(--white);
  background: var(--cobalt);
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  font-size: 0.82rem;
}

.eval-q-title {
  font-size: 0.93rem;
  line-height: 1.35;
}

.eval-q-score {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.eval-q-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.3rem 0.9rem 0.9rem;
}

.eval-tool {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  background: var(--surface);
}

.eval-tool-name {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.88rem;
}

.eval-tool-sub {
  color: var(--cobalt);
  font-weight: 600;
}

.eval-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.eval-field select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  width: 100%;
}

/* ---------------- CASO 4 · SELECTOR DE SKILL ---------------- */
.skill-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.skill-panel[hidden] {
  display: none;
}

.skill-panel ul {
  padding-left: 1.2rem;
}

/* ---------------- CASO 5 · VISOR DE INSUMOS ---------------- */
.insumo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.insumo-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--cobalt);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: var(--white);
}

.insumo-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.insumo-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.insumo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insumo-num {
  font-weight: 600;
  color: var(--pink);
}

.insumo-format {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
}

.insumo-tip summary {
  cursor: pointer;
  color: var(--cobalt);
  font-size: 0.86rem;
  font-weight: 500;
}

.insumo-dl {
  margin-top: auto;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .nav-submenu {
    position: static;
    min-width: 0;
  }
  .insumo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .eval-total-cards,
  .eval-q-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .eval-q summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .eval-q-score {
    grid-column: 1 / -1;
  }
}
