/* ==========================================================================
   tokens.css — Design system for Memorial Bakery (VS Web Studio · 2026)
   Warm patisserie palette: cream paper + cocoa ink + real-brand grape purple
   (pulled from the client's logo) + honey gold. OKLCH, light/dark via [data-theme].
   Same variable NAMES as the golden scaffold so every component keeps working.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* --- Base paper + ink (warm bakery) --- */
  --ink-900: oklch(26% 0.045 45);    /* deep espresso / cocoa brown */
  --ink-800: oklch(32% 0.045 45);
  --ink-700: oklch(41% 0.040 45);
  --ink-500: oklch(52% 0.032 48);    /* muted brown text */
  --ink-300: oklch(74% 0.022 55);
  --paper:   oklch(96.8% 0.018 78);  /* warm cream */
  --paper-2: oklch(93.2% 0.022 35);  /* soft blush cream (sunken) */
  --white:   oklch(99.4% 0.006 80);

  /* Primary signal — GRAPE (real brand, sampled from the Memorial Bakery logo) */
  --signal-700: oklch(41% 0.155 312);
  --signal-600: oklch(47% 0.150 312);
  --signal-500: oklch(55% 0.150 312);
  --signal-100: oklch(92% 0.045 312);

  /* Accent — honey gold (the logo's baker/chef mark) */
  --amber-500: oklch(75% 0.130 78);
  --amber-300: oklch(87% 0.085 82);

  /* Blush — soft patisserie pink used for tints & the cake tool */
  --blush-500: oklch(80% 0.075 20);
  --blush-100: oklch(94% 0.030 22);

  /* States */
  --good:  oklch(70% 0.14 155);
  --warn:  oklch(80% 0.15 80);
  --bad:   oklch(60% 0.19 28);

  /* --- Semantic tokens (LIGHT default) --- */
  --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(87% 0.018 55);
  --border-strong: oklch(78% 0.028 50);

  --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);

  /* --- Typography — Fraunces (display serif) + Inter (body) --- */
  --font-display: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --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.35rem);
  --step-5:  clamp(2.49rem, 1.95rem + 2.70vw, 4.40rem);

  --leading-tight: 1.06;
  --leading-snug:  1.22;
  --leading-body:  1.62;

  --tracking-tight: -0.018em;
  --tracking-wide:  0.20em;

  /* --- Space (4px scale) --- */
  --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(1rem, 4vw, 2.5rem);

  /* --- Radii (softer, bakery) --- */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* --- Shadows (warm, soft) --- */
  --shadow-sm: 0 1px 2px oklch(30% 0.05 45 / 0.08), 0 1px 1px oklch(30% 0.05 45 / 0.05);
  --shadow:    0 6px 18px oklch(30% 0.05 45 / 0.10), 0 2px 5px oklch(30% 0.05 45 / 0.07);
  --shadow-lg: 0 22px 60px oklch(30% 0.05 45 / 0.16), 0 6px 16px oklch(30% 0.05 45 / 0.09);

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

  --header-h: 4.75rem;
}

/* --- DARK theme (warm cocoa night) --- */
[data-theme="dark"] {
  --bg:            oklch(20% 0.030 45);
  --bg-elevated:   oklch(25% 0.032 45);
  --bg-sunken:     oklch(17% 0.028 40);
  --bg-inverse:    var(--paper);

  --text:          oklch(95% 0.012 78);
  --text-muted:    oklch(78% 0.022 60);
  --text-inverse:  var(--ink-900);

  --border:        oklch(34% 0.028 45);
  --border-strong: oklch(46% 0.030 45);

  --primary:           oklch(64% 0.150 312);
  --primary-strong:    oklch(58% 0.150 312);
  --primary-contrast:  oklch(18% 0.03 45);
  --primary-tint:      oklch(32% 0.075 312);

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

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            oklch(20% 0.030 45);
    --bg-elevated:   oklch(25% 0.032 45);
    --bg-sunken:     oklch(17% 0.028 40);
    --bg-inverse:    var(--paper);
    --text:          oklch(95% 0.012 78);
    --text-muted:    oklch(78% 0.022 60);
    --text-inverse:  var(--ink-900);
    --border:        oklch(34% 0.028 45);
    --border-strong: oklch(46% 0.030 45);
    --primary:           oklch(64% 0.150 312);
    --primary-strong:    oklch(58% 0.150 312);
    --primary-contrast:  oklch(18% 0.03 45);
    --primary-tint:      oklch(32% 0.075 312);
    --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.45);
    --shadow:    0 6px 20px oklch(0% 0 0 / 0.5);
    --shadow-lg: 0 24px 60px 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 — 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); }
/* ==========================================================================
   mb.css — Memorial Bakery bespoke components (v2 "top home page")
   Warm patisserie chrome + showroom + Design-your-cake tool. Concatenated
   after components.css, before utilities.css.
   ========================================================================== */

/* Orchestrated reveal stagger */
.reveal { transition-delay: var(--d, 0ms); }

/* Gold accents shared */
.eyebrow--gold { color: var(--accent); }
.btn--gold {
  --_bg: linear-gradient(180deg, var(--amber-500), oklch(70% 0.13 74));
  --_fg: oklch(26% 0.06 60);
  background: var(--_bg);
  color: var(--_fg);
  box-shadow: 0 6px 16px oklch(70% 0.13 78 / 0.32);
}
.btn--gold:hover { filter: brightness(1.03); }
.mb-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 54ch; margin-top: 0.75rem; }
.mb-lead--center { margin-inline: auto; }

/* ---------------- Custom header / centered-logo split nav ---------------- */
.mb-header { background: transparent; }
.mb-header[data-scrolled="true"] {
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-block-end-color: var(--border);
  box-shadow: 0 6px 22px oklch(30% 0.05 45 / 0.07);
}
.mb-nav { display: flex; align-items: center; justify-content: space-between; inline-size: 100%; gap: 1rem; }
.mb-nav__links { display: none; align-items: center; gap: 1.4rem; }
.mb-nav__links a:not(.btn) {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.98rem;
  position: relative; padding-block: 0.3rem; transition: color 0.15s var(--ease-out);
}
.mb-nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; inline-size: 0; block-size: 2px;
  background: var(--primary); border-radius: 2px; transition: inline-size var(--dur) var(--ease-out);
}
.mb-nav__links a:not(.btn):hover { color: var(--primary); }
.mb-nav__links a:not(.btn):hover::after { inline-size: 100%; }
.mb-nav__links--right { gap: 1rem; }
.mb-nav__call { min-height: 2.7rem; padding: 0.55rem 1.05rem; font-size: 0.94rem; }
.mb-nav__call svg { display: inline; }
.mb-brand { display: inline-flex; align-items: center; text-decoration: none; }
.mb-brand img { height: 2.35rem; width: auto; }
.mb-brand__text { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--text); }
.mb-nav__toggle { display: grid; place-items: center; inline-size: 2.7rem; block-size: 2.7rem; color: var(--text); }

@media (min-width: 60rem) {
  .mb-nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .mb-nav__links { display: flex; }
  .mb-nav__links--left { justify-self: start; }
  .mb-brand { justify-self: center; }
  .mb-nav__links--right { justify-self: end; }
  .mb-nav__toggle { display: none; }
}

/* Dark theme: colored logo (black text) needs a light chip to stay legible */
[data-theme="dark"] .mb-brand img,
[data-theme="dark"] .mb-brand--footer img { background: var(--white); padding: 0.25rem 0.5rem; border-radius: 8px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mb-brand img,
  :root:not([data-theme="light"]) .mb-brand--footer img { background: var(--white); padding: 0.25rem 0.5rem; border-radius: 8px; }
}

.mb-mobile a.btn { justify-content: center; margin-top: 0.5rem; }
.mb-mobile a.btn svg { display: inline; }

/* ---------------- Hero ---------------- */
.mb-hero__lead { margin-bottom: 1.25rem; }
.mb-hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center;
  font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-muted);
}
.mb-hero__meta svg { display: inline; vertical-align: -2px; color: var(--primary); }
.mb-dot { opacity: 0.5; }
.mb-hero__media { position: relative; margin: 0; }
.mb-hero__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover;
}
.mb-hero__cap {
  position: absolute; left: 0.85rem; bottom: 0.85rem;
  background: color-mix(in oklch, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted);
}
@media (max-width: 59.99rem) { .mb-hero__cap { display: none; } }

/* ---------------- The Case — showroom ---------------- */
.mb-showcase { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52rem) { .mb-showcase { grid-template-columns: repeat(3, 1fr); } }

.mb-prod {
  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);
}
.mb-prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.mb-prod__media { overflow: hidden; aspect-ratio: 4 / 3; }
.mb-prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.mb-prod:hover .mb-prod__media img { transform: scale(1.05); }
.mb-prod__body { padding: 1.05rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.mb-prod__title { font-size: 1.3rem; }
.mb-prod__blurb { color: var(--text-muted); font-size: 0.94rem; }
.mb-prod__cta { margin-top: auto; padding-top: 0.6rem; color: var(--primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5ch; font-size: 0.9rem; transition: gap 0.18s var(--ease-out); }
.mb-prod__cta svg { display: inline; }
.mb-prod__cta:hover { gap: 0.85ch; }
.mb-prod__icon { inline-size: 2.75rem; block-size: 2.75rem; display: grid; place-items: center; border-radius: 12px; background: var(--bg-elevated); color: var(--primary); margin-bottom: 0.3rem; box-shadow: var(--shadow-sm); }

.mb-prod--feature { grid-column: 1 / -1; }
@media (min-width: 52rem) {
  .mb-prod--feature { flex-direction: row; }
  .mb-prod--feature .mb-prod__media { flex: 1 1 56%; aspect-ratio: auto; }
  .mb-prod--feature .mb-prod__body { flex: 1 1 44%; justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
  .mb-prod--feature .mb-prod__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
  .mb-prod--feature .mb-prod__blurb { font-size: 1.05rem; }
}
.mb-prod--soft { background: linear-gradient(160deg, color-mix(in oklch, var(--primary-tint) 70%, var(--bg-elevated)), var(--bg-elevated)); justify-content: center; }
.mb-prod--soft .mb-prod__body { justify-content: center; }

/* ---------------- Design your cake (star moment) ---------------- */
.mb-builder {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  background: linear-gradient(165deg, color-mix(in oklch, var(--primary-tint) 55%, var(--bg-elevated)), var(--bg-elevated));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-lg);
}
@media (min-width: 56rem) { .mb-builder { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; } }
.mb-builder__controls { display: flex; flex-direction: column; gap: 1.25rem; }
.mb-fld { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.mb-fld legend { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.55rem; color: var(--text); padding: 0; }
.mb-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mb-opt { position: relative; }
.mb-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.mb-opt span {
  display: inline-flex; align-items: center; gap: 0.4ch; padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--bg-elevated);
  font-size: 0.92rem; font-weight: 500; color: var(--text); user-select: none;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.mb-opt:hover span { border-color: var(--primary); }
.mb-opt input:checked + span { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); box-shadow: 0 4px 12px color-mix(in oklch, var(--primary) 35%, transparent); }
.mb-opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.mb-opts--tiers .mb-opt span { flex-direction: column; gap: 0; min-inline-size: 3.5rem; padding: 0.5rem 0.7rem; line-height: 1.05; font-size: 1.2rem; font-weight: 700; }
.mb-opts--tiers small { font-size: 0.6rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.mb-fld__note { margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }

.mb-builder__preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.mb-cake { inline-size: min(100%, 260px); }
.mb-cake svg { inline-size: 100%; height: auto; overflow: visible; }
.mb-cake__plate { fill: color-mix(in oklch, var(--text) 12%, transparent); }
.mb-summary { inline-size: 100%; }
.mb-summary__eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.72rem; color: var(--text-muted); }
.mb-summary__line { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0.25rem 0 1rem; color: var(--text); }
.mb-summary__cta { inline-size: 100%; }
.mb-summary__cta svg { display: inline; }
.mb-summary__note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.6rem; }

/* ---------------- Gallery rail ---------------- */
.mb-rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem var(--gutter) 1rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.mb-rail:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; border-radius: var(--radius); }
.mb-rail__item { flex: 0 0 auto; inline-size: min(80vw, 340px); scroll-snap-align: center; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mb-rail__item img { inline-size: 100%; block-size: 260px; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.mb-rail__item:hover img { transform: scale(1.05); }
.mb-rail__hint { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }

/* ---------------- Why us ---------------- */
.mb-why__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.mb-why__card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.mb-why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mb-why__icon { inline-size: 2.75rem; block-size: 2.75rem; display: grid; place-items: center; border-radius: 12px; background: var(--primary-tint); color: var(--primary-strong); }
.mb-why__card h3 { font-size: 1.2rem; }
.mb-why__card p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------------- Visit + map ---------------- */
.mb-visit__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .mb-visit__grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.mb-visit__list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.mb-visit__list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.mb-visit__k { display: inline-flex; align-items: center; gap: 0.5ch; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.mb-visit__k svg { display: inline; color: var(--primary); }
.mb-visit__v { color: var(--text); }
.mb-visit__v a { color: var(--primary); font-weight: 600; }
.mb-visit__v em { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }
@media (max-width: 34rem) { .mb-visit__list li { grid-template-columns: 1fr; gap: 0.3rem; } }

.mb-map {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--primary-tint), var(--bg-sunken));
}
.mb-map__facade {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  cursor: pointer; color: var(--text); font-weight: 600;
  background-image:
    linear-gradient(color-mix(in oklch, var(--border) 65%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--border) 65%, transparent) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px;
}
.mb-map__pin { color: var(--primary); transition: transform 0.2s var(--ease-out); }
.mb-map__facade:hover .mb-map__pin { transform: translateY(-3px); }
.mb-map__label { font-family: var(--font-display); font-size: 1.15rem; }
.mb-map__addr { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.mb-map iframe { inline-size: 100%; block-size: 100%; border: 0; display: block; }

/* ---------------- Footer ---------------- */
.mb-footer { background: var(--bg-sunken); border-block-start: 1px solid var(--border); }
.mb-footer__cta { background: linear-gradient(135deg, var(--signal-700), var(--signal-600)); color: var(--white); }
.mb-footer__cta-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; padding-block: clamp(2rem, 5vw, 3rem); }
.mb-footer__cta .eyebrow--gold { color: var(--amber-300); }
.mb-footer__cta-title { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0.25rem 0; }
.mb-footer__cta-sub { color: color-mix(in oklch, var(--white) 82%, transparent); max-width: 40ch; }
.mb-footer__cta-btn { flex: 0 0 auto; }

.mb-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 48rem) { .mb-footer__grid { grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr; } }
.mb-brand--footer { display: inline-flex; margin-bottom: 1rem; }
.mb-footer__tag { color: var(--text-muted); max-width: 34ch; margin-bottom: 1rem; font-size: 0.94rem; }
.mb-footer__social { display: flex; gap: 1.2rem; }
.mb-footer__social a { color: var(--primary); font-weight: 600; text-decoration: none; }
.mb-footer__social a:hover { text-decoration: underline; }
.mb-footer__col h3 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.mb-footer__col a:not(.mb-footer__social a) { display: block; color: var(--text-muted); text-decoration: none; padding-block: 0.3rem; transition: color 0.15s var(--ease-out); }
.mb-footer__col a:not(.mb-footer__social a):hover { color: var(--primary); }
.mb-footer__hours { color: var(--text); font-weight: 500; margin-bottom: 0.5rem; }
.mb-footer__note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.mb-footer__inline { display: inline-flex; align-items: center; gap: 0.5ch; color: var(--primary); font-weight: 600; }
.mb-footer__inline svg { display: inline; }
.mb-footer__nap { font-style: normal; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.5rem; }
.mb-footer__bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; padding-block: 1.25rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }
.studio-credit__link { color: var(--primary); text-decoration: none; font-weight: 600; }
.studio-credit__link:hover { text-decoration: underline; }

/* ---------------- Sticky mobile call bar ---------------- */
.mb-callbar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 0.6ch;
  padding: 0.9rem 1.2rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-500), oklch(70% 0.13 74)); color: oklch(26% 0.06 60);
  font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px oklch(60% 0.12 70 / 0.4);
  transform: translateY(180%); transition: transform var(--dur) var(--ease-out);
}
.mb-callbar svg { display: inline; }
.mb-callbar.is-show { transform: translateY(0); }
@media (min-width: 60rem) { .mb-callbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .mb-callbar { transition: 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); }
