/* Montserrat forma parte de la guía visual. Archivo local con licencia OFL.
   La fuente variable ofrece pesos reales sin simular negritas. */
@font-face {
  font-family: 'Nodo Montserrat';
  src: url('../fonts/Montserrat-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: 'Nodo Montserrat', 'Segoe UI', Arial, sans-serif;
}

body {
  line-height: 1.65;
}

/* Jerarquía común: títulos compactos, párrafos con aire y ancho natural. */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1, h2 { line-height: 1.12; }
h3 { line-height: 1.25; letter-spacing: -0.02em; }

.hero h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  line-height: 1.06;
  font-weight: 750;
}

.hero-copy > p, .lead { line-height: 1.55; }
.course-card h3 { font-size: 1.375rem; line-height: 1.25; }
.course-card p, .space-row p { font-size: 0.9375rem; line-height: 1.7; }
.course-category, .section-label { font-size: 0.75rem; letter-spacing: 0.1em; }
.course-meta { font-size: 0.8125rem; flex-wrap: wrap; }
.archive-note, .enrollment-note, .footer p, .footer a { font-size: 0.875rem; }
.button, .menu-toggle, input, select { font-family: var(--font); }
.button { line-height: 1.4; }
.header-inner nav { gap: 22px; font-size: 0.8125rem; }
.results-table td { font-variant-numeric: tabular-nums; }

/* Proporción reservada para evitar saltos al cargar las miniaturas. */
.slider-arrow {
  position: absolute;
  top: calc(50% - 34px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: var(--capital);
  color: white;
  font-size: 24px;
  line-height: 1;
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-arrow:hover { background: var(--blue); }
.slider-dots {
  position: absolute;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: max-content;
  max-width: calc(100% - 80px);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--capital);
  border-radius: 30px;
  background: var(--capital);
}
.slider-dots button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.slider-dots button::before {
  content: '';
  width: 9px;
  height: 9px;
  border: 1px solid white;
  border-radius: 50%;
}
.slider-dots button[aria-pressed="true"]::before { background: var(--lime); border-color: var(--lime); }
.slider-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Miniaturas del catálogo. */
.course-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.5rem); }
  .editorial-hero h1 { font-size: clamp(2rem, 8.5vw, 2.75rem); }
  .hero-copy > p, .lead { font-size: 1.125rem; }
  .header-inner nav { font-size: 0.9375rem; gap: 4px; }
  .actions { flex-wrap: wrap; }
}
