:root {
  --color-crema: #FDFBF7;
  --color-arena: #F1EBDF;
  --color-carbon: #222222;
  --color-azul-tinta: #1E293B;
  --color-borde-fino: #E6E1DA;
  --color-terracotta: #E07A5F;
  /* calibraciones AA sobre crema: boton 3.52:1 (texto 19px bold), texto 4.73:1 */
  --terracotta-boton: #D26746;
  --terracotta-texto: #B85233;
  --color-mostaza: #E9C46A;
  --color-verde-sage: #81B29A;
  --color-texto-suave: #5C564E;
  --font-titulos: 'Outfit', sans-serif;
  --font-cuerpo: 'Sora', sans-serif;
  /* sistema de formas: pills para chips/nav, 8px botones, 12px tarjetas, 20-24px paneles */
  --radio: 8px;
  --radio-tarjeta: 12px;
  --radio-panel: 24px;
  --sombra-flotante: 0 24px 64px rgba(34, 34, 34, 0.14), 0 4px 16px rgba(34, 34, 34, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-carbon);
  background: var(--color-crema);
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-titulos); font-weight: 700; line-height: 1.15; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-verde-sage);
  outline-offset: 2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container-narrow { max-width: 820px; }

/* ---------- Nav flotante ---------- */

.nav-pill {
  position: fixed;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.18);
  transition: translate 0.35s ease, opacity 0.35s ease;
  animation: entra 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.nav-pill.oculta {
  translate: -50% -140%;
  opacity: 0;
}

.nav-pill a {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.88rem;
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-pill a:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Menú móvil ---------- */

.menu-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.menu-btn span {
  grid-area: 1 / 1;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
  transition: transform 0.3s ease;
}

.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }

.menu-btn.abierto span:first-child { transform: rotate(45deg); }
.menu-btn.abierto span:last-child { transform: rotate(-45deg); }

.menu-movil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: var(--color-crema);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-movil.abierto { opacity: 1; pointer-events: auto; }

.menu-movil a {
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--color-carbon);
  text-decoration: none;
}

/* ---------- Secciones a viewport completo ---------- */

section {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 0;
}

/* ---------- Bloque 1 · Hero split-screen enmarcado ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 16px;
  min-height: 100dvh;
  padding: 16px;
  background: var(--color-arena);
}

.hero-left {
  display: flex;
  flex-direction: column;
  background: var(--color-crema);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radio-panel);
  padding: 24px 32px 40px;
  box-shadow: 0 2px 24px rgba(34, 34, 34, 0.04);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-carbon);
  width: fit-content;
}

.brand-word {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.hero-copy {
  margin: auto 0;
  padding: 48px 0;
  text-align: center;
}

.hero-iso {
  width: 108px;
  height: 119px;
  display: block;
  margin: 0 auto 32px;
}

/* la frase completa vive en una sola línea: el rotor reserva el ancho de la
   variante más larga (inline-grid apilado) para que "Usar la IA" nunca se mueva */
.h1-display {
  display: block;
  font-size: clamp(1.55rem, 3.4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  white-space: nowrap;
}

.h1-rotor {
  display: inline-grid;
  text-align: left;
}

.rotor-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.22em);
  transition: opacity 0.45s ease, transform 0.45s ease;
  color: var(--terracotta-texto);
}

.h1-rotor .rotor-item { color: var(--color-mostaza); }

.rotor-item.activa {
  opacity: 1;
  transform: none;
}

.h1-rest {
  display: block;
  font-family: var(--font-cuerpo);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--color-texto-suave);
  margin: 24px auto 0;
  max-width: 42ch;
}

.h1-rest em {
  font-style: normal;
  font-weight: 600;
  color: var(--color-mostaza);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 1.1875rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radio);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--terracotta-boton);
  color: var(--color-crema);
  box-shadow: 0 8px 24px rgba(210, 103, 70, 0.28);
}

.btn-primary:hover { background: #C05B3B; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  color: var(--color-carbon);
  border: 1px solid var(--color-borde-fino);
  background: transparent;
}

.btn-outline:hover { border-color: var(--color-carbon); transform: translateY(-1px); }
.btn-outline:active { transform: scale(0.98); }

/* --- panel derecho: video + rotador de cursos --- */

.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radio-panel);
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(120deg, #F2E8D8, #EAD9C2, #F7F0E4);
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-right.sin-video .hero-video { display: none; }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.14) 0%, rgba(30, 41, 59, 0.02) 32%, rgba(30, 41, 59, 0.04) 58%, rgba(30, 41, 59, 0.60) 100%);
}

.rotator {
  position: relative;
  width: min(400px, 100%);
  margin: auto auto 0;
}

.curso-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--sombra-flotante), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s 0.55s;
  pointer-events: none;
}

.curso-card.activa {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.55s ease 0.15s, transform 0.55s ease 0.15s, visibility 0s;
  pointer-events: auto;
}

.curso-card.saliendo {
  opacity: 0;
  visibility: visible;
  transform: translateX(-28px);
}

.curso-card h2 { font-size: 2rem; }

.curso-card-desc {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--color-texto-suave);
}

.curso-card-meta {
  margin-top: 16px;
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.9rem;
}

.curso-card .btn { margin-top: 24px; }

.hero-tagline {
  text-align: center;
  padding-top: 28px;
  margin-top: auto;
}

.tagline-main {
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.tagline-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  margin-top: 4px;
}

@keyframes entra {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* coreografía de entrada (clases que asigna app.js con delays inline) */
.pieza { animation: entra 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }

.palabra-h { display: inline-block; }

.char, .palabra-c {
  display: inline-block;
  animation: entra-char 0.45s ease both;
}

@keyframes entra-char {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Secciones (tipografía común) ---------- */

.section-title {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--color-texto-suave);
}

/* ---------- Bloque 2 · La evidencia ---------- */

.rubro-rotor {
  display: inline-grid;
  text-align: left;
}

.evidencia-eyebrow {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6E6659;
  margin-bottom: 16px;
}

.testimonios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonio {
  position: relative;
  border: 1px solid var(--color-borde-fino);
  border-radius: var(--radio-panel);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-crema);
  transition: all 0.25s ease;
}

.testimonio:hover {
  border-color: var(--color-verde-sage);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(34, 34, 34, 0.06);
}

.testimonio::before {
  content: "\201C";
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.5;
  color: var(--color-terracotta);
  display: block;
  height: 0.5em;
}

.testimonio blockquote {
  font-size: 0.88rem;
  flex: 1;
}

.testimonio figcaption {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-borde-fino);
  padding-top: 12px;
}

.testimonio figcaption span {
  display: block;
  font-family: var(--font-cuerpo);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-texto-suave);
}

.testimonio-caso {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-boton);
}

.casos-kicker { margin-top: 72px; }

.casos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
  margin-top: 28px;
}

.caso-item {
  position: relative;
  padding-left: 24px;
}

.caso-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 45% 55% 50% 48%;
  background: var(--color-mostaza);
}

.caso-item .caso-rol {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.95rem;
}

.caso-item p:last-child {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--color-texto-suave);
}

/* ---------- Bloque 3 · Los cursos ---------- */

.curso-index {
  margin-top: 56px;
  border-top: 1px solid var(--color-borde-fino);
}

.curso { border-bottom: 1px solid var(--color-borde-fino); }

.curso-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "nombre precio mas" "bajada precio mas";
  align-items: center;
  column-gap: 24px;
  padding: 32px 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s ease;
}

.curso-toggle:hover { background: rgba(129, 178, 154, 0.07); }

.curso-nombre {
  grid-area: nombre;
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--color-carbon);
}

.curso-bajada {
  grid-area: bajada;
  font-size: 0.9rem;
  color: var(--color-texto-suave);
}

.curso-precio {
  grid-area: precio;
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-carbon);
}

.curso-mas {
  grid-area: mas;
  font-family: var(--font-titulos);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--terracotta-boton);
  transition: transform 0.25s ease;
}

.curso-toggle[aria-expanded="true"] .curso-mas { transform: rotate(45deg); }

.curso-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.curso-panel-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curso-panel.abierto { grid-template-rows: 1fr; }

.curso-panel-inner p {
  font-size: 0.95rem;
  color: var(--color-texto-suave);
  max-width: 68ch;
  padding-left: 12px;
}

.curso-panel-inner p:first-child { padding-top: 4px; }
.curso-panel-inner p:last-child { padding-bottom: 36px; }

.curso-cta { padding-top: 8px; }

.curso-panel-inner strong { color: var(--color-carbon); }

/* ---------- Bloque 4 · Nosotros (foto full-bleed + manifiesto glass) ---------- */

.nosotros {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.nosotros-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.nosotros-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.32), rgba(30, 41, 59, 0.18));
}

.prose {
  width: min(680px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 40px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--sombra-flotante), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.prose p {
  margin-top: 24px;
  color: var(--color-carbon);
  text-align: left;
}

.prose .palabra { display: inline-block; }

.prose .letra {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.prose .letra.lit { opacity: 1; }

/* ---------- Bloque 3B · La sesión 1 a 1 ---------- */

.curso-pack {
  margin-top: 32px;
  text-align: center;
  color: var(--color-texto-suave);
}

.uno-a-uno {
  background: var(--color-arena);
  border-top: 1px solid var(--color-borde-fino);
}

.uno-cta { margin-top: 56px; text-align: center; }

.uno-precio {
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.uno-nota {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-texto-suave);
}

/* ---------- Bloque 5 · Aula B ---------- */

.aula-b {
  background: var(--color-arena);
  border-top: 1px solid var(--color-borde-fino);
}

.aula-b-logo {
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.aula-b-logo span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radio);
  background: var(--color-azul-tinta);
  color: var(--color-crema);
  font-size: 1rem;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.paso {
  background: var(--color-crema);
  border: 1px solid var(--color-borde-fino);
  border-radius: var(--radio-tarjeta);
  padding: 36px 32px;
  transition: all 0.25s ease;
}

.paso:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(34, 34, 34, 0.06); }

.paso-num {
  font-family: var(--font-titulos);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--terracotta-boton);
}

.paso h3 { font-size: 1.25rem; margin-top: 18px; }

.paso p:last-child {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--color-texto-suave);
}

.aula-b-cta { margin-top: 56px; text-align: center; }

.btn-b2b {
  background: var(--color-azul-tinta);
  color: var(--color-crema);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.22);
}

.btn-b2b:hover { background: #16202F; transform: translateY(-1px); }
.btn-b2b:active { transform: scale(0.98); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--color-borde-fino);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .brand-word { font-size: 1.15rem; }

.footer-redes { display: flex; gap: 20px; }

.footer-redes a {
  display: flex;
  color: var(--color-texto-suave);
  transition: color 0.2s ease;
}

.footer-redes a:hover { color: var(--color-carbon); }

.footer p {
  font-size: 0.85rem;
  color: var(--color-texto-suave);
}

/* ---------- Modal lista de espera ---------- */

.modal-espera {
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--color-borde-fino);
  border-radius: var(--radio-panel);
  background: var(--color-crema);
  padding: 40px;
  box-shadow: var(--sombra-flotante);
}

.modal-espera::backdrop {
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(6px);
}

.modal-espera[open] { animation: espera-entra 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes espera-entra {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-espera[open] { animation: none; }
}

.espera-cerrar {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-texto-suave);
  cursor: pointer;
}

.espera-cerrar:hover { color: var(--color-carbon); }

.espera-eyebrow {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-texto);
  margin-bottom: 10px;
}

.modal-espera h3 { font-size: 1.5rem; margin-bottom: 8px; }

.espera-lead {
  font-size: 0.92rem;
  color: var(--color-texto-suave);
  margin-bottom: 24px;
}

.espera-campo { display: block; margin-bottom: 16px; }

.espera-campo span {
  display: block;
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.espera-campo em {
  font-style: normal;
  font-weight: 400;
  color: var(--color-texto-suave);
}

.espera-campo input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-carbon);
  background: #fff;
  border: 1px solid var(--color-borde-fino);
  border-radius: var(--radio);
  transition: border-color 0.2s ease;
}

.espera-campo input:focus {
  outline: none;
  border-color: var(--color-verde-sage);
}

.espera-enviar { width: 100%; margin-top: 8px; }
.espera-enviar[disabled] { opacity: 0.6; cursor: wait; }

.espera-error {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--terracotta-texto);
  text-align: center;
}

.espera-exito { text-align: center; padding: 8px 0; }

.espera-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--color-verde-sage);
  color: #fff;
  font-size: 1.6rem;
}

.espera-exito p {
  font-size: 0.92rem;
  color: var(--color-texto-suave);
  margin-top: 8px;
}

/* ---------- Scroll reveal ---------- */

html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js-reveal .reveal.visible {
  opacity: 1;
  transform: none;
}

.testimonio.reveal:nth-child(2) { transition-delay: 0.08s; }
.testimonio.reveal:nth-child(3) { transition-delay: 0.16s; }
.paso.reveal:nth-child(2) { transition-delay: 0.08s; }
.paso.reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Mobile (< 968px) ---------- */

@media (max-width: 968px) {
  .nav-pill { display: none; }

  .menu-btn { display: grid; }

  .hero {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
    min-height: auto;
  }

  /* svh (viewport chico, con barra de URL visible): el hero cabe entero al cargar
     y no salta cuando la barra se colapsa al scrollear */
  .hero-left { padding: 20px 20px 36px; min-height: 100svh; justify-content: space-between; }

  .hero-copy { padding: 40px 0; }

  .h1-display { font-size: clamp(1.15rem, 5.2vw, 2.4rem); }

  .hero-right { min-height: 100svh; padding: 16px; padding-top: 72px; }

  section { padding: 72px 0; }

  .testimonios, .pasos, .casos-grid { grid-template-columns: 1fr; }

  .prose { padding: 32px 24px; }

  .curso-toggle {
    grid-template-columns: 1fr auto;
    grid-template-areas: "nombre mas" "bajada mas" "precio mas";
    row-gap: 2px;
  }

  .curso-precio { margin-top: 8px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .curso-panel { transition: none; }
  .testimonio:hover, .paso:hover, .btn:hover { transform: none; }
  .nav-pill, .pieza, .char, .palabra-c { animation: none; }
  .curso-card, .rotor-item { transition: none; }
  .prose .palabra { opacity: 1; transition: none; }
}
