/* Hato · web. Mismos colores, tipografía y botones que la app (app/src/renderer/src/styles.css).
   Tema claro por defecto: el interruptor pone data-theme="dark" en <html> (assets/hato.js). */

/* Las letras (0.4.6): Manrope e IBM Plex Mono, servidas desde assets/fonts (con sus licencias
   OFL). Nada se pide a terceros */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-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+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, 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-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-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, 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-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: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600-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: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-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;
}

:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --card: #ffffff;
  --ink: #23262b;
  --ink-2: #5b616b;
  --line: #e7e7ec;
  --btn-border: #dddde7;
  --accent: #0057ff;
  --accent-fill: #0057ff;
  --accent-fill-hover: #0049d6;
  --accent-soft: #e8f0ff;
  --danger: #d64545;
  --header-bg: rgba(247, 247, 247, 0.8);
  --window-line: rgba(20, 22, 26, 0.08);
  --shadow-window: 0 1px 2px rgba(20, 22, 26, 0.04), 0 32px 80px -32px rgba(20, 22, 26, 0.22);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1180px;
  --space-section: clamp(112px, 16vw, 232px);
  --space-head: clamp(48px, 7vw, 96px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  /* Hato, relleno de blanco con el ojo oscuro (con solo el contorno se veía en negativo) */
  --hato-fill: var(--ink);
  --hato-eye: var(--bg);
  /* 0.5.7: y su sombra en el suelo, negra (blanca parecía un reflejo) */
  --hato-shadow: #000;
  --hato-shadow-opacity: .55;
  --bg: #1c1d21;
  --card: #26282c;
  --ink: #e7e8eb;
  --ink-2: #a9adb6;
  --line: #2f3135;
  --btn-border: #3a3c41;
  --accent: #5591ff;
  --accent-soft: #1c2b4a;
  --danger: #f0625f;
  --header-bg: rgba(28, 29, 33, 0.8);
  --window-line: rgba(255, 255, 255, 0.07);
  --shadow-window: 0 1px 2px rgba(0, 0, 0, 0.3), 0 36px 90px -32px rgba(0, 0, 0, 0.75);
}

/* ───── Base ───── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

h1,
h2,
h3,
p,
figure,
ul,
ol,
dl,
dd,
blockquote {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent-soft);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Iconos del sprite: el trazo se hereda a través de <use> */
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Capturas: cada una existe en claro y en oscuro */
.img-oscuro {
  display: none;
}

:root[data-theme='dark'] .img-oscuro {
  display: block;
}

:root[data-theme='dark'] .img-claro {
  display: none;
}

/* ───── Marca ───── */

.brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.dot {
  color: var(--accent);
}

/* ───── Botones (los de la app) ───── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: var(--bg);
  color: var(--ink);
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn:hover {
  background: var(--card);
}

.btn-primary {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-fill-hover);
  border-color: var(--accent-fill-hover);
}

.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn .ic {
  width: 18px;
  height: 18px;
}

/* ───── Cabecera ───── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background-color 0.35s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

/* Sobre el corte de Sinceridad, la cabecera toma sus colores (assets/hato.js) */
.site-header.sobre-corte {
  --header-bg: rgba(18, 19, 22, 0.78);
  --ink: #f2f2ef;
  --ink-2: rgba(242, 242, 239, 0.66);
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

/* Sobre la historia de la portada, oscura con los dos temas: la cabecera, siempre oscura */
.site-header.sobre-noche,
:root[data-theme='dark'] .site-header.sobre-noche {
  --header-bg: rgba(11, 12, 14, 0.78);
  --ink: #f2f2ef;
  --ink-2: rgba(242, 242, 239, 0.66);
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

:root[data-theme='dark'] .site-header.sobre-corte {
  --header-bg: rgba(242, 242, 239, 0.8);
  --ink: #141518;
  --ink-2: rgba(20, 21, 24, 0.62);
  --line: rgba(20, 21, 24, 0.1);
  --card: rgba(20, 21, 24, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.is-current {
  color: var(--ink);
}

/* La sección que se está leyendo lleva el punto de la marca */
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform 0.35s var(--ease);
}

.nav a.is-current::after {
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Idioma: solo texto, el idioma al que se cambia (ES en la web en inglés, EN en la de castellano) */
.lang-link {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

/* Tema: un botón de icono, luna en claro y sol en oscuro (como los iconos de la app) */
.theme-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.theme-btn .ic {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
}

.theme-btn .sol,
:root[data-theme='dark'] .theme-btn .luna {
  display: none;
}

:root[data-theme='dark'] .theme-btn .sol {
  display: block;
}

.lang-link:hover,
.theme-btn:hover {
  background: var(--card);
  color: var(--ink);
}

/* El botón de descarga mide lo mismo en los dos idiomas: la cabecera no se mueve al cambiar */
.btn-cta {
  width: 112px;
  margin-left: 8px;
  padding: 0;
}

@media (max-width: 760px) {
  .header-inner {
    gap: 12px;
  }
  .nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 4px;
  }
  .btn-cta {
    margin-left: 6px;
  }
}

/* ───── Tipografía ───── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

h1 {
  font-size: clamp(3rem, 7.6vw, 5.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.06;
  text-wrap: balance;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.lead {
  max-width: 50ch;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: balance;
}

.fine {
  font-size: 14px;
  color: var(--ink-2);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--btn-border);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--card);
  color: var(--ink);
  font: 600 13px/1 var(--font);
}

/* ───── Secciones ───── */

.section {
  padding-top: var(--space-section);
}

.head {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.head .eyebrow {
  margin-bottom: 2px;
}

/* ───── Portada ───── */

/* Las medidas de la portada siguen también el alto de la ventana: en un portátil (1440×900 deja unos
   780 px a la página), con solo el ancho, la app quedaba entera por debajo y parecía que no estaba */
.hero {
  padding-top: clamp(64px, min(13vw, 12vh), 176px);
}

.hero .head {
  gap: 28px;
}

.hero .btn {
  margin-top: 12px;
}

.hero-shot {
  margin-top: clamp(80px, 11vw, 144px);
}

/* ───── Ventanas con capturas ───── */

.window {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-window);
}

.window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--window-line);
  pointer-events: none;
}

.window img,
.window video {
  width: 100%;
  height: auto;
}

/* El vídeo de Agentes, uno por tema (0.5.0: en oscuro, el claro cantaba mucho) */
.window video {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f7f7f7;
}

.window video.img-oscuro {
  display: none;
  background: #1c1d21;
}

/* Uno por tema: «.window video» (display: block) pesa más que «.img-oscuro», y en claro se veían los dos */
:root[data-theme='dark'] .window video.img-oscuro {
  display: block;
}

:root[data-theme='dark'] .window video.img-claro {
  display: none;
}

.shot {
  max-width: 1040px;
  margin: var(--space-head) auto 0;
}

@media (max-width: 640px) {
  .window {
    border-radius: 10px;
  }
}

/* ───── Cómo funciona: diagrama ───── */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  max-width: 1040px;
  margin: var(--space-head) auto 0;
}

.node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
}

.node strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.node .sub {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

.node .ic {
  color: var(--ink-2);
}

.node-screener {
  flex-wrap: wrap;
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.node-screener .ic {
  color: var(--accent);
}

.choices {
  display: flex;
  gap: 8px;
  width: 100%;
  padding-left: 36px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--btn-border);
  font-size: 14px;
  font-weight: 600;
}

.choice .ic {
  width: 15px;
  height: 15px;
  color: currentColor;
}

.choice-yes {
  color: var(--accent);
}

.flow-dests {
  display: grid;
  gap: 16px;
}

.dest::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--btn-border);
  transform: translateY(-50%);
}

.dest-blocked {
  background: transparent;
  border-style: dashed;
  border-color: var(--btn-border);
}

.dest-blocked strong {
  color: var(--ink-2);
}

.dest-blocked .ic {
  color: var(--danger);
}

/* El margen deja ver la punta de la flecha antes del halo del Screener */
.flow-link {
  position: relative;
  height: 2px;
  margin-right: 12px;
  background: var(--btn-border);
}

.flow-link::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--btn-border);
  border-right: 2px solid var(--btn-border);
  transform: translateY(-50%) rotate(45deg);
}

.flow-split {
  position: relative;
  align-self: stretch;
}

.flow-split svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-split path {
  fill: none;
  stroke: var(--btn-border);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }
  .flow-link,
  .flow-split {
    width: 2px;
    height: 44px;
    margin: 0 auto;
    background: var(--btn-border);
  }
  .flow-link {
    margin-bottom: 12px;
  }
  .flow-link::after {
    right: auto;
    top: auto;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }
  .flow-split svg,
  .dest::before {
    display: none;
  }
}

/* ───── Teclado ───── */

.keys-row {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 44px;
  margin: var(--space-head) auto 0;
  max-width: 1100px;
}

.keys-row li {
  display: grid;
  justify-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-2);
}

.keycaps {
  display: flex;
  gap: 6px;
}

.keys-row kbd {
  min-width: 52px;
  height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border-bottom-width: 3px;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 560px) {
  .keys-row {
    gap: 32px 28px;
  }
  .keys-row li {
    width: calc(50% - 14px);
  }
  .keys-row kbd {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 16px;
  }
}

/* ───── Agentes: lo que puedes hacer y, también, desde Claude ───── */

.points {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 56px;
  max-width: 1040px;
  margin: clamp(64px, 8vw, 104px) auto 0;
}

.points li {
  display: grid;
  align-content: start;
  gap: 10px;
}

.points .ic {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  color: var(--accent);
}

.points p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .points {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    max-width: 520px;
  }
}

.from-claude {
  margin-top: clamp(112px, 14vw, 184px);
}

.from-claude h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.head code,
.fine code {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  font: 500 0.88em/1.4 var(--mono);
  white-space: nowrap;
}

.shot-terminal {
  max-width: 880px;
}

/* ───── Y además ───── */

.extras {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 56px;
  max-width: 940px;
  margin: var(--space-head) auto 0;
}

.extras li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.extras .ic {
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
  }
}

@media (max-width: 520px) {
  .extras {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───── Privacidad: de Google a tu Mac, sin pasar por nadie ─────
   Arriba, el titular y los tres ceros; debajo, centrado, el trayecto del correo. */

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.privacy-copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}

/* Tres ceros: las cifras ruedan hasta el 0, como un contador. Quietas, el 0 */
.zeros {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}

.zeros li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}

.zero {
  display: block;
  height: 1em;
  overflow: hidden;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
}

.roll {
  display: block;
  transform: translateY(calc(-100% + 1em));
}

.roll span {
  display: block;
  height: 1em;
}

.zero-label {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.zero-note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Diagrama: el correo viaja de Gmail a tu Mac; el servidor de Hato no existe */
.route {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  grid-template-areas:
    'from line to'
    '. ghost .';
  align-items: center;
  row-gap: 72px;
  max-width: 920px;
  margin: clamp(112px, 14vw, 168px) auto 0;
}

.route-from {
  grid-area: from;
}

.route-to {
  grid-area: to;
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.route-to .ic {
  color: var(--accent);
}

.route-line {
  grid-area: line;
  position: relative;
  height: 2px;
  margin: 0 14px;
  background: var(--btn-border);
}

/* Punta de flecha, como en el diagrama de «Cómo funciona» */
.route-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--btn-border);
  border-right: 2px solid var(--btn-border);
  transform: translateY(-50%) rotate(45deg);
}

/* El correo, de camino. Quieto, a mitad de trayecto */
.route-mail {
  position: absolute;
  left: calc(50% - 6px);
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* Centrado bajo la línea aunque sea más ancho que ella */
.route-ghost {
  grid-area: ghost;
  justify-self: unsafe center;
  white-space: nowrap;
  background: transparent;
  border-style: dashed;
  border-color: var(--btn-border);
}

.route-ghost strong {
  color: var(--ink-2);
}

.route-ghost s {
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
}

/* El desvío hacia «nuestros servidores», cortado */
.route-ghost::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 34px;
  border-left: 2px dashed var(--btn-border);
}

.route-ghost::after {
  content: '×';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 34px);
  width: 22px;
  height: 22px;
  margin-left: -10px;
  border: 2px solid var(--danger);
  border-radius: 50%;
  background: var(--bg);
  color: var(--danger);
  font: 700 15px/17px var(--font);
  text-align: center;
}

/* Para qué usa Hato los datos de Google (lo pide la verificación de Google en la portada).
   Texto corrido, con el título a la izquierda, como las preguntas */
.data-use {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 24px clamp(40px, 7vw, 112px);
  margin-top: clamp(112px, 14vw, 176px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.data-use h3 {
  max-width: 14ch;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.data-use-text {
  display: grid;
  gap: 18px;
  max-width: 62ch;
}

.data-use-text p {
  color: var(--ink-2);
  text-wrap: pretty;
}

.data-use-text .fine a {
  color: inherit;
  text-underline-offset: 3px;
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 6px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.text-link .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.text-link:hover .ic {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .privacy,
  .data-use {
    grid-template-columns: minmax(0, 1fr);
  }
  .route {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'from' 'line' 'to' 'ghost';
    row-gap: 0;
    max-width: 420px;
  }
  .route-line {
    width: 2px;
    height: 64px;
    margin: 14px auto;
  }
  .route-line::after {
    right: auto;
    top: auto;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }
  .route-mail {
    left: -5px;
    top: calc(50% - 6px);
  }
  .route-ghost {
    margin-top: 80px;
  }
}

@media (max-width: 520px) {
  .zeros {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

/* ───── Sinceridad: un corte a pantalla completa ─────
   Negro sobre la página clara; en el tema oscuro, al revés. Los nombres, a todo el ancho */

.honest {
  --ink-2: rgba(242, 242, 239, 0.58);
  --line: rgba(255, 255, 255, 0.12);
  margin-top: var(--space-section);
  padding: clamp(128px, 17vw, 240px) 0;
  background: #121316;
  color: #f2f2ef;
  text-align: center;
  overflow: hidden;
}

:root[data-theme='dark'] .honest {
  --ink-2: rgba(20, 21, 24, 0.56);
  --line: rgba(20, 21, 24, 0.12);
  background: #f2f2ef;
  color: #141518;
}

.honest h2 {
  margin-top: 22px;
}

.honest .lead {
  margin: 22px auto 0;
}

/* Las marcas, a todo el ancho de la pantalla (0.5.0): la fila más larga («Notion Newton Twobirds»)
   mide 11,4 em, así que a 8,1 vw ocupa el 92 % del ancho, sea cual sea la pantalla (antes, con un tope
   de 132 px, en una pantalla grande se quedaba en el 60 %) */
.names {
  margin: clamp(72px, 9vw, 128px) auto 0;
  padding: 0 3vw;
  font-size: 8.1vw;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

/* Tres por fila, centrados y con la misma separación entre todos; Outlook, solo y al final */
.names-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.42em;
}

.names-last {
  margin-top: 0.1em;
}

.names .no s {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
}

/* La raya roja llega la última */
.names .no s::after {
  content: '';
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  top: 52%;
  height: 0.08em;
  border-radius: 0.04em;
  background: var(--danger);
  transform-origin: left center;
}

/* El remate, entero y al final (0.5.0): lo que tomamos de todos y, sobre todo, nada de Outlook */
.honest-punch {
  max-width: 760px;
  margin: clamp(56px, 7vw, 96px) auto 0;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  text-wrap: balance;
  color: var(--ink-2);
}

/* ───── Misión: su propio bloque, palabra a palabra como la frase grande ───── */

.manifesto {
  padding-top: var(--space-section);
  text-align: center;
}

.manifesto-text {
  max-width: 20ch;
  margin: 0 auto;
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

/* La primera frase, grande; la segunda, debajo y más tranquila */
.manifesto-text .m1,
.manifesto-text .m2 {
  display: block;
}

.manifesto-text .m2 {
  max-width: 34ch;
  margin: 0.8em auto 0;
  font-size: 0.46em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink-2);
}

/* ───── Preguntas: el título fijo a la izquierda ───── */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(40px, 7vw, 112px);
}

.faq-head {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 18px;
}

.faq-head .fine a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq .answer {
  padding: 0 48px 28px 0;
  color: var(--ink-2);
}

.faq .answer a {
  color: var(--accent);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-head {
    position: static;
  }
}

/* ───── Descarga ───── */

.cta {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.cta .fine {
  margin-top: -6px;
}

/* La segunda línea (la identidad de marca, aún no definitiva), pegada a la primera */
.cta .fine + .fine {
  margin-top: -24px;
}

.app-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 3px rgba(20, 22, 26, 0.08)) drop-shadow(0 18px 28px rgba(20, 22, 26, 0.18));
}

/* ───── Frase grande ───── */

.statement {
  padding: var(--space-section) 0 0;
  text-align: center;
}

.statement-text {
  max-width: 15ch;
  margin: 0 auto;
  font-size: clamp(2.7rem, 8.6vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.statement-text .linea {
  display: block;
}

.statement-text .linea + .linea {
  margin-top: 0.12em;
  color: var(--accent);
}

/* ───── Llamada: tu casa, tus normas ───── */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: clamp(88px, 12vw, 152px) var(--gutter);
  border-radius: clamp(24px, 3vw, 36px);
  background: radial-gradient(120% 140% at 50% 0%, #2a6bff 0%, #0057ff 45%, #0047d1 100%);
  color: #fff;
  text-align: center;
}

.band h2 {
  color: #fff;
}

.band p {
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  text-wrap: balance;
}

.band .btn {
  margin-top: 14px;
}

.btn-white {
  background: #fff;
  border-color: #fff;
  color: #0047d1;
}

.btn-white:hover {
  background: #eef3ff;
  border-color: #eef3ff;
}

/* Ondas, como una piedra en el agua */
.ripples {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ripples span {
  position: absolute;
  width: min(80vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0.35;
}

.ripples span:nth-child(1) {
  transform: scale(0.4);
}
.ripples span:nth-child(2) {
  transform: scale(0.7);
}
.ripples span:nth-child(3) {
  transform: scale(1);
}
.ripples span:nth-child(4) {
  transform: scale(1.3);
}

/* ───── Pie ───── */

.site-footer {
  margin-top: var(--space-section);
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-legal {
  margin-top: 32px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ───── Páginas legales ───── */

.legal {
  padding-top: clamp(72px, 10vw, 136px);
}

.legal .container {
  max-width: calc(680px + 2 * var(--gutter));
}

.legal h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-top: 20px;
}

.updated {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 15px;
}

.summary {
  margin-top: 64px;
  padding: 30px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.summary h2 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.summary ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.summary li {
  position: relative;
  padding-left: 30px;
  line-height: 1.55;
}

.summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.summary li::after {
  content: '';
  position: absolute;
  left: 7.5px;
  top: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 76px 0 18px;
  scroll-margin-top: 96px;
}

.prose p,
.prose li,
.prose dd {
  color: var(--ink-2);
  line-height: 1.7;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose dl + p,
.prose p + dl,
.prose p + blockquote,
.prose blockquote + p {
  margin-top: 16px;
}

.prose ul {
  padding-left: 1.25em;
  display: grid;
  gap: 10px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose code {
  font: 0.86em var(--mono);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
  white-space: nowrap;
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 20px;
  color: var(--ink-2);
  font-style: italic;
}

.scopes {
  display: grid;
  gap: 14px;
}

.scopes > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}

.scopes dt {
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.scopes dd {
  margin-top: 8px;
  font-size: 15.5px;
}

/* Las direcciones de los permisos son largas: en móvil tienen que poder partirse */
.scopes code {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ───── Portada (19-10-2026, segunda ronda): un discurso de ascensor ─────
   1 · La historia (.story): un corte oscuro, también con el tema oscuro, que se queda fijo mientras bajas. Un correo
   caótico (dibujado por nosotros) y sus avisos; al seguir, se apaga y entra el Inbox de Hato: «Gmail, con tus
   reglas.». Sin JavaScript, en pantallas estrechas o con «reducir movimiento», todo quieto y seguido.
   2 · «Para quien…», con la palabra que cambia letra a letra, y tres escenas. 3 · Tus horas. 4 · La nota */

.story {
  --ink: #f2f2ef;
  --ink-2: rgba(242, 242, 239, 0.62);
  --line: rgba(255, 255, 255, 0.09);
  --card: #16171a;
  --story-accent: #6a9bff;
  margin-top: var(--space-section);
  background: #0b0c0e;
  color: var(--ink);
}

.story-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(96px, 12vw, 160px) 0 clamp(96px, 12vw, 160px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow: hidden;
}

.story-copy {
  display: grid;
  gap: 56px;
}

.story-title {
  margin: 0;
  font-size: clamp(2.2rem, 4.3vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.story-l1,
.story-l2 {
  display: block;
}

.story-l2 {
  margin-top: 0.12em;
  color: var(--story-accent);
}

.story-pains {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.pain {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
}

.pain b {
  color: var(--ink);
  font-weight: 700;
}

.pain-n {
  padding-top: 0.25em;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
  color: var(--story-accent);
}

.story .eyebrow {
  color: var(--ink-2);
}

.rules-title {
  margin: 14px 0 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.rules-title span {
  display: block;
  color: var(--story-accent);
}

.story-b .lead {
  max-width: 24em;
  margin-top: 26px;
  color: var(--ink-2);
}

.story-visual {
  position: relative;
  height: min(72vh, 640px);
  min-height: 420px;
}

/* El correo caótico: todo en em, para escalarlo con un solo tamaño de letra */
.chaos {
  position: absolute;
  top: 50%;
  left: 0;
  width: 84em;
  height: 54em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4em;
  background: #1b1b1f;
  color: #e3e3e6;
  font-size: clamp(7px, 0.86vw, 12.5px);
  overflow: hidden;
  transform: translateY(-50%);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8);
}

.chaos-top {
  display: grid;
  grid-template-columns: 2em 13em minmax(0, 46em) 1fr;
  align-items: center;
  gap: 1.4em;
  height: 5.4em;
  padding: 0 1.6em;
}

.chaos-burger {
  height: 1.1em;
  background:
    linear-gradient(#bbb 0 0) 0 0 / 100% 2px no-repeat,
    linear-gradient(#bbb 0 0) 0 50% / 100% 2px no-repeat,
    linear-gradient(#bbb 0 0) 0 100% / 100% 2px no-repeat;
}

.chaos-logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: #d8d8dc;
  font-size: 1.7em;
  font-weight: 500;
}

.chaos-logo i {
  width: 1.3em;
  height: 1em;
  border-radius: 0.2em;
  background: linear-gradient(135deg, #e8553b 0 50%, #f2b600 50% 100%);
}

.chaos-search {
  height: 3.6em;
  padding: 0 1.6em;
  border-radius: 999px;
  background: #2b2c31;
  color: #a6a6ad;
  font-size: 1.15em;
  line-height: 3.6em;
}

.chaos-dots {
  display: flex;
  justify-content: flex-end;
  gap: 1.1em;
}

.chaos-dots i {
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: #3a3b40;
}

.chaos-dots i.av {
  background: linear-gradient(135deg, #d99a5b, #b86a3a);
}

.chaos-body {
  display: grid;
  grid-template-columns: 17em minmax(0, 1fr);
  height: calc(100% - 5.4em);
}

.chaos-side {
  padding: 0.6em 0.8em;
  color: #cfcfd4;
  font-size: 1.05em;
}

.chaos-compose {
  display: inline-block;
  margin: 0 0 1em 0.4em;
  padding: 1.1em 1.8em;
  border-radius: 1.2em;
  background: #f2f2f5;
  color: #1b1b1f;
  font-weight: 600;
}

.chaos-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chaos-side li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.38em 1em;
  border-radius: 999px;
}

.chaos-side li b {
  margin-left: auto;
  font-size: 0.9em;
}

.chaos-side li.on {
  background: #3a3b42;
  color: #fff;
  font-weight: 700;
}

.chaos-side li i {
  width: 0.9em;
  height: 0.7em;
  border-radius: 0.15em;
  background: var(--c);
}

.chaos-side p {
  margin: 1.1em 1em 0.4em;
  font-size: 1.15em;
  font-weight: 600;
}

.chaos-main {
  margin: 0 1em 1em 0;
  border-radius: 1.2em;
  background: #222327;
  overflow: hidden;
}

.chaos-chips {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 1em 1.2em 0.6em;
}

.chaos-chips span {
  padding: 0.45em 0.9em;
  border: 1px solid #55565c;
  border-radius: 0.5em;
  color: #e3e3e6;
}

.chaos-chips em {
  margin-left: 0.4em;
  color: #8ab4ff;
  font-style: normal;
}

.chaos-tools {
  display: flex;
  align-items: center;
  gap: 1.4em;
  padding: 0.5em 1.4em;
  color: #a6a6ad;
}

.chaos-tools i {
  width: 1.1em;
  height: 1.1em;
  border: 2px solid #8b8b92;
  border-radius: 0.2em;
}

.chaos-tools span {
  margin-left: auto;
}

.chaos-tabs {
  display: flex;
  border-bottom: 1px solid #34353a;
}

.chaos-tabs span {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.4em;
  color: #b5b5bb;
}

.chaos-tabs span.on {
  color: #8ab4ff;
  box-shadow: inset 0 -3px 0 #8ab4ff;
}

.chaos-tabs b {
  padding: 0.1em 0.6em;
  border-radius: 999px;
  background: #d93025;
  color: #fff;
  font-size: 0.85em;
}

.chaos-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chaos-row {
  display: grid;
  grid-template-columns: 1.1em 1.1em 13em minmax(0, 1fr) 4.6em;
  align-items: center;
  gap: 1em;
  height: 2.65em;
  padding: 0 1.4em;
  border-bottom: 1px solid #2d2e33;
  background: #26272b;
  color: #9d9da4;
  white-space: nowrap;
}

.chaos-row.unread {
  background: #1e1f23;
  color: #f0f0f2;
}

.chaos-row b,
.chaos-row .sj {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.chaos-row.unread b,
.chaos-row.unread strong {
  font-weight: 700;
}

.chaos-row strong {
  color: inherit;
  font-weight: 500;
}

.chaos-row .sj {
  color: #9d9da4;
}

.chaos-row.unread .sj strong {
  color: #f0f0f2;
}

.chaos-row .sj em {
  margin-right: 0.6em;
  padding: 0.05em 0.5em;
  border-radius: 0.3em;
  background: #c95a6a;
  color: #fff;
  font-size: 0.9em;
  font-style: normal;
}

.chaos-row time {
  font-size: 0.92em;
  text-align: right;
}

.chaos-row .cb,
.chaos-row .st {
  width: 1.05em;
  height: 1.05em;
}

.chaos-row .cb {
  border: 2px solid #6d6d74;
  border-radius: 0.15em;
}

.chaos-row .st {
  background: #6d6d74;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Entre tanto ruido, tu clienta */
.chaos-row.client {
  box-shadow: inset 3px 0 0 #8ab4ff;
}

/* El Inbox de Hato, que sustituye al caos */
.calm {
  position: absolute;
  top: 50%;
  left: 0;
  width: 66em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.2em;
  font-size: clamp(7px, 0.86vw, 12.5px);
  overflow: hidden;
  transform: translateY(-50%);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.85);
}

.calm img {
  display: block;
  width: 100%;
  height: auto;
}

/* Los avisos de macOS que no paran de llegar */
.story-toasts {
  position: absolute;
  top: clamp(8px, 3vh, 32px);
  right: clamp(16px, 4vw, 56px);
  z-index: 2;
  display: grid;
  gap: 10px;
  width: min(330px, 70%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.toast-mac {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(46, 47, 52, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  line-height: 1.35;
}

.toast-mac b,
.toast-mac > span > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-mac > span > span {
  color: rgba(242, 242, 239, 0.7);
}

.toast-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--c);
  color: #fff;
  font-weight: 700;
}

/* Quieto (sin JavaScript, en pantallas estrechas o con «reducir movimiento»): seguido y sin el Inbox de Hato
   encima del caos */
.story:not(.vivo) .calm {
  display: none;
}

.story:not(.vivo) .toast-mac:nth-child(n + 4) {
  display: none;
}

/* Viva: fija mientras bajas, en cinco fases (assets/hato.js pone data-fase según el scroll) */
.story.vivo .story-track {
  height: 360vh;
}

.story.vivo .story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: 64px;
  padding-bottom: 0;
}

.story.vivo .story-copy {
  grid-template-areas: 'a';
}

.story.vivo .story-a,
.story.vivo .story-b {
  grid-area: a;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
}

.story.vivo .story-b {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  pointer-events: none;
}

.story.vivo .story-l2,
.story.vivo .pain,
.story.vivo .toast-mac {
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
}

.story.vivo .story-l2 {
  opacity: 0;
  transform: translateY(0.3em);
  filter: blur(8px);
}

.story.vivo .pain {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition-delay: calc(var(--i) * 0.12s);
}

.story.vivo .toast-mac {
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  filter: blur(4px);
  transition-delay: calc(var(--i) * 0.16s);
}

.story.vivo .chaos,
.story.vivo .calm {
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease),
    filter 1.1s var(--ease);
}

.story.vivo .calm {
  opacity: 0;
  transform: translateY(-50%) scale(0.94);
  filter: blur(12px);
}

.story.vivo[data-fase='1'] .story-l2,
.story.vivo[data-fase='2'] .story-l2,
.story.vivo[data-fase='3'] .story-l2,
.story.vivo[data-fase='2'] .pain,
.story.vivo[data-fase='3'] .pain,
.story.vivo[data-fase='2'] .toast-mac:nth-child(-n + 2),
.story.vivo[data-fase='3'] .toast-mac {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Fase 3: el caos aprieta (se acerca un poco) */
.story.vivo[data-fase='3'] .chaos {
  transform: translateY(-50%) scale(1.03);
}

/* Fase 4: la respuesta. El caos se apaga y se va; entra el Inbox de Hato */
.story.vivo[data-fase='4'] .story-a {
  opacity: 0;
  transform: translateY(-28px);
  filter: blur(10px);
}

.story.vivo[data-fase='4'] .story-b {
  opacity: 1;
  transform: none;
  filter: none;
}

.story.vivo[data-fase='4'] .chaos {
  opacity: 0;
  transform: translateY(-50%) scale(0.9);
  filter: blur(16px);
}

.story.vivo[data-fase='4'] .calm {
  opacity: 1;
  transform: translateY(-50%);
  filter: none;
}

.story.vivo[data-fase='4'] .toast-mac {
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
  filter: blur(6px);
  transition-delay: calc(var(--i) * 0.05s);
}

@media (max-width: 899px) {
  .story-stage {
    grid-template-columns: minmax(0, 1fr);
    padding-right: var(--gutter);
  }

  .story-visual {
    height: 360px;
    min-height: 0;
    margin-right: calc(var(--gutter) * -1);
  }

  .chaos {
    font-size: 7px;
  }
}

/* «Para quien…» */
.for-whom {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

.rotator {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  color: var(--accent);
  white-space: nowrap;
  text-align: left;
  transition: width 0.8s var(--ease);
}

.rotator-word {
  display: inline-block;
}

.rotator-word.saliendo {
  position: absolute;
  top: 0;
  left: 0;
}

.rl {
  display: inline-block;
  white-space: pre;
}

.personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: var(--space-head) 0 0;
  padding: 0;
  list-style: none;
}

.persona {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
}

.persona-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.persona-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.persona h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.persona p {
  margin: 0;
  color: var(--ink-2);
}

.persona-tag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.persona-tag .ic {
  width: 16px;
  height: 16px;
}

/* Cada escena, con una pieza de la interfaz */
.demo {
  display: grid;
  align-content: center;
  gap: 8px;
  height: 150px;
  padding: 18px;
  border-radius: 18px;
  background: var(--bg);
}

.demo-guardian span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
}

.demo-guardian em {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.demo-guardian .si em {
  background: var(--accent-fill);
  color: #fff;
}

.demo-guardian .no {
  opacity: 0.55;
}

.demo-guardian .no em {
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.demo-hours,
.demo-keys {
  grid-auto-flow: column;
  justify-content: center;
}

.demo-hours span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font: 600 15px/1 var(--mono);
}

.demo-hours span.on {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  color: #fff;
}

.demo-keys {
  gap: 14px;
}

.demo-keys span {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.demo-keys kbd {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
  color: var(--ink);
  font: 600 17px/1 var(--font);
}

/* Tus horas: el texto y, al lado, el día con sus tres horas */
.hours {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hours-hato {
  width: 150px;
  margin: 0 0 6px -10px;
}

.hours-copy h2 {
  margin-top: 10px;
}

.hours-copy .lead {
  margin-top: 18px;
}

.day {
  position: relative;
  padding: 26px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-window);
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 15px;
}

.day-head span {
  color: var(--ink-2);
  font-size: 13px;
}

.day-line {
  position: relative;
  height: 4px;
  margin: 64px 0 0;
  border-radius: 4px;
  background: var(--line);
}

.day-wait {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px);
  opacity: 0.35;
}

.hours-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hour {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hour span {
  display: inline-grid;
  place-items: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font: 600 15px/1 var(--mono);
}

.day-ticks {
  position: relative;
  height: 18px;
  margin-top: 34px;
  color: var(--ink-2);
  font: 500 11px/1 var(--mono);
}

.day-ticks span {
  position: absolute;
  transform: translateX(-50%);
}

.hours-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(330px, 100%);
  margin: 26px 0 0 auto;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 18px 44px -24px rgba(20, 22, 26, 0.35);
}

.hours-toast img {
  border-radius: 9px;
}

.hours-toast strong,
.hours-toast span {
  display: block;
}

.hours-toast strong {
  font-size: 14px;
}

.hours-toast span {
  color: var(--ink-2);
  font-size: 13px;
}

/* La nota, firmada */
.note {
  max-width: 820px;
  margin: 0 auto;
}

.note blockquote {
  margin: 0;
}

.note blockquote p {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  text-wrap: pretty;
}

.note-q {
  margin-left: -0.45em;
  padding-right: 0.06em;
  color: var(--accent);
  font-weight: 700;
}

.note figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.note figcaption img {
  border-radius: 11px;
}

.note-sign,
.note-role {
  display: block;
}

.note-sign {
  font-size: 18px;
  font-weight: 700;
}

.note-role {
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .personas,
  .hours {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───── Animaciones de entrada ─────
   Solo con JavaScript (html.js) y si el sistema no pide reducir el movimiento.
   assets/hato.js añade .is-visible a cada .reveal cuando entra en pantalla. */

@keyframes hora {
  0%,
  6%,
  34%,
  100% {
    border-color: var(--line);
    background: var(--card);
    color: var(--ink);
  }
  10%,
  30% {
    border-color: var(--accent-fill);
    background: var(--accent-fill);
    color: #fff;
  }
}

@keyframes pulsar {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translateY(3px);
  }
}

@keyframes punto {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes respirar {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes onda {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes viaje {
  0% {
    left: 0;
    opacity: 0;
  }
  10%,
  78% {
    opacity: 1;
  }
  90%,
  100% {
    left: calc(100% - 26px);
    opacity: 0;
  }
}

@keyframes viaje-v {
  0% {
    top: 0;
    opacity: 0;
  }
  10%,
  78% {
    opacity: 1;
  }
  90%,
  100% {
    top: calc(100% - 26px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 1.1s var(--ease),
      transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }

  .js .window.reveal {
    transform: translateY(56px) scale(0.98);
    transition-duration: 1.5s;
  }

  /* Portada (19-10): la palabra de «Para quien…», letra a letra, con desenfoque; las horas, una tras otra */
  .rl {
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease),
      filter 0.7s var(--ease);
    transition-delay: calc(var(--i) * 0.03s);
  }

  .entrando .rl {
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(10px);
  }

  .saliendo .rl {
    opacity: 0;
    transform: translateY(-0.3em);
    filter: blur(8px);
    transition-duration: 0.45s;
    transition-delay: calc(var(--i) * 0.015s);
  }

  .day.is-visible .hour span {
    animation: hora 6s var(--ease) infinite;
  }

  .day.is-visible .hour:nth-child(2) span {
    animation-delay: 2s;
  }

  .day.is-visible .hour:nth-child(3) span {
    animation-delay: 4s;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* El punto del titular aparece el último, como el de la marca */
  .js .hero h1 .dot {
    display: inline-block;
    transform-origin: 50% 80%;
    animation: punto 0.7s var(--ease) 0.9s both;
  }

  /* Diagrama: el correo llega, pasa el filtro y se reparte */
  .js .flow.reveal {
    opacity: 1;
    transform: none;
  }

  .js .flow .node,
  .js .flow .flow-link,
  .js .flow .flow-split {
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease),
      clip-path 1.1s var(--ease);
  }

  .js .flow .node {
    opacity: 0;
    transform: translateY(14px);
  }

  /* Márgenes negativos: la punta de la flecha sobresale de la línea */
  .js .flow .flow-link,
  .js .flow .flow-split {
    clip-path: inset(-12px 100% -12px 0);
  }

  .js .flow.is-visible .node {
    opacity: 1;
    transform: none;
  }

  .js .flow.is-visible .flow-link,
  .js .flow.is-visible .flow-split {
    clip-path: inset(-12px 0 -12px 0);
  }

  .js .flow > :nth-child(1) {
    transition-delay: 0.1s;
  }
  .js .flow > :nth-child(2) {
    transition-delay: 0.5s;
  }
  .js .flow > :nth-child(3) {
    transition-delay: 0.85s;
  }
  .js .flow > :nth-child(4) {
    transition-delay: 1.2s;
  }
  .js .flow-dests > :nth-child(1) {
    transition-delay: 1.5s;
  }
  .js .flow-dests > :nth-child(2) {
    transition-delay: 1.62s;
  }
  .js .flow-dests > :nth-child(3) {
    transition-delay: 1.74s;
  }
  .js .flow-dests > :nth-child(4) {
    transition-delay: 1.86s;
  }

  @media (max-width: 900px) {
    .js .flow .flow-link,
    .js .flow .flow-split {
      clip-path: inset(0 -12px 100% -12px);
    }
    .js .flow.is-visible .flow-link,
    .js .flow.is-visible .flow-split {
      clip-path: inset(0 -12px -12px -12px);
    }
  }

  /* Frase grande: palabra a palabra, enfocándose */
  .js .statement-text.reveal,
  .js .manifesto-text.reveal {
    opacity: 1;
    transform: none;
  }

  .js .statement-text .w,
  .js .manifesto-text .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.35em);
    filter: blur(8px);
    transition:
      opacity 1.2s var(--ease),
      transform 1.2s var(--ease),
      filter 1.2s var(--ease);
    transition-delay: calc(var(--i) * 0.07s);
  }

  .js .statement-text.is-visible .w,
  .js .manifesto-text.is-visible .w {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Teclas: se pulsan una tras otra */
  .js .keys-row.is-visible kbd {
    animation: pulsar 0.6s var(--ease) both;
    animation-delay: calc(0.6s + var(--k, 0) * 0.07s);
  }

  .ripples span {
    opacity: 0;
    animation: onda 12s linear infinite;
  }
  .ripples span:nth-child(2) {
    animation-delay: -3s;
  }
  .ripples span:nth-child(3) {
    animation-delay: -6s;
  }
  .ripples span:nth-child(4) {
    animation-delay: -9s;
  }

  .app-icon {
    animation: respirar 8s ease-in-out infinite;
  }

  /* Privacidad: el trayecto se dibuja y el correo empieza a viajar */
  .js .route.reveal {
    opacity: 1;
    transform: none;
  }

  .js .route .node,
  .js .route .route-line {
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease),
      clip-path 1.1s var(--ease);
  }

  .js .route .node {
    opacity: 0;
    transform: translateY(14px);
  }

  .js .route .route-line {
    clip-path: inset(-12px 100% -12px 0);
    transition-delay: 0.45s;
  }

  .js .route.is-visible .node {
    opacity: 1;
    transform: none;
  }

  .js .route.is-visible .route-line {
    clip-path: inset(-12px -12px -12px 0);
  }

  .js .route .route-from {
    transition-delay: 0.1s;
  }
  .js .route .route-to {
    transition-delay: 0.9s;
  }
  .js .route .route-ghost {
    transition-delay: 1.35s;
  }

  .js .route.is-visible .route-mail {
    animation: viaje 3.4s cubic-bezier(0.65, 0, 0.35, 1) 1.9s infinite both;
  }

  @media (max-width: 900px) {
    .js .route .route-line {
      clip-path: inset(0 -12px 100% -12px);
    }
    .js .route.is-visible .route-line {
      clip-path: inset(0 -12px -12px -12px);
    }
    .js .route.is-visible .route-mail {
      animation-name: viaje-v;
    }
  }

  /* Ceros: las cifras ruedan hasta el 0 */
  .js .zeros li:not(.is-visible) .roll {
    transform: none;
  }

  .js .zeros .roll {
    transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d, 0s) + 0.2s);
  }

  /* Sinceridad: los nombres se encienden uno a uno y, al final, Outlook se tacha */
  .js .names.reveal {
    opacity: 1;
    transform: none;
  }

  .js .names-row > span {
    opacity: 0.14;
    transition: opacity 0.9s var(--ease) calc(0.15s + var(--i, 0) * 0.13s);
  }

  .js .names.is-visible .names-row > span {
    opacity: 1;
  }

  .js .names .no s::after {
    transform: scaleX(0);
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 1.8s;
  }

  .js .names.is-visible .no s::after {
    transform: none;
  }

  /* Preguntas: cada respuesta se abre despacio (donde el navegador lo permite) */
  @supports selector(::details-content) {
    .faq {
      interpolate-size: allow-keywords;
    }
    .faq details::details-content {
      block-size: 0;
      overflow: hidden;
      transition:
        block-size 0.45s var(--ease),
        content-visibility 0.45s allow-discrete;
    }
    .faq details[open]::details-content {
      block-size: auto;
    }
  }
}

/* Si el script no llega a cargar, nada se queda oculto */
.sin-anim .reveal,
.sin-anim .flow .node,
.sin-anim .statement-text .w,
.sin-anim .manifesto-text .w {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.sin-anim .flow-link,
.sin-anim .flow-split {
  clip-path: none !important;
}

.sin-anim .route .node,
.sin-anim .names-row > span {
  opacity: 1 !important;
  transform: none !important;
}

.sin-anim .route-line {
  clip-path: none !important;
}

.sin-anim .roll {
  transform: translateY(calc(-100% + 1em)) !important;
}

.sin-anim .names .no s::after {
  transform: none !important;
}


/* ───── Hato (0.5.0) ─────
   La web se llama Hato: el icono junto al nombre, una portada como la de Things (el icono grande, el
   nombre, la frase y la app en perspectiva, que se endereza al bajar), «Conoce a Hato» y sus escenas
   animadas en las secciones, las mismas de la app y con sus colores (currentColor, --accent, --bg) */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(20, 22, 26, 0.12));
}

.hero .hero-head {
  gap: 0;
}

.hero-icon {
  width: clamp(96px, 15vh, 136px);
  height: clamp(96px, 15vh, 136px);
  filter: drop-shadow(0 2px 3px rgba(20, 22, 26, 0.08)) drop-shadow(0 22px 34px rgba(20, 22, 26, 0.2));
}

.hero-name {
  margin: 26px 0 0;
  font-size: clamp(60px, min(9vw, 11vh), 104px);
  line-height: 1;
  letter-spacing: -0.05em;
}


/* Qué es Hato y quién entra: un solo párrafo, con la misma letra, y aire hasta el botón */
.hero-head .lead {
  max-width: none;
  margin-top: 20px;
}

/* Cada frase, en su línea y repartida por igual (con un salto, el reparto no cruzaba y en el móvil
   quedaba una palabra sola) */
.hero-head .lead span {
  display: block;
  text-wrap: balance;
}

.hero-head .btn {
  margin-top: 40px;
}

/* La app, inclinada como la ventana de Things y más ancha que la página (se sale por los lados); al
   bajar, se endereza (donde el navegador lo sabe hacer) */
/* Recorta lo que se sale sin hacer de la portada su propia zona de scroll: con «hidden», la animación
   de abajo seguía esa zona, que no se mueve, y la app se quedaba quieta */
.hero {
  overflow-x: clip;
}

.hero-stage {
  margin-top: clamp(40px, min(8vw, 7vh), 104px);
  perspective: 2200px;
}

/* Acostada y centrada, sin girar de lado (0.5.2: lo pidió el usuario); al bajar, solo se endereza */
.hero-stage .hero-shot {
  width: 124%;
  margin: 0 0 0 -12%;
  transform-origin: 50% 0;
  transform: rotateX(34deg) scale(0.9);
}

/* Abajo, la app se funde con el fondo: en pantallas grandes se veía entera, y su borde de abajo,
   inclinado y con su sombra, parecía un error. Va en la capa que se inclina (no en la ventana, que
   recorta lo suyo): sigue al borde esté la app inclinada o recta, y tapa también su sombra */
.hero-stage .hero-shot {
  position: relative;
}

.hero-fade {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -96px;
  height: calc(20% + 96px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0, var(--bg) 112px, transparent);
}

/* Entra sola al cargar, sin esperar a «verse»: inclinada en 3D, a veces el navegador no se enteraba
   de que estaba a la vista y la app no aparecía */
.hero-stage {
  animation: hato-entrar 0.9s var(--ease) 0.45s both;
}

@keyframes hato-entrar {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}

/* Desenfoque de cámara: acostada, lo más cercano (abajo) se ve desenfocado y lo del fondo, nítido.
   Una copia difuminada de la misma captura, encima y recortada con un degradado (con backdrop-filter,
   dentro del 3D, el degradado no se respetaba y se difuminaba todo). Se va quitando al enderezarse */
.hero-blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-size: 100% 100%;
  filter: blur(4px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 22%, transparent 70%);
  mask-image: linear-gradient(to top, #000 0%, #000 22%, transparent 70%);
}

/* Al cargar, del todo inclinada; se endereza con el scroll de la página, en los primeros 560 px:
   cuando la app llega arriba ya está recta, delante de ti (ligada a lo que la imagen recorre, como es
   tan alta, acababa de enderezarse cuando ya se había ido) */
@supports (animation-timeline: scroll()) {
  .hero-stage .hero-shot {
    animation: hato-enderezar ease-out both;
    animation-timeline: scroll(root block);
    animation-range: 0px 560px;
  }

  .hero-blur {
    animation: hato-enfocar linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 420px;
  }
}

@keyframes hato-enderezar {
  from {
    transform: rotateX(54deg) scale(0.9);
  }
  to {
    transform: rotateX(0deg) scale(0.8);
  }
}

@keyframes hato-enfocar {
  to {
    opacity: 0;
  }
}

/* Conoce a Hato: la paloma animada y su historia, una al lado de la otra */
.meet-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  max-width: 1040px;
  margin: 0 auto;
}

.meet-hato {
  justify-self: end;
  width: min(100%, 440px);
  color: var(--ink);
}

.meet .meet-copy {
  justify-items: start;
  margin: 0;
  text-align: left;
}

/* En cada sección, su Hato encima del título */
.section-hato {
  width: 250px;
  margin-bottom: -6px;
  color: var(--ink);
}

.section-hatos {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: -6px;
}

/* Las pilas (0.5.2): tres bloques, sin recuadro, cada Hato con su nombre debajo */
.section-hatos {
  align-items: flex-end;
  gap: clamp(16px, 4vw, 48px);
  margin-bottom: 14px;
}

.section-hatos .pile {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 200px;
  margin: 0;
  color: var(--ink);
}

.section-hatos .pile > div {
  width: 100%;
}

/* Los nombres, a la misma altura (abajo) y sin partirse */
.section-hatos figcaption {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

[data-hato] svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .meet-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .meet-hato {
    justify-self: center;
    width: min(100%, 320px);
  }

  .meet .meet-copy {
    justify-items: center;
    text-align: center;
  }

  .section-hatos .pile {
    width: 112px;
  }

  .section-hatos figcaption {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage,
  .hero-stage .hero-shot,
  .hero-blur {
    animation: none;
  }

  .hero-stage .hero-shot {
    transform: rotateX(20deg) scale(0.86);
  }

  .hero-blur {
    display: none;
  }
}

/* ───── Cabecera, sin desplegables ─────
   La marca a la izquierda; a la derecha, las dos secciones que más cuentan (Guardián y Agentes),
   «Descargar» y, tras él, el idioma (ES / EN) y el tema (luna o sol), a un clic. En el móvil, las
   secciones se esconden (están bajando la página) */

.header-inner {
  position: relative;
  justify-content: space-between;
}

.header-actions {
  margin-left: auto;
}

.header-actions .nav {
  margin-right: 24px;
}

.btn-cta {
  margin: 0 4px 0 0;
}

/* ───── Pie, en orden (0.5.0) ─────
   La marca (el icono y Hato) y su frase, centradas en la misma línea; los enlaces, a la derecha, a la
   misma altura; y debajo, la letra pequeña */
.footer-brand {
  align-items: center;
  gap: 16px;
}

.footer-tagline {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  line-height: 1.3;
}

.footer-nav {
  align-items: center;
}

@media (max-width: 640px) {
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-tagline {
    padding-left: 0;
    border-left: 0;
  }
}

/* ───── Los datos de Google, en tres puntos (0.5.0) ─────
   El título y su frase, centrados; debajo, tres tarjetas con icono (lo que pide, dónde vive y los
   agentes) y la letra pequeña que pide Google. Antes, un bloque de texto corrido que se quedaba pobre */
.data-use {
  display: block;
  text-align: center;
}

.data-use-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.data-use h3 {
  max-width: none;
}

.data-use-head p {
  color: var(--ink-2);
  text-wrap: balance;
}

.data-use-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0;
  text-align: left;
}

.data-use-points li {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.data-use-points .ic {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.data-use-points h4 {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.data-use-points p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.data-use-fine {
  max-width: 720px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  color: var(--ink-2);
}

.data-use-fine a {
  color: inherit;
  text-underline-offset: 3px;
}

.data-use .more {
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .data-use-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* El diagrama, dentro del Guardián (0.5.0): una sola sección para quién entra, en vez de tres */
.guardian-flow + .window {
  margin-top: clamp(72px, 9vw, 120px);
}

/* ───── La web en páginas (gethato.com): portada, Funciones, Soporte y Novedades ─────
   La portada cuenta por qué; Funciones, todo lo que hace; Soporte ayuda, con buscador; Novedades guarda
   las versiones grandes. Las piezas nuevas, con los mismos tokens y el mismo ritmo que el resto */

/* La entrada de las páginas de dentro: un titular grande, sin la app */
.page-hero {
  padding-top: clamp(72px, 10vw, 136px);
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Portada · Orden: Hato en las tres bandejas, con su nombre debajo */
.head .section-hatos {
  margin-top: 18px;
}

/* Portada · Orden: una paloma cada vez (Novedades, Gastos e Inbox), fundiéndose con la siguiente */
.hato-ciclo {
  display: grid;
}

.hato-ciclo > div {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.hato-ciclo > div.on {
  opacity: 1;
}

/* Portada · Rapidez: la app con el teclado. Las siete pantallas, una encima de otra; se ve una y el cambio
   es un corte, sin transición. El atajo, encima y en el centro, en una pastilla oscura como el visor de
   teclas de macOS: cada tecla baja al pulsarse */
.speed-demo {
  position: relative;
  max-width: 1040px;
  margin: var(--space-head) auto 0;
}

.speed-window {
  display: grid;
}

.speed-screen {
  grid-area: 1 / 1;
  visibility: hidden;
}

.speed-screen.on {
  visibility: visible;
}

/* Encima de la ventana, fuera de ella: dentro tapaba las pilas de la app y debajo, quien bajaba hasta la
   animación no lo veía. Con su alto reservado: nada se mueve */
.speed-steps {
  display: flex;
  justify-content: center;
  min-height: 74px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.speed-steps li {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 12px 22px 12px 12px;
  border-radius: 20px;
  background: rgba(24, 25, 29, 0.86);
  color: #fff;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 24px 60px -16px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.speed-steps li.on {
  display: flex;
  animation: hud-in 0.2s var(--ease) both;
}

.speed-keys {
  display: flex;
  gap: 8px;
}

.speed-steps kbd {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 600 21px/1 var(--font);
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.14);
}

.speed-steps li.on kbd {
  animation: key-press 0.4s var(--ease) both;
}

.speed-steps li.on kbd:nth-child(2) {
  animation-delay: 0.12s;
}

.speed-label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

@keyframes hud-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes key-press {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  30% {
    opacity: 1;
    transform: translateY(3px);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.14);
  }
  100% {
    transform: none;
  }
}

@media (max-width: 640px) {
  .speed-steps {
    min-height: 50px;
    margin-bottom: 20px;
  }

  .speed-steps li {
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 14px;
  }

  .speed-keys {
    gap: 5px;
  }

  .speed-steps kbd {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 15px;
  }

  .speed-label {
    font-size: 14px;
  }
}

/* Portada · A tu manera, en bento, como los de Apple: cada caja dice una sola cosa, con un título corto y
   una imagen grande. En el centro, la app partida por la mitad en claro y en oscuro; alrededor, los
   nueve iconos, el modo privado (⌘P, en la caja azul), los dos idiomas con Hato de reportero, una
   tarjeta del Guardián y la ficha de quien te escribe. Todo sigue el tema de la web menos la ventana
   partida y la caja azul */
.bento {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    'iconos centro centro idiomas'
    'privado centro centro idiomas'
    'guardian guardian ficha ficha';
  gap: 16px;
  max-width: 1040px;
  margin: var(--space-head) auto 0;
  padding: 0;
}

.bento-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 236px;
  padding: 24px 20px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}

.bento-label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

.bento-body {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 16px;
}

.bento-piece {
  max-width: 100%;
  height: auto;
}

/* Los nueve: Hato entero, la cabeza y la cola, en azul, negro y blanco */
.bento-iconos {
  grid-area: iconos;
}

.bento-nine {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
}

.bento-nine img {
  width: clamp(34px, 3.4vw, 46px);
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(20, 22, 26, 0.14));
}

.bento-centro {
  grid-area: centro;
  padding-bottom: 32px;
}

.bento-window {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px var(--window-line),
    0 26px 60px -30px rgba(20, 22, 26, 0.4);
}

.bento-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Claro u oscuro: la misma pantalla, partida justo por la mitad */
.bento-dark {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

/* Los dos idiomas, en grande, y Hato de reportero, con su micrófono */
.bento-idiomas {
  grid-area: idiomas;
}

.bento-idiomas .bento-body {
  align-content: center;
  gap: 18px;
}

.bento-words {
  display: grid;
  margin: 0;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink-2);
}

.bento-words span + span {
  color: var(--accent);
}

.bento-hato {
  width: min(88%, 220px);
  color: var(--ink);
}

.bento-hato svg {
  display: block;
  width: 100%;
  height: auto;
}

/* El modo privado: la caja azul, con ⌘ P en grande */
.bento-privado {
  grid-area: privado;
  background: var(--accent-fill);
  box-shadow: none;
}

.bento-privado .bento-label {
  color: #fff;
}

.bento-keys {
  display: flex;
  gap: 10px;
}

.bento-keys kbd {
  min-width: 64px;
  height: 64px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: 600 28px/1 var(--font);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.16);
}

.bento-guardian {
  grid-area: guardian;
}

.bento-ficha {
  grid-area: ficha;
}

/* La tarjeta, con una sombra suave: se apoya en su caja */
.bento-guardian .bento-piece {
  filter: drop-shadow(0 14px 22px rgba(20, 22, 26, 0.12));
}

@media (max-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'centro centro'
      'iconos privado'
      'idiomas idiomas'
      'guardian guardian'
      'ficha ficha';
    gap: 12px;
  }

  .bento-tile {
    min-height: 0;
    padding: 20px 16px;
    border-radius: 20px;
  }

  .bento-label {
    font-size: 16px;
  }

  .bento-keys kbd {
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    font-size: 22px;
  }

  .bento-idiomas .bento-body {
    grid-auto-flow: column;
  }
}

/* Portada · Dispositivos: el Mac, ya; el iPad y el iPhone, pronto (en trazo discontinuo) */
.devices {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(28px, 6vw, 64px);
  margin: var(--space-head) auto 0;
  padding: 0;
}

.device {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.device-frame {
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-window);
}

.device-mac .device-frame {
  width: 220px;
  height: 140px;
  border-radius: 12px;
}

/* La base del portátil, bajo la pantalla */
.device-mac .device-frame {
  position: relative;
  margin-bottom: 10px;
}

.device-mac .device-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 264px;
  height: 10px;
  border: 2px solid var(--line);
  border-radius: 2px 2px 10px 10px;
  background: var(--card);
  transform: translateX(-50%);
}

.device-ipad .device-frame {
  width: 116px;
  height: 156px;
  border-radius: 16px;
}

.device-iphone .device-frame {
  width: 70px;
  height: 140px;
  border-radius: 18px;
}

.device-frame img {
  width: 44px;
  height: 44px;
}

.device:not(.now) .device-frame {
  border-style: dashed;
  box-shadow: none;
}

.device:not(.now) .device-frame img {
  opacity: 0.5;
}

.device-name {
  font-weight: 700;
}

.device-when {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.device.now .device-when {
  color: var(--accent);
}

/* Portada · La lista de lanzamiento, dentro de la franja azul */
.list-form {
  display: flex;
  gap: 8px;
  width: min(100%, 460px);
}

.list-form input[type='email'] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #23262b;
  font: inherit;
  font-size: 16px;
}

.list-form input[type='email']:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.list-form .btn {
  flex: none;
  height: 52px;
  margin: 0;
  border-radius: 14px;
}

.band .list-status {
  min-height: 1.4em;
  font-size: 14px;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .list-form {
    flex-direction: column;
  }
  /* En columna, el campo no se estira: con flex: 1 se quedaba aplastado */
  .list-form input[type='email'] {
    flex: none;
  }
}

/* El campo trampa contra los robots: fuera de la vista y del teclado */
.list-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Funciones · la nota de Hato Pro, bajo los tres puntos de los agentes */
.pro-note {
  max-width: 60ch;
  margin: 32px auto 0;
  text-align: center;
}

/* Soporte: el buscador, los bloques de artículos (desplegables, como las preguntas) y el pie */
.support-search {
  position: relative;
  width: min(100%, 560px);
  margin-top: 10px;
}

.support-search .ic {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--ink-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.support-search input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04);
}

.support-search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.support {
  padding-top: var(--space-head);
}

.support-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 72px;
  max-width: 1040px;
  margin: 0 auto;
}

.support-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.support-block .faq summary {
  padding: 18px 40px 18px 0;
  font-size: 16px;
}

.support-block .faq .answer {
  display: grid;
  gap: 10px;
  padding: 0 0 22px;
}

.support-block .answer p,
.support-block .answer ol {
  margin: 0;
}

.support-block .answer ol {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.support-none {
  margin: 0 auto 32px;
  text-align: center;
  color: var(--ink-2);
}

.support-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: var(--space-head) auto 0;
}

.support-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

a.support-card:hover {
  border-color: var(--accent);
}

.support-card .ic {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.support-card h3 {
  margin: 0;
  font-size: 18px;
}

.support-card p {
  margin: 0;
  color: var(--ink-2);
}

.support-card a {
  color: var(--accent);
}

@media (max-width: 760px) {
  .support-blocks,
  .support-foot {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Soporte (0.6.11): todo en desplegables, en seis bloques. Las píldoras: en Soporte, un atajo a cada bloque;
   en Funciones, a cada función (las dos, debajo de la cabecera) */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  /* Fuera de la cabecera (que es más estrecha): las de Soporte en una fila; las 14 de Funciones, en dos */
  max-width: 1080px;
  margin: 26px auto 0;
}

.topic-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.topic-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.topic-chips .ic {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.support-block {
  scroll-margin-top: 96px;
}

/* ⌘ y su tecla, siempre juntas en la misma línea */
.combo {
  white-space: nowrap;
}

.support-block .art[hidden] {
  display: none;
}

/* La 404 (0.6.11): Hato, el texto en el idioma de quien llega y el botón a la portada */
.lost {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.lost[hidden] {
  display: none;
}

.lost p {
  margin: 0;
}

/* Novedades: una ficha por versión grande */
.news-list {
  padding-top: var(--space-head);
}

.news-entry {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.news-entry + .news-entry {
  margin-top: 24px;
}

.news-ver {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-entry h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
}

.news-entry ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  font-size: 17px;
  color: var(--ink-2);
}

/* ───── Pantallas grandes ─────
   Desde 1600 px, todo más ancho y con más aire entre bloques (en 1920 y más quedaba apretado en el
   centro). La frase grande ocupa el ancho de la pantalla: una frase por línea */
@media (min-width: 1600px) {
  :root {
    --max: 1340px;
    --space-section: clamp(232px, 15vw, 360px);
    --space-head: clamp(96px, 5.6vw, 136px);
  }

  .head {
    max-width: 900px;
  }

  h2 {
    font-size: clamp(3.5rem, 3.1vw, 4.6rem);
  }

  .lead {
    font-size: clamp(1.32rem, 1.05vw, 1.6rem);
  }

  .shot,
  .flow,
  .points,
  .meet-inner,
  .data-use-points,
  .speed-demo,
  .bento,
  .support-blocks,
  .support-foot {
    max-width: 1220px;
  }

  .bento {
    gap: 20px;
  }

  /* La frase, en una línea, es más ancha que el contenedor: se salía por la derecha y quedaba
     descentrada. Su caja ocupa la pantalla entera y la letra crece con ella */
  .statement .container {
    max-width: none;
  }

  .statement-text {
    max-width: none;
    font-size: min(5vw, 10rem);
  }

  .statement-text .linea {
    white-space: nowrap;
  }
}

@media (min-width: 2200px) {
  :root {
    --max: 1560px;
  }

  .shot,
  .flow,
  .points,
  .meet-inner,
  .data-use-points,
  .speed-demo,
  .bento,
  .support-blocks,
  .support-foot {
    max-width: 1420px;
  }

}

/* Condiciones · el texto de la licencia MIT, como cita: más pequeño y en su caja */
.license-text {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.license-text p {
  margin: 0;
}

.license-text p + p {
  margin-top: 0.8em;
}

/* Licencias: el texto de todo lo que va dentro de la app, en su caja y con su propio scroll */
.license-file {
  max-height: 70vh;
  overflow: auto;
  margin: 8px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font: 12px/1.6 var(--mono);
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Licencias: sin fecha bajo el título, el texto respira igual que en las demás páginas legales */
.legal h1 + .prose {
  margin-top: 32px;
}
