/* ==========================================================================
   selfOS · web comercial
   Sin dependencias. Tipografías servidas desde la propia web (OFL).
   Voz del sistema: Monda · Voz de la persona: Newsreader cursiva · Comandos: IBM Plex Mono
   ========================================================================== */

/* ------------------------------------------------------------------ Fuentes */
@font-face {
  font-family: "Monda";
  src: url("../fonts/Monda-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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: "Newsreader";
  src: url("../fonts/Newsreader-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  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: "Newsreader";
  src: url("../fonts/Newsreader-Italic-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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";
  src: url("../fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  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";
  src: url("../fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ Tokens */
:root {
  --paper: #FFFFFF;
  --paper-hi: #FFFFFF;
  --paper-2: rgba(0, 74, 172, .06);
  --paper-3: #D9D9D9;
  --ink: #333333;
  --ink-2: #333333;
  --text: #333333;
  --muted: rgba(51, 51, 51, .72);
  --line: rgba(51, 51, 51, .12);
  --line-2: rgba(51, 51, 51, .22);

  --klein: #004AAC;
  --klein-deep: #004AAC;
  --klein-soft: rgba(20, 193, 242, .12);
  --klein-night: #14C1F2;

  --amber-ink: #004AAC;
  --amber-night: #14C1F2;
  --green-night: #14C1F2;

  --night: #004AAC;
  --night-2: rgba(255, 255, 255, .07);
  --night-3: rgba(255, 255, 255, .08);
  --night-text: #FFFFFF;
  --night-muted: rgba(255, 255, 255, .76);

  --f-display: "Monda", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 68px;
  --section-y: clamp(88px, 11vw, 156px);

  --shadow-window: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -30px rgba(51, 51, 51, .55), 0 14px 28px -14px rgba(51, 51, 51, .35);
  --shadow-paper: 0 30px 60px -40px rgba(51, 51, 51, .45), 0 2px 0 rgba(51, 51, 51, .04);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-serif);
  font-size: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* grano de papel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
b, strong { font-weight: 600; color: var(--ink); }
code { font-family: var(--f-mono); font-size: .86em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h2 em, h1 em, .definition__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--klein);
}
::selection { background: var(--klein); color: #fff; }
:focus-visible { outline: 2.5px solid var(--klein); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: 10px;
  font-family: var(--f-display); text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ Botones */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.45em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.005em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--klein { background: var(--klein); color: #fff; box-shadow: 0 14px 30px -14px rgba(0, 74, 172, .75); }
.btn--klein:hover { background: var(--klein-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--klein); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--sm { padding: .62em 1.1em; font-size: .92rem; }
.btn__play {
  width: 0; height: 0;
  border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

.link-arrow {
  display: inline-flex; gap: .45em; align-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: .98rem;
  color: var(--klein); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------------ Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 26px; height: 26px; color: var(--ink); }
.brand__word { font-size: 1.35rem; line-height: 1; display: inline-flex; align-items: baseline; }
.brand__self { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--klein); letter-spacing: -.01em; }
.brand__os { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin-left: .12em; }
.nav__links { display: flex; gap: clamp(.9rem, 2vw, 2rem); }
.nav__links a {
  font-family: var(--f-display); font-size: .92rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; position: relative; padding: .3em 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--klein); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__toggle { display: none; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  isolation: isolate;
  overflow-x: clip;
}
.hero::before { /* papel milimetrado que se desvanece */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(51, 51, 51, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 51, 51, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero::after { /* el «self»: un punto azul que respira detrás de la demo */
  content: ""; position: absolute; z-index: -1;
  width: min(46vw, 620px); aspect-ratio: 1; right: -8vw; top: 6vh;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 74, 172, .20), rgba(0, 74, 172, 0) 65%);
  filter: blur(8px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 1.1rem;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--klein); box-shadow: 0 0 0 4px rgba(0, 74, 172, .15); }

.wordmark {
  --wm-size: clamp(3.9rem, 10.5vw, 9.4rem);
  position: relative;
  display: flex; align-items: baseline; flex-wrap: nowrap;
  font-size: var(--wm-size);
  line-height: .95;
  margin: 0 0 0 -.1em;
  white-space: nowrap;
}
.wordmark__self { position: relative; display: inline-block; flex: none; }
.wordmark__input, .wordmark__measure {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 1em; line-height: 1.05; letter-spacing: -.025em;
  padding: 0 .24em 0 .16em; /* reserva para los remates de la cursiva a ambos lados */
}
.wordmark__input {
  display: block;
  width: 3.2ch;
  min-width: 1.2ch;
  padding-left: 0;
  padding-right: 0; /* el padding derecho queda fuera de la zona visible del texto */
  text-indent: .3em; /* el input recorta los remates cursivos en el inicio del texto */
  color: var(--klein);
  background: transparent;
  border: 0;
  border-bottom: 3px dashed rgba(0, 74, 172, .35);
  border-radius: 0;
  outline: none;
  caret-color: var(--klein);
  transition: border-color .3s var(--ease);
}
.wordmark__input::placeholder { color: var(--klein); opacity: 1; }
.wordmark__input:hover { border-bottom-color: rgba(0, 74, 172, .7); }
.wordmark__input:focus { border-bottom-style: solid; border-bottom-color: var(--klein); }
.wordmark__measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }
.wordmark__os { font-family: var(--f-display); font-weight: 700; letter-spacing: -.05em; color: var(--ink); margin-left: -.1em; flex: none; }
.wordmark__hint {
  margin: .9rem 0 clamp(1.6rem, 3vw, 2.4rem);
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; color: var(--muted);
  min-height: 1.6em;
}
.wordmark__hint code { color: var(--klein); font-size: 1em; }
.wordmark__hint--named { display: none; }
.has-name .wordmark__hint--named { display: inline; }
.has-name .wordmark__hint--anon { display: none; }
.wordmark__arrow { display: inline-block; color: var(--klein); animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.hero__title {
  font-size: clamp(2.15rem, 4.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 15ch;
  margin-bottom: .55em;
}
.hero__lead { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.42rem); max-width: 32em; line-height: 1.5; color: var(--text); margin-bottom: 1.8em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.1rem; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.hero__facts li {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: .5rem;
}
.hero__facts li::before { content: ""; width: 6px; height: 6px; background: var(--ink); transform: rotate(45deg); }
.hero__demo { position: relative; }
.hero__demo .window { transform: rotate(.6deg); }

/* ------------------------------------------------------------------ Ventanas (demo de chat / terminal) */
.window {
  margin: 0;
  background: #000000;
  color: var(--night-text);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  font-family: var(--f-display);
  font-size: .95rem;
  line-height: 1.55;
}
.window__bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .72rem 1rem;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--f-mono); font-size: .74rem; color: var(--night-muted); letter-spacing: .02em;
}
.window__dots { width: 10px; height: 10px; border-radius: 50%; background: #14C1F2; box-shadow: 16px 0 0 #14C1F2, 32px 0 0 #14C1F2; margin-right: 34px; flex: none; }
.window__title { color: var(--night-text); flex: 1; }
.window__meta { color: var(--klein-night); text-transform: uppercase; letter-spacing: .1em; }
.window__replay {
  background: transparent; border: 1px solid rgba(255, 255, 255, .15); color: var(--night-muted);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .3em .7em; border-radius: 999px; cursor: pointer;
}
.window__replay:hover { color: var(--night-text); border-color: rgba(255, 255, 255, .35); }
.window__body { padding: 1.25rem 1.3rem 1.4rem; display: grid; gap: .8rem; }
.window__caption {
  padding: .6rem 1.3rem .75rem; border-top: 1px solid rgba(255, 255, 255, .06);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--night-muted);
}
.window b { color: #fff; font-weight: 600; }

.msg p { margin: 0; }
.msg--you {
  justify-self: end; max-width: 88%;
  background: var(--night-3);
  border-radius: 16px 16px 4px 16px;
  padding: .6rem .95rem .65rem;
  text-align: right;
}
.msg--you p { font-family: var(--f-serif); font-style: italic; font-size: 1.12rem; line-height: 1.35; color: #fff; }
.msg__cmd { display: block; margin-top: .3rem; font-size: .72rem; color: var(--night-muted); }
.msg--os { max-width: 96%; }
.msg__who {
  display: block; margin-bottom: .25rem;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--klein-night);
}
.msg-list { padding-left: 1.3rem; display: grid; gap: .45rem; }
ul.msg-list { list-style: none; padding-left: 0; }
ul.msg-list li { position: relative; padding-left: 1.1rem; }
ul.msg-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--klein-night); }
ol.msg-list li::marker { color: var(--klein-night); font-family: var(--f-mono); font-size: .85em; }
.msg__src {
  display: inline-block; margin-left: .35rem;
  font-family: var(--f-mono); font-size: .68rem; color: var(--klein-night);
  border: 1px solid rgba(20, 193, 242, .35); border-radius: 6px; padding: 0 .4em;
  vertical-align: 1px;
}
.msg__plain { margin: 0; color: var(--night-muted); }
.msg-quote {
  margin: 0; padding: .8rem 1rem;
  border-left: 2px solid var(--klein-night);
  background: rgba(255, 255, 255, .03);
  border-radius: 0 10px 10px 0;
  font-family: var(--f-serif); font-size: 1.08rem; line-height: 1.45; color: #fff;
}
.msg__pending, .msg__learn {
  margin: .2rem 0 0; display: flex; gap: .65rem; align-items: flex-start;
  padding: .6rem .8rem; border-radius: 10px;
  font-family: var(--f-mono); font-size: .8rem; line-height: 1.5;
}
.msg__pending { color: var(--amber-night); background: rgba(20, 193, 242, .08); border: 1px solid rgba(20, 193, 242, .25); }
.msg__learn { color: #FFFFFF; background: rgba(20, 193, 242, .08); border: 1px solid rgba(20, 193, 242, .28); }
.msg__pause { flex: none; width: 10px; height: 12px; margin-top: .35em; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.msg__spark { color: var(--klein-night); }

/* secuencia de aparición */
.js [data-seq] { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js [data-seq].is-in { opacity: 1; transform: none; }

/* terminal de instalación */
.term { font-family: var(--f-mono); font-size: .84rem; line-height: 1.6; gap: .35rem; }
.term p { margin: 0; }
.term__you { color: #fff; }
.term__q { display: flex; justify-content: space-between; gap: 1rem; color: var(--night-muted); border-bottom: 1px dashed rgba(255, 255, 255, .08); padding-bottom: .2rem; }
.term__q b { color: var(--klein-night); font-weight: 500; }
.term__tree { margin: .3rem 0; padding: .7rem .9rem; background: rgba(255, 255, 255, .03); border-radius: 10px; display: grid; gap: .1rem; }
.term__tree p { display: flex; gap: 1rem; }
.term__tree p > span { min-width: 12.5em; padding-left: 1.2em; color: var(--night-text); }
.term__tree p > i { font-style: normal; color: var(--night-muted); }
.term__tree b { color: #fff; }
.term__tree-more { padding-left: 1.2em; color: var(--night-muted); }
.term__ok { color: var(--green-night); }

/* ------------------------------------------------------------------ Ticker */
.ticker {
  margin-top: clamp(56px, 8vw, 104px);
  border-block: 1px solid var(--line);
  display: flex; align-items: center; gap: 2rem;
  padding: 1.05rem 0;
  overflow: hidden;
}
.ticker__label {
  flex: none; margin: 0; padding-left: var(--gutter);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ticker__viewport {
  display: flex; overflow: hidden; flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; flex: none; list-style: none; gap: 3.2rem; padding-right: 3.2rem; animation: marquee 38s linear infinite; }
.ticker__track li { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-2); white-space: nowrap; letter-spacing: -.01em; }
.ticker__track li::after { content: "✦"; margin-left: 3.2rem; color: var(--klein); font-size: .7em; vertical-align: .2em; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ------------------------------------------------------------------ Secciones */
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 920px; margin-bottom: clamp(44px, 6vw, 80px); }
.kicker {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker span { color: var(--klein); }
.kicker::after { content: ""; height: 1px; width: 56px; background: var(--line-2); }
.section h2 { font-size: clamp(2.15rem, 4.6vw, 4.1rem); letter-spacing: -.035em; }
.section__lead { margin-top: 1.4rem; font-size: clamp(1.15rem, 1.02rem + .45vw, 1.38rem); max-width: 38em; }

/* 01 — dolores */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.pain { border-top: 1.5px solid var(--ink); padding-top: 1.3rem; }
.pain__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--klein); margin-bottom: .9rem; }
.pain h3 { font-size: clamp(1.3rem, 1.6vw, 1.55rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.pain p:last-child { color: var(--text); }

.ways { margin-top: clamp(64px, 9vw, 120px); }
.ways__intro { font-size: clamp(1.15rem, 1.02rem + .45vw, 1.38rem); max-width: 30em; margin-bottom: 1.8rem; }
.ways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.way { border: 1.5px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .7rem; }
.way__label { margin: 0; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.way__promise { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.2; color: var(--ink); }
.way__catch { margin: auto 0 0; padding-top: .6rem; font-family: var(--f-display); font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.way--self { background: var(--klein); border-color: var(--klein); color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 74, 172, .7); transform: translateY(-10px); }
.way--self .way__label { color: rgba(255, 255, 255, .8); text-transform: none; letter-spacing: .02em; font-size: .85rem; }
/* el nombre del sistema nunca va en mayúsculas */
[data-osname] { text-transform: none; }
.way--self .way__promise, .way--self .way__catch { color: #fff; }

.definition {
  margin-top: clamp(80px, 11vw, 150px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start;
}
.definition__title { font-size: clamp(2rem, 3.8vw, 3.3rem); letter-spacing: -.035em; }
.definition__body p { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.45rem); line-height: 1.5; }
.definition__body p + p { font-family: var(--f-serif); font-style: italic; color: var(--klein); }

/* Gabinete */
.cabinet { margin-top: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.cabinet__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 80px); align-items: end; }
.cabinet__intro h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: -.03em; }
.cabinet__intro p { margin: 0; }
.cabinet__drawer { max-width: 1000px; }
.cabinet__drawer { position: relative; }
.cabinet__tabs { display: flex; gap: 4px; align-items: flex-end; position: relative; z-index: 2; overflow-x: auto; scrollbar-width: none; }
.cabinet__tabs::-webkit-scrollbar { display: none; }
.cabinet__tab {
  flex: none; border: 0; cursor: pointer;
  background: var(--paper-3); color: var(--ink-2);
  border-radius: 12px 12px 0 0;
  padding: .7rem .85rem .6rem;
  font-family: var(--f-display); font-size: .88rem; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: baseline; gap: .5rem;
  transform: translateY(4px);
  transition: background-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.cabinet__tab:hover { transform: translateY(1px); background: var(--paper-2); }
.cabinet__tab[aria-selected="true"] { background: var(--paper-hi); color: var(--ink); transform: none; }
.cabinet__num { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; color: var(--klein); }
.cabinet__panels { position: relative; }
.cabinet__panels::before, .cabinet__panels::after { /* carpetas apiladas detrás */
  content: ""; position: absolute; inset: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); z-index: 0;
}
.cabinet__panels::before { background: var(--paper-3); transform: translate(10px, 10px); }
.cabinet__panels::after { background: #D9D9D9; transform: translate(20px, 20px); z-index: -1; }
.cabinet__panel {
  position: relative; z-index: 1;
  background: var(--paper-hi);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-paper);
  min-height: 300px;
  display: flex; flex-direction: column; gap: 1rem;
}
.js .cabinet__panel[hidden] { display: none; }
.no-js .cabinet__panel + .cabinet__panel { margin-top: 1rem; }
.cabinet__q { margin: 0; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--klein); }
.cabinet__lead { margin: 0; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.45; color: var(--ink); }
.cabinet__sample {
  margin: 0; padding: .9rem 1.1rem; border-left: 3px solid var(--klein);
  background: var(--paper); border-radius: 0 12px 12px 0;
  font-family: var(--f-serif); font-style: italic; font-size: 1.12rem; color: var(--ink-2);
}
.cabinet__files { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cabinet__files code { background: var(--paper-2); border-radius: 6px; padding: .2em .55em; font-size: .78rem; color: var(--ink-2); }
.cabinet__who { margin: auto 0 0; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cabinet__who::before { content: "→ "; color: var(--klein); }
.cabinet__extra { margin: 1rem 0 0; max-width: 46em; color: var(--muted); font-size: 1rem; }
.cabinet__extra b { font-family: var(--f-mono); font-weight: 500; color: var(--klein); }

.not-list { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(56px, 7vw, 96px); }
.not-list li {
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink-2);
  border: 1.5px solid var(--line-2); border-radius: 999px; padding: .55em 1.1em;
  display: inline-flex; align-items: center; gap: .55rem;
}
.not-list li::before { content: "✕"; color: var(--klein); font-size: .85em; }
.not-list__conclusion {
  max-width: 44em; margin: 2.2rem 0 0;
  color: var(--ink); font-size: clamp(1.12rem, 1rem + .5vw, 1.4rem);
}
.not-list__conclusion em { color: var(--klein); }


/* 02 — lo que ganas */
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.gain { position: relative; padding-top: .4rem; }
.gain__num {
  margin: 0 0 .6rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(3.8rem, 6vw, 5.2rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px var(--klein);
}
.gain h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); letter-spacing: -.025em; margin-bottom: .6rem; }

.day { margin-top: clamp(80px, 10vw, 140px); }
.day__intro { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.day__intro h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: -.03em; margin-bottom: .9rem; }
.day__grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.day__list { display: grid; gap: .35rem; position: sticky; top: calc(var(--nav-h) + 24px); }
.moment {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .1rem; align-items: baseline;
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-left: 2px solid var(--line-2);
  padding: .8rem 1rem .85rem 1.1rem;
  border-radius: 0 12px 12px 0;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.moment:hover { background: rgba(255, 255, 255, .45); }
.moment[aria-selected="true"] { background: var(--paper-hi); border-left-color: var(--klein); box-shadow: var(--shadow-paper); }
.moment__time { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--klein); min-width: 4.6em; }
.moment__agent { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.moment__ask { grid-column: 2; font-family: var(--f-serif); font-style: italic; font-size: 1.14rem; line-height: 1.3; color: var(--ink); }
.day__stage { position: relative; min-height: 460px; }
.js .day__panel[hidden] { display: none; }
.no-js .day__panel + .day__panel { margin-top: 2rem; }
.day__gain {
  margin: 1.4rem 0 0; display: flex; gap: .7rem; align-items: baseline;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.015em; color: var(--ink);
}
.day__gain::before { content: "→"; color: var(--klein); }
.day__note { margin-top: 2rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .03em; color: var(--muted); }

/* 03 — instalación */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { list-style: none; display: grid; gap: clamp(28px, 3.5vw, 44px); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; }
.step__num {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 3.2rem; line-height: .85;
  color: transparent; -webkit-text-stroke: 1.5px var(--klein); min-width: .75em;
}
.step h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -.025em; margin: .15rem 0 .5rem; }
.phrase { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.phrase__code {
  font-size: 1.15rem; font-weight: 500; color: #fff; background: var(--ink);
  padding: .5em .9em; border-radius: 10px; letter-spacing: .01em;
}
.phrase__code::before { content: "› "; color: var(--klein-night); }
.phrase__copy {
  border: 1.5px solid var(--line-2); background: transparent; border-radius: 999px; cursor: pointer;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  padding: .45em .9em; transition: border-color .2s, color .2s;
}
.phrase__copy:hover { border-color: var(--klein); color: var(--klein); }
.phrase__copy.is-done { border-color: var(--klein); color: #fff; background: var(--klein); }

.after { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 64px); }
.after h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.025em; margin-bottom: .7rem; }


.stats { position: relative; margin-top: clamp(64px, 8vw, 112px); margin-bottom: calc(var(--section-y) * -1); background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 96px); }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 3vw, 40px); }
.stat { margin: 0; display: flex; flex-direction: column; gap: .6rem; border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 1rem; }
.stat b { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: .9; color: #fff; letter-spacing: -.04em; }
.stat span { font-family: var(--f-display); font-size: .92rem; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.stat:last-child b { color: var(--klein-night); }

/* 04 — equipo */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.agent {
  background: var(--paper-hi); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.2vw, 1.8rem); display: flex; flex-direction: column; gap: .75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.agent:hover { transform: translateY(-4px); box-shadow: var(--shadow-paper); }
.agent--principal {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(16px, 4vw, 64px); align-items: center;
  background: var(--ink); color: rgba(255, 255, 255, .85); border-color: var(--ink);
}
.agent.agent--principal h3 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -.035em; margin-top: .35rem; }
.agent.agent--principal p { margin: 0; font-size: clamp(1.08rem, 1.3vw, 1.25rem); line-height: 1.5; }
.agent.agent--principal .agent__role { color: var(--klein-night); }
.agent__role { margin: 0; font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--klein); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.agent h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.agent p { margin: 0; font-size: 1.02rem; }
.badge { font-size: .64rem; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .15em .6em; }
.agent__cmds { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .6rem; }
.agent__cmds li { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); background: var(--paper-2); border-radius: 6px; padding: .2em .5em; }
.team__note { margin-top: 2rem; max-width: 46em; color: var(--muted); font-size: 1rem; }
.team__note code { color: var(--klein); }

/* 05 — aprendizaje */
.filter { display: grid; gap: 1rem; }
.filter__row { display: grid; grid-template-columns: minmax(0, 1.3fr) 80px minmax(0, 1fr); align-items: center; gap: 1rem; }
.filter__item {
  margin: 0; padding: 1.1rem 1.3rem; background: var(--paper-hi); border-radius: var(--radius);
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.08rem, 1.3vw, 1.25rem); color: var(--ink); box-shadow: var(--shadow-paper);
}
.filter__arrow { --arrow: var(--line-2); height: 2px; background: var(--arrow); position: relative; }
.filter__arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border-left: 9px solid var(--arrow); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.filter__row:last-child .filter__arrow { --arrow: var(--klein); }
.js .filter.is-visible .filter__arrow { animation: flow 1.2s var(--ease) both; }
.js .filter.is-visible .filter__row:last-child .filter__arrow { animation-delay: .35s; }
@keyframes flow { from { clip-path: inset(-10px 100% -10px 0); } to { clip-path: inset(-10px -14px -10px 0); } }
.filter__verdict { margin: 0; padding: .95rem 1.2rem; border-radius: var(--radius); font-family: var(--f-display); font-size: .95rem; line-height: 1.4; display: grid; gap: .15rem; }
.filter__verdict b { font-size: 1.05rem; }
.filter__verdict--no { border: 1.5px dashed var(--line-2); color: var(--muted); }
.filter__verdict--no b { color: var(--ink-2); }
.filter__verdict--no b::before { content: "✕ "; color: var(--muted); }
.filter__verdict--yes { background: var(--klein); color: rgba(255, 255, 255, .85); }
.filter__verdict--yes b { color: #fff; }
.filter__verdict--yes b::before { content: "✓ "; }

.criteria { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 64px); }
.criteria h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.criteria__list { list-style: none; display: grid; gap: .55rem; }
.criteria__list li { display: flex; gap: .75rem; align-items: baseline; font-size: 1.08rem; border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.criteria__list--yes li::before { content: "✓"; color: var(--klein); font-family: var(--f-display); font-weight: 700; }
.criteria__list--no li::before { content: "✕"; color: var(--muted); font-family: var(--f-display); }
.criteria__rule {
  grid-column: 1 / -1; margin: 1.5rem 0 0; justify-self: start;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.3rem); letter-spacing: -.03em; color: var(--ink);
  background-image: linear-gradient(var(--klein), var(--klein)); background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 92%;
  text-wrap: balance;
}

.pull { margin: clamp(64px, 8vw, 110px) 0 0; max-width: 900px; }
.pull blockquote { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
.pull blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--klein); margin-bottom: .25rem; }
.pull figcaption { margin-top: 1rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; color: var(--muted); }
.pull figcaption::before { content: "— "; color: var(--klein); }

.growth { list-style: none; margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.growth::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--klein), rgba(0, 74, 172, .15)); }
.growth li { position: relative; padding: 2rem 1.4rem 0 0; }
.growth li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper-2); border: 3px solid var(--klein); }
.growth__when { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: .4rem; }
.growth p { margin: 0; font-size: 1.02rem; }

/* 06 — tú decides (azul TK) */
.section--klein { background: var(--klein); color: rgba(255, 255, 255, .88); }
.section--klein h2, .section--klein h3 { color: #fff; }
.section--klein h2 em { color: #fff; opacity: .9; }
.section--klein .kicker { color: rgba(255, 255, 255, .7); }
.section--klein .kicker span { color: #fff; }
.section--klein .kicker::after { background: rgba(255, 255, 255, .35); }
.section--klein b { color: #fff; }
.section--klein :focus-visible { outline-color: #fff; }

.dial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.dial__levels { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.dial__legend { padding: 0; margin-bottom: 1rem; font-size: 1.15rem; color: #fff; float: left; width: 100%; }
.dial__level {
  display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: .8rem;
  padding: .75rem 1rem; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .28);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.dial__level:hover { border-color: rgba(255, 255, 255, .7); }
.dial__level input { position: absolute; opacity: 0; pointer-events: none; }
.dial__n { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: #fff; }
.dial__name { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.dial__level:has(input:checked) { background: #fff; border-color: #fff; }
.dial__level:has(input:checked) .dial__n, .dial__level:has(input:checked) .dial__name { color: var(--klein); }
.dial__level:has(input:focus-visible) { outline: 2.5px solid #fff; outline-offset: 3px; }
.dial__level.is-checked { background: #fff; border-color: #fff; }
.dial__level.is-checked .dial__n, .dial__level.is-checked .dial__name { color: var(--klein); }

.dial__stage { display: grid; }
.dial__panel { grid-area: 1 / 1; display: grid; gap: 1rem; align-content: start; }
.js .dial__panel { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); visibility: hidden; }
.js .dial__panel.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.no-js .dial__panel + .dial__panel { margin-top: 1rem; }
.mock { background: var(--paper-hi); color: var(--text); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: 0 40px 80px -40px rgba(0, 74, 172, .8); }
.mock__title { margin: 0 0 .8rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--klein); }
.mock__list { list-style: none; display: grid; gap: .5rem; }
.mock__list li { padding-left: 1.1rem; position: relative; }
.mock__list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--klein); }
.mock__options { list-style: none; display: grid; gap: .5rem; }
.mock__options li { display: flex; gap: .8rem; align-items: baseline; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.mock__options b { font-family: var(--f-display); color: var(--klein); }
.mock__options li.is-rec { border-color: var(--klein); background: var(--klein-soft); }
.mock__options em { font-style: normal; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--klein); margin-left: auto; }
.mock__meta { display: flex; flex-direction: column; gap: .15rem; margin: 0 0 .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.mock__body { font-family: var(--f-serif); font-size: 1.1rem; color: var(--ink); }
.mock__actions { margin: 1rem 0 0; display: flex; justify-content: flex-end; align-items: center; gap: .8rem; flex-wrap: wrap; }
.mock__wait { font-family: var(--f-mono); font-size: .74rem; color: var(--amber-ink); background: rgba(20, 193, 242, .12); border: 1px solid #14C1F2; border-radius: 999px; padding: .3em .8em; }
.mock__send { font-family: var(--f-display); font-weight: 600; background: var(--klein); color: #fff; border-radius: 999px; padding: .5em 1.1em; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 74, 172, .45); } 50% { box-shadow: 0 0 0 10px rgba(0, 74, 172, 0); } }
.mock__done { margin: 0; font-size: 1.15rem; color: var(--ink); }
.mock__done span { color: var(--klein); font-weight: 700; }
.dial__desc { margin: 0; font-family: var(--f-display); font-size: 1.12rem; color: #fff; }

.rules { list-style: none; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(24px, 3vw, 40px); }
.rules li { border-top: 1.5px solid rgba(255, 255, 255, .45); padding-top: .9rem; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: #fff; line-height: 1.35; }

.twin { margin-top: clamp(72px, 9vw, 120px); width: 100%; }
.twin h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.twin p { font-size: 1.12rem; }

/* 07 — es tuyo */
.own { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px); }
.own__icon { width: 40px; height: 40px; fill: none; stroke: var(--klein); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.own h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.own p { font-size: 1.04rem; }
.honest { margin-top: clamp(48px, 6vw, 80px); padding: 1.3rem 1.5rem; border-left: 3px solid var(--klein); background: var(--paper-hi); border-radius: 0 var(--radius) var(--radius) 0; max-width: 52em; }

/* 08 — sesión real (noche) */
.section--night { background: var(--night); color: var(--night-text); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night h2 em { color: var(--klein-night); }
.section--night .kicker { color: var(--night-muted); }
.section--night .kicker span { color: var(--klein-night); }
.section--night .kicker::after { background: rgba(255, 255, 255, .2); }
.section--night .section__lead { color: var(--night-text); }
.section--night .section__lead small { display: block; margin-top: .6rem; color: var(--night-muted); font-size: .85em; }
.proof { max-width: 1040px; margin-inline: auto; }
.proof__video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  padding: 4px; border-radius: 18px;
  background: linear-gradient(110deg, #004AAC, #14C1F2);
  box-shadow: 0 34px 70px -32px rgba(0, 74, 172, .72);
}
.proof__video video { width: 100%; height: 100%; display: block; border-radius: 14px; background: #000; object-fit: contain; }
.proof__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: clamp(70px, 9vw, 104px); aspect-ratio: 1;
  border: 2px solid #FFFFFF; border-radius: 50%; background: #004AAC; color: #FFFFFF;
  box-shadow: 0 14px 38px rgba(0, 74, 172, .65); cursor: pointer;
  transition: background-color .2s var(--ease), scale .2s var(--ease);
}
.proof__play:hover { background: #14C1F2; color: #333333; scale: 1.07; }
.proof__play span { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; margin-left: .12em; }
.proof__play[hidden], .no-js .proof__play { display: none; }
.proof__duration { margin: .8rem 0 clamp(28px, 4vw, 44px); text-align: center; font-family: var(--f-mono); font-size: .78rem; color: var(--night-muted); }
.proof__highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.proof__highlight { padding: 0; }
.proof__highlight h3 { margin: 0 0 .65rem; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.2; }
.proof__highlight p { margin: 0; color: var(--night-text); font-size: 1rem; line-height: 1.5; }

/* 09 — para quién */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.person { border-top: 1.5px solid var(--ink); padding-top: 1.2rem; }
.person h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.person p { font-size: 1.03rem; }

/* 10 — límites */
.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.limits .section__head { margin-bottom: 0; }
.limits__list { list-style: none; display: grid; }
.limits__list li { padding: 1rem 0 1rem 2.2rem; border-bottom: 1px solid var(--line-2); position: relative; font-size: 1.12rem; color: var(--ink-2); }
.limits__list li:first-child { border-top: 1px solid var(--line-2); }
.limits__list li::before { content: "—"; position: absolute; left: 0; color: var(--klein); font-family: var(--f-display); font-weight: 700; }
.limits__list li:last-child { font-family: var(--f-display); font-weight: 700; color: var(--ink); }

/* 11 — preguntas */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--nav-h) + 24px); margin-bottom: 0; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-child { border-top: 1px solid var(--line-2); }
.qa summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 0; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--ink); letter-spacing: -.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2);
  font-family: var(--f-display); font-size: 1.2rem; color: var(--klein); transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--klein); color: #fff; border-color: var(--klein); }
.qa summary:hover { color: var(--klein); }
.qa p { margin: 0 0 1.3rem; padding-right: 3rem; font-size: 1.08rem; }

/* Compra */
.purchase__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr); gap: clamp(32px, 8vw, 130px); align-items: end; }
.purchase h2 { margin: 1.2rem 0; }
.purchase__inner > div > p:last-child { max-width: 42em; font-size: 1.12rem; }
.purchase__action { padding-bottom: .3rem; }
.purchase__price { margin: 1.4rem 0 .9rem; font-family: var(--f-display); color: var(--muted); font-size: 1rem; }
.purchase__price b { color: var(--ink, inherit); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; margin-right: .35rem; letter-spacing: -.02em; }
.purchase [hidden] { display: none; }
.purchase__pending { color: var(--klein); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.purchase__fine { margin-top: 1rem; font-size: .9rem !important; color: var(--muted); }

/* CTA final */
.final { padding-block: clamp(100px, 13vw, 180px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(90vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 74, 172, .16), rgba(0, 74, 172, 0) 62%);
}
.final__inner { display: grid; justify-items: center; }
.final__mark { margin: 0 0 1.4rem; font-size: clamp(4rem, 13vw, 10rem); line-height: .9; white-space: nowrap; }
.final__self { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--klein); letter-spacing: -.025em; }
.final__os { font-family: var(--f-display); font-weight: 700; color: var(--ink); letter-spacing: -.05em; margin-left: .1em; }
.final h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -.035em; max-width: 18ch; }
.final__sub { margin: 1.4rem 0 2.2rem; font-size: 1.3rem; }
.final__sub--name { display: none; font-family: var(--f-serif); font-style: italic; color: var(--klein); }
.has-name .final__sub--name { display: inline; }
.has-name .final__sub--anon { display: none; }
.final__ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.agents-note { border-top: 1px solid var(--line); }
.agents-note__inner { padding-block: 1.6rem; }
.agents-note p { margin: 0; font-family: var(--f-mono); font-size: .8rem; line-height: 1.6; color: var(--muted); max-width: 70em; }
.agents-note b { font-weight: 500; }
.agents-note a { color: var(--klein); }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: clamp(56px, 7vw, 88px) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer__word { margin: 0 0 .6rem; font-size: 2.2rem; line-height: 1; }
.footer .brand__os { color: #fff; }
.footer .brand__self { color: var(--klein-night); }
.footer__col { display: grid; gap: .5rem; align-content: start; }
.footer__title { margin: 0 0 .3rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.footer__col a { color: rgba(255, 255, 255, .85); text-decoration: none; font-family: var(--f-display); font-size: .95rem; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin-top: clamp(40px, 5vw, 64px); padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer__legal p { margin: 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .02em; color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------------ Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1s; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero .reveal:nth-child(5) { transition-delay: .32s; }
.js .hero .reveal:nth-child(6) { transition-delay: .40s; }
.js .hero .reveal:nth-child(7) { transition-delay: .48s; }
.js .hero .reveal:nth-child(8) { transition-delay: .56s; }
.js .hero__demo.reveal { transition-delay: .3s; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1100px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .people { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .rules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.2rem;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -20px rgba(51, 51, 51, .35);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: rgba(255, 255, 255, .97); }
  .nav__toggle {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid var(--line-2); background: transparent; cursor: pointer;
  }
  .nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after {
    display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background-color .25s;
  }
  .nav__toggle-bar::before, .nav__toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav__toggle-bar::before { top: -5px; }
  .nav__toggle-bar::after { top: 5px; }
  .nav.is-open .nav__toggle-bar { background: transparent; }
  .nav.is-open .nav__toggle-bar::before { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .nav__toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { max-width: 620px; }
  .hero::after { width: 90vw; right: -30vw; top: 30vh; }
  .pains, .ways__grid, .gains { grid-template-columns: 1fr; }
  .way--self { transform: none; }
  .definition, .cabinet__intro, .install, .after, .dial, .limits, .faq, .purchase__inner { grid-template-columns: 1fr; }
  .day__grid { grid-template-columns: 1fr; }
  .day__list {
    position: static; display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .4rem;
    scroll-snap-type: x mandatory; scrollbar-width: thin; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .moment { flex: none; width: min(78vw, 300px); scroll-snap-align: start; border-left: 0; border-top: 2px solid var(--line-2); border-radius: 0 0 12px 12px; }
  .moment[aria-selected="true"] { border-top-color: var(--klein); }
  .day__stage { min-height: 0; }
  .criteria { grid-template-columns: 1fr; }
  .growth { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .growth::before { display: none; }
  .own { grid-template-columns: repeat(2, 1fr); }

  .faq .section__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wordmark__hint { font-size: .74rem; }
  .hero__ctas .btn { width: 100%; }
  .team, .people, .own, .stats__grid, .rules, .proof__highlights { grid-template-columns: 1fr; }
  .stats__grid { row-gap: 1.6rem; }
  .filter__row { grid-template-columns: 1fr; }
  .filter__arrow { width: 2px; height: 28px; justify-self: center; }
  .filter__arrow::after { right: auto; left: -5px; top: auto; bottom: -2px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--line-2); border-bottom: 0; }
  .growth { grid-template-columns: 1fr; }
  .term__tree p { flex-direction: column; gap: 0; }
  .term__tree p > span { min-width: 0; }
  .term__q { flex-direction: column; gap: 0; }
  .qa p { padding-right: 0; }
  .window { font-size: .9rem; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
  .ticker__viewport { flex-wrap: wrap; }
  .js .reveal, .js [data-seq] { opacity: 1; transform: none; }
}
