/* =================================================================
   Pulso Music · Home estática
   Mobile first. Sin dependencias externas.
   ================================================================= */

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --turq: #109EAD;          /* medido en el logo: rgb(16,158,173) */
  --turq-bright: #3FC1CE;
  --turq-deep: #07707B;
  --turq-wash: rgba(16, 158, 173, 0.14);
  --cedro: #E39A45;
  --cedro-deep: #9C5A12;

  /* Fondos */
  --ink: #0A1517;
  --ink-deep: #061012;
  --ink-2: #0F1F22;
  --ink-3: #162B2F;
  --ink-4: #22404A;
  --bone: #EEF2F0;
  --bone-2: #E3EAE8;
  --paper: #FFFFFF;

  /* Texto */
  --text: #EAF2F2;
  --muted: #9DB3B5;
  --text-dark: #0A1517;
  --muted-dark: #4A6062;
  --line-dark: rgba(234, 242, 242, 0.12);
  --line-light: #CCD8D6;

  /* Sistema */
  --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4.6vw, 56px);
  --section-y: clamp(72px, 9vw, 136px);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 64px;
  --shadow-card: 0 1px 2px rgba(10, 21, 23, 0.06), 0 18px 40px -22px rgba(10, 21, 23, 0.35);
  --shadow-shot: 0 2px 6px rgba(0, 0, 0, 0.35), 0 28px 60px -28px rgba(0, 0, 0, 0.75);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--ink);
  color-scheme: dark;
  scrollbar-color: var(--ink-4) var(--ink);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--turq);
}

::selection { background: var(--turq); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

button { font: inherit; color: inherit; cursor: pointer; }

a, button, summary, [role="radio"] { touch-action: manipulation; }
button, .btn, summary { -webkit-user-select: none; user-select: none; }

:focus-visible {
  outline: 2px solid var(--turq-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.i { width: 1.15em; height: 1.15em; flex: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--turq); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.accent { color: var(--turq-bright); }

/* ---------- Tipografía ---------- */
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.9vw, 3.75rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h4 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-intro {
  max-width: 54ch;
  color: var(--muted-dark);
  font-size: 1.0625rem;
}
.section-intro a { color: var(--turq-deep); font-weight: 600; }
.section-intro.on-dark { color: var(--muted); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .i { transition: transform 200ms var(--ease-out); }
.btn-lg { min-height: 56px; padding-inline: 1.6em; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.9375rem; }

.btn-primary { background: var(--turq); color: var(--ink); }
.btn-ghost { border-color: rgba(234, 242, 242, 0.32); color: var(--text); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-ink { background: var(--ink); color: var(--text); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600;
  color: var(--turq-deep);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 200ms ease, color 180ms ease;
}
.text-link.on-dark { color: var(--turq-bright); }
.text-link .i { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #17B1C1; }
  .btn-ghost:hover { border-color: var(--text); background: rgba(234, 242, 242, 0.06); }
  .btn-dark:hover, .btn-ink:hover { background: var(--ink-3); }
  .btn:hover .i-end, .text-link:hover .i-end { transform: translateX(3px); }
  .btn:hover .i-down { transform: translateY(2px); }
  .text-link:hover { text-decoration-color: currentColor; }
}

/* ---------- Etiquetas ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}
.tag .i { width: 1.05em; height: 1.05em; }
.tag-level { background: rgba(16, 158, 173, 0.18); color: var(--turq-bright); }
.tag-cedro { background: rgba(227, 154, 69, 0.16); color: var(--cedro); }
.tag-free { background: var(--turq); color: var(--ink); }
.tag-student { border: 1px solid rgba(234, 242, 242, 0.4); color: var(--text); }
.tag-paid { background: var(--text); color: var(--ink); }
.tag-quiet { border: 1px solid var(--line-dark); color: var(--muted); font-size: 0.6875rem; }

/* ================================================================
   CABECERA
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 21, 23, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
}
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: auto; height: 30px; }

.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.link-aula, .header-cta { display: none; }

.link-aula {
  align-items: center; gap: 0.5em;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 8px 10px; border-radius: 10px;
  transition: color 160ms ease;
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(234, 242, 242, 0.22);
  background: transparent;
  font-size: 0.9375rem; font-weight: 600;
  transition: transform 140ms var(--ease-out), border-color 160ms ease;
}
.menu-toggle:active { transform: scale(0.96); }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

.menu-panel {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0;
  background: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out);
}
.menu-panel.is-open { opacity: 1; transform: none; }
.menu-nav {
  display: flex; flex-direction: column;
  padding-top: 20px; padding-bottom: calc(32px + env(safe-area-inset-bottom));
}
.menu-nav > a {
  font-size: 2rem; font-weight: 750; letter-spacing: -0.03em;
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}
.menu-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.menu-extra .btn { width: 100%; }
.menu-small { color: var(--muted); padding: 6px 0; font-weight: 500; }
body.menu-open { overflow: hidden; }

@media (hover: hover) and (pointer: fine) {
  .link-aula:hover { color: var(--text); }
  .nav-desktop a:hover { color: var(--text); }
  .menu-toggle:hover { border-color: var(--text); }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top));
  padding-top: clamp(24px, 4.5vh, 64px);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(16, 158, 173, 0.13), transparent 70%),
    var(--ink);
}

/* Columna de texto (.hero-main) y columna de la vista del aula con los
   cursos (.hero-side). En una sola columna, .hero-side se disuelve para
   poder ordenar los cursos antes que la vista desde 768. */
.hero-grid {
  display: grid; gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main" "demo" "tickets";
}
.hero-main { grid-area: main; display: grid; gap: 24px; }
.hero-side { display: contents; }
.hero-tickets { grid-area: tickets; }
.aula-demo { grid-area: demo; margin-top: 18px; }

.hero-title {
  font-size: clamp(2.6rem, 1.45rem + 4.4vw, 5.75rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 15ch;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
  color: #C9D7D8;
  max-width: 54ch;
}

.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-actions .btn { width: 100%; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--turq); flex: none;
}
.hero-facts strong { color: var(--text); font-weight: 700; }

/* Tickets de curso en el hero (desde 768) */
.hero-tickets { display: none; }
.ticket {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "num name price arrow" "num meta meta arrow";
  align-items: center; column-gap: 16px; row-gap: 2px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  text-decoration: none;
  transition: transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.ticket:active { transform: scale(0.985); }
.ticket-frets {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--turq-wash);
  color: var(--turq-bright);
  font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em;
  grid-area: num;
}
.ticket-andina .ticket-frets { background: rgba(227, 154, 69, 0.14); color: var(--cedro); }
.ticket-main { display: contents; }
.ticket-name { grid-area: name; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.015em; }
.ticket-meta { grid-area: meta; color: var(--muted); font-size: 0.875rem; }
.ticket-price { grid-area: price; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; white-space: nowrap; }
.ticket-arrow { grid-area: arrow; color: var(--muted); transition: transform 200ms var(--ease-out), color 200ms ease; }

@media (hover: hover) and (pointer: fine) {
  .ticket:hover { transform: translateY(-2px); border-color: rgba(16, 158, 173, 0.6); background: #112427; }
  .ticket:hover .ticket-arrow { transform: translateX(3px); color: var(--turq-bright); }
  .ticket-andina:hover { border-color: rgba(227, 154, 69, 0.55); }
  .ticket-andina:hover .ticket-arrow { color: var(--cedro); }
}

.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;
}

/* ---------- Vista animada del aula (hero) ----------
   Ventana de vidrio con el aula recreada en HTML y SVG. Dentro de la
   ventana todo se mide en --u (1 % de su ancho), así la interfaz escala
   entera y el cursor cae siempre en el mismo sitio. La animación es CSS,
   solo transform y opacity, en un ciclo de 20 s. Sin la clase .is-live
   (sin JavaScript o con movimiento reducido) queda un fotograma fijo:
   la lección con el reproductor. */
.aula-demo { position: relative; min-width: 0; container: demo / inline-size; }
.aula-stage { position: relative; }
.aw-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.aula-glow {
  position: absolute; inset: -16% -10% -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 50% at 62% 44%, rgba(16, 158, 173, 0.30), transparent 72%),
    radial-gradient(30% 32% at 26% 74%, rgba(227, 154, 69, 0.13), transparent 70%);
}
.aula-frame {
  position: relative; z-index: 1;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(234, 242, 242, 0.14), rgba(234, 242, 242, 0.035) 40%, rgba(16, 158, 173, 0.08));
  border: 1px solid rgba(234, 242, 242, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 44px 90px -40px rgba(0, 0, 0, 0.9),
    0 0 70px -24px rgba(16, 158, 173, 0.45);
}
.aula-win {
  container: win / inline-size;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1.7;
  border-radius: 15px;
  background: #0B181B;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.aula-sheen {
  position: absolute; inset: 8px; z-index: 2;
  border-radius: 15px; overflow: hidden; pointer-events: none;
}
.aula-sheen::before {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -45%; width: 32%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.05) 58%, transparent);
  transform: translateX(0) rotate(8deg);
  opacity: 0;
}

/* Etiquetas sobre el marco */
.aula-tags { position: absolute; top: -12px; left: 20px; z-index: 3; height: 24px; }
.aula-tag {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 24px; padding: 0 11px;
  border-radius: 999px;
  background: rgba(10, 21, 23, 0.94);
  border: 1px solid rgba(234, 242, 242, 0.16);
  color: var(--muted);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
}
.aula-tag b { color: var(--turq-bright); font-weight: 700; }
.aula-tag.t3 { opacity: 1; }

.aula-stage { margin-bottom: 16px; }
.aula-foot {
  position: absolute; left: 20px; right: 20px; bottom: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 32px; /* el alto del botón de pausa, que aparece con JavaScript */
  pointer-events: none;
}
.aula-foot > * { pointer-events: auto; }
.aula-note {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 28px; padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 21, 23, 0.94);
  border: 1px solid rgba(234, 242, 242, 0.16);
  color: var(--muted);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.aula-note::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--turq-bright); box-shadow: 0 0 8px rgba(63, 193, 206, 0.8);
}
.aula-pause {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; padding: 0 13px 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(234, 242, 242, 0.24);
  background: rgba(10, 21, 23, 0.94);
  color: var(--text);
  font-size: 0.8125rem; font-weight: 600;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), border-color 180ms ease;
}
.aula-pause[hidden] { display: none; }
.aula-pause .i { width: 1em; height: 1em; }
.aula-pause .i-play { display: none; }
.aula-pause.is-off .i-play { display: block; }
.aula-pause.is-off .i-pause { display: none; }
.aula-pause:active { transform: scale(0.96); }
@media (pointer: coarse) { .aula-pause { min-height: 40px; } }
@media (hover: hover) and (pointer: fine) {
  .aula-pause:hover { border-color: var(--text); }
}

/* Interfaz dentro de la ventana */
.aw {
  --u: 1cqw;
  --s2: calc(17 * var(--u));      /* cuánto baja la lista de bloques */
  --h2: calc(37.2 * var(--u));    /* alto de las 6 lecciones que se despliegan */
  position: absolute; inset: 0;
  font-size: calc(2.2 * var(--u));
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text);
  -webkit-user-select: none; user-select: none;
}
.aw svg { width: 1.2em; height: 1.2em; flex: none; display: block; }
.aw b { font-weight: 700; }
.aw small { display: block; color: #8DA4A6; font-size: calc(1.55 * var(--u)); margin-top: calc(0.3 * var(--u)); }

.sc {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #0B181B;
  opacity: 0;
}
.sc3 { opacity: 1; }
.sc1 { flex-direction: row; }
/* Con JavaScript, mientras la animación espera a que cargue la página,
   se ve el mismo fotograma con el que arranca: el panel de cursos. */
.is-ready .sc1, .is-ready .aula-tag.t1 { opacity: 1; }
.is-ready .sc3, .is-ready .aula-tag.t3 { opacity: 0; }

.aw-top {
  flex: none;
  display: flex; align-items: center; gap: calc(1.6 * var(--u));
  height: calc(7 * var(--u));
  padding: 0 calc(3 * var(--u));
  background: #0A1517;
  border-bottom: 1px solid rgba(234, 242, 242, 0.07);
  color: var(--muted);
}
.aw-top b { color: var(--text); font-size: calc(2.1 * var(--u)); letter-spacing: 0.03em; }
.aw-body { flex: 1; display: flex; min-height: 0; }

.aw-side {
  flex: none;
  display: flex; flex-direction: column;
  width: calc(27 * var(--u));
  padding: calc(3 * var(--u)) calc(2 * var(--u));
  background: #081315;
  border-right: 1px solid rgba(234, 242, 242, 0.06);
  overflow: hidden;
}
.aw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 1 · Panel de cursos */
.aw-brand {
  color: var(--turq-bright);
  font-size: calc(2.5 * var(--u)); font-weight: 800; letter-spacing: -0.02em;
  padding: calc(0.4 * var(--u)) calc(1.4 * var(--u)) calc(3.6 * var(--u));
}
.aw-nav li {
  display: flex; align-items: center; gap: calc(1.4 * var(--u));
  padding: calc(1.4 * var(--u)) calc(1.4 * var(--u));
  border-radius: calc(1.2 * var(--u));
  color: #A9BDBF; font-weight: 500;
}
.aw-nav li.on { background: rgba(234, 242, 242, 0.07); color: var(--turq-bright); }
.aw-explore {
  margin-top: auto;
  display: flex; align-items: center; gap: calc(1 * var(--u));
  padding: calc(1.4 * var(--u));
  font-size: calc(1.95 * var(--u)); font-weight: 500;
}
.s1-main { padding: calc(4.6 * var(--u)) calc(4.6 * var(--u)); gap: calc(2.3 * var(--u)); }
.aw-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: calc(2.3 * var(--u)); }
.aw-more { color: var(--turq-bright); font-size: calc(1.8 * var(--u)); font-weight: 500; }
.aw-course {
  position: relative;
  display: flex; align-items: center; gap: calc(2.6 * var(--u));
  padding: calc(1.4 * var(--u));
  border-radius: calc(1.6 * var(--u));
  background: #102226;
  border: 1px solid rgba(234, 242, 242, 0.07);
}
.aw-course::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(63, 193, 206, 0.7);
  background: rgba(16, 158, 173, 0.08);
  opacity: 0;
}
.aw-thumb {
  flex: none; display: block;
  width: calc(27 * var(--u)); aspect-ratio: 16 / 9;
  border-radius: calc(1 * var(--u)); overflow: hidden;
}
.aw-thumb svg { width: 100%; height: 100%; }
.aw-ctext { min-width: 0; }
.aw-ctext b { display: block; font-size: calc(2.15 * var(--u)); letter-spacing: 0.02em; }

/* 2 · Bloques y lecciones */
.l-view {
  position: relative; flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}
.l-inner { padding: calc(2.6 * var(--u)) calc(4 * var(--u)); }
.l-meta { color: #8DA4A6; font-size: calc(1.8 * var(--u)); margin-bottom: calc(1.6 * var(--u)); }
.l-row {
  position: relative;
  display: flex; align-items: center; gap: calc(1.6 * var(--u));
  height: calc(5.6 * var(--u));
  padding: 0 calc(1.4 * var(--u));
  border-bottom: 1px solid rgba(234, 242, 242, 0.06);
  background: #0B181B;
  font-size: calc(1.9 * var(--u)); font-weight: 600; letter-spacing: 0.03em;
  color: #C9D7D8;
}
.l-row span, .l-les b, .s-blk span, .s-group {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.l-row::after, .l-les::after {
  content: ""; position: absolute; inset: 0;
  border-radius: calc(1 * var(--u));
  background: rgba(16, 158, 173, 0.13);
  box-shadow: inset 0 0 0 1px rgba(63, 193, 206, 0.45);
  opacity: 0;
}
.l-dot {
  position: relative; flex: none;
  width: calc(1.8 * var(--u)); height: calc(1.8 * var(--u));
  border-radius: 50%;
  border: 1.5px solid rgba(234, 242, 242, 0.35);
}
.l-dot::after {
  content: ""; position: absolute; inset: 22%;
  border-radius: 50%; background: var(--turq-bright);
  opacity: 0;
}
.l-chev { margin-left: auto; color: #8DA4A6; }
.l-lessons { position: relative; z-index: 0; padding-left: calc(3.4 * var(--u)); opacity: 0; }
.l-les {
  position: relative;
  display: flex; align-items: flex-start; gap: calc(1.4 * var(--u));
  height: calc(6.2 * var(--u));
  padding: calc(1 * var(--u)) calc(1.4 * var(--u));
  color: #C9D7D8;
  font-size: calc(1.95 * var(--u));
}
.l-les svg { color: #8DA4A6; margin-top: 0.05em; }
.l-les > span { min-width: 0; display: flex; flex-direction: column; }
.l-les b { font-weight: 500; }
.l-after { position: relative; z-index: 1; background: #0B181B; transform: translateY(calc(var(--h2) * -1)); }

/* 3 · Lección con reproductor */
.s3-side, .s4-side { width: calc(29 * var(--u)); padding: calc(2.4 * var(--u)) calc(1.6 * var(--u)); gap: calc(0.4 * var(--u)); }
.s3-side > * { flex: none; }
.s-group {
  color: #8DA4A6;
  font-size: calc(1.55 * var(--u)); font-weight: 600; letter-spacing: 0.05em;
  padding: 0 calc(1.2 * var(--u)) calc(1 * var(--u));
}
.s-les {
  display: flex; gap: calc(1.2 * var(--u));
  padding: calc(1 * var(--u)) calc(1.2 * var(--u));
  border-radius: calc(1 * var(--u));
  color: #B9CACB;
  font-size: calc(1.8 * var(--u));
}
.s-les svg { color: #8DA4A6; }
.s-les > span { min-width: 0; display: flex; flex-direction: column; }
.s-les b {
  font-weight: 500;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.s-les small { font-size: calc(1.4 * var(--u)); }
.s-les.on { background: rgba(234, 242, 242, 0.07); color: var(--text); box-shadow: inset 2px 0 0 var(--turq-bright); }
.s-more {
  margin-top: auto;
  display: flex; align-items: center; gap: calc(1.2 * var(--u));
  padding: calc(1.2 * var(--u));
  border-top: 1px solid rgba(234, 242, 242, 0.06);
  font-size: calc(1.8 * var(--u)); font-weight: 500;
}
.s3-main { padding: calc(2.6 * var(--u)) calc(3.6 * var(--u)); gap: calc(1.8 * var(--u)); }
.s3-title { font-size: calc(2.4 * var(--u)); font-weight: 700; letter-spacing: -0.01em; }
.pv {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(1.2 * var(--u)); overflow: hidden;
  background: #050C0D;
  box-shadow: 0 0 0 1px rgba(234, 242, 242, 0.08);
}
.aw .pv-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-play {
  position: absolute; left: 50%; top: 46%;
  display: grid; place-items: center;
  width: calc(9 * var(--u)); height: calc(9 * var(--u));
  margin: calc(-4.5 * var(--u)) 0 0 calc(-4.5 * var(--u));
  border-radius: 50%;
  background: rgba(16, 158, 173, 0.94);
  color: var(--ink);
  box-shadow: 0 0 0 calc(1.1 * var(--u)) rgba(16, 158, 173, 0.2), 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.5);
}
.aw .pv-play svg { width: calc(3.6 * var(--u)); height: calc(3.6 * var(--u)); margin-left: calc(0.4 * var(--u)); }
.pv-ctrl {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: calc(1.6 * var(--u));
  height: calc(5 * var(--u));
  padding: 0 calc(2 * var(--u));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  font-size: calc(1.7 * var(--u));
}
.pv-pp { position: relative; flex: none; }
.pv-i-pause { position: absolute; inset: 0; opacity: 0; }
.pv-track {
  position: relative; flex: 1;
  height: calc(0.6 * var(--u));
  border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}
.pv-fill {
  position: absolute; inset: 0;
  background: var(--turq-bright);
  transform-origin: left center;
  transform: scaleX(0.12);
}
.s3-nav {
  display: flex; justify-content: space-between;
  color: #C9D7D8; font-size: calc(1.85 * var(--u)); font-weight: 500;
}
.s3-nav span { display: inline-flex; align-items: center; gap: calc(0.6 * var(--u)); }

/* 4 · Material descargable */
.s4-side {
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.s-blk {
  display: flex; align-items: center; gap: calc(1.2 * var(--u));
  flex: none; height: calc(4.1 * var(--u));
  padding: 0 calc(1.2 * var(--u));
  color: #AFC3C4;
  font-size: calc(1.5 * var(--u)); font-weight: 600; letter-spacing: 0.03em;
}
.s-blk .l-dot { width: calc(1.5 * var(--u)); height: calc(1.5 * var(--u)); }
.s4-main { padding: calc(2.6 * var(--u)) calc(3.6 * var(--u)); gap: calc(2 * var(--u)); }
.pdf-view {
  position: relative; flex: 1;
  border-radius: calc(1.2 * var(--u));
  background: radial-gradient(70% 80% at 50% 40%, #183136, #0E1F22);
  box-shadow: inset 0 0 0 1px rgba(234, 242, 242, 0.07);
  overflow: hidden;
}
.pdf-slot {
  position: absolute; left: 50%; top: 50%;
  width: calc(22 * var(--u)); aspect-ratio: 0.707;
  margin: calc(-16.4 * var(--u)) 0 0 calc(-11 * var(--u));
  transform: translate(calc(var(--x) * var(--u)), calc(var(--y) * var(--u))) rotate(var(--r));
}
.pdf-card {
  width: 100%; height: 100%;
  border-radius: calc(0.5 * var(--u));
  background:
    repeating-linear-gradient(transparent 0 calc(2.2 * var(--u)), #E3E9E8 calc(2.2 * var(--u)) calc(2.5 * var(--u))) 12% 26% / 76% 60% no-repeat,
    #FFFFFF;
  box-shadow: 0 calc(1.2 * var(--u)) calc(3.2 * var(--u)) rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.pdf-card img { width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; transition: opacity 400ms ease; }
.pdf-card img.is-loaded { opacity: 1; }
.pdf-open, .pdf-zoom {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 19, 21, 0.88);
  color: #C9D7D8;
}
.pdf-open { top: calc(1.4 * var(--u)); right: calc(1.4 * var(--u)); width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: calc(0.8 * var(--u)); }
.pdf-zoom {
  left: 50%; bottom: calc(1.4 * var(--u));
  gap: calc(1.8 * var(--u));
  padding: calc(0.8 * var(--u)) calc(2 * var(--u));
  border-radius: 999px;
  transform: translateX(-50%);
}
.pdf-dl {
  position: relative; align-self: flex-start;
  display: inline-flex; align-items: center; gap: calc(1 * var(--u));
  padding: calc(1.2 * var(--u)) calc(2.2 * var(--u));
  border-radius: calc(1 * var(--u));
  background: var(--turq); color: var(--ink);
  font-size: calc(1.9 * var(--u)); font-weight: 700;
}
.pdf-dl::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
}

/* Cursor */
.aw-cur {
  /* Puntos donde hace clic, en % de la ventana: curso, bloque, lección, reproducir, PDF y Descargar */
  --c1x: 70%; --c1y: 66%;
  --c2x: 30%; --c2y: 47%;
  --c3x: 26%; --c3y: 76.5%;
  --c4x: 65%; --c4y: 54%;
  --c5x: 47%; --c5y: 40%;
  --c6x: 82%;
  --c7x: 44%; --c7y: 92%;
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
}
.aw .aw-ptr {
  position: absolute; left: 0; top: 0;
  width: calc(2.6 * var(--u)); height: auto; aspect-ratio: 16 / 22;
  transform-origin: 6% 4%;
}
.aw-ring {
  position: absolute; left: calc(-2.2 * var(--u)); top: calc(-2.2 * var(--u));
  width: calc(4.4 * var(--u)); height: calc(4.4 * var(--u));
  border-radius: 50%;
  border: 1.5px solid var(--turq-bright);
  opacity: 0;
}

/* Versión compacta (ventana angosta, sobre todo el celular): sin barras
   laterales, sin cursor y sin la escena de PDF, que entonces no se descargan. */
@container demo (max-width: 479px) {
  .aula-win { aspect-ratio: 1.12; }
  .aw {
    --u: 1.8cqw;
    --s2: calc(24 * var(--u));
  }
  .aw-side, .sc4, .aula-tag.t4, .aw-cur { display: none; }
  .aula-stage { margin-bottom: 0; }
  .aula-foot { position: static; margin-top: 14px; min-height: 40px; }
  .aula-note { letter-spacing: 0.05em; white-space: nowrap; }
  .aula-pause { min-height: 40px; min-width: 40px; padding: 0; justify-content: center; }
  .aula-pause-label {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
  .aw-thumb { width: calc(21 * var(--u)); }
  .s1-main { padding: calc(4 * var(--u)) calc(3.6 * var(--u)); }
  .aw-ctext b { font-size: calc(2 * var(--u)); }
  .l-inner { padding-inline: calc(3 * var(--u)); }
}

/* ---------- Línea de tiempo (20 s) ----------
   0–4,5 s panel de cursos · 4,5–9,5 s bloques y lecciones ·
   9,5–14,5 s lección con reproductor · 14,5–20 s PDF descargables
   Todas las piezas comparten duración, repetición y estado de pausa
   (--aula-play), así que siempre están sincronizadas. */
.aula-demo { --aula-play: running; }
.aula-demo.is-paused { --aula-play: paused; }
.is-live :is(.sc, .aula-tag, .c-andina, .l-inner, .l-after, .l-lessons, .l-chev, .pv-play, .pv-i-play, .pv-i-pause, .pv-fill, .pdf-card, .pdf-dl, .aw-cur, .aw-ptr, .aw-ring),
.is-live :is(.aula-sheen, .c-andina, .l-dot, .l-open, .l-am, .pdf-dl)::before,
.is-live :is(.aula-sheen, .c-andina, .l-dot, .l-open, .l-am, .pdf-dl)::after {
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  animation-play-state: var(--aula-play);
}

.is-live .sc1 { animation-name: aula-s1; }
.is-live .sc2 { animation-name: aula-s2; }
.is-live .sc3 { animation-name: aula-s3; }
.is-live .sc4 { animation-name: aula-s4; }
.is-live .aula-tag.t1 { animation-name: aula-t1; }
.is-live .aula-tag.t2 { animation-name: aula-t2; }
.is-live .aula-tag.t3 { animation-name: aula-t3; }
.is-live .aula-tag.t4 { animation-name: aula-t4; }
.is-live .aula-sheen::before { animation-name: aula-sheen; animation-timing-function: ease-in-out; }

@keyframes aula-s1 {
  0%, 22% { opacity: 1; transform: none; }
  24.5%, 96.5% { opacity: 0; transform: scale(0.985); }
  100% { opacity: 1; transform: none; }
}
@keyframes aula-s2 {
  0%, 22.5% { opacity: 0; transform: translateY(calc(2 * var(--u))); }
  25.5%, 46.5% { opacity: 1; transform: none; }
  49%, 100% { opacity: 0; transform: scale(0.985); }
}
@keyframes aula-s3 {
  0%, 47.5% { opacity: 0; transform: translateY(calc(2 * var(--u))); }
  50.5%, 71% { opacity: 1; transform: none; }
  73.5%, 100% { opacity: 0; transform: scale(0.985); }
}
@keyframes aula-s3-long {
  0%, 47.5% { opacity: 0; transform: translateY(calc(2 * var(--u))); }
  50.5%, 96.5% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.985); }
}
@keyframes aula-s4 {
  0%, 72% { opacity: 0; transform: translateY(calc(2 * var(--u))); }
  75%, 96.5% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.985); }
}
@keyframes aula-t1 {
  0%, 22% { opacity: 1; transform: none; }
  24%, 97% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: none; }
}
@keyframes aula-t2 {
  0%, 23% { opacity: 0; transform: translateY(4px); }
  25.5%, 46.5% { opacity: 1; transform: none; }
  48.5%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes aula-t3 {
  0%, 48% { opacity: 0; transform: translateY(4px); }
  50.5%, 71% { opacity: 1; transform: none; }
  73%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes aula-t3-long {
  0%, 48% { opacity: 0; transform: translateY(4px); }
  50.5%, 96.5% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes aula-t4 {
  0%, 72.5% { opacity: 0; transform: translateY(4px); }
  75%, 96.5% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes aula-sheen {
  0%, 1% { opacity: 0; transform: translateX(0) rotate(8deg); }
  2% { opacity: 1; }
  8% { opacity: 1; transform: translateX(560%) rotate(8deg); }
  8.5%, 100% { opacity: 0; transform: translateX(560%) rotate(8deg); }
}

/* Escena 1: el cursor elige Guitarra andina */
.is-live .c-andina { animation-name: aula-pick; }
.is-live .c-andina::after { animation-name: aula-pick-hl; }
@keyframes aula-pick {
  0%, 17.7% { transform: none; }
  18.3% { transform: scale(0.985); }
  19.2%, 100% { transform: none; }
}
@keyframes aula-pick-hl {
  0%, 10.5% { opacity: 0; }
  12%, 22% { opacity: 1; }
  24%, 100% { opacity: 0; }
}

/* Escena 2: baja por los bloques, vuelve, abre uno y elige una lección */
.is-live .l-inner { animation-name: aula-scroll; }
.is-live .l-after { animation-name: aula-expand; }
.is-live .l-lessons { animation-name: aula-lessons; }
.is-live .l-open .l-chev { animation-name: aula-chev; }
.is-live .l-open .l-dot::after { animation-name: aula-dot; }
.is-live .l-open::after { animation-name: aula-open-hl; }
.is-live .l-am::after { animation-name: aula-am-hl; }
@keyframes aula-scroll {
  0%, 27% { transform: none; }
  32.5%, 34% { transform: translateY(calc(var(--s2) * -1)); }
  37.5%, 100% { transform: none; }
}
@keyframes aula-expand {
  0%, 40.8% { transform: translateY(calc(var(--h2) * -1)); }
  43.4%, 99% { transform: none; }
  100% { transform: translateY(calc(var(--h2) * -1)); }
}
@keyframes aula-lessons {
  0%, 41% { opacity: 0; transform: translateY(calc(-1.5 * var(--u))); }
  43.6%, 99% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes aula-chev {
  0%, 40.6% { transform: none; }
  42.4%, 99% { transform: rotate(180deg); }
  100% { transform: none; }
}
@keyframes aula-dot {
  0%, 40.6% { opacity: 0; }
  41.6%, 99% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes aula-open-hl {
  0%, 38.4% { opacity: 0; }
  39.6%, 41% { opacity: 1; }
  43%, 100% { opacity: 0; }
}
@keyframes aula-am-hl {
  0%, 43.6% { opacity: 0; }
  44.8%, 48% { opacity: 1; }
  49.5%, 100% { opacity: 0; }
}

/* Escena 3: pulsa reproducir y avanza la barra (no se reproduce ningún video) */
.is-live .pv-play { animation-name: aula-play; }
.is-live .pv-i-play { animation-name: aula-icon-out; }
.is-live .pv-i-pause { animation-name: aula-icon-in; }
.is-live .pv-fill { animation-name: aula-fill; }
@keyframes aula-play {
  0%, 54.7% { opacity: 1; transform: none; }
  55.3% { opacity: 1; transform: scale(0.9); }
  57.6%, 99% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 1; transform: none; }
}
@keyframes aula-icon-out {
  0%, 55.4% { opacity: 1; }
  55.8%, 99% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes aula-icon-in {
  0%, 55.4% { opacity: 0; }
  55.8%, 99% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes aula-fill {
  0%, 55.6% { transform: scaleX(0.015); animation-timing-function: linear; }
  73% { transform: scaleX(0.3); }
  99% { transform: scaleX(0.3); }
  100% { transform: scaleX(0.015); }
}

/* Escena 4: entran los PDF, el cursor los recorre y pulsa Descargar */
.is-live .pdf-card { animation-name: aula-card; animation-fill-mode: both; }
.is-live .pdf-slot:nth-child(2) .pdf-card { animation-delay: 0.45s; }
.is-live .pdf-slot:nth-child(3) .pdf-card { animation-delay: 0.9s; }
.is-live .pdf-slot:nth-child(4) .pdf-card { animation-delay: 1.35s; }
.is-live .pdf-dl { animation-name: aula-dl; }
.is-live .pdf-dl::after { animation-name: aula-dl-hl; }
@keyframes aula-card {
  0%, 73% { opacity: 0; transform: translateY(calc(10 * var(--u))) scale(0.94); }
  76.5%, 79% { opacity: 1; transform: none; }
  80.5% { opacity: 1; transform: translateY(calc(-2.8 * var(--u))) scale(1.04); }
  83%, 95% { opacity: 1; transform: none; }
  97.5%, 100% { opacity: 0; transform: none; }
}
@keyframes aula-dl {
  0%, 90.5% { transform: none; }
  91.1% { transform: scale(0.94); }
  92.2%, 100% { transform: none; }
}
@keyframes aula-dl-hl {
  0%, 88.6% { opacity: 0; }
  89.6%, 93.5% { opacity: 1; }
  95%, 100% { opacity: 0; }
}

/* Cursor: recorrido en % de la ventana (la interfaz escala con ella) */
.is-live .aw-cur { animation-name: aula-cur; }
.is-live .aw-ptr { animation-name: aula-press; }
.is-live .aw-ring { animation-name: aula-ring; }
.is-live .aula-stage .aw-ring { animation-timing-function: ease-out; }
@keyframes aula-cur {
  0% { opacity: 0; transform: translate(90%, 104%); }
  3% { opacity: 1; transform: translate(86%, 88%); }
  11%, 19.5% { transform: translate(var(--c1x), var(--c1y)); }
  25%, 27% { transform: translate(62%, 66%); }
  32.5%, 34% { transform: translate(64%, 70%); }
  39%, 41% { transform: translate(var(--c2x), var(--c2y)); }
  44%, 46.5% { transform: translate(var(--c3x), var(--c3y)); }
  53%, 56% { transform: translate(var(--c4x), var(--c4y)); }
  61%, 73% { transform: translate(84%, 86%); }
  78.6% { transform: translate(var(--c5x), var(--c5y)); }
  85.5% { transform: translate(var(--c6x), var(--c5y)); }
  89.4%, 92.5% { transform: translate(var(--c7x), var(--c7y)); }
  95% { opacity: 1; }
  97.5%, 100% { opacity: 0; transform: translate(90%, 104%); }
}
@keyframes aula-press {
  0%, 17.8%, 18.9%, 40.2%, 41.3%, 45.2%, 46.3%, 54.8%, 55.9%, 90.6%, 91.7%, 100% { transform: none; }
  18.3%, 40.7%, 45.7%, 55.3%, 91.1% { transform: scale(0.8); }
}
@keyframes aula-ring {
  0%, 18.2% { opacity: 0; transform: scale(0.4); }
  18.4% { opacity: 0.9; transform: scale(0.4); }
  20.6% { opacity: 0; transform: scale(1.7); }
  20.7%, 40.6% { opacity: 0; transform: scale(0.4); }
  40.8% { opacity: 0.9; transform: scale(0.4); }
  43% { opacity: 0; transform: scale(1.7); }
  43.1%, 45.6% { opacity: 0; transform: scale(0.4); }
  45.8% { opacity: 0.9; transform: scale(0.4); }
  48% { opacity: 0; transform: scale(1.7); }
  48.1%, 55.2% { opacity: 0; transform: scale(0.4); }
  55.4% { opacity: 0.9; transform: scale(0.4); }
  57.6% { opacity: 0; transform: scale(1.7); }
  57.7%, 91% { opacity: 0; transform: scale(0.4); }
  91.2% { opacity: 0.9; transform: scale(0.4); }
  93.4% { opacity: 0; transform: scale(1.7); }
  93.5%, 100% { opacity: 0; transform: scale(0.4); }
}

@container demo (max-width: 479px) {
  .is-live .sc3 { animation-name: aula-s3-long; }
  .is-live .aula-tag.t3 { animation-name: aula-t3-long; }
}

/* Mástil interactivo */
.neck-area { margin-top: auto; padding-top: clamp(20px, 3.5vh, 48px); }
.neck-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.neck-hint { color: var(--muted); font-size: 0.875rem; }
.hint-fine { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hint-fine { display: inline; }
  .hint-touch { display: none; }
}

.sound-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 242, 242, 0.24);
  background: transparent;
  color: var(--text);
  font-size: 0.875rem; font-weight: 600;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.sound-toggle:active { transform: scale(0.96); }
.sound-toggle .wave { display: none; }
.sound-toggle[aria-pressed="true"] { background: var(--turq); border-color: var(--turq); color: var(--ink); }
.sound-toggle[aria-pressed="true"] .wave { display: inline; }
.sound-toggle[aria-pressed="true"] .mute { display: none; }
@media (hover: hover) and (pointer: fine) {
  .sound-toggle:hover { border-color: var(--text); }
}

.neck {
  position: relative;
  height: clamp(130px, 20vh, 250px);
  cursor: crosshair;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.neck { overflow: hidden; }
.neck-svg { width: 100%; height: 100%; }
.nk-rosette circle { fill: none; stroke: #1B353A; stroke-width: 2; }
.nk-rosette .nk-hole { fill: #050C0D; stroke: #22434A; stroke-width: 3; }

.nk-board { fill: url(#nkBoard); }
.nk-inlays circle { fill: #1A3C43; stroke: rgba(63, 193, 206, 0.28); stroke-width: 1.5; }
.nk-frets line { stroke: #3B5A60; stroke-width: 3.5; }
.nk-shadows line { stroke: rgba(0, 0, 0, 0.5); stroke-width: 2.5; }
.nk-nut { fill: #CFDCDB; }
.nk-string {
  fill: none;
  stroke: #C3D2D4;
  stroke-linecap: round;
  transition: stroke 600ms ease;
}
.nk-string.wound { stroke: #9FB3B6; }
.nk-string.is-on { stroke: var(--turq-bright); transition-duration: 60ms; stroke-dasharray: none; }

.nk-pulse {
  stroke: var(--turq-bright);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 140 2600;
  stroke-dashoffset: 140;
  opacity: 0;
  animation: pulse-run 2.2s var(--ease-out) 0.5s 1 both;
}
@keyframes pulse-run {
  0% { stroke-dashoffset: 140; opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -1700; opacity: 0; }
}

.nk-mark rect { fill: var(--turq); }
.nk-mark text {
  fill: var(--ink);
  font-family: var(--font);
  font-weight: 800;
  font-size: 17px;
  text-anchor: middle;
  dominant-baseline: central;
}
.nk-mark { animation: mark-fade 2.4s var(--ease-out) forwards; }
@keyframes mark-fade {
  0% { opacity: 0; transform: scale(0.85); }
  8% { opacity: 1; transform: none; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}
.nk-mark { transform-box: fill-box; transform-origin: center; }

/* ================================================================
   SECCIONES
   ================================================================ */
.section { padding-block: var(--section-y); }
.section-light { background: var(--bone); color: var(--text-dark); color-scheme: light; }
.section-dark { background: var(--ink); }
.section-turq { background: var(--turq); color: var(--ink); }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- Cursos ---------- */
.courses { display: grid; gap: 20px; }

.course {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.course-media {
  background: var(--ink);
  color: var(--text);
}
/* Las dos miniaturas son casi 16:9 (750×422 y 761×424). Comparten el marco de la
   más ancha y se muestran completas (contain): ni se recortan ni se deforman. */
.course-thumb { display: block; aspect-ratio: 761 / 424; background: var(--ink); }
.course-thumb img { width: 100%; height: 100%; object-fit: contain; }
.course-media-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 14px 18px;
}
.course-blocks { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.course-blocks strong { color: var(--text); font-weight: 800; font-size: 1.125rem; margin-right: 2px; }

.course-body {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 20px 24px;
  flex: 1;
}
.course-for { color: var(--muted-dark); }

.course-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.course-facts > div { padding: 12px 10px 12px 0; }
.course-facts > div:nth-child(2) { padding-left: 12px; border-left: 1px solid var(--line-light); }
.course-facts > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line-light); }
.course-facts dt { font-size: 0.75rem; color: var(--muted-dark); font-weight: 500; }
.course-facts dd { font-weight: 700; font-size: 0.9375rem; line-height: 1.3; letter-spacing: -0.01em; margin-top: 2px; }

.course-more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 4px 0;
}
.course-more summary::-webkit-details-marker { display: none; }
.course-more summary .i { color: var(--turq-deep); transition: transform 220ms var(--ease-out); }
.course-more[open] summary .i { transform: rotate(45deg); }

.topic-list { display: grid; gap: 8px; margin-top: 12px; }
.topic-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #263A3C;
}
.topic-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 10px; height: 2px; border-radius: 2px;
  background: var(--turq);
}
.course-andina .topic-list li::before { background: var(--cedro); }
.topic-list strong { font-weight: 650; color: var(--text-dark); }
.includes {
  margin-top: 14px; padding: 12px 14px;
  background: var(--bone);
  border-radius: var(--r-sm);
  font-size: 0.9375rem; color: #263A3C;
}

.course-buy {
  margin-top: auto;
  display: grid; gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}
.price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
}
.price small { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--muted-dark); }
.course-ctas { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.course-ctas .text-link { align-self: center; }

.terms {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.terms li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 500;
  color: #263A3C;
  background: rgba(255, 255, 255, 0.5);
}
.terms li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--turq); }
.all-courses { margin-top: 24px; }

@media (hover: hover) and (pointer: fine) {
  .section-intro a:hover { text-decoration-thickness: 2px; }
}

/* ---------- Método ---------- */
.statement {
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 5.25rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  max-width: 18ch;
  text-wrap: balance;
}
.statement-sub {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 60ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  color: #C2D2D3;
}

.method-grid {
  display: grid; gap: 40px;
  margin-top: clamp(48px, 6vw, 88px);
}

.pillars { display: grid; }
.pillars li {
  display: grid; gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
}
.pillars li:last-child { border-bottom: 1px solid var(--line-dark); }
.pillars .h4 { font-size: 1.375rem; letter-spacing: -0.025em; color: var(--text); }
.pillars p { color: var(--muted); max-width: 46ch; }

/* Demo de tablatura */
.tabdemo {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  align-self: start;
}
.tabdemo-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.tabdemo-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; font-weight: 700; font-size: 0.9375rem; }
.tab-piece { color: var(--muted); font-weight: 500; }

.beat { display: flex; gap: 6px; }
.beat span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-4);
  transition: background-color 90ms linear, transform 120ms var(--ease-out);
}
.beat span.on { background: var(--turq-bright); transform: scale(1.25); }
.beat span.off { opacity: 0.3; }

.tabdemo-stage {
  border-radius: var(--r);
  background: #0B1719;
  overflow: hidden;
}
.tab-svg { width: 100%; height: auto; }
.tab-lines line { stroke: #2A4146; stroke-width: 1.5; }
.tab-fade { fill: url(#tabFade); }
.tab-names text {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
}
.tab-playhead { stroke: var(--turq-bright); stroke-width: 2.5; stroke-linecap: round; }
.tab-bar { stroke: #3A565C; stroke-width: 1.5; }
.tn rect { fill: #1A3034; stroke: #2E4D53; stroke-width: 1; transition: fill 220ms ease, stroke 220ms ease; }
.tn text {
  fill: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill 220ms ease;
}
.tn.bass rect { fill: #1C2A2D; }
.tn.grace text { font-size: 12px; font-weight: 600; fill: var(--muted); }
.tn.hit rect { fill: var(--turq); stroke: var(--turq-bright); transition-duration: 40ms; }
.tn.hit text { fill: var(--ink); transition-duration: 40ms; }

.tabdemo-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 14px;
}
.play-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 12px; border: 0;
  background: var(--turq); color: var(--ink);
  font-weight: 700; font-size: 0.9375rem;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.play-toggle:active { transform: scale(0.96); }
.play-toggle .i-pause { display: none; }
.play-toggle:disabled { opacity: 0.5; cursor: default; }
.play-toggle[aria-pressed="true"] .i-play { display: none; }
.play-toggle[aria-pressed="true"] .i-pause { display: block; }

.speed {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
}
.speed button {
  min-height: 38px; min-width: 56px; padding: 0 10px;
  border: 0; border-radius: 9px;
  background: transparent; color: var(--muted);
  font-weight: 600; font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 180ms ease, color 180ms ease;
}
.speed button[aria-checked="true"] { background: var(--ink-3); color: var(--text); }
.sound-toggle-sm { margin-left: auto; }

@media (hover: hover) and (pointer: fine) {
  .play-toggle:hover { background: #17B1C1; }
  .speed button:hover { color: var(--text); }
}

/* ---------- Inscripción (banda turquesa) ---------- */
.enroll-grid { display: grid; gap: 48px; }
.section-turq .h2 { max-width: 14ch; }
.enroll-text { margin-top: 18px; font-size: 1.1875rem; max-width: 34ch; color: #062A2F; }
.enroll-main .btn { margin-top: 28px; width: 100%; }
.mail-alt { margin-top: 6px; font-size: 0.9375rem; color: #062A2F; }
.mail-alt a { color: inherit; font-weight: 600; }
.wa-number {
  margin-top: 16px;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.enroll-steps .h4 { color: var(--ink); }
.steps { display: grid; margin-top: 14px; }
.steps li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(10, 21, 23, 0.22);
}
.steps li:last-child { border-bottom: 1px solid rgba(10, 21, 23, 0.22); }
.step-n {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--turq-bright);
  font-weight: 800; font-size: 0.9375rem;
}
.steps p { color: #062A2F; padding-top: 5px; }
.steps strong { color: var(--ink); }
.pay-title { margin-top: 32px; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay-list li {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(10, 21, 23, 0.1);
  border: 1px solid rgba(10, 21, 23, 0.18);
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
}
.pay-banks { margin-top: 12px; font-size: 0.9375rem; color: #062A2F; max-width: 44ch; }
.section-turq ::selection { background: var(--ink); color: var(--turq-bright); }
.section-turq :focus-visible { outline-color: var(--ink); }

/* ---------- Apps ---------- */
.section-apps { background: var(--ink); border-top: 1px solid var(--line-dark); }

.access-map {
  display: grid; gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.access { background: var(--ink-2); padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.access dd { color: var(--muted); font-size: 0.9375rem; }
.access dd strong { color: var(--text); font-weight: 650; }

.shot {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: var(--shadow-shot);
  outline: 1px solid rgba(234, 242, 242, 0.08);
  outline-offset: -1px;
  aspect-ratio: 1200 / 630;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
a.shot { position: relative; }

.free-apps { display: grid; gap: 20px; }

.app-feature {
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 80% at 100% 100%, rgba(16, 158, 173, 0.16), transparent 70%),
    var(--ink-2);
  border: 1px solid rgba(16, 158, 173, 0.35);
}
.app-feature .shot { order: -1; }
.app-feature-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.app-feature-text p { color: #C2D2D3; max-width: 44ch; }
.app-feature-text .btn { margin-top: 6px; }

.app-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.app-card .shot { width: 100%; margin-bottom: 6px; }
.app-card p { color: var(--muted); }
.app-card .text-link { margin-top: auto; }

.student-apps {
  margin-top: clamp(40px, 5vw, 72px);
}
.student-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.student-head .h4 { display: inline-flex; align-items: center; gap: 10px; }
.student-head .h4 .i { color: var(--muted); }

.student-grid { display: grid; gap: 14px; }
.mini-app {
  display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center;
}
.mini-app .shot { border-radius: 10px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8); }
.mini-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.mini-app p { color: var(--muted); font-size: 0.875rem; line-height: 1.45; margin-top: 2px; }

.apps-foot {
  display: grid; gap: 20px;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.apps-foot p { color: var(--muted); font-size: 0.9375rem; max-width: 70ch; }
.apps-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

@media (hover: hover) and (pointer: fine) {
  a.shot:hover img { transform: scale(1.025); }
}

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; gap: 32px; }
.faq-head .section-intro { margin-top: 16px; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-child { border-bottom: 1px solid var(--line-light); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  list-style: none; cursor: pointer;
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--turq-deep); transition: transform 220ms var(--ease-out); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted-dark); max-width: 62ch; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--turq-deep); }
}

/* ---------- Aula ---------- */
.aula {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(40px, 5vw, 64px);
}
.aula-inner { display: grid; gap: 22px; align-items: center; }
.aula p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
.aula-actions { display: flex; flex-direction: column; gap: 12px; }
.aula-actions .btn { width: 100%; }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--ink-deep);
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}
.footer-words {
  font-size: clamp(2.25rem, 0.9rem + 5.8vw, 7rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #40686F;
}
.footer-words span { display: block; }
.footer-words .accent { color: var(--turq); }

.footer-grid {
  display: grid; gap: 32px; align-items: start;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.footer-brand img { width: auto; height: 32px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 36ch; font-size: 0.9375rem; }
.footer-brand .footer-author { margin-top: 10px; color: var(--text); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 0.9375rem; }
.footer-title { font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; letter-spacing: 0.02em; }
.footer-col a { text-decoration: none; color: var(--text); }
.footer-col a span { color: var(--muted); white-space: nowrap; }
.footer-col a { overflow-wrap: anywhere; }
/* Redes: dos grupos (escuela y personal). El dueño es una etiqueta pequeña
   con un punto de color; los enlaces van en fila y bajan de línea si no caben. */
.social-groups { display: grid; gap: 14px; }
.social-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.social-owner { flex-basis: 100%; display: flex; align-items: center; gap: 7px; margin: 0; font-size: 0.75rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.social-owner::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--turq); }
.social-group + .social-group .social-owner::before { background: var(--cedro); }
.footer-legal {
  display: grid; gap: 10px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem; color: var(--muted);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a { color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { color: var(--turq-bright); text-decoration: underline; }
  .legal-links a:hover { color: var(--text); text-decoration: underline; }
}

/* ---------- Barra móvil ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  background: rgba(10, 21, 23, 0.97);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform 280ms var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 48px; }
.btn-icon { padding-inline: 16px; }

/* ---------- Botón flotante de WhatsApp ----------
   Oculto hasta que js/main.js le pone .is-visible (después del hero, sin la
   barra móvil ni el pie a la vista). Sin JavaScript no aparece. */
.wa-float {
  position: fixed; z-index: 39;
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1DA851; color: #fff;   /* verde WhatsApp, oscurecido para que el ícono blanco contraste 3:1 */
  box-shadow: 0 0 0 1px rgba(10, 21, 23, 0.10), 0 6px 18px rgba(10, 21, 23, 0.24);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.wa-float.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
}
.wa-float svg { display: block; }
.wa-float:focus-visible { outline-offset: 4px; border-radius: 50%; }
.wa-float.is-visible:active { transform: scale(0.95); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) {
  .wa-float.is-visible:hover { background: #179345; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float.is-visible, .wa-float.is-visible:hover, .wa-float.is-visible:active { transform: none; }
}

/* ================================================================
   BREAKPOINTS
   ================================================================ */
@media (min-width: 560px) {
  .course-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-facts > div:nth-child(3) { grid-column: auto; border-top: 0; padding-left: 12px; border-left: 1px solid var(--line-light); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .enroll-main .btn { width: auto; }
  .course-ctas { flex-direction: row; align-items: center; justify-content: space-between; }
  .student-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .student-grid > li { grid-column: span 2; }
  .student-grid > li:nth-child(-n+2) { grid-column: span 3; }
  .mini-app { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .aula-actions { flex-direction: row; }
  .aula-actions .btn { width: auto; }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .brand img { height: 34px; }
  .hero-tickets { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 640px; }
  .hero-grid { grid-template-areas: "main" "tickets" "demo"; }
  .aula-demo { max-width: 640px; }
  .course-body { padding: 28px; }
  .course-media-top { padding: 16px 24px; }
  .access-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .access .tag { white-space: normal; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand, .footer-social { grid-column: 1 / -1; }
  .social-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .social-group:first-child { grid-column: span 2; }
  .footer-legal { grid-template-columns: auto 1fr; }
  .legal-links { justify-content: flex-end; }
  .footer-words span { display: inline; }
  .tabdemo { padding: 20px; }
}

@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .section-head.split .section-intro { justify-self: end; }
  .courses { grid-template-columns: 1fr 1fr; gap: 24px; }
  .method-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .enroll-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .free-apps { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .app-feature, .app-card { padding: 24px; }
  .app-feature-text {
    display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 10px; align-items: end;
  }
  .app-feature-text .tag, .app-feature-text .h3, .app-feature-text p { grid-column: 1; }
  .app-feature-text .tag { justify-self: start; }
  .app-feature-text .btn { grid-column: 2; grid-row: 2 / span 2; align-self: end; margin: 0; }
  .student-grid { gap: 28px 24px; }
  .apps-foot { grid-template-columns: 1fr auto; align-items: center; }
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .aula-inner { grid-template-columns: 1fr auto; }
  .mobile-bar { display: none; }
}

@media (min-width: 1080px) {
  .student-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; }
  .student-grid > li, .student-grid > li:nth-child(-n+2) { grid-column: auto; }
  .nav-desktop {
    display: flex; align-items: center; gap: 4px;
    margin-left: auto; margin-right: 12px;
  }
  .nav-desktop a {
    padding: 8px 12px; border-radius: 10px;
    color: var(--muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
    transition: color 160ms ease;
  }
  .link-aula, .header-cta { display: inline-flex; }
  .menu-toggle, .menu-panel { display: none; }
  .header-actions { gap: 12px; }

  /* Texto a la izquierda; a la derecha la vista del aula y, debajo, los dos cursos */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    grid-template-areas: "main side";
    column-gap: clamp(40px, 4.6vw, 96px);
    align-items: start;
  }
  .hero-grid { margin-top: auto; } /* centra el bloque entre la cabecera y el mástil cuando sobra alto */
  .hero-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; }
  .hero-title { max-width: none; font-size: clamp(3rem, 0.6rem + 4.1vw, 4.75rem); }
  /* Cortes fijos en tres líneas: así el título no cambia de alto cuando
     llega la fuente Lexend (la de respaldo es más angosta) */
  .hero-title .title-line, .hero-title .accent { display: block; }
  .aula-demo { max-width: none; margin-top: 6px; }
  .hero-tickets { grid-template-columns: 1fr; gap: 10px; max-width: none; }
  .hero-tickets { margin-top: 2px; }
  .hero-tickets .ticket {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "name price arrow" "meta meta meta";
    column-gap: 12px;
    padding: 11px 16px;
  }
  .hero-tickets .ticket-frets, .hero-tickets .ticket-count { display: none; }
  .hero-tickets .ticket-name { font-size: 0.9375rem; min-width: 0; }
  .hero-tickets .ticket-price { font-size: 1rem; }
  .hero-tickets .ticket-meta { font-size: 0.8125rem; }
}

@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.8fr)) minmax(max-content, 0.9fr) minmax(0, 1.35fr); }
  .footer-brand, .footer-social { grid-column: auto; }
  .social-groups { grid-template-columns: 1fr; }
  .social-group:first-child { grid-column: auto; }
}

@media (min-width: 1280px) {
  .hero-tickets { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-tickets .ticket { column-gap: 10px; }
  .hero-tickets .ticket-name { white-space: nowrap; } /* desde 1280 cabe en una línea */
}

@media (min-width: 1600px) {
  :root { --wrap: 1400px; }
  .hero-title { font-size: 4.75rem; }
}

/* Móvil: espacio para la barra inferior */
@media (max-width: 899.98px) {
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .nk-pulse { display: none; }
  .nk-mark { animation: mark-fade-still 2.4s linear forwards !important; animation-duration: 2.4s !important; }
  @keyframes mark-fade-still { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
}
