@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 400; font-style: normal; font-display: swap; src: url('/public/fonts/AtkinsonHyperlegibleNext-Regular.woff') format('woff'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 500; font-style: normal; font-display: swap; src: url('/public/fonts/AtkinsonHyperlegibleNext-Medium.woff') format('woff'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 600; font-style: normal; font-display: swap; src: url('/public/fonts/AtkinsonHyperlegibleNext-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 700; font-style: normal; font-display: swap; src: url('/public/fonts/AtkinsonHyperlegibleNext-Bold.woff') format('woff'); }

/* ==========================================================================
   Olevior — sistema del sitio
   «El manifiesto como columna»: el sitio es un argumento en una columna de
   lectura y cada afirmación se prueba al margen con un producto que funciona.

   Tipografías, colores y logos son los de la marca (fijados por el dueño):
   Geist (argumento), Space Grotesk (lo que los productos dicen en voz alta),
   Geist Mono (referencias, horas y precios).
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Olevior */
  --ink: #0B2A4A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --brand: #85B7EB;
  --brand-deep: #5A8FC9;
  --accent: #5fb3dd;
  --accent-text: #28769b;
  --paper: #FFFFFF;
  --paper-2: #FAFBFC;
  --paper-3: #F1F5F9;
  --pale: #E6F1FB;
  --line: #E2E8F0;
  --line-2: #CBD5E1;

  /* Studio (noche) */
  --night-1: #061729;
  --night-2: #0B2A4A;
  --night-3: #050f1d;
  --teal: #14506b;
  --studio-blue: #0B2A4A;
  --studio-ice: #dceaf8;
  --studio-card-1: #f0f7ff;
  --studio-card-2: #aaccf0;
  --studio-card-3: #245ed0;

  /* VOZ — paleta «Señal» de la app (SignalPalette.swift, claro).
     Los nombres marfil/papel/hundido/tinta/ámbar se conservan como alias. */
  --voz-marfil: #F3F5F8;
  --voz-papel: #FFFFFF;
  --voz-hundido: #E6EBF1;
  --voz-tinta: #0B1F3A;
  --voz-tinta-2: #31435B;
  --voz-texto: #0B1F3A;
  --voz-texto-2: #31435B;
  --voz-texto-3: #4C5C72;
  --voz-ambar: #B45309;
  --voz-ambar-2: #C86618;
  --voz-ambar-texto: #994607;
  --voz-ambar-escena: #F29A4A;
  --voz-borde: #6D7B8F;
  --voz-line: #D5DCE5;

  /* Recado */
  --rc-negro: #000000;
  --rc-texto: #101010;
  --rc-texto-2: #4A4A4A;
  --rc-texto-3: #767676;
  --rc-papel: #FAFAFA;
  --rc-hundido: #F1F1F1;
  --rc-rojo: #FF0000;
  --rc-rojo-texto: #C20000;
  --rc-linea: rgba(0, 0, 0, 0.12);

  /* Tipografía */
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-voice: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;

  --t-display: clamp(2.5rem, 1.35rem + 4.3vw, 5.25rem);
  --t-h2: clamp(2rem, 1.3rem + 2.4vw, 3.375rem);
  --t-h3: clamp(1.25rem, 1.08rem + 0.6vw, 1.625rem);
  --t-lead: clamp(1.125rem, 1.02rem + 0.42vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.75rem;

  /* Retícula */
  --wrap: 1320px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --col-gap: clamp(40px, 5.2vw, 96px);
  --header-h: 68px;
  --sticky-offset: var(--header-h);
  --section: clamp(80px, 9.5vw, 144px);

  /* Forma */
  --r-plate: 20px;
  --r-inner: 13px;
  --r-chip: 10px;
  --r-pill: 999px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 160ms;
  --dur-ui: 220ms;
  --dur-settle: 760ms;

  /* Capas */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 60;

  /* Tema de la página (los productos lo reescriben) */
  --bg: var(--paper);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --rule: var(--line);
  --rule-2: var(--line-2);
  --mark: var(--accent);
  --mark-text: var(--accent-text);
  --mark-soft: var(--pale);
  --mark-ink: var(--ink);
  --focus: var(--accent-text);

  color-scheme: light;
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
}


/* ---------- 1b. Temas de producto ---------------------------------------
   Cada producto trae su paleta de marca (fijada). Solo se reasignan los
   papeles: fondo, texto, filetes y marcadores. En VOZ el ámbar queda
   reservado al audio; en Recado el rojo, a grabar. */

.theme-voz {
  --bg: var(--voz-marfil);
  --text: var(--voz-texto);
  --text-2: var(--voz-texto-2);
  --text-3: var(--voz-texto-3);
  --rule: var(--voz-line);
  --rule-2: var(--voz-borde);
  --mark: var(--voz-tinta);
  --mark-text: var(--voz-tinta);
  --mark-soft: var(--voz-hundido);
  --mark-ink: #FFFFFF;
  --focus: var(--voz-tinta);
}
.theme-voz .exhibit__plate { background: var(--voz-papel); }

/* Tipografía de la app: Atkinson Hyperlegible Next para todo (interfaz y frase
   hablada); la frase se distingue por peso y tamaño, no por familia. */
.theme-voz {
  --font-sans: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-voice: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.theme-recado {
  --bg: #FFFFFF;
  --text: var(--rc-texto);
  --text-2: var(--rc-texto-2);
  --text-3: var(--rc-texto-3);
  --rule: var(--rc-linea);
  --rule-2: rgba(0, 0, 0, 0.24);
  --mark: var(--rc-negro);
  --mark-text: var(--rc-texto);
  --mark-soft: var(--rc-hundido);
  --mark-ink: #FFFFFF;
  --focus: var(--rc-negro);
}

.theme-studio {
  --bg: #FFFFFF;
  --text: var(--ink);
  --text-2: #50667b;
  --text-3: #5b7085;
  --rule: #d7e2ec;
  --rule-2: #c9d7e5;
  --mark: var(--studio-blue);
  --mark-text: var(--studio-blue);
  --mark-soft: var(--studio-ice);
  --mark-ink: #FFFFFF;
  --focus: var(--studio-blue);
}

/* Superficie noche (Studio): texto claro sobre el degradado de la marca. */
.surface-night {
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.64);
  --rule: rgba(255, 255, 255, 0.14);
  --rule-2: rgba(255, 255, 255, 0.24);
  --mark: #fff;
  --mark-text: var(--studio-ice);
  --mark-soft: rgba(255, 255, 255, 0.14);
  --mark-ink: var(--ink);
  --focus: var(--studio-ice);
  color: var(--text);
  background: linear-gradient(158deg, var(--night-1) 0%, var(--night-2) 58%, var(--night-3) 100%);
}

/* ---------- 2. Base ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--sticky-offset) + 32px);
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 0;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[role='list'], ol[role='list']) { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}
p, li, dd { text-wrap: pretty; }

a { color: inherit; }

::selection { background: var(--mark-soft); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

html { scrollbar-color: var(--rule-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--t-small);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-ui) var(--ease-out);
}
.skip-link:focus { transform: none; }

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

/* ---------- 3. Cabecera global ------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.site-header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.site-logo img { width: 116px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  margin-left: auto;
}
.site-nav a {
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--dur-ui) ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.site-nav a[aria-current='page'] { color: var(--text); }
.site-nav a[aria-current='page']::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--text); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

.site-header__end { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
}
.lang-switch a, .lang-switch span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  color: var(--text-3);
  text-decoration: none;
}
.lang-switch [aria-current='true'] { background: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .lang-switch a:not([aria-current='true']):hover { color: var(--text); }
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-ui) var(--ease-out);
}
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { transform: rotate(-45deg); }

.site-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  background: var(--bg);
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  clip-path: inset(0 0 0 0);
  transition: clip-path 320ms var(--ease-drawer);
}
.site-menu[hidden] { display: none; }
.site-menu nav { display: flex; flex-direction: column; }
.site-menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.site-menu nav a small {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--text-3);
  letter-spacing: 0.02em;
  font-weight: 400;
}
.site-menu nav a[aria-current='page'] { color: var(--mark-text); }
.site-menu__foot {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 8px;
  font-size: var(--t-small);
  color: var(--text-2);
}
.site-menu__foot a { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .site-menu.is-opening { clip-path: inset(0 0 100% 0); }
  .site-menu nav a {
    transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 40ms + 60ms);
  }
  .site-menu.is-opening nav a { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .site-header__end { margin-left: auto; }
}
@media (max-width: 380px) {
  .site-logo img { width: 104px; }
}


/* ---------- 3b. Barra de producto ---------------------------------------
   En VOZ, Recado y Studio la cabecera global se queda arriba (no pegada) y
   la barra del producto es la que acompaña la lectura. */

.has-product-bar { --sticky-offset: 56px; }
.site-header--static { position: relative; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--rule); }

.product-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: 56px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.product-bar__inner { height: 100%; display: flex; align-items: center; gap: 22px; padding-top: 8px; padding-bottom: 8px; }
.product-bar__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: none;
}
.product-bar__brand img { height: 26px; width: auto; }
.product-bar__brand small { font-weight: 400; color: var(--text-3); font-size: 0.8125rem; }
.product-bar__links { display: flex; gap: clamp(14px, 1.8vw, 26px); margin-left: auto; font-size: 0.875rem; }
.product-bar__links a { color: var(--text-2); text-decoration: none; padding: 10px 0; transition: color var(--dur-ui) ease; }
.product-bar__links a[aria-current='true'] { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .product-bar__links a:hover { color: var(--text); } }
.product-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--mark);
  color: var(--mark-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out);
}
.product-bar__cta:active { transform: scale(0.97); }
@media (max-width: 900px) {
  .product-bar__links { display: none; }
  .product-bar__cta { margin-left: auto; }
}

/* ---------- 4. Retícula: argumento y margen ------------------------------ */

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--rule { box-shadow: inset 0 1px 0 var(--rule); }
.section--rule + .section { padding-top: var(--section); }

/* Una afirmación y su prueba. En escritorio, columna de 7 y margen de 4
   separados por un filete; en móvil la prueba sigue a su párrafo. */
.argument {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  column-gap: var(--col-gap);
  align-items: start;
}
.argument__claim { min-width: 0; }
.argument__margin {
  min-width: 0;
  box-shadow: inset 1px 0 0 var(--rule);
  padding-left: clamp(24px, 2.6vw, 44px);
  align-self: stretch;
}
.argument__margin--open { box-shadow: none; }
.argument__margin > .sticky {
  position: sticky;
  top: calc(var(--sticky-offset) + 32px);
}

@media (max-width: 1023px) {
  .argument { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .argument__margin { box-shadow: none; padding-left: 0; }
  .argument__margin > .sticky { position: static; }
}

/* ---------- 5. Tipografía ------------------------------------------------ */

.display {
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.036em;
  font-weight: 500;
}
.h2, .claim-title {
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 500;
}
.h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.016em;
  font-weight: 500;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: -0.008em;
  max-width: 38ch;
}
.muted { color: var(--text-2); }
.quiet { color: var(--text-3); }
.mono {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.voice {
  font-family: var(--font-voice);
  font-weight: 500;
  letter-spacing: -0.012em;
}

/* Texto corrido del argumento */
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { color: var(--text-2); line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn):not(.ref) {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--mark);
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--dur-ui) ease;
}
@media (hover: hover) and (pointer: fine) {
  .prose a:not(.btn):not(.ref):hover { text-decoration-color: currentColor; }
}
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--mark); }

.claim-title + .prose,
.claim-title + .lead { margin-top: clamp(22px, 2.4vw, 32px); }

/* Una frase que el argumento subraya: línea propia, peso de título */
.statement {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 500;
  max-width: 24ch;
}

/* ---------- 6. Marcadores de referencia --------------------------------- */

/* El marcador es el ancla de la prueba: se lee como nota al pie,
   se toca como botón y enciende su prueba en el margen. */
.ref {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.45em;
  margin-left: 0.18em;
  border-radius: var(--r-pill);
  background: var(--mark-soft);
  color: var(--text);
  font-family: var(--font-mono);
  /* El marcador escala con su afirmación, pero nunca baja del piso de 12px. */
  font-size: max(var(--t-micro), 0.34em);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  vertical-align: 0.95em;
  cursor: pointer;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}
.prose .ref, p .ref { font-size: max(var(--t-micro), 0.66em); vertical-align: 0.4em; }
/* El área de toque crece sin mover nada. */
.ref::after { content: ''; position: absolute; inset: -11px; border-radius: inherit; }
.ref:active { transform: scale(0.94); }
.ref.is-lit, .ref[aria-expanded='true'] { background: var(--mark); color: var(--mark-ink); }
@media (hover: hover) and (pointer: fine) {
  .ref:hover { background: var(--mark); color: var(--mark-ink); }
}

/* ---------- 7. Pruebas (exhibits) --------------------------------------- */

.exhibit {
  position: relative;
  display: grid;
  gap: 14px;
}
.exhibit__plate {
  position: relative;
  border-radius: var(--r-plate);
  padding: 20px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px var(--rule),
    0 1px 1px rgba(11, 42, 74, 0.04),
    0 18px 40px -26px rgba(11, 42, 74, 0.28);
  transition: box-shadow var(--dur-ui) var(--ease-out);
}
.exhibit.is-lit .exhibit__plate {
  box-shadow:
    inset 0 0 0 1px var(--mark),
    0 0 0 4px color-mix(in srgb, var(--mark) 18%, transparent),
    0 24px 48px -28px rgba(11, 42, 74, 0.34);
}
.exhibit__caption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-3);
}
.exhibit__caption .ref-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--mark-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}
.exhibit.is-lit .exhibit__caption .ref-num { background: var(--mark); color: var(--mark-ink); }

/* Entrada: la prueba se asienta en el margen cuando su afirmación entra.
   Nunca parte de invisible: sin JS o con movimiento reducido ya está ahí. */
@media (prefers-reduced-motion: no-preference) {
  .js .exhibit[data-settle] {
    transition: opacity var(--dur-settle) var(--ease-out), transform var(--dur-settle) var(--ease-out);
  }
  .js .exhibit[data-settle='pending'] {
    opacity: 0.5;
    transform: translateY(24px);
  }
}

/* ---------- 8. Botones y enlaces --------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-orb: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 6px 8px 6px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) ease;
}
.btn__orb {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: var(--btn-orb);
  transition: transform var(--dur-ui) var(--ease-out);
}
.btn__orb svg { width: 15px; height: 15px; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__orb { transform: translate(2px, -1px) scale(1.06); }
}
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-orb: var(--pale); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-orb: var(--mark-soft);
  box-shadow: inset 0 0 0 1px var(--rule-2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-block: 6px;
  box-shadow: inset 0 -1px 0 currentColor;
}
.text-link::after { content: ''; position: absolute; inset: -4px 0; }
.text-link svg { width: 14px; height: 14px; transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover svg { transform: translate(2px, -2px); }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.actions--stack { flex-direction: column; align-items: flex-start; }

/* ---------- 9. Puertas (productos y servicio) --------------------------- */

.doors { display: grid; border-top: 1px solid var(--rule); }
.door {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--text);
}
.door__mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
}
.door__mark img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.door__mark--recado { background: #fff; box-shadow: inset 0 0 0 1px var(--rc-linea); padding: 8px 5px; }
.door__mark--studio { background: linear-gradient(158deg, var(--night-1), var(--night-2) 58%, var(--night-3)); padding: 11px; }
.door__text { display: grid; gap: 2px; min-width: 0; }
.door__name { font-weight: 500; letter-spacing: -0.01em; }
.door__note { font-size: 0.875rem; color: var(--text-3); }
.door__go {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: transform var(--dur-ui) var(--ease-out), background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}
.door__go svg { width: 14px; height: 14px; }
.door:active .door__go { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .door:hover .door__go { background: var(--ink); color: #fff; box-shadow: none; transform: translate(2px, -1px); }
}

/* ---------- 10. Prueba VOZ ---------------------------------------------- */

/* Las muestras de VOZ en el landing hablan con la tipografía de la app. */
.exhibit--voz {
  --font-sans: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-voice: var(--font-sans);
  --font-mono: var(--font-sans);
  font-family: var(--font-sans);
}
.exhibit--voz .exhibit__plate {
  background: var(--voz-marfil);
  box-shadow:
    inset 0 0 0 1px var(--voz-line),
    0 1px 1px rgba(27, 58, 92, 0.05),
    0 22px 44px -28px rgba(27, 58, 92, 0.36);
}
.exhibit--voz.is-lit .exhibit__plate {
  box-shadow:
    inset 0 0 0 1px var(--voz-tinta),
    0 0 0 4px rgba(27, 58, 92, 0.14),
    0 24px 48px -28px rgba(27, 58, 92, 0.4);
}
/* La notificación es la prueba: la placa misma, sin caja dentro de caja. */
.exhibit--voz .exhibit__plate.voz-notif {
  background: var(--voz-papel);
  padding: 16px 18px;
  color: var(--voz-texto);
}
.voz-notif__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--voz-texto-3);
}
.voz-notif__top img { width: 22px; height: 22px; border-radius: 6px; }
.voz-notif__top strong { color: var(--voz-tinta); font-weight: 600; letter-spacing: 0.02em; }
.voz-notif__top time { margin-left: auto; font-family: var(--font-mono); font-size: var(--t-micro); }
.voz-notif__phrase {
  margin-top: 10px;
  font-family: var(--font-voice);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--voz-tinta);
}
.voz-notif__foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.voz-notif__voice { margin-left: auto; font-size: var(--t-micro); color: var(--voz-ambar-texto); font-family: var(--font-mono); letter-spacing: 0.02em; }

/* El ámbar solo aparece donde hay audio real. */
.play {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--voz-ambar-2), var(--voz-ambar));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(201, 111, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--dur-press) var(--ease-out);
}
.play:active { transform: scale(0.94); }
.play svg { width: 18px; height: 18px; }
.play .play__pause { display: none; }
.play[aria-pressed='true'] .play__tri { display: none; }
.play[aria-pressed='true'] .play__pause { display: inline; }

.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--voz-ambar); opacity: 0.55; transform-origin: bottom; }
.eq i:nth-child(2) { height: 70%; }
.eq i:nth-child(3) { height: 45%; }
.eq i:nth-child(4) { height: 85%; }
.eq i:nth-child(5) { height: 35%; }
@media (prefers-reduced-motion: no-preference) {
  .is-playing .eq i { opacity: 1; animation: eq 900ms var(--ease-in-out) infinite alternate; }
  .is-playing .eq i:nth-child(2) { animation-delay: -300ms; }
  .is-playing .eq i:nth-child(3) { animation-delay: -600ms; }
  .is-playing .eq i:nth-child(4) { animation-delay: -150ms; }
  .is-playing .eq i:nth-child(5) { animation-delay: -450ms; }
}
@keyframes eq { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

/* De la intención a la frase: lo que escribes y lo que VOZ dice */
.voz-intent { display: grid; gap: 10px; }
.voz-intent__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--voz-line);
  font-size: 0.9375rem;
  color: var(--voz-texto);
}
.voz-intent__row dt { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--voz-texto-3); letter-spacing: 0.02em; }
.voz-intent__row dd { margin: 0; }
.voz-says {
  margin-top: 6px;
  font-family: var(--font-voice);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--voz-tinta);
}
.voice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.voice-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 14px 4px 5px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--voz-papel);
  box-shadow: inset 0 0 0 1px var(--voz-line);
  color: var(--voz-tinta);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-ui) ease;
}
.voice-chip__dot {
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--voz-hundido);
  color: var(--voz-ambar);
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}
.voice-chip__dot svg { width: 12px; height: 12px; }
.voice-chip:active { transform: scale(0.96); }
.voice-chip[aria-pressed='true'] { box-shadow: inset 0 0 0 1.5px var(--voz-ambar); }
.voice-chip[aria-pressed='true'] .voice-chip__dot { background: var(--voz-ambar); color: #fff; }

/* ---------- 11. Prueba Recado ------------------------------------------- */

/* La píldora de grabación flota sobre la nota, como en la app. */
.exhibit--recado .exhibit__plate {
  background: #fff;
  box-shadow:
    inset 0 0 0 1px var(--rc-linea),
    0 22px 44px -26px rgba(0, 0, 0, 0.45);
}
.exhibit--recado.is-lit .exhibit__plate {
  box-shadow:
    inset 0 0 0 1px var(--rc-negro),
    0 0 0 4px rgba(16, 16, 16, 0.08),
    0 24px 48px -26px rgba(0, 0, 0, 0.5);
}
.rc-rec {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: var(--rc-negro);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
}
.rc-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc-rojo); }
.rc-rec span { color: rgba(255, 255, 255, 0.7); }

.rc-note {
  color: var(--rc-texto);
  font-size: 0.875rem;
  line-height: 1.45;
}
.rc-note__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rc-texto-3);
}
.rc-note__title { margin-top: 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rc-chips span {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--rc-hundido);
  font-size: var(--t-micro);
  color: var(--rc-texto-2);
}
.rc-chips .is-tag { background: var(--rc-hundido); color: var(--rc-texto); }
.rc-block { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rc-linea); }
.rc-block > p {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rc-texto-3);
}
.rc-block ul { margin: 6px 0 0; padding-left: 1.1em; }
.rc-block li + li { margin-top: 4px; }
.rc-block li::marker { color: var(--rc-texto); }
.rc-agenda {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rc-linea);
}
.rc-agenda strong { display: block; font-size: 0.8125rem; font-weight: 600; }
.rc-agenda small { display: block; margin-top: 2px; color: var(--rc-texto-3); font-size: var(--t-micro); }
.rc-agenda div { display: flex; gap: 6px; margin-top: 9px; }
.rc-agenda span {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: var(--t-micro);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--rc-linea);
}
.rc-agenda span:first-child { background: var(--rc-negro); color: #fff; box-shadow: none; }

/* ---------- 12. Prueba Studio ------------------------------------------- */

.exhibit--studio .exhibit__plate {
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(158deg, var(--night-1) 0%, var(--night-2) 58%, var(--night-3) 100%);
  box-shadow: 0 22px 44px -26px rgba(6, 23, 41, 0.7);
  padding: 20px;
}
.exhibit--studio.is-lit .exhibit__plate {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 24px 48px -26px rgba(6, 23, 41, 0.75);
}
.studio-plate__mark { width: 150px; opacity: 0.95; }
/* Un solo objeto en tres franjas (el mazo del banner de Studio), no tres tarjetas. */
.studio-deck { display: grid; margin-top: 18px; border-radius: 14px; overflow: hidden; }
.studio-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 15px 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--studio-card-1);
  transition: background-color var(--dur-ui) ease;
}
.studio-card:nth-child(2) { background: var(--studio-card-2); }
.studio-card:nth-child(3) { background: var(--studio-card-3); color: #fff; }
.studio-card small {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.studio-card strong { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; }
.studio-card span { font-size: 0.8125rem; }
@media (hover: hover) and (pointer: fine) {
  .studio-card:hover { background: #fff; color: var(--ink); }
}

/* ---------- 13. Listas de hechos y principios --------------------------- */

.facts { display: grid; border-top: 1px solid var(--rule); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--text-3); letter-spacing: 0.02em; padding-top: 3px; }
.facts dd { margin: 0; color: var(--text); font-size: 0.9375rem; }
.facts dd a { color: inherit; }

.principles { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.principle {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.principle h3 { font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.016em; text-wrap: balance; hyphens: auto; }
.principle p { color: var(--text-2); }
@media (max-width: 760px) {
  .principle { grid-template-columns: 1fr; }
}

/* ---------- 14. Lectura larga: manifiesto y legales --------------------- */

.reading {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  column-gap: var(--col-gap);
  align-items: start;
}
.reading__body { min-width: 0; }
.reading__margin {
  min-width: 0;
  box-shadow: inset 1px 0 0 var(--rule);
  padding-left: clamp(24px, 2.6vw, 44px);
  align-self: stretch;
}
.reading__margin > .sticky { position: sticky; top: calc(var(--sticky-offset) + 32px); display: grid; gap: 28px; }
@media (max-width: 1023px) {
  .reading { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .reading__margin { order: -1; box-shadow: none; padding-left: 0; }
  .reading__margin > .sticky { position: static; }
}

.page-head { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-head .display { max-width: 16ch; }
.page-head .lead { margin-top: clamp(20px, 2.2vw, 28px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: 0.875rem; color: var(--text-3); }
.crumbs a { display: inline-block; padding-block: 11px; margin-block: -11px; color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li { list-style: none; display: inline-flex; gap: 6px; }
.crumbs li + li::before { content: '/'; color: var(--rule-2); }
.crumbs ol { display: contents; }

/* Enlaces dentro de prosa: el rectángulo del texto es de 22px, demasiado
   poco para el pulgar. El relleno vertical lo lleva a 44 y el margen
   negativo evita que la línea del párrafo se separe. */
:where(.reading__body, .prose, .doc, .summary, .facts dd, .route__topic, .voz-faq__a, .rc-faq__a, .rc-block, .voz-note) :where(p, li, dd) > a,
:where(.facts dd, .route__topic) > a {
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
}

/* Índice pegado al margen */
.toc { display: grid; gap: 2px; font-size: 0.875rem; }
.toc__title { font-weight: 600; color: var(--text); margin-bottom: 8px; font-size: 0.9375rem; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur-ui) ease;
}
.toc a span { flex: none; font-family: var(--font-mono); font-size: var(--t-micro); padding-top: 2px; }
.toc a[aria-current='true'] { color: var(--text); }
.toc a[aria-current='true'] span { color: var(--mark-text); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--text); } }

.doc h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 2.4em;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.125rem; letter-spacing: -0.01em; margin-top: 1.8em; }
.doc h2 + *, .doc h3 + * { margin-top: 0.8em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-weight: 600; color: var(--text); }
.doc td { color: var(--text-2); }
.doc .table-scroll { overflow-x: auto; }
.updated { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--text-3); letter-spacing: 0.02em; }

.summary {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--mark-soft);
  color: var(--text);
  font-size: 0.9375rem;
}
.summary h2 { font-size: 0.9375rem; font-weight: 500; margin-bottom: 8px; }
.summary ul { margin: 0; padding-left: 1.1em; color: var(--text-2); }
.summary li + li { margin-top: 6px; }


/* Márgenes con varias pruebas (manifiesto): el índice abre el margen y
   cada prueba acompaña su tramo de lectura. */
.reading__margin--notes { display: flex; flex-direction: column; }
.reading__margin--notes .toc { padding-bottom: 32px; }
.margin-slot { flex: 1 1 0; min-height: 44vh; }
/* El índice se va con la página; cada prueba se fija arriba del margen, sin
   índice encima que la parta al salir. */
.margin-slot > .exhibit {
  position: sticky;
  top: calc(var(--sticky-offset) + 32px);
}
@media (max-width: 1023px) {
  .reading__margin--notes { gap: 36px; }
  .reading__margin--notes .toc { padding-bottom: 0; }
  .margin-slot { min-height: 0; }
  .margin-slot > .exhibit { position: static; }
}

/* Ficha dentro de una placa */
.facts--plate { border-top: 0; }
.facts--plate > div:first-child { padding-top: 0; }
.facts--plate > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts--plate > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.facts--plate dt { font-family: var(--font-sans); font-size: 0.9375rem; color: var(--text); font-weight: 600; padding-top: 0; }
.facts--plate dd { color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }

/* ---------- 15. Cierre y pie global -------------------------------------- */

.close {
  padding-block: var(--section);
  box-shadow: inset 0 1px 0 var(--rule);
}
.close .argument { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 1023px) { .close .argument { grid-template-columns: minmax(0, 1fr); } }
.close__title { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.036em; font-weight: 500; }
.channels { display: grid; border-top: 1px solid var(--rule); }
.channel {
  display: grid;
  grid-template-columns: minmax(84px, 0.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--text);
}
.channel__kind { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--text-3); letter-spacing: 0.02em; }
.channel__value { font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.625rem); letter-spacing: -0.02em; font-weight: 500; min-width: 0; }
@media (max-width: 420px) { .channel__value { overflow-wrap: anywhere; } }
.channel .door__go { width: 40px; height: 40px; }
@media (hover: hover) and (pointer: fine) {
  .channel:hover .door__go { background: var(--ink); color: #fff; box-shadow: none; transform: translate(2px, -1px); }
}

/* Pie azul Olevior (blanco sobre el azul del logo, #5fb3dd). Igual en todas las páginas. */
.site-footer {
  --f-bg: var(--accent); /* #5fb3dd, el azul del logo Olevior */
  --f-text: rgba(255, 255, 255, 0.92);
  --f-strong: #fff;
  --f-accent: rgba(255, 255, 255, 0.72);
  --f-title: rgba(255, 255, 255, 0.78);
  --f-link: #fff;
  --f-rule: rgba(255, 255, 255, 0.36);
}
.site-footer {
  background: var(--f-bg);
  color: var(--f-text);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: 36px;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--f-strong); text-decoration: none; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--col-gap);
  row-gap: 48px;
}
.site-footer__line {
  color: var(--f-strong);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 500;
  max-width: 16ch;
}
.site-footer__line span { color: var(--f-accent); }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.site-footer__title {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--f-title);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer__cols a { display: inline-block; padding-block: 10px; color: var(--f-link); transition: color var(--dur-ui) ease; }
@media (hover: hover) and (pointer: fine) { .site-footer__cols a:hover { color: var(--f-strong); } }
.site-footer__base a:not(.lang-switch a, .lang-menu a) { display: inline-block; padding-block: 8px; }
.site-footer__base {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 22px;
  border-top: 1px solid var(--f-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  font-size: 0.875rem;
}
.site-footer__base .lang-switch { margin-left: auto; border-color: var(--f-rule); }
.site-footer__base .lang-switch a, .site-footer__base .lang-switch span { color: var(--f-title); }
.site-footer__base .lang-switch [aria-current='true'] { background: #fff; color: var(--ink); }
.site-footer__mark { width: 30px; height: 30px; }

/* Selector de idioma: discreto a propósito. Un globo y el código del idioma
   al final del pie; la lista se abre hacia arriba. Cada URL sirve todos los
   idiomas, así que la mayoría nunca lo necesita: el navegador ya eligió. */
.lang-menu { position: relative; margin-left: auto; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 4px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--f-title);
  transition: color var(--dur-ui) ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { color: var(--f-strong); }
@media (hover: hover) and (pointer: fine) { .lang-menu summary:hover { color: var(--f-strong); } }
.lang-menu__list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 10000; /* por encima del chat de Olevy (9999) */
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 42, 74, 0.18);
}
.site-footer .lang-menu__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.875rem;
}
.site-footer .lang-menu__list a[aria-current='true'] { background: rgba(11, 42, 74, 0.07); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .site-footer .lang-menu__list a:not([aria-current='true']):hover { background: rgba(11, 42, 74, 0.04); }
}
@media (max-width: 1023px) {
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols > div:last-child { grid-column: 1 / -1; }
}

/* ---------- 16. Portada ------------------------------------------------- */

.opening { padding-top: clamp(48px, 7vw, 104px); padding-bottom: var(--section); }
.opening .display { max-width: 14.5ch; }
.opening .lead { margin-top: clamp(22px, 2.4vw, 32px); }
.opening .actions { margin-top: clamp(28px, 3vw, 40px); }
.opening .argument__margin > .sticky { display: grid; gap: 28px; }
.opening .doors { margin-top: 4px; }

/* ---------- 17. 404 ------------------------------------------------------ */

.notfound { padding-block: clamp(64px, 10vw, 150px); }
.notfound .display { max-width: 13ch; }

/* ---------- 18. Movimiento reducido ------------------------------------- */

/* Menos movimiento no es cero: se quedan los cambios de color y de luz
   que explican qué pasa; se va todo lo que viaja. */
@media (prefers-reduced-motion: reduce) {
  .door:hover .door__go,
  .channel:hover .door__go,
  .btn:hover .btn__orb,
  .text-link:hover svg { transform: none; }
  .exhibit__plate { transition: box-shadow var(--dur-ui) ease; }
  .site-menu { transition: none; }
}
