/* ==========================================================================
   tokens.css — Sistema de diseño (design tokens)
   VS Web Studio · 2026
   Fuente única de verdad para color, tipografía, espacio, sombras y motion.
   Color en OKLCH (gama amplia, contraste perceptualmente uniforme) con
   fallback implícito vía variables. Tema claro/oscuro por [data-theme].
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* --- Paleta base (raw) — instrumento de rendimiento: tinta + papel + señal --- */
  --ink-900: oklch(18% 0.02 260);   /* casi negro azulado */
  --ink-800: oklch(24% 0.02 260);
  --ink-700: oklch(34% 0.02 260);
  --ink-500: oklch(52% 0.015 260);  /* texto secundario */
  --ink-300: oklch(72% 0.012 260);
  --paper:   oklch(97.5% 0.006 95); /* papel cálido */
  --paper-2: oklch(94% 0.008 95);
  --white:   oklch(100% 0 0);

  /* Señal primaria — cobalto eléctrico */
  --signal-700: oklch(48% 0.20 264);
  --signal-600: oklch(56% 0.22 264);
  --signal-500: oklch(62% 0.23 264);
  --signal-100: oklch(94% 0.04 264);

  /* Acento de datos en vivo — ámbar (solo métricas / highlights) */
  --amber-500: oklch(78% 0.16 78);
  --amber-300: oklch(88% 0.10 85);

  /* Estados */
  --good:  oklch(70% 0.16 155);     /* verde "good" CWV */
  --warn:  oklch(80% 0.15 80);
  --bad:   oklch(64% 0.20 28);

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

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

  --border:        oklch(88% 0.01 260);
  --border-strong: oklch(80% 0.015 260);

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

  --accent:        var(--amber-500);

  --focus-ring:    var(--signal-500);

  /* --- Tipografía --- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  /* Escala tipográfica fluida (clamp) — base 16px, ratio ~1.25 */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.50rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 2.00rem);
  --step-3:  clamp(1.73rem, 1.50rem + 1.15vw, 2.67rem);
  --step-4:  clamp(2.07rem, 1.70rem + 1.85vw, 3.55rem);
  --step-5:  clamp(2.49rem, 1.95rem + 2.70vw, 4.74rem);

  --leading-tight: 1.08;
  --leading-snug:  1.25;
  --leading-body:  1.6;

  --tracking-tight: -0.02em;
  --tracking-wide:  0.16em;

  /* --- 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:      72rem;   /* 1152px */
  --container-wide: 84rem;
  --container-prose: 42rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

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

  /* --- Sombras (suaves, papel) --- */
  --shadow-sm: 0 1px 2px oklch(20% 0.02 260 / 0.06), 0 1px 1px oklch(20% 0.02 260 / 0.04);
  --shadow:    0 4px 14px oklch(20% 0.02 260 / 0.08), 0 1px 3px oklch(20% 0.02 260 / 0.06);
  --shadow-lg: 0 18px 50px oklch(20% 0.02 260 / 0.12), 0 4px 12px oklch(20% 0.02 260 / 0.08);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur:      260ms;
  --dur-slow: 520ms;

  --header-h: 4.5rem;
}

/* --- Tema OSCURO --- */
[data-theme="dark"] {
  --bg:            var(--ink-900);
  --bg-elevated:   oklch(22% 0.02 260);
  --bg-sunken:     oklch(15% 0.02 260);
  --bg-inverse:    var(--paper);

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

  --border:        oklch(30% 0.02 260);
  --border-strong: oklch(40% 0.02 260);

  --primary:           var(--signal-500);
  --primary-strong:    var(--signal-600);
  --primary-tint:      oklch(30% 0.08 264);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.4);
  --shadow:    0 6px 20px oklch(0% 0 0 / 0.45);
  --shadow-lg: 0 24px 60px oklch(0% 0 0 / 0.55);
}

/* Respeta preferencia del sistema cuando no hay override manual */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            var(--ink-900);
    --bg-elevated:   oklch(22% 0.02 260);
    --bg-sunken:     oklch(15% 0.02 260);
    --bg-inverse:    var(--paper);
    --text:          var(--paper);
    --text-muted:    var(--ink-300);
    --text-inverse:  var(--ink-900);
    --border:        oklch(30% 0.02 260);
    --border-strong: oklch(40% 0.02 260);
    --primary:           var(--signal-500);
    --primary-strong:    var(--signal-600);
    --primary-tint:      oklch(30% 0.08 264);
    --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.4);
    --shadow:    0 6px 20px oklch(0% 0 0 / 0.45);
    --shadow-lg: 0 24px 60px oklch(0% 0 0 / 0.55);
  }
}
/* ==========================================================================
   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 — Componentes de interfaz
   ========================================================================== */

/* ---------- Eyebrow (etiqueta mono) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
}
.eyebrow::before {
  content: "";
  inline-size: 1.6rem;
  block-size: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Botones ---------- */
.btn {
  --_bg: var(--primary);
  --_fg: var(--primary-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6ch;
  padding: 0.85rem 1.4rem;
  min-height: 3rem;            /* objetivo táctil >= 48px (INP/a11y) */
  background: var(--_bg);
  color: var(--_fg);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--lg { padding: 1rem 1.75rem; min-height: 3.4rem; font-size: var(--step-1); }
.btn__arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Header / Navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  block-size: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.site-header[data-scrolled="true"] {
  border-block-end-color: var(--border);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  inline-size: 100%;
  gap: var(--space-lg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  inline-size: 2rem; block-size: 2rem;
  display: grid; place-items: center;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}
.brand__mark span { transform: translateY(-1px); }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--step-0);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  inline-size: 0; block-size: 2px;
  background: var(--primary);
  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: var(--space-sm); }

@media (min-width: 60rem) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Toggle de tema */
.icon-btn {
  inline-size: 2.6rem; block-size: 2.6rem;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .sun  { display: none; }
[data-theme="dark"] .icon-btn .sun  { display: block; }
[data-theme="dark"] .icon-btn .moon { display: none; }

/* Menú móvil */
.nav-toggle {
  inline-size: 2.6rem; block-size: 2.6rem;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--bg-elevated);
  border-block-end: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg) var(--gutter) var(--space-xl);
  display: grid;
  gap: var(--space-xs);
  transform: translateY(-110%);
  transition: transform var(--dur) var(--ease-out);
}
.mobile-menu[data-open="true"] { transform: translateY(0); }
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  padding-block: 0.5rem;
  border-block-end: 1px solid var(--border);
}

/* ---------- HERO ----------
   OJO: la ALTURA/padding del hero los define base.css (viewport-fit: min-height
   calc(100svh - header) + padding compacto). NO volver a poner aquí padding-block
   grande ni min-height:100svh — este archivo se concatena DESPUÉS y ganaría, y el
   hero volvería a pasarse de una pantalla (bug real). Aquí solo estilos visuales. */
.hero { position: relative; }
.hero__title {
  margin-block: 0 var(--space-sm);
}
.hero__title .hl {
  color: var(--primary);
  font-style: italic;
}
.hero__lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: var(--space-xl);
}
.hero__cta { margin-bottom: var(--space-xl); }
.hero__meta {
  display: flex; flex-wrap: wrap;
  gap: var(--space-lg);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.hero__meta b { color: var(--text); font-weight: 600; }

/* ---------- Instrumento de rendimiento (signature) ---------- */
.instrument {
  position: relative;
  background:
    radial-gradient(120% 120% at 80% 0%, var(--primary-tint) 0%, transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  /* rejilla técnica muy sutil */
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-position: -1px -1px;
  overflow: hidden;
}
.instrument::after {
  /* máscara de la rejilla para que se desvanezca */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 30%, var(--bg-elevated) 92%);
  pointer-events: none;
}
.instrument__inner { position: relative; z-index: 1; }
.instrument__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.instrument__label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.live-dot {
  display: inline-flex; align-items: center; gap: 0.5ch;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--good);
}
.live-dot::before {
  content: ""; inline-size: 8px; block-size: 8px;
  border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--good) 60%, transparent);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--good) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px color-mix(in oklch, var(--good) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--good) 0%, transparent); }
}

.gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.gauge { text-align: center; }
.gauge__svg { inline-size: 100%; max-inline-size: 7rem; margin-inline: auto; }
.gauge__track { stroke: var(--border); }
.gauge__arc {
  stroke: var(--good);
  stroke-linecap: round;
  transform: rotate(135deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}
.gauge__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--step-1);
  fill: var(--text);
}
.gauge__name {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}
.gauge__metric { font-weight: 600; color: var(--text); }

.instrument__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.score-badge {
  display: inline-flex; align-items: center; gap: 0.6ch;
  font-weight: 700; color: var(--good);
}
.score-badge b {
  font-size: var(--step-1);
  color: var(--good);
}

/* ---------- Trust / Stats ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: var(--space-xl);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.stat__num .unit { color: var(--accent); }
.stat__label {
  margin-top: var(--space-xs);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ---------- Tarjetas (con container queries) ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card__icon {
  inline-size: 2.75rem; block-size: 2.75rem;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary-strong);
  margin-bottom: var(--space-xs);
}
.card__title { font-size: var(--step-1); }
.card__text { color: var(--text-muted); font-size: var(--step-0); }
.card__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5ch;
}
.card__link:hover { gap: 0.9ch; }

/* La tarjeta se adapta a SU contenedor, no al viewport */
@container (min-width: 26rem) {
  .card { flex-direction: row; align-items: flex-start; }
  .card__icon { flex: none; }
}

/* ---------- Proceso (secuencia numerada — el orden SÍ informa) ---------- */
.steps {
  display: grid;
  gap: var(--space-lg);
  counter-reset: step;
}
@media (min-width: 50rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  position: relative;
  padding-top: var(--space-lg);
  border-top: 2px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--primary);
}
.step__title { font-size: var(--step-1); margin-block: var(--space-xs); }
.step__text { color: var(--text-muted); font-size: var(--step-0); }
.section--ink .step { border-top-color: var(--ink-700); }

/* ---------- FAQ (AEO: pregunta→respuesta, answer-first) ---------- */
.faq { display: grid; gap: var(--space-sm); max-width: 48rem; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}
.faq__q {
  inline-size: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  text-align: start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--text);
}
.faq__q .chev { transition: transform var(--dur) var(--ease-out); flex: none; }
.faq__item[data-open="true"] .chev { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-out);
}
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */
.cta-band {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, color-mix(in oklch, var(--primary) 40%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--text-inverse); }
.cta-band p { color: var(--ink-300); max-width: 36rem; margin-inline: auto; }

/* ---------- Formulario ---------- */
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
}
.field input, .field textarea {
  inline-size: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--step-0);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  field-sizing: content;          /* CSS 2026: el textarea crece con el contenido */
  min-block-size: 3rem;
}
.field textarea { min-block-size: 7rem; max-block-size: 18rem; }
.field input:focus-visible, .field textarea:focus-visible {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 25%, transparent);
}
.field--error input, .field--error textarea { border-color: var(--bad); }
.field__error {
  font-size: var(--step--1);
  color: var(--bad);
  min-block-size: 1.1em;          /* reserva espacio → sin CLS al validar */
}
.form-status {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-status[data-state="ok"]  { background: color-mix(in oklch, var(--good) 18%, transparent); color: var(--good); }
.form-status[data-state="err"] { background: color-mix(in oklch, var(--bad) 16%, transparent); color: var(--bad); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-sunken);
  border-block-start: 1px solid var(--border);
  padding-block: var(--space-2xl) var(--space-xl);
}
.footer-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.footer-col a:not(.btn) {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  padding-block: 0.35rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:not(.btn):hover { color: var(--primary); }
.footer-about p { color: var(--text-muted); max-width: 26rem; margin-block: var(--space-md); }
.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  justify-content: space-between; align-items: center;
  font-size: var(--step--1);
  color: var(--text-muted);
}
.footer-nap {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.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; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
  padding-block: var(--space-lg) 0;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--text); }
/* ==========================================================================
   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); }
/* ==========================================================================
   site.css — Solid Gold Jewelers · bespoke luxe layer (concatenado AL FINAL).
   Sobrescribe tokens del starter (cobalto) -> joyería ORO/carbón/marfil,
   dark-committed, y estiliza cada sección del showroom v2.
   ========================================================================== */

:root, [data-theme="dark"]{
  color-scheme:dark;
  --bg:oklch(15.5% .008 62);
  --bg-elevated:oklch(19.5% .01 64);
  --bg-sunken:oklch(12.5% .007 60);
  --bg-inverse:oklch(96% .012 88);
  --ink:oklch(11% .006 58);
  --text:oklch(94% .012 86);
  --text-muted:oklch(73% .018 78);
  --text-dim:oklch(60% .016 74);
  --text-inverse:oklch(16% .01 60);
  --border:oklch(30% .014 72);
  --border-strong:oklch(42% .02 76);
  --gold-1:oklch(90% .07 92); --gold-2:oklch(82% .12 86); --gold-3:oklch(72% .13 74); --gold-4:oklch(60% .11 66);
  --gold:var(--gold-2);
  --gold-grad:linear-gradient(135deg,#f7ecc0 0%,#e9cf7e 24%,#d8b24a 52%,#b8860b 78%,#f0d98f 100%);
  --gold-soft:color-mix(in oklch,var(--gold) 16%,transparent);
  --gold-line:color-mix(in oklch,var(--gold) 34%,var(--border));
  --primary:var(--gold-2); --primary-strong:var(--gold-3); --primary-contrast:oklch(16% .01 60);
  --primary-tint:color-mix(in oklch,var(--gold) 18%,var(--bg-elevated));
  --ivory:oklch(96% .012 88);
  --focus-ring:var(--gold);
  --font-display:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --font-body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --radius:14px; --radius-lg:22px;
  --shadow:0 6px 24px oklch(0% 0 0 / .5);
  --shadow-lg:0 26px 70px oklch(0% 0 0 / .62);
  --header-h:4.75rem;
  --container:74rem;
}
/* Ningún auto-switch a claro: dark-committed (neutraliza @media prefers del starter) */
@media (prefers-color-scheme: light){ :root:not([data-theme="light"]){ --bg:oklch(15.5% .008 62); --bg-elevated:oklch(19.5% .01 64); --text:oklch(94% .012 86); --text-muted:oklch(73% .018 78); --border:oklch(30% .014 72); } }

body{ background:
  radial-gradient(120% 80% at 85% -10%, color-mix(in oklch,var(--gold) 7%,transparent) 0%, transparent 46%),
  var(--bg); }

h1,h2,h3{ font-family:var(--font-display); font-weight:600; letter-spacing:-.005em; }
::selection{ background:var(--gold); color:var(--ink); }

/* ---------- Gold accents ---------- */
.gild{ background:var(--gold-grad); -webkit-background-clip:text; background-clip:text; color:transparent; font-style:italic; }
.jx-eyebrow{ display:inline-flex; align-items:center; gap:.7ch; font-family:var(--font-body); font-size:.72rem;
  letter-spacing:.24em; text-transform:uppercase; color:var(--gold-3); font-weight:600; }
.jx-eyebrow::before{ content:""; inline-size:1.9rem; block-size:1px; background:var(--gold-grad); }
.jx-eyebrow--center{ justify-content:center; }
.jx-eyebrow--center::before{ display:none; }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.6ch; padding:.9rem 1.5rem;
  min-height:3rem; border-radius:var(--radius-pill); font-family:var(--font-body); font-weight:600;
  font-size:.98rem; line-height:1; letter-spacing:.01em; text-decoration:none; white-space:nowrap; border:1px solid transparent;
  transition:transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, filter .18s, background .18s, color .18s; }
.btn--lg{ padding:1.05rem 1.9rem; min-height:3.4rem; font-size:1.02rem; }
.btn--gold{ position:relative; color:var(--ink); background:var(--gold-grad); background-size:180% 180%; box-shadow:0 8px 26px color-mix(in oklch,var(--gold) 26%,transparent); }
.btn--gold:hover{ transform:translateY(-2px); background-position:100% 0; box-shadow:0 12px 34px color-mix(in oklch,var(--gold) 36%,transparent); }
.btn--gold:active{ transform:translateY(0); }
.btn--outline{ color:var(--ivory); border-color:var(--border-strong); background:color-mix(in oklch,var(--ivory) 4%,transparent); }
.btn--outline:hover{ border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }
.btn svg{ flex:none; }

/* ---------- Section headers ---------- */
.jx-section{ position:relative; }
.section{ padding-block:clamp(3.4rem,7vw,6rem); }
.section--sunken{ background:var(--bg-sunken); }
.jx-head{ max-width:46rem; margin-bottom:clamp(2rem,4vw,3rem); }
.jx-head--center{ margin-inline:auto; text-align:center; }
.jx-head__title{ font-size:clamp(2.1rem,1.5rem + 2.4vw,3.5rem); line-height:1.02; margin-block:.5rem .2rem; }
.jx-head__lead{ color:var(--text-muted); font-size:1.08rem; max-width:40rem; margin-top:.7rem; }
.jx-head--center .jx-head__lead{ margin-inline:auto; }

/* ==========================================================================
   1. HERO (usa el sistema one-screen de base.css: .hero + .hero-grid)
   ========================================================================== */
/* Header CTA visibility must beat app.css .btn{display:inline-flex} (later cascade) */
.jx-header__right .jx-call{ display:none; }
@media (min-width:62rem){ .jx-header__right .jx-call{ display:inline-flex; } }

.jx-hero__intro{ max-width:34rem; }
/* NB: no font-size override here — base.css owns the one-screen hero title sizing
   (capped 3.6rem + short-viewport tiers). Only spacing is customized. */
.jx-hero__title{ margin-block:.6rem .8rem; }
.jx-hero__lead{ color:var(--text-muted); font-size:clamp(1.02rem,1svh + .5vw,1.2rem); margin-bottom:1.5rem; max-width:32rem; }
.jx-hero__ctas{ margin-bottom:1.6rem; }
.jx-hero__trust{ display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; padding:0; }
.jx-hero__trust li{ display:inline-flex; align-items:center; gap:.55ch; font-size:.86rem; color:var(--text-muted); list-style:none; }
.jx-hero__trust svg{ color:var(--gold-3); flex:none; }
.jx-hero__trust b{ color:var(--ivory); font-weight:600; }
.jx-hero__media{ position:relative; }
.jx-hero__frame{ position:relative; border-radius:var(--radius-lg); overflow:hidden; margin:0;
  border:1px solid var(--gold-line); box-shadow:var(--shadow-lg);
  background:linear-gradient(160deg, color-mix(in oklch,var(--gold) 10%,var(--bg-elevated)), var(--bg-sunken)); }
.jx-hero__frame img{ inline-size:100%; block-size:100%; object-fit:cover; aspect-ratio:16/11; }
.jx-hero__frame::after{ content:""; position:absolute; inset:0; box-shadow:inset 0 0 60px oklch(0% 0 0 / .35); pointer-events:none; }
.jx-hero__cap{ position:absolute; left:.85rem; bottom:.85rem; display:inline-flex; align-items:center; gap:.5ch;
  padding:.4rem .8rem; font-size:.72rem; letter-spacing:.02em; color:var(--ivory);
  background:color-mix(in oklch,var(--ink) 62%,transparent); backdrop-filter:blur(6px);
  border:1px solid var(--gold-line); border-radius:var(--radius-pill); }
.jx-hero__cap svg{ color:var(--gold); }

/* ==========================================================================
   2. Trust micro-band
   ========================================================================== */
.jx-band{ border-block:1px solid var(--border); background:color-mix(in oklch,var(--gold) 4%,var(--bg-sunken)); }
.jx-band__row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.7rem 1.4rem; padding-block:1.1rem; text-align:center; }
.jx-band__item{ font-size:.9rem; color:var(--text-muted); }
.jx-band__item b{ color:var(--ivory); font-weight:600; }
.jx-band__dot{ inline-size:5px; block-size:5px; border-radius:50%; background:var(--gold-3); opacity:.7; }
@media (max-width:38rem){ .jx-band__dot{ display:none; } }

/* ==========================================================================
   3. Collections (magazine grid, image-forward)
   ========================================================================== */
.jx-collections{ display:grid; gap:1rem; grid-template-columns:1fr; }
@media (min-width:34rem){ .jx-collections{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:60rem){
  .jx-collections{ grid-template-columns:repeat(6,1fr); grid-auto-rows:1fr; }
  .jx-col:nth-child(1){ grid-column:span 3; } .jx-col:nth-child(2){ grid-column:span 3; }
  .jx-col:nth-child(3){ grid-column:span 2; } .jx-col:nth-child(4){ grid-column:span 2; } .jx-col:nth-child(5){ grid-column:span 2; }
}
.jx-col{ position:relative; display:block; overflow:hidden; border-radius:var(--radius);
  border:1px solid var(--border); aspect-ratio:16/11; min-height:220px; isolation:isolate;
  transition:transform .4s cubic-bezier(.22,1,.36,1), border-color .4s, box-shadow .4s; }
@media (min-width:60rem){ .jx-col:nth-child(n+3){ aspect-ratio:5/6; } }
.jx-col__media{ position:absolute; inset:0; z-index:-2; }
.jx-col__media img{ inline-size:100%; block-size:100%; object-fit:cover; transition:transform .7s cubic-bezier(.22,1,.36,1); }
.jx-col::after{ content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(to top, oklch(9% .006 58 / .92) 6%, oklch(9% .006 58 / .5) 40%, transparent 72%); }
.jx-col__body{ position:absolute; inset-inline:0; bottom:0; padding:1.2rem 1.25rem 1.15rem; }
.jx-col__title{ font-size:1.6rem; line-height:1.05; color:var(--ivory); }
.jx-col__blurb{ margin-top:.3rem; font-size:.9rem; color:color-mix(in oklch,var(--ivory) 82%,transparent); max-width:30ch;
  max-height:0; opacity:0; overflow:hidden; transition:max-height .4s ease, opacity .3s ease, margin .3s; }
.jx-col__cta{ display:inline-flex; align-items:center; gap:.5ch; margin-top:.6rem; font-size:.76rem; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
.jx-col__cta svg{ transition:transform .3s; }
.jx-col:hover{ transform:translateY(-4px); border-color:var(--gold-line); box-shadow:var(--shadow-lg); }
.jx-col:hover .jx-col__media img{ transform:scale(1.06); }
.jx-col:hover .jx-col__blurb{ max-height:5rem; opacity:1; margin-top:.4rem; }
.jx-col:hover .jx-col__cta svg{ transform:translateX(4px); }
.jx-col:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
@media (hover:none){ .jx-col__blurb{ max-height:5rem; opacity:1; } }

/* ==========================================================================
   4. Showcase gallery + lightbox
   ========================================================================== */
.jx-grid{ display:grid; gap:1.1rem; grid-template-columns:repeat(auto-fill, minmax(min(100%,15rem),1fr)); }
.jx-piece{ margin:0; display:flex; flex-direction:column; background:var(--bg-elevated);
  border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  transition:transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, box-shadow .35s; }
.jx-piece:hover{ transform:translateY(-5px); border-color:var(--gold-line); box-shadow:var(--shadow-lg); }
.jx-piece__btn{ position:relative; display:block; padding:0; border:0; background:var(--bg-sunken); cursor:zoom-in; overflow:hidden; }
.jx-piece__btn img{ inline-size:100%; aspect-ratio:1/1; object-fit:cover; transition:transform .7s cubic-bezier(.22,1,.36,1); }
.jx-piece:hover .jx-piece__btn img{ transform:scale(1.07); }
.jx-piece__zoom{ position:absolute; top:.6rem; right:.6rem; inline-size:2rem; block-size:2rem; display:grid; place-items:center;
  border-radius:50%; color:var(--gold); background:color-mix(in oklch,var(--ink) 55%,transparent); backdrop-filter:blur(6px);
  border:1px solid var(--gold-line); opacity:0; transform:translateY(-4px); transition:.3s; }
.jx-piece:hover .jx-piece__zoom{ opacity:1; transform:none; }
.jx-piece__cap{ display:flex; flex-direction:column; gap:.15rem; padding:.9rem 1rem 1rem; }
.jx-piece__meta{ font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color:var(--gold-3); font-weight:600; }
.jx-piece__title{ font-family:var(--font-display); font-size:1.35rem; line-height:1.05; color:var(--ivory); }
.jx-piece__ask{ margin-top:.55rem; display:inline-flex; align-items:center; gap:.5ch; font-size:.82rem; font-weight:600; color:var(--gold); }
.jx-piece__ask svg{ flex:none; }
.jx-piece__ask:hover{ text-decoration:underline; text-underline-offset:3px; }
.jx-showcase__note{ margin-top:1.6rem; display:inline-flex; align-items:center; gap:.6ch; font-size:.82rem; color:var(--text-dim); }
.jx-showcase__note svg{ color:var(--gold-3); }

.jx-lb{ position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:clamp(1rem,4vw,3rem);
  background:oklch(6% .004 58 / .9); backdrop-filter:blur(8px); }
.jx-lb[hidden]{ display:none; }
.jx-lb__fig{ margin:0; max-width:min(92vw,60rem); text-align:center; }
.jx-lb__fig img{ inline-size:100%; max-height:78svh; object-fit:contain; border-radius:var(--radius);
  border:1px solid var(--gold-line); box-shadow:var(--shadow-lg); }
.jx-lb__fig figcaption{ margin-top:.9rem; font-size:.86rem; color:var(--text-muted); }
.jx-lb__close{ position:absolute; top:1rem; right:1.2rem; inline-size:2.8rem; block-size:2.8rem; font-size:1.8rem; line-height:1;
  color:var(--ivory); background:color-mix(in oklch,var(--ink) 60%,transparent); border:1px solid var(--border-strong); border-radius:50%; }
.jx-lb__close:hover{ color:var(--gold); border-color:var(--gold); }

/* ==========================================================================
   5. Configurator (star moment)
   ========================================================================== */
.jx-config{ display:grid; gap:clamp(1.4rem,3vw,2.6rem); align-items:start;
  border:1px solid var(--gold-line); border-radius:var(--radius-lg); padding:clamp(1.3rem,3vw,2.4rem);
  background:linear-gradient(150deg, color-mix(in oklch,var(--gold) 6%,var(--bg-elevated)), var(--bg-sunken)); }
@media (min-width:52rem){ .jx-config{ grid-template-columns:1.25fr .9fr; } }
.jx-fset{ border:0; padding:0; margin:0 0 1.3rem; }
.jx-fset:last-child{ margin-bottom:0; }
.jx-fset legend{ font-family:var(--font-body); font-size:.72rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold-3); font-weight:600; margin-bottom:.7rem; padding:0; }
.jx-opts{ display:flex; flex-wrap:wrap; gap:.6rem; }
.jx-opt{ position:relative; display:inline-flex; align-items:center; gap:.55ch; padding:.6rem .9rem .6rem .65rem;
  border:1px solid var(--border-strong); border-radius:var(--radius-pill); cursor:pointer; color:var(--text-muted);
  background:color-mix(in oklch,var(--ivory) 3%,transparent); transition:border-color .2s, color .2s, background .2s; user-select:none; }
.jx-opt input{ position:absolute; opacity:0; inline-size:1px; block-size:1px; }
.jx-opt:hover{ border-color:var(--gold-line); color:var(--ivory); }
.jx-opt:has(input:checked){ border-color:var(--gold); color:var(--ivory); background:var(--gold-soft); }
.jx-opt:has(input:focus-visible){ outline:2px solid var(--gold); outline-offset:2px; }
.jx-opt__sw{ inline-size:1.35rem; block-size:1.35rem; border-radius:50%; background:linear-gradient(135deg,var(--a),var(--b));
  box-shadow:inset 0 0 0 1px oklch(100% 0 0 / .25), inset 0 -3px 5px oklch(0% 0 0 / .3); flex:none; }
.jx-opt__sw--stone{ box-shadow:inset 0 0 0 1px oklch(100% 0 0 / .4), 0 0 8px color-mix(in oklch,var(--b) 60%,transparent); }
.jx-opt__sw--none{ background:repeating-linear-gradient(45deg,var(--border-strong) 0 3px,transparent 3px 6px); box-shadow:inset 0 0 0 1px var(--border-strong); }
.jx-opt__ic{ inline-size:1.35rem; block-size:1.35rem; color:var(--gold-3); flex:none; }
.jx-opt__ic svg{ inline-size:100%; block-size:100%; }
.jx-opt:has(input:checked) .jx-opt__ic{ color:var(--gold); }
.jx-opt__t{ font-size:.86rem; font-weight:500; }

.jx-config__preview{ text-align:center; align-self:stretch; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:1.4rem; border-radius:var(--radius); background:radial-gradient(80% 80% at 50% 30%, color-mix(in oklch,var(--gold) 8%,var(--bg-sunken)), var(--bg-sunken));
  border:1px solid var(--border); }
.jx-preview{ position:relative; inline-size:9.5rem; block-size:9.5rem; display:grid; place-items:center; margin-bottom:1.1rem; }
.jx-preview__disc{ position:relative; inline-size:7rem; block-size:7rem; border-radius:50%;
  background:linear-gradient(135deg,var(--a,#f6df9b),var(--b,#c9971f)); display:grid; place-items:center;
  box-shadow:inset 0 3px 8px oklch(100% 0 0 / .45), inset 0 -8px 16px oklch(0% 0 0 / .4), 0 12px 30px oklch(0% 0 0 / .5);
  transition:background .4s; }
.jx-preview__disc::before{ content:""; position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(from 210deg, transparent, oklch(100% 0 0 / .5), transparent 120deg); mix-blend-mode:overlay; opacity:.7; }
.jx-preview__icon{ position:relative; inline-size:3rem; block-size:3rem; color:oklch(22% .02 60 / .85); z-index:1; }
.jx-preview__icon svg{ inline-size:100%; block-size:100%; }
.jx-preview__stone{ position:absolute; inset-block-start:1.05rem; inline-size:1.15rem; block-size:1.15rem; border-radius:50%; z-index:2;
  box-shadow:0 0 10px oklch(100% 0 0 / .6), inset 0 0 0 1px oklch(100% 0 0 / .7); }
.jx-preview__ring{ position:absolute; inset:0; border-radius:50%; border:1px dashed var(--gold-line);
  animation:jxspin 26s linear infinite; }
@keyframes jxspin{ to{ transform:rotate(360deg); } }
.jx-preview__label{ font-family:var(--font-display); font-size:1.5rem; line-height:1.15; color:var(--ivory); max-width:20rem; }
.jx-preview__hint{ margin-top:.5rem; font-size:.76rem; color:var(--text-dim); max-width:22rem; }
.jx-preview__cta{ margin-top:1.1rem; }

/* ==========================================================================
   6. The bench
   ========================================================================== */
.jx-bench__grid{ display:grid; gap:clamp(1.6rem,4vw,3.5rem); align-items:center; }
@media (min-width:56rem){ .jx-bench__grid{ grid-template-columns:.85fr 1.15fr; } }
.jx-bench__media{ position:relative; margin:0; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--gold-line); box-shadow:var(--shadow-lg); }
.jx-bench__media img{ inline-size:100%; block-size:100%; object-fit:cover; aspect-ratio:4/5; }
.jx-bench__chip{ position:absolute; left:1rem; bottom:1rem; padding:.55rem .95rem; border-radius:var(--radius);
  font-size:.82rem; color:var(--ivory); background:color-mix(in oklch,var(--ink) 66%,transparent); backdrop-filter:blur(8px);
  border:1px solid var(--gold-line); }
.jx-bench__chip span{ display:block; font-size:.66rem; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); }
.jx-bench__lead{ color:var(--text-muted); font-size:1.08rem; margin:.9rem 0 1.3rem; max-width:38rem; }
.jx-bench__points{ display:grid; gap:1rem; margin:0 0 1.6rem; padding:0; }
.jx-bench__points li{ display:flex; gap:.9ch; list-style:none; color:var(--text-muted); font-size:.98rem; }
.jx-bench__points svg{ color:var(--gold-3); flex:none; margin-top:.15rem; }
.jx-bench__points b{ color:var(--ivory); font-weight:600; }

/* ==========================================================================
   7. FAQ
   ========================================================================== */
.jx-faq{ max-width:48rem; margin-inline:auto; display:grid; gap:.7rem; }
.jx-faq__item{ border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-elevated); overflow:hidden;
  transition:border-color .3s; }
.jx-faq__item[data-open="true"]{ border-color:var(--gold-line); }
.jx-faq__q{ inline-size:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1.05rem 1.3rem; text-align:start; font-family:var(--font-display); font-weight:600; font-size:1.3rem; color:var(--ivory); }
.jx-faq__q .chev{ flex:none; color:var(--gold-3); transition:transform .3s; }
.jx-faq__item[data-open="true"] .chev{ transform:rotate(180deg); color:var(--gold); }
.jx-faq__a{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .3s ease; }
.jx-faq__item[data-open="true"] .jx-faq__a{ grid-template-rows:1fr; }
.jx-faq__a > div{ overflow:hidden; }
.jx-faq__a p{ padding:0 1.3rem 1.15rem; color:var(--text-muted); }

/* ==========================================================================
   8. Visit + map facade
   ========================================================================== */
.jx-visit__grid{ display:grid; gap:clamp(1.6rem,4vw,3rem); align-items:stretch; }
@media (min-width:56rem){ .jx-visit__grid{ grid-template-columns:1fr 1fr; } }
.jx-visit__addr{ font-style:normal; display:grid; gap:1rem; margin:1.1rem 0 1.6rem; }
.jx-visit__row{ display:flex; gap:.9ch; align-items:flex-start; color:var(--text-muted); }
.jx-visit__row svg{ color:var(--gold-3); flex:none; margin-top:.1rem; }
.jx-visit__row b{ color:var(--ivory); font-weight:600; }
.jx-visit__row small{ color:var(--text-dim); }
.jx-visit__row a{ color:var(--text-muted); }
.jx-visit__row a:hover{ color:var(--gold); }
.jx-visit__ctas{ display:flex; flex-wrap:wrap; gap:.8rem; }
.jx-visit__map{ min-height:20rem; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--gold-line); }
.jx-map{ inline-size:100%; block-size:100%; min-height:20rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem;
  cursor:pointer; color:var(--text-muted); text-align:center; padding:2rem;
  background:
    repeating-linear-gradient(0deg, color-mix(in oklch,var(--gold) 5%,transparent) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, color-mix(in oklch,var(--gold) 5%,transparent) 0 1px, transparent 1px 42px),
    radial-gradient(70% 70% at 50% 45%, color-mix(in oklch,var(--gold) 9%,var(--bg-elevated)), var(--bg-sunken)); }
.jx-map__pin{ color:var(--gold); }
.jx-map__label{ font-family:var(--font-display); font-size:1.35rem; color:var(--ivory); line-height:1.2; }
.jx-map__label small{ font-family:var(--font-body); font-size:.82rem; color:var(--text-muted); }
.jx-map__load{ margin-top:.4rem; font-size:.74rem; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--gold); }
.jx-map:hover{ color:var(--ivory); }

/* ==========================================================================
   Footer (bespoke luxe)
   ========================================================================== */
.jx-footer{ background:var(--bg-sunken); border-block-start:1px solid var(--border); }
.jx-footcta{ position:relative; background:linear-gradient(135deg, oklch(24% .04 70), oklch(15% .02 62)); overflow:hidden;
  padding-block:clamp(3rem,7vw,5rem); text-align:center; }
.jx-footcta::before{ content:""; position:absolute; inset:0; background:radial-gradient(70% 140% at 50% -20%, color-mix(in oklch,var(--gold) 26%,transparent), transparent 60%); pointer-events:none; }
.jx-footcta::after{ content:""; position:absolute; inset-inline:0; top:0; block-size:2px; background:var(--gold-grad); }
.jx-footcta__inner{ position:relative; }
.jx-eyebrow--center{ color:var(--gold); }
.jx-footcta__title{ font-size:clamp(2rem,1.4rem + 2.4vw,3.2rem); line-height:1.02; color:var(--ivory); margin:.4rem auto .6rem; max-width:20ch; }
.jx-footcta__lead{ color:color-mix(in oklch,var(--ivory) 78%,transparent); max-width:38rem; margin:0 auto 1.7rem; }
.jx-footcta__ctas{ display:flex; flex-wrap:wrap; gap:.9rem; justify-content:center; }

.jx-footgrid{ display:grid; gap:2rem; grid-template-columns:1fr; padding-block:clamp(2.4rem,5vw,3.5rem); }
@media (min-width:48rem){ .jx-footgrid{ grid-template-columns:1.6fr 1fr 1.2fr 1fr; } }
.jx-brand--footer{ align-items:flex-start; }
.jx-brand--footer .jx-brand__name{ font-family:var(--font-display); font-weight:600; font-size:1.7rem; letter-spacing:.06em;
  text-transform:uppercase; background:var(--gold-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.jx-brand--footer .jx-brand__sub{ font-size:.6rem; letter-spacing:.3em; text-transform:uppercase; color:var(--text-dim); }
.jx-footabout{ color:var(--text-muted); font-size:.92rem; margin:.9rem 0 1rem; max-width:30rem; }
.jx-footlogo{ inline-size:auto; max-inline-size:11rem; height:auto; border-radius:8px; opacity:.9; }
.jx-footcol h3{ font-family:var(--font-body); font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--gold-3); margin-bottom:.9rem; font-weight:600; }
.jx-footcol a{ display:block; color:var(--text-muted); padding-block:.32rem; transition:color .2s; }
.jx-footcol a:hover{ color:var(--gold); }
.jx-footnap{ font-style:normal; color:var(--text-muted); font-size:.92rem; line-height:1.8; }
.jx-footnap__hours{ color:var(--text-dim); }
.jx-footnap__note{ color:var(--text-dim); font-size:.82rem; }
.jx-footphone{ font-family:var(--font-display); font-size:1.5rem; color:var(--gold)!important; }
.jx-footbottom{ display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; justify-content:space-between; align-items:center;
  padding-block:1.3rem; border-top:1px solid var(--border); font-size:.82rem; color:var(--text-dim); }
.studio-credit{ color:var(--text-dim); }
.studio-credit__link{ color:var(--gold-3); text-decoration:none; }
.studio-credit__link:hover{ color:var(--gold); text-decoration:underline; text-underline-offset:2px; }

/* ---------- Mobile menu (custom) ---------- */
.jx-mobile{ position:fixed; inset:var(--header-h) 0 auto 0; z-index:99; background:var(--bg-elevated);
  border-block-end:1px solid var(--gold-line); box-shadow:var(--shadow-lg); padding:1.2rem var(--gutter) 1.6rem;
  display:grid; gap:.2rem; transform:translateY(-115%); transition:transform .32s cubic-bezier(.22,1,.36,1); }
.jx-mobile[data-open="true"]{ transform:translateY(0); }
.jx-mobile a{ font-family:var(--font-display); font-size:1.5rem; font-weight:600; color:var(--ivory); padding-block:.5rem;
  border-block-end:1px solid var(--border); text-decoration:none; }
.jx-mobile__cta{ margin-top:.9rem; border:0; color:var(--ink); justify-content:center; }
@media (min-width:62rem){ .jx-mobile{ display:none; } }

/* ---------- Sticky mobile call bar ---------- */
.jx-stickycall{ position:fixed; inset-inline:.7rem; bottom:.7rem; z-index:90; display:flex; align-items:center; justify-content:center; gap:.6ch;
  padding:.9rem 1.2rem; border-radius:var(--radius-pill); font-weight:600; color:var(--ink); text-decoration:none;
  background:var(--gold-grad); box-shadow:0 10px 30px oklch(0% 0 0 / .5); }
.jx-stickycall svg{ flex:none; }
@media (min-width:62rem){ .jx-stickycall{ display:none; } }

/* ==========================================================================
   Reveal (staggered) + reduced motion
   ========================================================================== */
.reveal{ opacity:0; transform:translateY(22px); }
.reveal.is-in{ opacity:1; transform:none; transition:opacity .7s cubic-bezier(.22,1,.36,1) var(--d,0ms), transform .7s cubic-bezier(.22,1,.36,1) var(--d,0ms); }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; }
  .jx-preview__ring{ animation:none; }
  .jx-col__media img, .jx-piece__btn img{ transition:none; }
  *{ scroll-behavior:auto; }
}

/* Small screens: sticky call bar shouldn't cover footer credit */
@media (max-width:62rem){ .jx-footbottom{ padding-bottom:4.5rem; } }
