/* ==========================================================================
   tokens.css — Design system · Wilson Karate Academy (v2)
   Bold martial-arts dojo: near-black + bold red + white. Condensed display.
   Color en OKLCH. Tema claro por defecto; oscuro por [data-theme].
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* --- Paleta base (raw) — tinta + papel + rojo dojo --- */
  --ink-950: oklch(13% 0.006 275);   /* negro dojo */
  --ink-900: oklch(17% 0.008 275);   /* casi negro */
  --ink-800: oklch(23% 0.008 275);
  --ink-700: oklch(33% 0.008 275);
  --ink-500: oklch(50% 0.008 275);   /* texto secundario */
  --ink-300: oklch(74% 0.006 275);
  --paper:   oklch(97% 0.004 90);    /* blanco cálido */
  --paper-2: oklch(93.5% 0.006 80);
  --white:   oklch(100% 0 0);

  /* Rojo señal — rojo dojo (~#E4141B) */
  --red-700: oklch(48% 0.20 27);
  --red-600: oklch(55% 0.225 27);
  --red-500: oklch(60% 0.235 27);
  --red-100: oklch(93% 0.05 27);

  --accent: var(--red-600);

  /* Estados */
  --good:  oklch(70% 0.16 155);
  --warn:  oklch(80% 0.15 80);
  --bad:   var(--red-600);

  /* --- Tokens semánticos (tema CLARO por defecto) --- */
  --bg:            var(--paper);
  --bg-elevated:   var(--white);
  --bg-sunken:     var(--paper-2);
  --bg-inverse:    var(--ink-950);

  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --text-inverse:  var(--paper);

  --border:        oklch(87% 0.006 275);
  --border-strong: oklch(78% 0.008 275);

  --primary:           var(--red-600);
  --primary-strong:    var(--red-700);
  --primary-contrast:  var(--white);
  --primary-tint:      var(--red-100);

  --focus-ring:    var(--red-600);

  /* --- Tipografía — Oswald condensada (display) + Inter (cuerpo) --- */
  --font-display: "Oswald", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Oswald", ui-sans-serif, system-ui, sans-serif;

  /* Escala tipográfica fluida (clamp) — base 16px */
  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.40vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.30rem + 0.9vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.8rem + 2.3vw, 3.9rem);
  --step-5:  clamp(2.7rem, 2.0rem + 3.2vw, 5rem);

  --leading-tight: 1.02;
  --leading-snug:  1.18;
  --leading-body:  1.62;

  --tracking-tight: -0.01em;
  --tracking-wide:  0.22em;

  /* --- Espacio (escala 4px) --- */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6.5rem;

  /* --- Layout --- */
  --container:      74rem;
  --container-wide: 86rem;
  --container-prose: 42rem;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);

  /* --- Radios --- */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* --- Sombras --- */
  --shadow-sm: 0 1px 2px oklch(17% 0.01 275 / 0.08), 0 1px 1px oklch(17% 0.01 275 / 0.05);
  --shadow:    0 6px 22px oklch(17% 0.01 275 / 0.11), 0 2px 6px oklch(17% 0.01 275 / 0.07);
  --shadow-lg: 0 26px 60px oklch(13% 0.01 275 / 0.22), 0 8px 20px oklch(13% 0.01 275 / 0.12);
  --shadow-red: 0 12px 30px oklch(55% 0.225 27 / 0.32);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --dur-fast: 140ms;
  --dur:      280ms;
  --dur-slow: 560ms;

  --header-h: 4.75rem;
}

/* --- Tema OSCURO --- */
[data-theme="dark"] {
  --bg:            var(--ink-950);
  --bg-elevated:   var(--ink-900);
  --bg-sunken:     oklch(11% 0.006 275);
  --bg-inverse:    var(--paper);

  --text:          var(--paper);
  --text-muted:    var(--ink-300);
  --text-inverse:  var(--ink-950);

  --border:        oklch(28% 0.008 275);
  --border-strong: oklch(38% 0.008 275);

  --primary:           var(--red-500);
  --primary-strong:    var(--red-600);
  --primary-tint:      oklch(28% 0.09 27);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.5);
  --shadow:    0 8px 24px oklch(0% 0 0 / 0.5);
  --shadow-lg: 0 28px 64px oklch(0% 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            var(--ink-950);
    --bg-elevated:   var(--ink-900);
    --bg-sunken:     oklch(11% 0.006 275);
    --bg-inverse:    var(--paper);
    --text:          var(--paper);
    --text-muted:    var(--ink-300);
    --text-inverse:  var(--ink-950);
    --border:        oklch(28% 0.008 275);
    --border-strong: oklch(38% 0.008 275);
    --primary:           var(--red-500);
    --primary-strong:    var(--red-600);
    --primary-tint:      oklch(28% 0.09 27);
    --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.5);
    --shadow:    0 8px 24px oklch(0% 0 0 / 0.5);
    --shadow-lg: 0 28px 64px oklch(0% 0 0 / 0.6);
  }
}
/* ==========================================================================
   base.css — Reset moderno + tipografía base + accesibilidad
   ========================================================================== */

/* Reset acotado y predecible */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compensa el header fijo al saltar a anclas */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  font-synthesis: none;
  /* Reserva ascendente para evitar CLS al cargar la fuente */
  overflow-x: clip;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }

/* Titulares — equilibrio de líneas (evita huérfanas) */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
p { text-wrap: pretty; }

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

strong { font-weight: 650; }

::selection {
  background: var(--primary);
  color: var(--primary-contrast);
}

/* Foco visible y consistente para teclado (a11y) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* Saltar al contenido (a11y) */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { top: var(--space-md); }

/* Sólo lectores de pantalla */
.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;
}

/* Respeta usuarios que reducen movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Viewport fit — el hero llena la pantalla sin recortar; secciones por contenido.
   Ver references/viewport-fit-system.md. "Caber" nunca significa clipear.
   ========================================================================== */

/* HERO: llena EXACTAMENTE una pantalla bajo el header sticky. El header es position:sticky
   (ocupa --header-h EN EL FLUJO), por eso se RESTA --header-h — NO se suma como padding. Sumarlo
   hace el hero = header + 100svh y se pasa de una pantalla (bug real). Contenido centrado, compacto
   y escalable con la altura. NUNCA height:100vh; NUNCA max-height que recorte el TEXTO. El hero se
   diseña para CABER; si el copy fuera excesivo, el salvavidas JS baja la escala (no crece, no clipea). */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  gap: clamp(0.8rem, 2svh, 1.75rem);
  padding-block: clamp(1rem, 2.4svh, 2.25rem);
  padding-inline: var(--gutter);
}
/* Tope del titular DELIBERADAMENTE bajo (<=3.6rem): en monitores anchos evita el titular gigante
   que se parte en 4 líneas y empuja los CTA fuera de pantalla. Mezcla ancho (vw) + alto (svh). */
.hero__title {
  font-size: clamp(1.9rem, 1.2rem + 2vw + 1.4svh, 3.6rem);
  line-height: 1.05;
  text-wrap: balance;
}
.hero__subtitle { font-size: clamp(1rem, 1.4svh + 0.4vw, 1.3rem); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Salvavidas opcional: si el contenido excede el alto, encoge la escala (no recorta, no crece). */
[data-hero-fit] > * { font-size: calc(1em * var(--hero-scale, 1)); }

/* Media del hero: en móvil (apilada bajo el texto) se limita para que TEXTO+IMAGEN quepan;
   en escritorio (2 col) se limita para no exceder el alto. object-fit:cover evita deformar. */
/* MÓVIL/TABLET: hero de ALTURA DEFINIDA; el texto va compacto y la 2ª columna apilada (imagen)
   toma SOLO el hueco restante bajo el texto (flex-fill). Así el hero nunca se pasa de una pantalla,
   sin importar el largo del copy — si el texto fuera enorme, la imagen se encoge (no desborda). */
@media (max-width: 59.99rem) {
  /* '.hero .hero-grid' (0,2,0) para GANARLE a layout.css '.hero-grid{display:grid}' (0,1,0), que se
     concatena después; si no, el grid seguiría activo y la imagen no tomaría el hueco restante. */
  .hero { display: flex; height: calc(100svh - var(--header-h)); min-height: 0; align-items: stretch; }
  .hero > .container { display: flex; flex-direction: column; min-height: 0; }
  .hero .hero-grid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: clamp(0.7rem, 2svh, 1.2rem); align-items: stretch; }
  .hero .hero-grid > :first-child { flex: 0 0 auto; }                                   /* texto: alto natural */
  .hero .hero-grid > :last-child:not(:first-child) { flex: 1 1 auto; min-height: 0; overflow: hidden; aspect-ratio: auto; } /* media: el resto */
  /* !important vence cualquier aspect-ratio/height en línea del autor: la imagen SIEMPRE llena el hueco
     restante y recorta con object-fit (centrado), garantizando que el hero quepa en una pantalla. */
  .hero .hero-grid > :last-child:not(:first-child) img { height: 100% !important; width: 100%; max-height: none !important; object-fit: cover; aspect-ratio: auto !important; }
  .hero__title { font-size: clamp(1.65rem, 5.5vw + 0.4rem, 2.5rem); }
  .hero__lead { font-size: 1rem; line-height: 1.45; }
}
/* ESCRITORIO: 2 columnas; la imagen se limita para no exceder el alto de la pantalla. */
@media (min-width: 60rem) {
  .hero-grid img, .hero-grid > figure, .hero-grid > .hero__media { max-height: calc(100svh - var(--header-h) - 4rem); object-fit: cover; }
}

/* Pantallas de POCA ALTURA: compactar por tramos para caber en laptops cortas / ventanas con
   muchas barras. El desborde real ocurrió a 1920x900 (ancha pero baja), no solo en móvil horizontal. */
@media (max-height: 820px) {
  .hero { padding-block: clamp(0.85rem, 1.8svh, 1.4rem); }
  .hero__title { font-size: clamp(1.7rem, 1.05rem + 1.7vw + 1svh, 2.9rem); }
}
@media (max-height: 660px) {
  .hero__title { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.35rem); line-height: 1.06; }
  .hero__subtitle { font-size: 0.98rem; }
}
@media (max-height: 560px) {
  .hero { min-height: auto; align-content: start; padding-block: clamp(0.75rem, 1.5svh, 1.1rem); }
  .hero__title { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
}

/* SECCIONES: altura por contenido, NUNCA fija. Padding proporcional. */
.section { padding-block: clamp(3rem, 8vw, 6rem); padding-inline: var(--gutter); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* Sección full-screen SOLO para storytelling deliberado (no de contenido). */
.section--fullscreen {
  min-height: 100svh;      /* NO height:100vh */
  display: grid;
  align-content: center;
}
@media (max-height: 560px) { .section--fullscreen { min-height: auto; } }
/* ==========================================================================
   layout.css — Contenedores, secciones y rejillas
   Layout moderno: grid + flex + container queries + logical properties
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide  { max-width: var(--container-wide); }
.container--prose { max-width: var(--container-prose); }

/* Ritmo vertical por sección */
.section {
  padding-block: var(--space-3xl);
}
.section--tight { padding-block: var(--space-2xl); }
.section--sunken { background: var(--bg-sunken); }
.section--ink {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}
.section--ink .eyebrow { color: var(--amber-300); }
.section--ink .text-muted { color: var(--ink-300); }

/* Encabezado de sección */
.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-xl);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* Rejilla auto-fit reutilizable (responsive sin media queries) */
.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

/* Hero: dos columnas que colapsan */
.hero-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-3xl);
  }
}

/* Cluster (fila flexible con wrap) */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}
.cluster--between { justify-content: space-between; }

/* Stack (columna con gap) */
.stack { display: flex; flex-direction: column; gap: var(--space-md); }
.stack--lg { gap: var(--space-lg); }

/* Divisor con etiqueta de datos */
.rule {
  height: 1px;
  background: var(--border);
  border: 0;
}

/* Contexto de container query para tarjetas */
.cq { container-type: inline-size; }
/* ==========================================================================
   components.css — Wilson Karate Academy (v2, bespoke dojo)
   Near-black + bold red + white. Oswald display, Inter body. Alive + conversion.
   ========================================================================== */

/* ---------- Section rhythm helpers ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: none; }
.eyebrow__bar { inline-size: 1.9rem; block-size: 3px; background: var(--primary); border-radius: 2px; }
.eyebrow--light { color: #fff; }
.eyebrow--light .eyebrow__bar { background: var(--red-500); }
.eyebrow--center { justify-content: center; }

.sec-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.sec-title--light { color: #fff; }
.sec-lead {
  margin-top: 1.1rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 46rem;
}
.sec-head--center .sec-lead { margin-inline: auto; }
.sec-lead--light { color: oklch(88% 0.006 275); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--primary); --_fg: var(--primary-contrast);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7ch;
  padding: 0.9rem 1.5rem; min-height: 3rem;
  background: var(--_bg); color: var(--_fg);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn svg { flex: none; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, oklch(100% 0 0 / 0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform var(--dur-slow) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 1.85rem; min-height: 3.5rem; font-size: 1.12rem; }
.btn--xl { padding: 1.15rem 2.1rem; min-height: 3.8rem; font-size: 1.2rem; }

.btn--call { --_bg: var(--red-600); --_fg: #fff; box-shadow: var(--shadow-red); }
.btn--call:hover { --_bg: var(--red-500); box-shadow: 0 16px 38px oklch(55% 0.225 27 / 0.42); }

.btn--ghost-light { --_bg: transparent; --_fg: #fff; border: 2px solid oklch(100% 0 0 / 0.45); }
.btn--ghost-light:hover { --_bg: oklch(100% 0 0 / 0.1); border-color: #fff; }

.btn--onred { --_bg: #fff; --_fg: var(--red-700); box-shadow: 0 14px 34px oklch(0% 0 0 / 0.28); }
.btn--onred:hover { --_bg: var(--paper); }

/* ---------- Header nav (base in critical CSS; details here) ---------- */
.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a {
  text-decoration: none; color: oklch(100% 0 0 / 0.82);
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; padding-block: 0.3rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  inline-size: 0; block-size: 2px; background: var(--red-500); border-radius: 2px;
  transition: inline-size var(--dur) var(--ease-out);
}
.nav-links a:hover::after { inline-size: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; margin-inline-start: 1.5rem; }
.header-call {
  display: none; align-items: center; gap: 0.55ch;
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem; border-radius: var(--radius-pill);
  border: 1.5px solid oklch(100% 0 0 / 0.28);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.header-call svg { color: var(--red-500); }
.header-call:hover { border-color: #fff; background: oklch(100% 0 0 / 0.08); }

.icon-btn {
  inline-size: 2.7rem; block-size: 2.7rem; display: none; place-items: center;
  border-radius: var(--radius-pill); border: 1.5px solid oklch(100% 0 0 / 0.28);
  color: var(--red-500); background: transparent;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { border-color: #fff; transform: rotate(-8deg); }

.nav-toggle {
  inline-size: 2.7rem; block-size: 2.7rem; display: grid; place-items: center;
  border-radius: var(--radius-sm); color: #fff; background: transparent;
}

@media (min-width: 62rem) {
  .nav-links { display: flex; }
  .header-call { display: inline-flex; }
  .icon-btn { display: grid; }
  .nav-toggle { display: none; }
}

/* Mobile menu — full dark overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 130;
  background: color-mix(in oklch, var(--ink-950) 97%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.mobile-menu[data-open="true"] { opacity: 1; visibility: visible; }
.mobile-menu__inner {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  gap: 0.5rem; padding: 6rem var(--gutter) 3rem;
}
.mobile-menu__close {
  position: absolute; top: 1.35rem; right: var(--gutter);
  inline-size: 3rem; block-size: 3rem; display: grid; place-items: center;
  color: #fff; border-radius: var(--radius-sm); background: transparent;
}
.mobile-menu a {
  text-decoration: none; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 2rem;
  text-transform: uppercase; letter-spacing: 0.01em;
  padding-block: 0.7rem; border-bottom: 1px solid oklch(100% 0 0 / 0.1);
  transform: translateY(12px); opacity: 0; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), color var(--dur-fast);
}
.mobile-menu[data-open="true"] a { transform: none; opacity: 1; }
.mobile-menu a:nth-child(2){transition-delay:.05s}.mobile-menu a:nth-child(3){transition-delay:.1s}
.mobile-menu a:nth-child(4){transition-delay:.15s}.mobile-menu a:nth-child(5){transition-delay:.2s}
.mobile-menu a:nth-child(6){transition-delay:.25s}.mobile-menu a:nth-child(7){transition-delay:.3s}
.mobile-menu a:hover { color: var(--red-500); }
.mobile-menu__cta {
  margin-top: 1.4rem; border: 0 !important; color: var(--red-500) !important;
  display: inline-flex; align-items: center; gap: 0.6ch;
}

/* ---------- HERO ---------- */
.hero-dojo {
  position: relative; min-height: 100svh;
  display: grid; align-content: center; overflow: hidden; color: #fff;
  padding-top: calc(var(--header-h) + clamp(1rem, 4svh, 2.4rem));
  padding-bottom: clamp(2rem, 6svh, 4rem);
  padding-inline: var(--gutter);
}
.hero-dojo__media { position: absolute; inset: 0; z-index: 0; }
.hero-dojo__media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 60% center; }
.hero-dojo__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(13% 0.006 275 / 0.68) 0%, oklch(13% 0.006 275 / 0.5) 42%, oklch(13% 0.006 275 / 0.86) 100%),
    linear-gradient(90deg, oklch(13% 0.006 275 / 0.85) 0%, oklch(13% 0.006 275 / 0.25) 60%, transparent 100%);
}
.hero-dojo__inner { position: relative; z-index: 1; width: 100%; max-width: var(--container); margin-inline: auto; }
.hero-dojo__kicker {
  display: inline-flex; align-items: center; gap: 0.7ch;
  font-family: var(--font-display); font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: oklch(100% 0 0 / 0.85);
  margin-bottom: 1rem;
}
.hero-dojo__kicker .tick { inline-size: 0.55rem; block-size: 0.55rem; background: var(--red-500); border-radius: 2px; box-shadow: 0 0 12px var(--red-500); }
.hero-dojo__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.3rem, 1.1rem + 3.4vw + 1.7svh, 3.6rem);
  line-height: 0.98; letter-spacing: -0.005em; margin: 0;
  text-shadow: 0 4px 30px oklch(0% 0 0 / 0.4);
}
.hero-dojo__title em { color: var(--red-500); font-style: normal; }
.hero-dojo__lead {
  margin-top: 1.15rem; max-width: 40rem;
  font-size: clamp(1rem, 0.9rem + 0.5svh + 0.3vw, 1.28rem); line-height: 1.5;
  color: oklch(92% 0.006 275 / 0.95);
}
.hero-dojo__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }
.hero-dojo__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.hero-dojo__tags li {
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  padding: 0.4rem 0.9rem; border: 1px solid oklch(100% 0 0 / 0.25); border-radius: var(--radius-pill);
  background: oklch(100% 0 0 / 0.06);
}
.hero-dojo__scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  color: oklch(100% 0 0 / 0.6); display: grid; place-items: center;
  inline-size: 2.6rem; block-size: 2.6rem; animation: heroBob 2.4s var(--ease-out) infinite;
}
@keyframes heroBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

@media (max-height: 780px) {
  .hero-dojo { padding-top: calc(var(--header-h) + 0.8rem); padding-bottom: 1.6rem; }
  .hero-dojo__title { font-size: clamp(1.9rem, 1rem + 2.4vw + 1svh, 2.9rem); }
  .hero-dojo__lead { margin-top: 0.8rem; }
  .hero-dojo__ctas { margin-top: 1.05rem; }
  .hero-dojo__tags { margin-top: 0.95rem; }
}
@media (max-height: 660px) {
  .hero-dojo { padding-top: calc(var(--header-h) + 0.5rem); }
  .hero-dojo__tags { display: none; }
  .hero-dojo__scroll { display: none; }
  .hero-dojo__lead { margin-top: 0.65rem; }
}
@media (max-height: 480px) {
  .hero-dojo__lead { display: none; }
  .hero-dojo__kicker { margin-bottom: 0.5rem; }
  .hero-dojo__title { font-size: clamp(1.6rem, 5vw, 2.3rem); }
  .hero-dojo__ctas { margin-top: 0.9rem; }
}
@media (max-width: 40rem) {
  .hero-dojo__media img { object-position: 62% center; }
}

/* ---------- Trust strip (overlaps hero bottom) ---------- */
.trust-strip { position: relative; z-index: 2; margin-top: -3.2rem; padding-inline: var(--gutter); }
.trust-strip__inner {
  display: grid; grid-template-columns: 1fr; gap: 0.15rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.25rem;
  padding: 1.4rem 1rem; border-bottom: 1px solid var(--border);
}
.trust-item:last-child { border-bottom: 0; }
.trust-item__ico {
  inline-size: 2.9rem; block-size: 2.9rem; display: grid; place-items: center; margin-bottom: 0.35rem;
  border-radius: 50%; background: var(--red-100); color: var(--red-600);
}
[data-theme="dark"] .trust-item__ico { background: oklch(28% 0.09 27); color: var(--red-500); }
.trust-item b { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.01em; }
.trust-item span:not(.trust-item__ico) { font-size: 0.85rem; color: var(--text-muted); }
@media (min-width: 46rem) {
  .trust-strip__inner { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: 0; border-right: 1px solid var(--border); }
  .trust-item:last-child { border-right: 0; }
}

/* ---------- Programs ---------- */
.programs { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); grid-template-columns: 1fr; }
@media (min-width: 46rem) { .programs { grid-template-columns: repeat(3, 1fr); } }
.program-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.program-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.program-card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.program-card:hover .program-card__media img { transform: scale(1.06); }
.program-card__num {
  position: absolute; top: 0.9rem; left: 0.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff;
  inline-size: 2.6rem; block-size: 2.6rem; display: grid; place-items: center;
  background: var(--red-600); border-radius: 8px; box-shadow: var(--shadow);
}
.program-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.program-card__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.program-card__body p { color: var(--text-muted); font-size: 1rem; }
.program-card__meta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.5ch;
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-600);
}
.program-card__meta svg { color: var(--red-600); }

/* ---------- Why band (dark, photo feature) ---------- */
.why-band {
  background: var(--ink-900);
  background-image: radial-gradient(90% 120% at 100% 0%, oklch(30% 0.08 27 / 0.5), transparent 55%);
  color: #fff; padding-block: clamp(3.5rem, 8vw, 6.5rem); padding-inline: var(--gutter);
  overflow: hidden;
}
.why-band__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .why-band__grid { grid-template-columns: 0.95fr 1.05fr; } }
.why-band__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.why-band__media img { inline-size: 100%; block-size: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.why-band__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.08); border-radius: inherit; }
.why-band__badge {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5ch;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; padding: 0.5rem 0.9rem; border-radius: var(--radius-pill);
  background: var(--red-600); box-shadow: var(--shadow);
}
.why-feats { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: 1.8rem; }
@media (min-width: 30rem) { .why-feats { grid-template-columns: 1fr 1fr; } }
.why-feat { display: flex; gap: 0.9rem; align-items: flex-start; }
.why-feat__ico {
  flex: none; inline-size: 2.9rem; block-size: 2.9rem; display: grid; place-items: center;
  border-radius: 10px; background: oklch(100% 0 0 / 0.07); color: var(--red-500);
  border: 1px solid oklch(100% 0 0 / 0.12);
}
.why-feat h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: #fff; margin-bottom: 0.2rem; }
.why-feat p { color: oklch(85% 0.006 275); font-size: 0.96rem; line-height: 1.5; }

/* ---------- STAR MOMENT: the belt journey ---------- */
.journey { background: var(--bg-sunken); padding-block: clamp(3.5rem, 8vw, 6.5rem); padding-inline: var(--gutter); }
.belts {
  --lit: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.2rem;
  max-width: 60rem; margin: 0 auto;
}
@media (min-width: 40rem) { .belts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 64rem) { .belts { grid-template-columns: repeat(8, 1fr); gap: 0.7rem; } }
.belt { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.belt__bar {
  inline-size: 100%; block-size: 2.6rem; border-radius: 6px; position: relative;
  box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.12), var(--shadow-sm);
  transform: scaleX(0.14); transform-origin: left center; opacity: 0;
  transition: transform 0.6s var(--ease-spring), opacity 0.4s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms);
}
.belt__bar::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  inline-size: 0.55rem; block-size: calc(100% + 0.5rem); border-radius: 3px;
  background: oklch(0% 0 0 / 0.22);
}
.belts.is-in .belt__bar { transform: scaleX(1); opacity: 1; }
.belt__name {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 200ms);
}
.belts.is-in .belt__name { opacity: 1; transform: none; }
.belt--goal .belt__name { color: var(--red-600); }
.belt--goal .belt__bar { box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.1), 0 0 0 3px oklch(55% 0.225 27 / 0.28), var(--shadow); }

.belt__bar[data-belt="white"]  { background: linear-gradient(180deg, #ffffff, #e9e9e3); }
.belt__bar[data-belt="yellow"] { background: linear-gradient(180deg, #ffd43b, #f2b705); }
.belt__bar[data-belt="orange"] { background: linear-gradient(180deg, #ff9f43, #f2801e); }
.belt__bar[data-belt="green"]  { background: linear-gradient(180deg, #40c057, #2f9e44); }
.belt__bar[data-belt="blue"]   { background: linear-gradient(180deg, #339af0, #1971c2); }
.belt__bar[data-belt="purple"] { background: linear-gradient(180deg, #845ef7, #6741d9); }
.belt__bar[data-belt="brown"]  { background: linear-gradient(180deg, #a1662f, #7a4a1e); }
.belt__bar[data-belt="black"]  { background: linear-gradient(180deg, #2b2b28, #111110); }

.journey-stats {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 56rem; margin-inline: auto; text-align: center;
}
@media (min-width: 40rem) { .journey-stats { grid-template-columns: repeat(3, 1fr); } }
.jstat { padding: 1.4rem 1rem; border-top: 3px solid var(--red-600); background: var(--bg-elevated); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-sm); }
.jstat__n {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--text); letter-spacing: -0.01em;
}
.jstat__n .jstat__s { font-size: 0.5em; color: var(--red-600); }
.jstat__l { display: block; margin-top: 0.5rem; font-size: 0.92rem; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) {
  .belt__bar { transform: none; opacity: 1; transition: none; }
  .belt__name { opacity: 1; transform: none; transition: none; }
}

/* ---------- How to start (steps) ---------- */
.steps { display: grid; gap: 1.4rem; grid-template-columns: 1fr; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 34rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 1.3rem; border-top: 2px solid var(--border-strong); }
.step::before { content: none; }
.step__num {
  position: absolute; top: -1.15rem; left: 0;
  inline-size: 2.3rem; block-size: 2.3rem; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff;
  background: var(--red-600); border-radius: 8px; box-shadow: var(--shadow);
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0.9rem 0 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.98rem; }
.start-cta {
  margin-top: clamp(2.2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
}
.start-cta span { color: var(--text-muted); font-size: 1rem; }

/* ---------- Visit (location + hours) ---------- */
.visit-sec { background: var(--bg-sunken); }
.visit-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 56rem) { .visit-grid { grid-template-columns: 1.05fr 0.95fr; } }
.visit-copy .btn { margin-top: 1.5rem; }
.visit-facts { display: grid; gap: 0.9rem; }
.fact {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.3rem;
}
.fact__ico { flex: none; inline-size: 2.9rem; block-size: 2.9rem; display: grid; place-items: center; border-radius: 10px; background: var(--red-100); color: var(--red-600); }
[data-theme="dark"] .fact__ico { background: oklch(28% 0.09 27); color: var(--red-500); }
.fact__k { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.15rem; }
.fact__v { display: block; font-weight: 500; color: var(--text); line-height: 1.4; }
.fact__v a { color: var(--red-600); text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: oklch(82% 0.006 275); }

.call-band {
  position: relative; overflow: hidden;
  background: var(--red-600);
  background-image: linear-gradient(120deg, var(--red-700), var(--red-600) 55%, var(--red-500));
  padding-block: clamp(2.5rem, 5vw, 3.8rem); padding-inline: var(--gutter);
}
.call-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.14;
  background-image: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 26px);
}
.call-band__inner { position: relative; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.call-band__eye { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; color: oklch(100% 0 0 / 0.85); margin-bottom: 0.5rem; }
.call-band__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.8rem, 1rem + 3vw, 2.9rem); line-height: 1; color: #fff; }
.call-band__lead { margin-top: 0.6rem; color: oklch(100% 0 0 / 0.9); font-size: 1.05rem; max-width: 34rem; }

.footer-main { padding-block: clamp(2.8rem, 5vw, 4rem) 2.5rem; padding-inline: var(--gutter); }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; } }
.brand-lock--footer { color: #fff; margin-bottom: 1rem; }
.footer-tag { color: #fff; font-weight: 500; max-width: 24rem; }
.footer-note { margin-top: 0.6rem; color: oklch(70% 0.006 275); font-size: 0.94rem; max-width: 26rem; }
.footer-col h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-500); margin-bottom: 1rem; }
.footer-col a:not(.btn):not(.brand-lock):not(.map-facade):not(.footer-inline-call) {
  display: block; text-decoration: none; color: oklch(80% 0.006 275); padding-block: 0.35rem;
  font-size: 0.98rem; transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:not(.btn):not(.brand-lock):not(.map-facade):not(.footer-inline-call):hover { color: #fff; }
.footer-hours { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.94rem; color: oklch(72% 0.006 275); border-bottom: 1px solid oklch(100% 0 0 / 0.08); padding-bottom: 0.5rem; }
.footer-hours b { color: #fff; font-weight: 600; }
.footer-inline-call { display: inline-flex; align-items: center; gap: 0.5ch; margin-top: 0.9rem; color: var(--red-500); text-decoration: none; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }
.footer-inline-call:hover { color: #fff; }

.map-facade {
  position: relative; display: grid; place-items: center; gap: 0.4rem;
  block-size: 8.5rem; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--ink-900); border: 1px solid oklch(100% 0 0 / 0.12);
  transition: border-color var(--dur) var(--ease-out);
}
.map-facade:hover { border-color: var(--red-500); }
.map-facade__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(oklch(100% 0 0 / 0.06) 1px, transparent 1px), linear-gradient(90deg, oklch(100% 0 0 / 0.06) 1px, transparent 1px);
  background-size: 26px 26px; background-position: center;
}
.map-facade__grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 45%, transparent, var(--ink-900) 90%); }
.map-facade__pin { position: relative; color: var(--red-500); }
.map-facade__pin svg { inline-size: 2rem; block-size: 2rem; filter: drop-shadow(0 4px 8px oklch(0% 0 0 / 0.5)); }
.map-facade__label { position: relative; display: inline-flex; align-items: center; gap: 0.4ch; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-address { font-style: normal; margin-top: 0.8rem; color: oklch(74% 0.006 275); font-size: 0.94rem; line-height: 1.6; }

.footer-bottom { border-top: 1px solid oklch(100% 0 0 / 0.1); padding-block: 1.5rem; padding-inline: var(--gutter); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: oklch(62% 0.006 275); }
.studio-credit { font-size: 0.85rem; color: oklch(62% 0.006 275); }
.studio-credit__link { color: var(--red-500); text-decoration: none; font-weight: 600; }
.studio-credit__link:hover { color: #fff; }

/* ---------- Sticky mobile call ---------- */
.sticky-call {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 120;
  display: inline-flex; align-items: center; gap: 0.6ch;
  background: var(--red-600); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-red), 0 10px 30px oklch(0% 0 0 / 0.3);
  transition: transform var(--dur-fast) var(--ease-out);
}
.sticky-call:hover { transform: translateX(-50%) translateY(-2px); }
@media (min-width: 62rem) { .sticky-call { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
/* ==========================================================================
   utilities.css — Utilidades atómicas (último en la cascada)
   ========================================================================== */

.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-balance { text-wrap: balance; }
.mono         { font-family: var(--font-mono); }

.lead { font-size: var(--step-1); color: var(--text-muted); }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.tag--accent { color: var(--primary); border-color: color-mix(in oklch, var(--primary) 40%, var(--border)); }

/* Prose (contenido largo legible) */
.prose { max-width: var(--container-prose); }
.prose p { margin-block: var(--space-md); }
.prose h2 { margin-block: var(--space-xl) var(--space-md); }
.prose h3 { margin-block: var(--space-lg) var(--space-sm); }
.prose ul { margin-block: var(--space-md); padding-inline-start: 1.25rem; }
.prose li { margin-block: 0.4rem; }
.prose a { color: var(--primary); }
