/* Catálogo por niveles: misma navegación y lenguaje visual de la Escuela. */
:root {
  --canvas: #657984;
  --ink: #f2f4f2;
  --paper: #e9ece9;
  --panel: #172120;
  --panel-soft: #1d2928;
  --text-dark: #192321;
  --muted: #a9b4b3;
  --line: rgba(255, 255, 255, .16);
  --coral: #c8d0cf;
  --initial: #f0cfb3;
  --intermediate: #9fcddb;
  --advanced: #a5c9a4;
  --pro: #df9377;
  --font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a, button { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }

.site-header, main {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  padding-top: 14px;
}
.nav-shell {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
  color: var(--ink);
  background: rgba(19, 27, 27, .96);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(15, 22, 22, .15);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.brand img { width: 58px; height: 24px; object-fit: contain; }
.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}
.nav-links a {
  color: #cbd2d0;
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--coral); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

main { padding: 24px 0 36px; }
.page-heading {
  padding: clamp(34px, 5vw, 64px) clamp(24px, 5vw, 64px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}
.page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
}
.page-heading > p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
  color: #d7dfdc;
  font-size: clamp(16px, 2vw, 19px);
}

.level-block {
  --accent: var(--initial);
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
  margin-top: 20px;
  overflow: hidden;
  border-radius: 8px;
  scroll-margin-top: 20px;
}
.level-intermedio { --accent: var(--intermediate); }
.level-avanzado { --accent: var(--advanced); }
.level-pro { --accent: var(--pro); }
.level-overview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 4vw, 50px);
  background: var(--panel);
  border-top: 5px solid var(--accent);
}
.level-kicker {
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}
.level-overview h2 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.level-overview > p:not(.level-kicker):not(.includes-previous) {
  max-width: 38ch;
  margin-bottom: 28px;
  color: #c4cecb;
  font-size: 16px;
  line-height: 1.65;
}
.level-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.level-stats span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  padding: 9px 12px;
  color: #d6dedb;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}
.level-stats strong { color: var(--accent); font-size: 18px; }
.includes-previous {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.level-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  align-self: flex-start;
  min-height: 46px;
  margin-top: 26px;
  padding: 10px 17px;
  color: var(--text-dark);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, filter 180ms ease;
}
.level-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

.level-catalog {
  min-width: 0;
  padding: clamp(28px, 4vw, 50px);
  color: var(--text-dark);
  background: var(--paper);
}
.level-catalog h3 {
  margin-bottom: 8px;
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.catalog-intro {
  margin-bottom: 28px;
  color: #4d5a56;
  font-size: 14px;
}
.level-catalog h4 {
  margin: 25px 0 11px;
  color: #44534e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.course-grid > li { min-width: 0; }
.course-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  width: 100%;
  min-height: 61px;
  padding: 13px 14px;
  background: #f8faf8;
  border: 1px solid #d0d9d4;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
.course-row span { min-width: 0; }
.course-row small {
  align-self: center;
  color: #687773;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.course-link { border-color: #aebeba; }
.course-link small { color: #2c5b56; }
.course-link:hover, .course-link:focus-visible { background: #e2eeea; border-color: #6e978c; }
.extras-grid .course-row { background: #eef2ef; }
.page-note {
  margin: 20px 8px 0;
  color: #f2f4f2;
  font-size: 12px;
  line-height: 1.5;
}
:focus-visible { outline: 2px solid #a7ced1; outline-offset: 3px; }

@media (max-width: 960px) {
  .site-header, main { width: min(100% - 24px, 1280px); }
  .nav-shell { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 94px;
    right: 12px;
    left: 12px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(10, 15, 15, .35);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 16px 12px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .level-block { grid-template-columns: 1fr; margin-top: 12px; }
  .level-overview h2 { max-width: 20ch; }
  .level-stats { margin-top: 0; }
  .level-catalog h4 { margin-top: 22px; }
}

@media (max-width: 560px) {
  .site-header { padding-top: 8px; }
  .nav-shell { min-height: 60px; padding: 0 12px; }
  .brand img { width: 52px; }
  .nav-links { top: 78px; }
  main { padding-top: 12px; }
  .page-heading { padding: 32px 24px; }
  .page-heading h1 { font-size: clamp(38px, 11vw, 56px); }
  .level-overview, .level-catalog { padding: 26px 22px; }
  .level-kicker { margin-bottom: 22px; }
  .level-overview h2 { font-size: clamp(31px, 9vw, 42px); }
  .course-grid { grid-template-columns: 1fr; }
  .course-row { min-height: 0; }
  .level-cta { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
