/* ─────────────────────────────────────────────────────────────
   discutible
   La noche de Lágrimas en la lluvia, modernizada: azul noche,
   tinta crema y dos luces de ciudad, ámbar y azul, una por cada
   versión de la historia. Modo oscuro por defecto y modo claro.

   Sale de la maqueta aprobada (Modernizacion/newMockups) con los
   nombres de clase traducidos al inglés; la correspondencia está
   en Modernizacion/DESIGN.md. Una sola hoja para todo el sitio.
   ───────────────────────────────────────────────────────────── */

/* Fuentes autoalojadas: Spectral, IBM Plex Sans e IBM Plex Mono */
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/spectral-400-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/spectral-400-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/spectral-400-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/spectral-400-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/spectral-500-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/spectral-500-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/spectral-600-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/spectral-600-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-400-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-400-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-500-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-500-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-600-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-600-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-400-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-500-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ─── Tokens: modo oscuro (por defecto) ─── */
:root,
[data-theme="dark"] {
  --bg:        #141D2E;   /* azul noche */
  --bg-2:      #19243A;   /* bandas */
  --surface:   #1F2B44;
  --line:        rgb(238 232 218 / 0.12);
  --line-strong: rgb(238 232 218 / 0.26);
  --ink:        #EEE8DA;   /* crema */
  --ink-2:      #B8B1A1;
  --ink-3:      #928C7D;
  --warm:       #E6A862;   /* luz de farola: lo que te venden */
  --cool:         #8DBBDD;   /* luz de neón: lo que te asusta */
  --glow-warm:   rgb(230 168 98 / 0.20);
  --glow-cool:     rgb(141 187 221 / 0.19);
  --button:        #EEE8DA;
  --button-ink:  #141D2E;
  --header-bg:     rgb(20 29 46 / 0.84);
  --selection:    rgb(141 187 221 / 0.34);
  --shadow:       rgb(4 8 16 / 0.55);
  color-scheme: dark;
}

/* ─── Tokens: modo claro, papel de acuarela con tinta azul noche ─── */
[data-theme="light"] {
  --bg:        #ECE6D8;
  --bg-2:      #E3DCCB;
  --surface:   #F4EFE4;
  --line:        rgb(22 32 58 / 0.13);
  --line-strong: rgb(22 32 58 / 0.28);
  --ink:        #16203A;
  --ink-2:      #465068;
  --ink-3:      #5C6275;
  --warm:       #8F4F0F;
  --cool:         #2B5E8A;
  --glow-warm:   rgb(224 146 60 / 0.24);
  --glow-cool:     rgb(78 140 196 / 0.20);
  --button:        #16203A;
  --button-ink:  #ECE6D8;
  --header-bg:     rgb(236 230 216 / 0.86);
  --selection:    rgb(43 94 138 / 0.22);
  --shadow:       rgb(22 32 58 / 0.28);
  color-scheme: light;
}

/* Zonas que son siempre de noche en los dos modos: La máquina y el pie */
:root {
  --machine:         #0D1219;
  --machine-ink:   #D6DCE4;
  --machine-ink-2:       #8A95A6;
  --machine-accent:  #8DBBDD;
  --machine-line:   rgb(214 220 228 / 0.11);
  --machine-grid: rgb(214 220 228 / 0.035);
  --footer-bg:             #0F1624;
  --footer-ink:       #EEE8DA;
  --footer-ink-2:     #ABA595;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --width:  1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --grain:  url(../img/grain.svg);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; scrollbar-color: var(--line-strong) var(--bg); }
body {
  margin: 0;
  background: var(--grain), var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--selection); color: var(--ink); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--width)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--button); color: var(--button-ink); font: 500 0.9375rem var(--sans); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; }
.arrow { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }

/* ─── Símbolo: dos eslabones enlazados ─── */
.ring { fill: none; stroke-width: 5; }
.ring--warm { stroke: var(--warm); }
.ring--cool { stroke: var(--cool); }
.ring--halo { stroke: var(--halo, var(--bg)); stroke-width: 8.4; }
.ring-a, .ring-b { transition: transform 0.5s var(--ease-out); }

/* ─── Cabecera ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; min-width: 0; text-decoration: none; }
.brand__mark { width: 72px; height: 40px; flex: none; overflow: visible; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 600 1.8125rem/1 var(--serif); letter-spacing: -0.012em; }
.brand__motto { margin-top: 6px; font: 400 0.8125rem/1.3 var(--sans); color: var(--ink-2); }
.brand:hover .ring-a { transform: translateX(-1.6px); }
.brand:hover .ring-b { transform: translateX(1.6px); }

.nav__list { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav__list a {
  position: relative; display: block; padding: 10px 0;
  font: 500 0.9688rem/1 var(--sans); color: var(--ink-2); text-decoration: none;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--warm) 0 50%, var(--cool) 50% 100%);
  transform: scaleX(0); transition: transform 0.4s var(--ease-out);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__extra { display: none; }

.tools { display: flex; align-items: center; gap: 8px; }
.langs { display: flex; align-items: center; gap: 8px; margin-right: 8px; font: 500 0.875rem/1 var(--sans); color: var(--ink-3); }
.langs a { text-decoration: none; padding: 6px 2px; }
.langs a:hover, .langs a[aria-current] { color: var(--ink); }
.icon-button {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.icon-button:hover { border-color: var(--ink-2); background: var(--line); }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.menu-button { display: none; }

/* ─── Portada: título, entrada y temas ─── */
.home-hero { padding-top: clamp(28px, 3.4vw, 44px); }
.home-hero__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px 64px; align-items: end;
}
h1 {
  margin: 0;
  font: 500 clamp(2.125rem, 1.05rem + 2.7vw, 3.5rem)/1.06 var(--serif);
  letter-spacing: -0.02em; text-wrap: balance;
}
.lede { margin: 0 0 6px; max-width: 46ch; font: 400 1.0625rem/1.55 var(--sans); color: var(--ink-2); }

.topic-tabs { margin-top: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line); }
.topic-tabs__list { display: flex; flex-wrap: wrap; gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.topic-tab {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 16px 0 18px; font: 500 1.0313rem/1 var(--sans); color: var(--ink-2); text-decoration: none;
  transition: color 0.25s;
}
.topic-tab__count { font: 400 0.8125rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.topic-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--warm) 0 50%, var(--cool) 50% 100%);
  transform: scaleX(0); transition: transform 0.5s var(--ease-out);
}
.topic-tab:hover { color: var(--ink); }
.topic-tab:hover::after { transform: scaleX(0.35); }
.topic-tab[aria-selected="true"] { color: var(--ink); }
.topic-tab[aria-selected="true"]::after { transform: scaleX(1); }

/* ─── Escena: las dos versiones cara a cara ─── */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(20px, 1.8vw, 26px) clamp(40px, 4.4vw, 60px);
}
.stage::before,
.stage::after {
  content: ""; position: absolute; inset: 0 -6%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent);
  transition: opacity 0.9s var(--ease-out);
}
.stage::before { background: radial-gradient(34% 52% at 17% 40%, var(--glow-warm), transparent 72%); opacity: var(--glow-a, 1); }
.stage::after  { background: radial-gradient(34% 52% at 83% 62%, var(--glow-cool), transparent 72%); opacity: var(--glow-b, 1); }

.face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas:
    "vende  imagen asusta"
    "cuenta cuenta cuenta";
  gap: 0 clamp(24px, 3.4vw, 52px);
  align-items: center;
}
.face + .face { margin-top: 96px; }
.face__topic {
  max-width: 60ch; margin: 22px auto 0;
  font: 400 0.9375rem/1.55 var(--sans); color: var(--ink-2); text-wrap: balance;
}
.face__topic strong { font-weight: 600; color: var(--ink); }
.face__topic a { color: var(--ink); white-space: nowrap; }
.face__topic a:hover { color: var(--cool); }

.voice { margin: 0; }
.voice blockquote { margin: 0; }
.voice p {
  margin: 0; font: 500 clamp(1.875rem, 0.95rem + 2.35vw, 3.125rem)/1.05 var(--serif);
  letter-spacing: -0.022em; text-wrap: balance;
}
.voice figcaption {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  font: 500 0.875rem/1.3 var(--sans);
}
.voice figcaption::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.voice--sells { grid-area: vende; align-self: start; padding-top: clamp(0px, 2.2vw, 28px); text-align: right; color: var(--warm); }
.voice--sells figcaption { flex-direction: row-reverse; }
.voice--scares { grid-area: asusta; align-self: end; padding-bottom: clamp(0px, 2.2vw, 28px); color: var(--cool); }

.face__image {
  grid-area: imagen; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 34px 60px -34px var(--shadow);
}
.face__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.face__image:hover img { transform: scale(1.035); }

.face__untold {
  grid-area: cuenta; justify-self: center; width: min(100%, 760px);
  margin-top: clamp(26px, 2.6vw, 36px); text-align: center;
}
.third { max-width: 34ch; margin: 0 auto; font: 400 clamp(1.375rem, 1rem + 1vw, 1.875rem)/1.32 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.attribution {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  font: 500 0.875rem/1.3 var(--sans); color: var(--ink-2);
}
.attribution::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--warm) 0 50%, var(--cool) 50% 100%); }
.face__links { display: flex; justify-content: center; margin-top: 20px; }
.read-button {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  padding: 15px 22px 15px 24px; background: var(--button); color: var(--button-ink);
  font: 500 1rem/1.3 var(--sans); text-decoration: none; text-align: left;
  box-shadow: 0 14px 30px -18px var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.read-button:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -18px var(--shadow); }
.read-button:hover .arrow, .see-all:hover .arrow, .news-list a:hover .arrow { transform: translateX(4px); }

/* Coreografía: al entrar, cada versión llega desde su lado */
@keyframes arrive-left { from { opacity: 0; transform: translateX(-56px); } }
@keyframes arrive-right { from { opacity: 0; transform: translateX(56px); } }
@keyframes open-center { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes appear { from { opacity: 0; } }
@keyframes hook-a { from { transform: translateX(-7px); } }
@keyframes hook-b { from { transform: translateX(7px); } }

.face.is-initial .voice--sells  { animation: arrive-left 1.1s var(--ease-out) 0.2s backwards; }
.face.is-initial .voice--scares { animation: arrive-right 1.1s var(--ease-out) 0.36s backwards; }
.face.is-initial .face__image { animation: open-center 1.2s var(--ease-out) 0.05s backwards; }
.face.is-initial .face__image img { animation: settle 1.8s var(--ease-out) 0.05s backwards; }
.face.is-initial .face__untold { animation: rise 1s var(--ease-out) 0.62s backwards; }
.face.is-initial .face__topic { animation: appear 0.8s var(--ease-out) backwards; }
.brand__mark .ring-a { animation: hook-a 1s var(--ease-out) 0.1s backwards; }
.brand__mark .ring-b { animation: hook-b 1s var(--ease-out) 0.1s backwards; }

.face.is-entering .voice--sells  { animation: arrive-left 0.9s var(--ease-out) 0.04s backwards; }
.face.is-entering .voice--scares { animation: arrive-right 0.9s var(--ease-out) 0.12s backwards; }
.face.is-entering .face__image { animation: open-center 0.9s var(--ease-out) backwards; }
.face.is-entering .face__image img { animation: settle 1.4s var(--ease-out) backwards; }
.face.is-entering .face__untold { animation: rise 0.8s var(--ease-out) 0.24s backwards; }
.face.is-entering .face__topic { animation: appear 0.6s var(--ease-out) backwards; }

.face.is-leaving .voice--sells,
.face.is-leaving .voice--scares,
.face.is-leaving .face__untold,
.face.is-leaving .face__topic { transition: opacity 0.26s ease-in, transform 0.3s ease-in; opacity: 0; }
.face.is-leaving .voice--sells  { transform: translateX(-40px); }
.face.is-leaving .voice--scares { transform: translateX(40px); }
.face.is-leaving .face__image { transition: clip-path 0.3s ease-in; clip-path: inset(0 50% 0 50%); }

.js .face:not(.is-active) { display: none; }
.js .face + .face { margin-top: 0; }

/* ─── Los seis primeros: la fila que abría el sitio anterior, conservada tal cual ─── */
.founders { border-block: 1px solid var(--line); padding-block: clamp(28px, 3.4vw, 48px); }
.founders__row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none;
}
.founder { display: block; min-width: 0; text-decoration: none; }
.founder img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), border-color 0.25s, box-shadow 0.4s var(--ease-out);
}
.founder:hover img { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 28px -20px var(--shadow); }
.founder__num {
  display: block; margin: 12px 0 5px;
  font: 500 0.8125rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.founder h3 { margin: 0; font: 400 0.9688rem/1.32 var(--serif); text-wrap: pretty; }
.founder:hover h3 { text-decoration: underline; }

/* ─── Secciones ─── */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 12px 24px; margin-bottom: clamp(28px, 3.5vw, 44px);
}
.section h2,
.voices h2,
.newsletter h2 {
  margin: 0; font: 500 clamp(1.875rem, 1.3rem + 1.4vw, 2.625rem)/1.08 var(--serif);
  letter-spacing: -0.018em; text-wrap: balance;
}
.see-all {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 500 0.9688rem/1.3 var(--sans); color: var(--ink-2); text-decoration: none;
}
.see-all:hover { color: var(--ink); }

/* Una luz tenue acompaña a Lo último y al pie para que la profundidad no acabe en la portada */
.section--glow, .site-footer { position: relative; isolation: isolate; overflow: hidden; }
.section--glow::before,
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}
.section--glow::before { background: radial-gradient(34% 46% at 94% 40%, var(--glow-cool), transparent 72%); opacity: 0.8; }
.site-footer::before { background: radial-gradient(30% 80% at 4% 30%, rgb(230 168 98 / 0.12), transparent 72%); }

/* Dos voces: Lágrimas, escrita por el autor, y La máquina, escrita por modelos */
.voices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.voices__col { padding-block: clamp(64px, 8vw, 104px); }
.voices__tears {
  background: var(--grain), var(--bg-2);
  padding-left: max(var(--gutter), calc(100% - var(--width) / 2));
  padding-right: clamp(32px, 4.4vw, 72px);
}
.voices__machine {
  --cool: var(--machine-accent);
  background:
    linear-gradient(var(--machine-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--machine-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--machine);
  color: var(--machine-ink);
  padding-right: max(var(--gutter), calc(100% - var(--width) / 2));
  padding-left: clamp(32px, 4.4vw, 72px);
}
.voices__head p { margin: 12px 0 0; max-width: 44ch; font: 400 1rem/1.55 var(--sans); color: var(--ink-2); }
.voices__machine h2 { font-family: var(--mono); font-weight: 500; letter-spacing: -0.03em; }
.voices__machine .voices__head p { font: 400 0.9375rem/1.6 var(--mono); color: var(--machine-ink-2); }
.voices .see-all { margin-top: 28px; }
.voices__machine .see-all { color: var(--machine-ink-2); font-family: var(--mono); font-size: 0.9063rem; }
.voices__machine .see-all:hover { color: var(--machine-ink); }

.news-list, .machine-list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 19px 0; border-bottom: 1px solid var(--line);
  font: 400 1.1875rem/1.36 var(--serif); text-decoration: none;
}
.news-list a:hover span { text-decoration: underline; }
.news-list .arrow { color: var(--ink-3); }
.machine-list { border-top-color: var(--machine-line); }
.machine-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 20px;
  padding: 19px 0; border-bottom: 1px solid var(--machine-line); text-decoration: none;
}
.machine-list strong { font: 500 1.0625rem/1.4 var(--mono); letter-spacing: -0.01em; }
.machine-list span { font: 400 0.8125rem/1.3 var(--mono); color: var(--machine-ink-2); white-space: nowrap; }
.machine-list a:hover strong { color: var(--machine-accent); }

/* Boletín: las dos luces vuelven a encontrarse al cerrar la página */
.newsletter { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 9vw, 128px); }
.newsletter::before,
.newsletter::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.newsletter::before { background: radial-gradient(32% 62% at 10% 72%, var(--glow-warm), transparent 72%); }
.newsletter::after  { background: radial-gradient(32% 62% at 90% 30%, var(--glow-cool), transparent 72%); }
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: end; }
.newsletter h2 { font-size: clamp(2rem, 1.25rem + 2vw, 3.25rem); }
.newsletter__text p { margin: 16px 0 0; max-width: 42ch; font: 400 1.0625rem/1.55 var(--sans); color: var(--ink-2); }
.signup label { display: block; margin-bottom: 10px; font: 500 0.9375rem/1.3 var(--sans); }
.signup__row { display: flex; gap: 10px; }
.signup input {
  flex: 1 1 auto; min-width: 0; height: 58px; padding: 0 18px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0;
  font: 400 1.0625rem var(--sans); color: var(--ink);
}
.signup input::placeholder { color: var(--ink-3); opacity: 1; }
.signup input:hover { border-color: var(--ink-3); }
.signup input:focus-visible { outline-offset: 0; border-color: var(--cool); }
.signup button {
  flex: none; height: 58px; padding: 0 28px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--button); color: var(--button-ink); font: 600 1rem var(--sans);
  transition: background-color 0.25s, color 0.25s;
}
.signup button:hover { background: var(--warm); color: var(--bg); }
.signup__note { margin: 12px 0 0; font: 400 0.875rem/1.4 var(--sans); color: var(--ink-2); }

/* ─── Pie ─── */
.site-footer {
  --halo: var(--footer-bg); --warm: #E6A862; --cool: #8DBBDD;
  --line: rgb(238 232 218 / 0.12);
  background: var(--grain), var(--footer-bg); color: var(--footer-ink);
  padding-block: clamp(56px, 7vw, 88px) 32px;
}
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { margin: 0; }
.site-footer .brand__name { color: var(--footer-ink); }
.site-footer__about { margin: 22px 0 0; max-width: 40ch; font: 400 1rem/1.55 var(--sans); color: var(--footer-ink-2); }
.site-footer h2 { margin: 6px 0 16px; font: 600 0.9375rem/1.3 var(--sans); color: var(--footer-ink); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer ul a { font: 400 0.9688rem/1.4 var(--sans); color: var(--footer-ink-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--footer-ink); text-decoration: underline; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font: 400 0.875rem/1.4 var(--sans); color: var(--footer-ink-2);
}
.site-footer__base a { color: var(--footer-ink); }

/* ─── Desplegable de temas en la navegación ─── */
.nav__topics { position: relative; }
.nav__dropdown {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 0; border: 0; background: none; cursor: pointer;
  font: 500 0.9688rem/1 var(--sans); color: var(--ink-2);
}
.nav__dropdown:hover, .nav__dropdown[aria-expanded="true"], .nav__dropdown[aria-current="page"], .nav__list a[aria-current="page"] { color: var(--ink); }
.icon--sm { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.nav__dropdown[aria-expanded="true"] .icon--sm { transform: rotate(180deg); }
.topics-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 268px; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 24px 48px -24px var(--shadow);
  display: none;
}
.topics-menu.is-open { display: block; }
.topics-menu a {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 10px; font: 500 0.9688rem/1.2 var(--sans); text-decoration: none;
}
.topics-menu a:hover { background: var(--line); }
.topics-menu img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.topics-menu__count { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ─── Filas compactas con miniatura: la unidad de todos los listados ─── */
.rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 0 clamp(20px, 2.6vw, 36px); }
.rows--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rows--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rows--one { grid-template-columns: 1fr; }
.rows > li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; align-items: start; }
.rows .row:not(:has(.row__thumb)) { grid-template-columns: minmax(0, 1fr); }
.row__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.row:hover .row__thumb img { transform: scale(1.05); }
.row h3 { margin: 0; font: 500 1.0625rem/1.3 var(--serif); letter-spacing: -0.004em; text-wrap: pretty; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; }
.row__meta { margin: 6px 0 0; font: 500 0.8125rem/1.3 var(--sans); color: var(--ink-3); }
.row__meta a { text-decoration: none; }
.row__meta a:hover { color: var(--ink); }
.rows--large .row { grid-template-columns: 128px minmax(0, 1fr); padding: 20px 0; }
.rows--large .row h3 { font-size: 1.1875rem; }
.rows--one .row { grid-template-columns: 128px minmax(0, 1fr); padding: 20px 0; }
.section--list { padding-top: clamp(24px, 3vw, 40px); }
.year-label { margin: 0 0 8px; font: 500 0.9375rem/1 var(--sans); color: var(--ink-3); }

/* ─── Temas en la portada: sello, nombre, cuenta y la descripción completa ─── */
.section__sub { margin: 0; max-width: 52ch; font: 400 1rem/1.5 var(--sans); color: var(--ink-2); }
.topic-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px); }
.topic-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: start; }
.topic-card__seal { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.topic-card__seal img { width: 100%; height: 100%; object-fit: cover; }
.topic-card h3 { margin: 0 0 8px; font: 500 1.375rem/1.15 var(--serif); letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.topic-card h3 a { text-decoration: none; }
.topic-card h3 a:hover { text-decoration: underline; }
.topic-card__count { font: 500 0.8125rem/1 var(--sans); color: var(--ink-3); }
.topic-card p { margin: 0; font: 400 0.9688rem/1.55 var(--sans); color: var(--ink-2); }

/* ─── La barra partida y el par de un tema en las páginas interiores ─── */
.split-bar { display: block; width: 28px; height: 2px; margin-bottom: 12px; background: linear-gradient(90deg, var(--warm) 0 50%, var(--cool) 50% 100%); }
.page-head__side { display: grid; gap: 28px; align-content: start; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.pair p { margin: 0; font: 500 clamp(1.5rem, 1rem + 1.2vw, 2rem)/1.1 var(--serif); letter-spacing: -0.016em; text-wrap: balance; }
.pair p span { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 500 0.8125rem/1.3 var(--sans); }
.pair p span::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.pair__untold span::before { background: linear-gradient(90deg, var(--warm) 0 50%, var(--cool) 50% 100%); }
.pair__sells { color: var(--warm); }
.pair__scares { color: var(--cool); }
.pair p.pair__untold { grid-column: 1 / -1; font-weight: 400; font-size: 1.3125rem; line-height: 1.3; color: var(--ink); }
.pair__untold span { color: var(--ink-2); }

/* ─── Portadillas de sección y migas ─── */
.crumbs { margin-bottom: 18px; font: 500 0.875rem/1.3 var(--sans); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }
.page-head { padding-top: clamp(28px, 3.4vw, 44px); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 14px; }
.topic-tabs--filter { margin-top: 20px; }
.topic-tabs--filter .topic-tabs__list { gap: 0 28px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 36px; font: 500 0.9375rem/1 var(--sans); }
.pager a, .pager__current { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; text-decoration: none; border: 1px solid transparent; }
.pager a:hover { border-color: var(--line-strong); }
.pager__current { background: var(--button); color: var(--button-ink); }
.pager a.pager__next { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }

/* Tema: portadilla con sello grande y la descripción completa */
.page-head__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.topic-desc { margin: 18px 0 0; max-width: 64ch; font: 400 1.125rem/1.6 var(--serif); color: var(--ink); }
.topic-count { margin: 16px 0 0; font: 500 0.9375rem/1 var(--sans); color: var(--ink-3); }
.topic-seal { width: 160px; height: 160px; display: block; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 30px 50px -34px var(--shadow); }
.other-topics h2 { margin-bottom: 24px; }
.seals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.seals a { display: grid; grid-template-columns: 72px 1fr; gap: 4px 14px; align-items: center; text-decoration: none; font: 500 1.0625rem/1.2 var(--serif); }
.seals a:hover span:first-of-type { text-decoration: underline; }
.seals img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.seals__count { font: 400 0.8125rem/1 var(--sans); color: var(--ink-3); }

/* ─── Artículo: lámina, portadilla, índice lateral y prosa a 68 caracteres ─── */
.article__art { height: clamp(240px, 36vw, 520px); overflow: hidden; background: var(--surface); }
.article__art img { width: 100%; height: 100%; object-fit: cover; }
.article__head { padding-top: clamp(28px, 3.4vw, 44px); }
.article__head h1 { max-width: 22ch; }
.article__meta { margin: 16px 0 0; font: 500 0.9375rem/1.4 var(--sans); color: var(--ink-2); }
.article__meta a { text-decoration: none; color: var(--ink); }
.article__meta a:hover { text-decoration: underline; }
.article__body { display: grid; grid-template-columns: 260px minmax(0, 68ch); gap: clamp(32px, 5vw, 80px); padding-block: clamp(36px, 4.4vw, 60px) clamp(48px, 6vw, 80px); }
.article__body--short { grid-template-columns: minmax(0, 68ch); }
.toc { position: sticky; top: 104px; align-self: start; }
.toc summary { list-style: none; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc h2 { margin: 0 0 12px; font: 600 0.8125rem/1.3 var(--sans); color: var(--ink-3); }
.toc ol { margin: 0; padding: 0 0 0 1.4em; font: 400 0.9375rem/1.4 var(--sans); color: var(--ink-2); display: grid; gap: 8px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc__notes { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 400 0.875rem/1.5 var(--sans); color: var(--ink-3); }
.toc__notes a { text-decoration: none; }
.toc__notes a:hover { color: var(--ink); }
.prose { font: 400 1.1875rem/1.65 var(--serif); }
.prose > p:first-child { font-size: 1.3125rem; line-height: 1.5; color: var(--ink-2); margin-top: 0; }
.prose > p:first-child em { font-style: normal; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { margin: 2.2em 0 0.7em; font: 500 1.75rem/1.15 var(--serif); letter-spacing: -0.014em; text-wrap: balance; }
.prose h3 { margin: 1.8em 0 0.6em; font: 500 1.25rem/1.3 var(--serif); }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--cool); }
.prose a:hover { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 1px solid var(--line-strong); color: var(--ink-2); }
.prose strong { font-weight: 600; }
.prose dl { margin: 0 0 1.25em; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0 0 0.8em; }
.prose table { border-collapse: collapse; width: 100%; font: 400 0.9688rem/1.45 var(--sans); margin: 0 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose td { font-variant-numeric: tabular-nums; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.article__figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.article__foot { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.article--short .article__body { padding-top: 20px; }
.article--short .article__head, .article--short .article__body, .machine--text .article__head, .machine--text .article__body { width: min(100% - 2 * var(--gutter), 760px); }
.article--short .article__body--short { display: block; }
.article__figure { float: right; width: 30%; max-width: 220px; margin: 6px 0 16px 28px; }

/* ─── La máquina: páginas enteras en su noche fija ─── */
body.night {
  --bg: var(--machine); --bg-2: #121821; --surface: #151C27;
  --ink: var(--machine-ink); --ink-2: var(--machine-ink-2); --ink-3: #6C7686;
  --line: var(--machine-line); --line-strong: rgb(214 220 228 / 0.24);
  --cool: var(--machine-accent); --warm: #C9A27C;
  --button: var(--machine-ink); --button-ink: var(--machine);
  --header-bg: rgb(13 18 25 / 0.86); --selection: rgb(141 187 221 / 0.3);
  background:
    linear-gradient(var(--machine-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--machine-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--machine);
  color-scheme: dark;
}
body.night .site-header .brand__name, body.night main h1, body.night main h2 { font-family: var(--mono); font-weight: 500; letter-spacing: -0.03em; }
body.night .site-header .brand__motto, body.night main .crumbs, body.night .nav__list a, body.night .nav__dropdown, body.night .langs { font-family: var(--mono); }
.machine { padding-block: clamp(28px, 3.4vw, 44px) clamp(64px, 8vw, 104px); }
.machine__head { max-width: 68ch; }
.machine__note { margin: 22px 0 0; font: 400 1.0625rem/1.65 var(--mono); color: var(--ink-2); }
.machine__note strong { color: var(--ink); font-weight: 500; }
.machine__quote { margin: 32px 0 0; padding: 22px 26px; border: 1px solid var(--line-strong); }
.machine__quote p { margin: 0; font: 400 1.125rem/1.6 var(--mono); }
.machine-list--index { margin-top: 44px; }
.machine-list--index strong { font-size: 1.25rem; }
.machine__facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 22px 0 0; font: 400 0.9063rem/1.4 var(--mono); }
.machine__facts div { display: flex; gap: 10px; }
.machine__facts dt { color: var(--ink-3); }
.machine__facts dd { margin: 0; }
.prose--machine { font: 400 1.0625rem/1.75 var(--mono); }
.prose--machine > p:first-child { font-size: 1.0625rem; color: var(--ink); }
.prose--machine h2 { font-size: 1.375rem; }
body.night .icon-button[data-theme-button] { display: none; }

/* ─── Cambio de modo con la API de transiciones de vista ─── */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ─── Adaptación ─── */
@media (max-width: 1120px) {
  .rows--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article__body { grid-template-columns: minmax(0, 68ch); }
  .toc { position: static; margin-bottom: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
  .toc summary h2 { margin: 0; }
  .toc summary::after { content: ""; width: 10px; height: 10px; border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.3s var(--ease-out); }
  .toc[open] summary::after { transform: rotate(-135deg); }
  .toc[open] ol { margin-top: 14px; }
  .toc ol { columns: 2; gap: 32px; }
  .founders__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .nav__list { gap: 22px; }
  .langs { display: none; }
}

@media (max-width: 960px) {
  .menu-button { display: grid; }
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px var(--shadow);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .js .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 16px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__dropdown { display: none; }
  .topics-menu { position: static; transform: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; min-width: 0; margin: 0; padding: 8px 0 12px; border: 0; box-shadow: none; background: none; border-bottom: 1px solid var(--line); }
  .topics-menu a { padding: 8px 0; }
  .rows--two, .rows--three { grid-template-columns: 1fr; }
  .page-head__inner { grid-template-columns: 1fr; }
  .page-head__side { gap: 22px; }
  .topic-seal { width: 120px; height: 120px; }
  .nav__extra { display: block; }
  .tools .search-button { display: none; }
  .home-hero__head { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .voices__tears, .voices__machine { padding-inline: var(--gutter); }
  .voices__col > * { max-width: var(--width); }
  .newsletter__inner { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .face {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "vende" "imagen" "asusta" "cuenta";
    gap: 0;
  }
  .third, .face__topic { margin-inline: 0; }
  .voice--sells { text-align: left; padding: 0; margin-bottom: 18px; }
  .voice--sells figcaption { flex-direction: row; }
  .voice--scares { text-align: right; padding: 0; margin-top: 18px; }
  .voice--scares figcaption { flex-direction: row-reverse; }
  .voice p { font-size: clamp(1.75rem, 1rem + 3.4vw, 2.375rem); }
  .voice figcaption { margin-top: 10px; }
  .face__image { aspect-ratio: 16 / 9; }
  .face__untold { justify-self: start; text-align: left; margin-top: 36px; }
  .face__links { justify-content: flex-start; }
  .stage::before { background: radial-gradient(70% 30% at 0% 22%, var(--glow-warm), transparent 72%); }
  .stage::after  { background: radial-gradient(70% 30% at 100% 62%, var(--glow-cool), transparent 72%); }
}

@media (max-width: 640px) {
  .pair { grid-template-columns: 1fr; }
  .article__figure { float: none; width: 100%; max-width: 280px; margin: 0 0 24px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .seals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows--large .row, .rows--one .row { grid-template-columns: 96px minmax(0, 1fr); }
  .rows--large .row h3 { font-size: 1.0625rem; }
  .toc ol { columns: 1; }
  .article__art { height: 56vw; }
  .prose { font-size: 1.0625rem; }
  .prose > p:first-child { font-size: 1.125rem; }
  .machine__facts { flex-direction: column; gap: 8px; }
  .founders__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .site-header__inner { gap: 10px; min-height: 72px; }
  .brand { gap: 10px; }
  .brand__mark { width: 54px; height: 30px; }
  .brand__name { font-size: 1.5rem; }
  .brand__motto { margin-top: 4px; font-size: 0.75rem; text-wrap: balance; }
  .tools { gap: 6px; }
  .icon-button { width: 40px; height: 40px; }
  .topic-tabs { margin-inline: calc(-1 * var(--gutter)); }
  .topic-tabs__list {
    --fade: 40px;
    flex-wrap: nowrap; gap: 0 24px; overflow-x: auto; overscroll-behavior-x: contain;
    padding-inline: var(--gutter) var(--fade); scroll-padding-inline: var(--gutter) var(--fade);
    scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--fade)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--fade)), transparent);
  }
  .topic-tabs__list::-webkit-scrollbar { display: none; }
  .topic-tabs__list li { flex: none; scroll-snap-align: start; }
  .topic-tab { padding: 14px 0 15px; font-size: 0.9688rem; }
  .lede { font-size: 0.9688rem; line-height: 1.5; }
  .home-hero__head { gap: 14px; }
  .signup__row { flex-direction: column; }
  .signup button { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   Piezas del sitio que la maqueta no dibujaba: bloques del editor,
   comentarios, formularios, avisos y páginas secundarias. Mismas
   reglas: esquinas rectas, la barra partida como único adorno,
   la mono solo en La máquina.
   ═════════════════════════════════════════════════════════════ */

/* ─── Utilidades ─── */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.empty { margin: 0; padding: 24px 0; font: 400 1rem/1.5 var(--sans); color: var(--ink-2); }
.founder__blank { display: block; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line); }
.topic-tab[aria-current="page"] { color: var(--ink); }
.topic-tab[aria-current="page"]::after { transform: scaleX(1); }
.article__main { min-width: 0; }
.page-head .lede a, .section__sub a { color: var(--ink); }
.page-head .lede a:hover { color: var(--cool); }

/* Paginador: anterior y siguiente con su flecha */
.pager a.pager__prev { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; }
.pager__prev .arrow { transform: rotate(180deg); }
.pager a.pager__prev:hover .arrow { transform: rotate(180deg) translateX(4px); }
.pager a.pager__next:hover .arrow { transform: translateX(4px); }
.pager__gap { display: inline-grid; place-items: center; min-width: 24px; height: 40px; color: var(--ink-3); }

/* ─── Prosa: lo que pintan los bloques del editor ─── */
/* Una URL o una palabra sin cortes no puede ensanchar la página en móvil */
.prose { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose > .prose__lead,
.prose > .block-text:first-child > p:first-child,
.prose > .block-html:first-child > p:first-child { margin-top: 0; font-size: 1.3125rem; line-height: 1.5; color: var(--ink-2); }
.prose > .block-text:first-child > p:first-child em,
.prose > .block-html:first-child > p:first-child em { font-style: normal; }
.prose--machine > .block-text:first-child > p:first-child,
.prose--machine > .block-html:first-child > p:first-child { font-size: 1.0625rem; color: var(--ink); }
.prose .heading-anchor { float: left; width: 1em; margin-left: -1em; color: var(--ink-3); text-decoration: none; opacity: 0; transition: opacity 0.2s; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor { opacity: 1; }
.prose h4 { margin: 1.6em 0 0.5em; font: 600 1.0625rem/1.35 var(--sans); }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border: 1px solid var(--line); }
.prose figcaption, .prose .embed-caption, .prose .video-caption { margin-top: 10px; font: 400 0.875rem/1.45 var(--sans); color: var(--ink-3); }
.block-image.align-left { float: left; max-width: 45%; margin: 0.4em 28px 1em 0; }
.block-image.align-right { float: right; max-width: 45%; margin: 0.4em 0 1em 28px; }
.block-image.align-center { margin-inline: auto; }
.quote-attribution { margin-top: 10px; font: 500 0.875rem/1.4 var(--sans); color: var(--ink-3); }
.quote-attribution cite { font-style: normal; }
.block-callout { margin: 1.6em 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--cool); font: 400 1rem/1.6 var(--sans); }
.callout-warning, .callout-error, .callout-danger { border-left-color: var(--warm); }
.callout-title { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; font-weight: 600; }
.callout-content > :last-child { margin-bottom: 0; }
.prose code { padding: 0.1em 0.35em; background: var(--surface); font: 400 0.88em var(--mono); }
.prose pre { margin: 1.6em 0; padding: 18px 20px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); font: 400 0.9375rem/1.6 var(--mono); }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.code-filename { padding: 8px 20px; border: 1px solid var(--line); border-bottom: 0; font: 500 0.8125rem/1.3 var(--mono); color: var(--ink-3); }
.code-filename + pre { margin-top: 0; }
.block-table-wrapper { margin: 0 0 1.5em; overflow-x: auto; }
.block-table-wrapper table { margin: 0; }
.prose caption { caption-side: bottom; padding-top: 10px; text-align: left; font: 400 0.875rem/1.45 var(--sans); color: var(--ink-3); }
.block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.8em 0; }
.block-gallery.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.block-gallery.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.block-gallery .gallery-item { margin: 0; }
.video-responsive, .embed-responsive { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0 0; background: var(--surface); }
.video-responsive iframe, .embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block-video video { width: 100%; margin-top: 1.8em; }
.block-button { margin: 1.6em 0; }
.block-button.align-center { text-align: center; }
.block-button.align-right { text-align: right; }
.prose .block-button .btn { display: inline-flex; align-items: center; padding: 14px 22px; background: var(--button); color: var(--button-ink); font: 500 1rem/1.3 var(--sans); text-decoration: none; }
.prose .block-button .btn:hover { background: var(--warm); color: var(--bg); }
.prose .block-button .btn-secondary, .prose .block-button .btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.block-separator { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.block-accordion { margin: 1.6em 0; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-title { padding: 14px 0; cursor: pointer; font: 500 1.0625rem/1.4 var(--sans); }
.accordion-content { padding-bottom: 14px; }
.block-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 1.6em 0; }
.block-columns.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.block-unknown { display: none; }
.references__source { color: var(--ink-3); }

/* ─── Etiquetas y compartir, al pie del texto ─── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-strong); font: 500 0.875rem/1 var(--sans); color: var(--ink-2); text-decoration: none; }
.tags a:hover { border-color: var(--ink-3); color: var(--ink); }
.tags--cloud { margin-top: 0; gap: 10px; }
.tags--cloud a { padding: 10px 14px; font-size: 0.9688rem; }
.tags__count { margin-left: 6px; color: var(--ink-3); font-weight: 400; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font: 500 0.9375rem/1.3 var(--sans); }
.share__label { color: var(--ink-3); }
.share__link { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.share__link:hover { color: var(--ink); text-decoration: underline; }

/* ─── Comentarios ─── */
.comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; font: 500 1.625rem/1.15 var(--serif); letter-spacing: -0.012em; }
.comments__count { font: 400 0.9375rem/1 var(--sans); color: var(--ink-3); }
.comments__list, .comments__replies { margin: 0; padding: 0; list-style: none; }
.comments__list > li { border-top: 1px solid var(--line); }
.comments__replies { margin: 0 0 12px 12px; padding-left: 20px; border-left: 2px solid var(--line); }
.comment { padding: 18px 0; }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; font: 400 0.875rem/1.4 var(--sans); color: var(--ink-3); }
.comment__meta strong { font-weight: 600; color: var(--ink); }
.comment__badge { padding: 2px 8px; border: 1px solid var(--warm); font-size: 0.75rem; font-weight: 500; color: var(--warm); }
.comment__body { margin: 0; font: 400 1.0625rem/1.6 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.comments__empty { margin: 0; font: 400 1rem/1.5 var(--sans); color: var(--ink-2); }
.comments__form-title { margin: 36px 0 16px; font: 600 1.0625rem/1.3 var(--sans); }

/* ─── Formularios: contacto, comentarios y búsqueda ─── */
.form { display: grid; gap: 18px; max-width: 68ch; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; font: 500 0.9375rem/1.3 var(--sans); }
.field small { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 0; border-color: var(--cool); }
.button {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px;
  border: 0; border-radius: 0; background: var(--button); color: var(--button-ink);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 0.25s, color 0.25s;
}
.button:hover { background: var(--warm); color: var(--bg); }
.form-done { max-width: 68ch; padding: 22px 24px; border: 1px solid var(--line-strong); }
.form-done p { margin: 0; font: 400 1rem/1.55 var(--sans); color: var(--ink-2); }
.form-done .form-done__title { margin-bottom: 6px; font: 500 1.375rem/1.2 var(--serif); color: var(--ink); }
.signup__done { margin: 0; font: 500 1.125rem/1.5 var(--sans); }
.search { max-width: 720px; margin-top: 24px; }

/* ─── Aviso tras enviar un formulario (feedback.js) ─── */
.toast-banner {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: min(92vw, 520px); padding: 14px 20px;
  background: var(--button); color: var(--button-ink); font: 500 0.9688rem/1.4 var(--sans);
  box-shadow: 0 18px 40px -20px var(--shadow);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.toast-banner::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 8px; background: linear-gradient(90deg, var(--warm) 0 50%, var(--cool) 50% 100%); }
.toast-warning { background: var(--surface); color: var(--ink); border: 1px solid var(--warm); }
.toast-visible { opacity: 1; transform: translate(-50%, 0); }

/* ─── Páginas interiores: texto largo, errores y bloques de datos ─── */
.page-body { padding-block: clamp(28px, 3.4vw, 48px) clamp(56px, 7vw, 96px); }
.page-body .prose { max-width: 68ch; }
.page-body .form, .page-body .form-done { margin-top: 36px; }
.error-code { margin: 0 0 8px; font: 500 clamp(4rem, 3rem + 6vw, 7.5rem)/1 var(--serif); letter-spacing: -0.03em; color: var(--ink-3); }
.error-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; font: 500 1rem/1.3 var(--sans); }
.error-links a { color: var(--ink); }
.error-links a:hover { color: var(--cool); }
.article__body .machine__note { margin: 0 0 28px; }
/* Título de sección con su explicación debajo y el enlace a la derecha */
.section__head > div > .section__sub { margin-top: 10px; }
/* HTML de páginas guardado con la plantilla anterior: su .wrap interior no debe volver a sangrar */
.prose .wrap { width: auto; margin-inline: 0; }

/* Listados por años (archivo, lágrimas): aire entre un año y el siguiente */
.rows + .year-label { margin-top: clamp(28px, 3vw, 40px); }

/* Buscar: fragmento del resumen bajo cada resultado, con la coincidencia marcada */
.row__excerpt { margin: 6px 0 0; font: 400 0.9375rem/1.5 var(--sans); color: var(--ink-2); }
.row mark { background: var(--selection); color: inherit; padding: 0 0.08em; }

@media (max-width: 760px) {
  .block-columns, .block-columns.columns-3 { grid-template-columns: 1fr; }
  .block-image.align-left, .block-image.align-right { float: none; max-width: 100%; margin: 1.8em 0; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .prose > .prose__lead,
  .prose > .block-text:first-child > p:first-child,
  .prose > .block-html:first-child > p:first-child { font-size: 1.125rem; }
  .block-gallery.columns-3, .block-gallery.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast-banner { bottom: 16px; }
}
