/* Habita · landing v4. Grafito, blancos neutros y un violeta desaturado que se usa poco.
   Enfoque: apple-design (precisión, materiales, profundidad, movimiento físico) + Emil (animate, choreograph,
   mobile-native). Sin dependencias. */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --surface: #131317;
  --surface-2: #1a1a1f;
  --line: rgb(255 255 255 / 0.07);
  --line-2: rgb(255 255 255 / 0.12);
  --line-3: rgb(255 255 255 / 0.2);
  --text: #ededf0;
  --text-2: #a3a3ad;
  --text-3: #8a8a94;
  --violet: #a49ed6;
  --violet-2: #8780bd;
  --violet-ink: #c9c5ea;
  --ok: #7fc8a9;
  --wait: #e3b866;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1520px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img, video, svg, picture { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p, li, dd, figcaption { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(164 158 214 / 0.35); color: #fff; }
.i18n-wait main, .i18n-wait .top { visibility: hidden; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- botones ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 18px; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; background: none;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn--primary {
  background: var(--text); color: #0b0b0e;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 10px 24px -12px rgb(0 0 0 / 0.7);
}
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgb(255 255 255 / 0.02); }
.btn--quiet { --h: 36px; padding: 0 14px; font-size: 0.875rem; border-color: var(--line-2); background: rgb(255 255 255 / 0.04); }
.btn--block { width: 100%; --h: 48px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.i-arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #fff; }
  .btn--ghost:hover, .btn--quiet:hover { border-color: var(--line-3); background: rgb(255 255 255 / 0.06); }
  .btn--ghost:hover .i-arrow { transform: translateY(2px); }
  .i-arrow { transition: transform 200ms var(--ease-out); }
}

/* ---------- cabecera: material translúcido; el contenido pasa por debajo ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgb(10 10 12 / 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background-color 240ms ease;
}
.top.is-stuck { border-bottom-color: var(--line); }
.top__bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 20px; height: 20px; fill: var(--text); }
.brand__word { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.top__nav { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.top__nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 0.875rem; transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .top__nav a:hover { color: var(--text); background: rgb(255 255 255 / 0.04); } }
.top__end { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 2px; border-radius: 9px; border: 1px solid var(--line); }
.lang button {
  min-width: 34px; height: 30px; border: 0; border-radius: 7px; background: none;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.04em; color: var(--text-3);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.lang button[aria-pressed="true"] { background: rgb(255 255 255 / 0.08); color: var(--text); }

/* ---------- atmósfera: el negro no es plano ---------- */
body { background:
  radial-gradient(70% 45% at 50% -8%, rgb(140 132 200 / 0.10), transparent 70%),
  var(--bg); }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- hero «B»: la ciudad emerge de la oscuridad ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; margin-top: -64px; display: grid; align-items: end; padding: 120px 0 clamp(48px, 9vh, 104px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: #07070a; }
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 62% 45%, transparent 45%, rgb(8 8 11 / 0.85) 100%),
    linear-gradient(180deg, rgb(10 10 12 / 0.72) 0%, transparent 24%, transparent 46%, rgb(10 10 12 / 0.9) 86%, var(--bg) 100%),
    linear-gradient(90deg, rgb(10 10 12 / 0.78) 0%, rgb(10 10 12 / 0.2) 50%, transparent 70%),
    radial-gradient(60% 40% at 50% 0%, rgb(140 132 200 / 0.2), transparent 70%); }
.hero__dark { position: absolute; inset: 0; z-index: 1; background: #07070a; opacity: 0; pointer-events: none; }
.hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #d9d9e0; text-shadow: 0 1px 12px rgb(0 0 0 / 0.7);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px rgb(164 158 214 / 0.22); }
.hero__h1 { margin: 0; font-weight: 600; font-size: clamp(2.75rem, 0.6rem + 6.4vw, 7.75rem); line-height: 0.94; letter-spacing: -0.05em; text-wrap: balance; text-shadow: 0 2px 40px rgb(0 0 0 / 0.45); }
.hero__h1 span { display: block; }
.hero__h1 .l2 { background: linear-gradient(100deg, #9693a8 0%, var(--violet-ink) 55%, #f2f1f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; text-shadow: none; }
.hero__lead { margin: 24px 0 0; max-width: 34ch; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); line-height: 1.5; color: #cfcfd6; letter-spacing: -0.01em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions .btn { --h: 48px; padding: 0 22px; font-size: 1rem; }
.hero__actions .btn--ghost { background: rgb(10 10 12 / 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* la barra de World: material translúcido sobre la ciudad; cambia la escena */
.chrome { position: relative; z-index: 2; flex: none; display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; padding: 6px 6px 8px; border-radius: 14px;
  background: rgb(14 14 17 / 0.55); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -20px rgb(0 0 0 / 0.8); }
.chrome__app { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.chrome__app svg { width: 15px; height: 15px; fill: currentColor; }
.chrome__when { font: 500 0.75rem/1 var(--mono); color: var(--text-2); font-variant-numeric: tabular-nums; padding-right: 6px; white-space: nowrap; }
.hero-vid .hero__media picture { opacity: 0; }
/* el loop B ya viene gradado oscuro: menos velo encima */
.hero-vid .hero__media::after { background:
    radial-gradient(120% 90% at 62% 45%, transparent 55%, rgb(8 8 11 / 0.55) 100%),
    linear-gradient(180deg, rgb(10 10 12 / 0.55) 0%, transparent 22%, transparent 55%, rgb(10 10 12 / 0.85) 90%, var(--bg) 100%),
    linear-gradient(90deg, rgb(10 10 12 / 0.6) 0%, rgb(10 10 12 / 0.1) 50%, transparent 70%),
    radial-gradient(60% 40% at 50% 0%, rgb(140 132 200 / 0.16), transparent 70%); }
.hero__media picture { transition: opacity 1200ms ease; }
.hero-vid .hero__dark { animation: none !important; opacity: 0; }
.chrome__what { grid-column: 1 / -1; padding: 4px 10px 0; font-size: 0.75rem; color: var(--text-2); }
.places { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.places::-webkit-scrollbar { display: none; }
.places button {
  flex: none; height: 32px; padding: 0 11px; border: 0; border-radius: 8px; background: none;
  font-size: 0.8125rem; color: var(--text-2); white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.places button[aria-selected="true"] { color: var(--text); background: rgb(255 255 255 / 0.1); box-shadow: 0 0 0 1px var(--line) inset; }
@media (hover: hover) and (pointer: fine) { .places button:not([aria-selected="true"]):hover { color: var(--text); background: rgb(255 255 255 / 0.05); } }
.places button:active { transform: scale(0.97); }
.scene { position: absolute; inset: 0; }
.scene[hidden] { display: block; visibility: hidden; }
.scene picture, .scene img, .scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.scene video { opacity: 0; transition: opacity 500ms ease; }
.scene video.is-playing { opacity: 1; }
.scene { opacity: 0; transform: scale(1.04); transition: opacity 700ms var(--ease-out), transform 1400ms var(--ease-out), visibility 0s linear 700ms; }
.scene.is-on { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 1400ms var(--ease-out), visibility 0s; }
.vtoggle {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.04); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.vtoggle:active { transform: scale(0.94); }
.vtoggle svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.vtoggle .i-play { fill: #fff; stroke: none; display: none; }
.vtoggle.is-paused .i-play { display: block; }
.vtoggle.is-paused .i-pause { display: none; }

/* producto enmarcado (Pro y el recorrido) */
.pane { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 50px 100px -30px rgb(0 0 0 / 0.85), 0 30px 60px -40px rgb(0 0 0 / 0.9); }
.pane img { width: 100%; }

/* entrada (choreograph): la ciudad sale del negro (opacidad de una capa) y se asienta (escala); el texto acompaña.
   Solo opacity y transform. Sin JS o con movimiento reducido no hay entrada. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__dark { animation: emerge 2600ms cubic-bezier(0.4, 0, 0.2, 1) 80ms both; }
  .js .hero__media .scene.is-on { animation: settle 3200ms var(--ease-out) both; }
  .js .hero__copy > * { animation: rise 900ms var(--ease-out) both; }
  .js .hero__copy > :nth-child(1) { animation-delay: 500ms; }
  .js .hero__copy > :nth-child(2) { animation-delay: 620ms; }
  .js .hero__copy > :nth-child(3) { animation-delay: 820ms; }
  .js .hero__copy > :nth-child(4) { animation-delay: 900ms; }
  .js .chrome { animation: rise 900ms var(--ease-out) 1300ms both; }
}
@keyframes emerge { from { opacity: 1; } to { opacity: 0; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- pruebas (para quien llega de Reddit, X o Product Hunt) ---------- */
.proof { list-style: none; margin: 0 auto; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; border-bottom: 1px solid var(--line); }
.proof li { display: inline-flex; align-items: center; gap: 10px; font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.proof li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }

/* ---------- recorrido: escenario fijo y tramos que pasan ---------- */
.story { position: relative; }
.story__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #08080b; }
.beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 900ms var(--ease-out), visibility 0s linear 900ms; }
.beat.is-on { opacity: 1; visibility: visible; transition: opacity 900ms var(--ease-out), visibility 0s; }
.beat--world picture, .beat--world img, .beat--world video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beat--world img, .beat--world video { transform: scale(1.1); transition: transform 2600ms var(--ease-out); }
.beat--world.is-on img, .beat--world.is-on video { transform: none; }
.beat--world video { opacity: 0; transition: opacity 600ms ease, transform 2600ms var(--ease-out); }
.beat--world video.is-playing { opacity: 1; }
.beat--close img { object-position: 44% 55%; transform: scale(1.35); transform-origin: 44% 55%; }
.beat--close.is-on img { transform: scale(1.2); }
.beat--ui { background:
  radial-gradient(55% 60% at 68% 50%, rgb(140 132 200 / 0.16), transparent 70%),
  radial-gradient(40% 40% at 20% 80%, rgb(140 132 200 / 0.06), transparent 70%), #09090c; }
.beat--ui .pane { position: absolute; top: 50%; right: max(var(--gutter), 4vw); width: min(62vw, 1120px);
  transform: translateY(-50%) perspective(1800px) rotateY(-11deg) scale(0.94); transform-origin: 100% 50%;
  transition: transform 1400ms var(--ease-out); }
.beat--ui.is-on .pane { transform: translateY(-50%) perspective(1800px) rotateY(-4deg) scale(1); }
.beat--card .pane { width: min(28vw, 400px, 46svh); right: max(var(--gutter), 14vw); }
.story__shade { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgb(8 8 11 / 0.82) 0%, rgb(8 8 11 / 0.35) 38%, transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 82%, var(--bg) 100%); }
.story__rail { position: absolute; z-index: 3; right: max(16px, 2vw); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.story__rail li { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font: 500 0.6875rem/1 var(--mono); color: var(--text-3); transition: color 300ms ease; }
.story__rail li::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width 400ms var(--ease-out); }
.story__rail li.is-on { color: var(--text); }
.story__rail li.is-on::after { width: 28px; }
.story__steps { list-style: none; position: relative; z-index: 4; margin: -100svh 0 0; padding: 0; }
.step { min-height: 100svh; display: flex; align-items: center; padding: 0 max(var(--gutter), (100vw - var(--max)) / 2); }
.step__card { max-width: 460px; padding: 28px 30px 30px; border-radius: 20px;
  background: rgb(10 10 13 / 0.5); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgb(0 0 0 / 0.8); }
.step__card h3 { margin: 0; font-size: clamp(1.75rem, 1rem + 1.8vw, 2.625rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.step__card p:last-child { margin: 16px 0 0; color: #c9c9d1; font-size: 1.0625rem; line-height: 1.55; }
.step__card .kicker { margin-bottom: 14px; }
.story__end { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(72px, 12vh, 140px) 0; border-bottom: 1px solid var(--line); }
.story__q { margin: 0; font-size: clamp(1.75rem, 1rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }

/* ---------- Hive Live: el flujo de una sesión ---------- */
.live { padding: clamp(88px, 14vh, 160px) 0; }
.live__head { max-width: 760px; }
.live__grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.live__grid .flow { margin: 0; grid-template-columns: 1fr; gap: 36px; }
.live__grid .flow::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-2), rgb(164 158 214 / 0.6), var(--line-2)); }
.live__grid .flow__step { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0; }
.live__grid .flow__n { grid-row: span 2; margin: 0; }
.live__shot { justify-self: center; width: min(100%, 500px); transform: perspective(1600px) rotateY(-6deg); }
.live__shot figcaption { padding: 10px 14px; font-size: 0.75rem; color: var(--text-3); border-top: 1px solid var(--line); background: var(--surface); }
.flow { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: linear-gradient(90deg, var(--line-2), rgb(164 158 214 / 0.6), var(--line-2)); }
.flow__step { position: relative; padding: 0 32px 0 0; }
.flow__n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); font: 500 0.8125rem/1 var(--mono); color: var(--text-2); }
.flow__step--mid .flow__n { color: var(--text); box-shadow: 0 0 0 1px var(--violet-2), 0 0 0 6px rgb(164 158 214 / 0.12); }
.flow__step h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.flow__step p { margin: 0; max-width: 32ch; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.live__states { margin-top: 64px; padding: 28px; border-radius: 20px; border: 1px solid var(--line-2); background: radial-gradient(120% 90% at 100% 0%, rgb(164 158 214 / 0.07), transparent 60%), var(--bg-2); }
.live__label { margin: 0 0 18px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.lstates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lst { --c: var(--text-3); display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-3); font-size: 0.9375rem; transition: color 300ms ease, border-color 300ms ease, background-color 300ms ease; }
.lst::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: 0.55; transition: opacity 300ms ease, box-shadow 300ms ease; }
.lst--reading { --c: #8fb7e6; } .lst--editing { --c: var(--violet); } .lst--running { --c: #b7a2e8; } .lst--tests { --c: #8fd0c8; } .lst--waiting { --c: var(--wait); } .lst--done { --c: var(--ok); }
.lst.is-past { color: var(--text-2); }
.lst.is-now { color: var(--text); border-color: var(--line-3); background: rgb(255 255 255 / 0.05); }
.lst.is-now::before { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 24%, transparent); }
.live__never { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.9375rem; }

/* ---------- roadmap ---------- */
.road { padding: clamp(88px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.road__axis { margin-top: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; }
.road__solid { height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgb(127 200 169 / 0.15), var(--ok)); }
.road__dash { height: 0; border-top: 2px dashed var(--line-3); }
.road__pin { padding: 6px 12px; border-radius: 999px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-3), 0 0 0 6px rgb(127 200 169 / 0.08); }
.road__track { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.road__col { padding: 28px 32px 32px; }
.road__col--now { background: linear-gradient(180deg, rgb(127 200 169 / 0.06), transparent 50%), var(--bg-2); }
.road__col--next { background: var(--bg); border-left: 1px dashed var(--line-3); }
.road__label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--now { background: var(--ok); box-shadow: 0 0 0 4px rgb(127 200 169 / 0.16); }
.dot--next { border: 1px dashed var(--text-2); }
.road__col ul { list-style: none; margin: 0; padding: 0; }
.road__col li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--line); font-size: 1rem; }
.road__col--now li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 6px; border: solid var(--ok); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.road__col--next li { color: var(--text-2); }
.road__col--next li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 9px; height: 9px; border-radius: 50%; border: 1px dashed var(--text-3); }
.road__foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.road__foot p { margin: 0; color: var(--text-3); font-size: 0.875rem; }

/* ---------- capítulos (World, Pro, Agents, Hive) ---------- */
.chapter { padding: clamp(72px, 12vh, 140px) 0; }
.kicker { margin: 0 0 18px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.chapter__h { margin: 0; font-weight: 600; font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.chapter__p { margin: 20px 0 0; max-width: 44ch; font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1875rem); color: var(--text-2); }
.chapter__head { max-width: 760px; }

/* dos columnas: texto y producto */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.views { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 36px; border-left: 1px solid var(--line); }
.views button {
  position: relative; min-height: 40px; padding: 0 16px; border: 0; background: none; text-align: left;
  font-size: 0.9375rem; color: var(--text-3); transition: color 160ms ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.views button::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 1px; background: var(--text); transform: scaleY(0); transition: transform 240ms var(--ease-out); }
.views button[aria-selected="true"] { color: var(--text); }
.views button[aria-selected="true"]::before { transform: scaleY(1); }
@media (hover: hover) and (pointer: fine) { .views button:not([aria-selected="true"]):hover { color: var(--text-2); } }
.pane--shot { position: relative; aspect-ratio: 16 / 10; }
.shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms; }
.shot[hidden] { display: block; visibility: hidden; }
.shot.is-on { opacity: 1; transition: opacity 320ms var(--ease-out), visibility 0s; }
.shot picture { display: block; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 9px; font-size: 0.8125rem; color: var(--text); background: rgb(10 10 12 / 0.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 0 0 1px var(--line-2) inset; }
.pane--crop { margin: 0; }
.pane--crop img { width: 100%; }
.lines { list-style: none; margin: 36px 0 0; padding: 0; }
.lines li { padding: 18px 0; border-top: 1px solid var(--line); }

/* ---------- control y confianza ---------- */
.trust { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); }
.trust__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.trust__list div { padding-top: 20px; border-top: 1px solid var(--line-2); }
.trust__list dt { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.trust__list dd { margin: 8px 0 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }

/* ---------- cierre ---------- */
.close { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: grid; align-items: end; padding: clamp(96px, 14vh, 160px) 0 clamp(64px, 10vh, 112px); overflow: hidden; }
.close__media { position: absolute; inset: 0; z-index: -1; }
.close__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.close__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgb(10 10 12 / 0.55) 30%, rgb(10 10 12 / 0.35) 55%, rgb(10 10 12 / 0.92) 100%); }
.close__h { margin: 0; font-weight: 600; font-size: clamp(2.75rem, 1rem + 5vw, 6rem); line-height: 0.98; letter-spacing: -0.05em; text-shadow: 0 2px 30px rgb(0 0 0 / 0.4); }
.close__p { margin: 20px 0 32px; max-width: 40ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: #d6d6dc; }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 1rem; }

/* ---------- preguntas ---------- */
.faq { padding: clamp(80px, 12vh, 140px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: translateY(-3px) rotate(45deg); transition: transform 240ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { margin: 0 0 22px; max-width: 60ch; color: var(--text-2); }

/* ---------- aparición al entrar en pantalla (solo con JS y sin movimiento reducido) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hoja / modal de acceso ---------- */
.sheet {
  /* sin JS: se ve como una sección más, al final de la página */
  position: static; display: block; width: auto; max-width: none; margin: 0; padding: clamp(64px, 10vh, 120px) var(--gutter);
  border: 0; border-top: 1px solid var(--line); background: none; color: var(--text);
}
.sheet__panel { max-width: 460px; margin-inline: auto; }
.js .sheet:not(:modal) { display: none; }
.js .sheet:modal {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: none;
  width: min(100% - 32px, 460px); max-width: none; height: fit-content; max-height: calc(100dvh - 32px); overflow: visible;
  opacity: 1; transform: none;
  transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out), overlay 420ms allow-discrete, display 420ms allow-discrete;
  transform-origin: var(--ox, 50%) var(--oy, 0%);
}
.js .sheet:modal .sheet__panel {
  max-width: none; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 26px 26px 24px; border-radius: 18px;
  background: rgb(22 22 27 / 0.92); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.07) inset, 0 40px 80px -20px rgb(0 0 0 / 0.8);
}
@starting-style { .js .sheet:modal { opacity: 0; transform: scale(0.96) translateY(6px); } }
.js .sheet.is-closing { opacity: 0; transform: scale(0.97) translateY(4px); transition-duration: 180ms; }
.sheet::backdrop { background: rgb(5 5 7 / 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity 260ms ease, overlay 260ms allow-discrete, display 260ms allow-discrete; }
@starting-style { .sheet:modal::backdrop { opacity: 0; } }
.sheet.is-closing::backdrop { opacity: 0; }
.sheet__grip { display: none; }
.sheet:has([data-step="2"]:not([hidden])) .sheet__p { visibility: hidden; } /* ya anotada: no repetir «déjanos tu correo»; el paso 2 sube a ocupar su lugar (site.js) sin mover nada */
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sheet__head h2 { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.025em; }
.sheet__close {
  display: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgb(255 255 255 / 0.04);
  place-items: center; -webkit-tap-highlight-color: transparent;
}
.js .sheet__close { display: grid; }
.sheet__close svg { width: 14px; height: 14px; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.sheet__p { margin: 10px 0 22px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }

/* formulario */
.join { display: flow-root; } /* el margen negativo del paso 2 no atraviesa el formulario */
.join__label, .join__grid label, legend { display: block; margin-bottom: 8px; font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
.join input[type="email"], .join input[type="text"], .join select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px;
  background: rgb(255 255 255 / 0.04); border: 1px solid var(--line-2); color: var(--text);
  font-size: 16px; /* sin zoom en iOS */
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.join select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.join input::placeholder { color: var(--text-3); }
.join input:focus-visible, .join select:focus-visible { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgb(164 158 214 / 0.2); background: rgb(255 255 255 / 0.06); }
.join input[aria-invalid="true"] { border-color: #e58c8c; }
.join__err { margin: 8px 0 0; font-size: 0.8125rem; color: #f0a5a5; }
.join__err button { border: 0; background: none; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.join__check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin: 18px 0 20px; }
.join__check input { appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid var(--line-3); background: rgb(255 255 255 / 0.03); display: grid; place-items: center; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.join__check input::after { content: ""; width: 10px; height: 6px; border: solid #0b0b0e; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 160ms var(--ease-out); }
.join__check input:checked { background: var(--text); border-color: var(--text); }
.join__check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.join__check input[aria-invalid="true"] { border-color: #e58c8c; }
.join__check label { font-size: 0.875rem; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.join__micro { margin: 14px 0 0; font-size: 0.75rem; line-height: 1.5; color: var(--text-3); }
.join__micro a { color: var(--text-2); text-underline-offset: 3px; }
.join__done { margin: 14px 0 18px; font-size: 0.9375rem; color: var(--text-2); }
.join__done strong { display: block; color: var(--text); font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.join__done:focus { outline: none; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 14px; color: var(--text); font-size: 0.9375rem; }
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.join__wide { grid-column: 1 / -1; }
.join__actions { display: flex; gap: 10px; margin-top: 18px; }
.join__status { margin: 12px 0 0; font-size: 0.8125rem; color: var(--text-2); min-height: 1em; }
.join__status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pie ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--text-3); font-size: 0.8125rem; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; }
.foot__brand .brand__mark { width: 16px; height: 16px; fill: var(--text-2); flex: none; }
.foot a { color: var(--text-2); text-underline-offset: 3px; }


/* ---------- etapa 4: el interior queda detrás de las interfaces (tramos 5–7) ---------- */
.beat__bg { position: absolute; inset: 0; }
.beat__bg picture, .beat__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beat__bg img { opacity: 0.55; transform: scale(1.06); transition: transform 2600ms var(--ease-out); }
.beat.is-on .beat__bg img { transform: none; }
.beat__bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 70% 50%, rgb(140 132 200 / 0.14), transparent 70%),
  linear-gradient(90deg, rgb(8 8 11 / 0.8) 0%, rgb(8 8 11 / 0.35) 45%, rgb(8 8 11 / 0.45) 100%); }
.beat--bgonly .pane { display: none; }

/* el marco único de los tramos 6 y 7: no se mueve; cambia lo de adentro y la ficha de estado */
.story__frame { position: absolute; z-index: 3; top: 50%; right: max(var(--gutter), 14vw); width: min(26vw, 380px, 40svh);
  opacity: 0; visibility: hidden; transform: translateY(-46%) perspective(1600px) rotateY(-8deg) scale(0.96); transform-origin: 100% 50%;
  transition: opacity 700ms var(--ease-out), transform 1200ms var(--ease-out), visibility 0s linear 700ms; }
.story[data-beat="6"] .story__frame, .story[data-beat="7"] .story__frame { opacity: 1; visibility: visible; transform: translateY(-50%) perspective(1600px) rotateY(-4deg); transition: opacity 700ms var(--ease-out), transform 1200ms var(--ease-out), visibility 0s; }
.frame__pane { display: grid; }
.frame__img { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-out); }
.story[data-beat="6"] .frame__img--6, .story[data-beat="7"] .frame__img--7 { opacity: 1; transform: none; }
.frame__state { position: relative; display: grid; margin: 0 0 12px; height: 34px; }
.frame__s { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-self: start; gap: 8px; height: 34px; padding: 0 14px 0 30px; border-radius: 999px;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.02em; color: var(--text); background: rgb(14 14 17 / 0.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line-2); white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); }
.frame__state .dot { display: none; }
.frame__s::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--wait); box-shadow: 0 0 0 4px rgb(227 184 102 / 0.18); }
.frame__s { position: relative; }
.story[data-beat="6"] .frame__s--6, .story[data-beat="7"] .frame__s--7 { opacity: 1; transform: none; }

/* fin del recorrido + control, en una sola franja */
.story__end { display: block; }
.story__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.story__facts { margin: clamp(40px, 6vh, 64px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.story__facts div { padding: 20px 24px 0 0; border-top: 1px solid var(--line-2); }
.story__facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.story__facts dt { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.story__facts dd { margin: 8px 0 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }

/* Cómo se conecta */
.how { margin-top: 56px; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-2); }
.how__head h3 { text-wrap: balance; margin: 0; font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -0.035em; }
.how__steps { list-style: none; counter-reset: how; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.how__steps li { counter-increment: how; position: relative; padding-top: 44px; }
.how__steps li::before { content: counter(how, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 500 0.8125rem/1 var(--mono); color: var(--violet); padding: 7px 10px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.how__steps h4 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.how__steps p { margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.how__cmd { margin: 28px 0 0; }
.how__cmd figcaption { margin-bottom: 8px; font-size: 0.75rem; color: var(--text-3); }
.how__cmd pre { margin: 0; padding: 14px 16px; border-radius: 12px; background: #07070a; box-shadow: 0 0 0 1px var(--line); overflow-x: auto; }
.how__cmd code { font: 500 0.8125rem/1.6 var(--mono); color: #d8d6ea; white-space: pre; }
.how__note { margin: 18px 0 0; font-size: 0.875rem; color: var(--text-2); }

/* roadmap: una línea de metro con estaciones; «Hoy» separa lo implementado de lo que viene */
.metro { margin-top: 48px; }
.metro__legend { display: flex; gap: 24px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.metro__legend > span { display: inline-flex; align-items: center; gap: 10px; }
.metro__line { list-style: none; margin: 40px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 8px; }
.metro__line::before { content: ""; position: absolute; left: 0; top: 9px; width: calc(100% * 6.5 / 12); height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgb(127 200 169 / 0.25), var(--ok)); }
.metro__line::after { content: ""; position: absolute; right: 0; top: 10px; width: calc(100% * 5.5 / 12); border-top: 2px dashed var(--line-3); }
.st { position: relative; z-index: 1; padding-top: 34px; font-size: 0.875rem; line-height: 1.35; text-wrap: balance; }
.st::before { content: ""; position: absolute; top: 3px; left: 0; width: 15px; height: 15px; border-radius: 50%; box-sizing: border-box; }
.st--now::before { background: var(--bg); border: 3px solid var(--ok); }
.st--next { color: var(--text-2); }
.st--next::before { background: var(--bg); border: 2px dashed var(--text-3); }
.st--today { padding-top: 0; display: flex; justify-content: center; }
.st--today::before { display: none; }
.st--today span { margin-top: -4px; height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--bg-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-3), 0 0 0 6px rgb(127 200 169 / 0.08); }

/* preguntas: grandes, a todo el ancho */
.faq__h { margin: 0 0 32px; font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; }
.faq summary { min-height: 84px; font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.625rem); letter-spacing: -0.025em; justify-content: flex-start; }
.faq summary span:not(.faq__n) { flex: 1; }
.faq__n { flex: none; width: 48px; font: 500 0.8125rem/1 var(--mono); color: var(--text-3); }
.faq details p { padding-left: 48px; font-size: 1.0625rem; }

/* momento para compartir */
.share { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; padding: 16px; border-radius: 14px; background: rgb(255 255 255 / 0.03); box-shadow: 0 0 0 1px var(--line); }
.share__bldg { flex: none; width: 84px; height: auto; }
.share__bldg .b { fill: #16161c; stroke: var(--line-3); }
.share__bldg .w { fill: #24242c; transition: fill 500ms ease; transition-delay: calc(var(--i) * 45ms + 150ms); }
.share__bldg.is-lit .w { fill: #f0c97a; }
.share__bldg.is-lit .w:nth-child(3n) { fill: #e3b866; }
.share__bldg.is-lit .w:nth-child(5n) { fill: #2a2a33; }
.share__bldg .door { fill: #0c0c10; stroke: var(--line-3); }
.share__bldg .ini { font: 600 15px/1 var(--sans); fill: var(--violet-ink); }
.share__h { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
.share__p { margin: 4px 0 10px; font-size: 0.875rem; color: var(--text-2); }
.share__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- tablet y celular ---------- */
@media (max-width: 1023px) {
  .top__nav { display: none; }
  .split, .trust__grid, .faq__grid { grid-template-columns: 1fr; }
  .views { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-left: 0; border-bottom: 1px solid var(--line); margin-top: 28px; overscroll-behavior-x: contain; }
  .views::-webkit-scrollbar { display: none; }
  .views button { flex: none; padding: 0 14px; }
  .views { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .views button::before { left: 14px; right: 14px; top: auto; bottom: -1px; width: auto; height: 1px; transform: scaleX(0); }
  .views button[aria-selected="true"]::before { transform: scaleX(1); }
  .hero__inner { flex-direction: column; align-items: stretch; }
  .chrome { align-self: flex-start; max-width: 100%; }
  .beat--ui .pane { right: 50%; width: 90vw; transform: translate(50%, -62%) scale(0.96); transform-origin: 50% 50%; }
  .beat--ui.is-on .pane { transform: translate(50%, -62%) scale(1); }
  .beat--card .pane { width: min(70vw, 34svh); }
  .story__frame { right: 50%; width: min(70vw, 34svh); transform: translate(50%, -60%) scale(0.96); transform-origin: 50% 50%; }
  .story[data-beat="6"] .story__frame, .story[data-beat="7"] .story__frame { transform: translate(50%, -62%); }
  .frame__s { justify-self: center; max-width: calc(100vw - 32px); height: auto; min-height: 34px; padding: 8px 14px 8px 30px; white-space: normal; line-height: 1.3; font-size: 0.6875rem; }
  .frame__state { height: auto; min-height: 34px; }
  .frame__state { justify-items: center; }
  .story__facts { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .story__facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .how__steps { grid-template-columns: 1fr; gap: 22px; }
  .metro__line { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .metro__line::before { left: 6px; top: 0; width: 3px; height: calc(100% * 6.5 / 12); background: linear-gradient(180deg, rgb(127 200 169 / 0.25), var(--ok)); }
  .metro__line::after { left: 7px; right: auto; top: auto; bottom: 0; width: 0; height: calc(100% * 5.5 / 12); border-top: 0; border-left: 2px dashed var(--line-3); }
  .st { padding: 10px 0 10px 32px; }
  .st::before { top: 12px; }
  .st--today { justify-content: flex-start; padding: 8px 0 8px 20px; }

  .story__shade { background: linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 45%, rgb(8 8 11 / 0.85) 80%, var(--bg) 100%); }
  .step { align-items: flex-end; padding-bottom: 8svh; }
  .live__grid { grid-template-columns: 1fr; }
  .live__shot { justify-self: center; transform: none; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-2), rgb(164 158 214 / 0.6), var(--line-2)); }
  .flow__step { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0; }
  .flow__n { grid-row: span 2; margin: 0; }
}
@media (max-width: 767px) {
  .top__bar { height: 56px; gap: 12px; }
  .top__cta { --h: 34px; padding: 0 12px; font-size: 0.8125rem; }
  .top__end { gap: 8px; }
  .lang button { min-width: 30px; }
  .hero { min-height: 100svh; margin-top: -56px; padding: 96px 0 40px; }
  .hero__h1 { font-size: clamp(2.5rem, 0.2rem + 10.4vw, 3.5rem); letter-spacing: -0.045em; }
  .hero__lead { margin-top: 16px; font-size: 1.0625rem; }
  .hero__actions { margin-top: 24px; }
  .hero__actions .btn--primary { flex: 1 1 100%; }
  .hero__actions .btn--ghost { display: none; } /* en el celular el recorrido empieza justo abajo */
  .hero__media::after { background:
    linear-gradient(180deg, rgb(10 10 12 / 0.6) 0%, transparent 22%, rgb(10 10 12 / 0.55) 48%, rgb(10 10 12 / 0.94) 72%, var(--bg) 100%),
    radial-gradient(60% 30% at 50% 0%, rgb(140 132 200 / 0.2), transparent 70%); }
  .scene picture, .scene img, .scene video { object-position: 58% 40%; }
  .chrome { width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; }
  .chrome__when { overflow: hidden; text-overflow: ellipsis; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 0; }
  .proof li { font-size: 0.6875rem; }
  .step__card { padding: 22px 22px 24px; border-radius: 16px; width: 100%; }
  .step__card p:last-child { font-size: 1rem; }
  .story__rail { display: none; }
  .story__facts { grid-template-columns: 1fr; }
  .story__facts div, .story__facts div + div { padding: 16px 0 0; border-left: 0; }
  .story__ask { flex-direction: column; align-items: stretch; }
  .story__ask .btn { width: 100%; }
  .faq summary { min-height: 72px; }
  .faq__n { width: 36px; }
  .faq details p { padding-left: 36px; }
  .share { align-items: flex-start; }
  .share__bldg { width: 64px; }
  .chapter { padding: 64px 0; }
  .pane--shot { aspect-ratio: 3 / 4; }
  .shot img { object-position: 46% 0; }
  .trust__list { grid-template-columns: 1fr; gap: 28px; }
  .road__track { grid-template-columns: 1fr; }
  .road__col--next { border-left: 0; border-top: 1px dashed var(--line-3); }
  .road__col { padding: 22px 20px 24px; }
  .road__foot .btn { width: 100%; }
  .live__states { padding: 20px; }
  .close { min-height: 78svh; }
  .close .btn--lg { width: 100%; }
  .join__grid { grid-template-columns: 1fr; }

  /* hoja inferior: sube desde el borde y se cierra arrastrando hacia abajo */
  .js .sheet:modal {
    inset: auto 0 0 0; margin: 0; width: 100%; max-height: calc(100dvh - 24px);
    transform-origin: 50% 100%;
    transition: transform 460ms cubic-bezier(0.32, 0.72, 0, 1), opacity 200ms ease, overlay 460ms allow-discrete, display 460ms allow-discrete;
  }
  @starting-style { .js .sheet:modal { opacity: 1; transform: translateY(100%); } }
  .js .sheet.is-closing { opacity: 1; transform: translateY(100%); transition-duration: 300ms; }
  .js .sheet.is-dragging { transition: none; }
  .js .sheet:modal .sheet__panel {
    min-height: min(800px, calc(100dvh - 24px)); /* la hoja ya tiene el alto del paso 2 (con el momento para compartir): sin saltos */
    border-radius: 20px 20px 0 0; border-bottom: 0; max-height: calc(100dvh - 24px);
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
    background: rgb(22 22 27 / 0.96);
  }
  .js .sheet__grip { display: grid; place-items: center; height: 28px; margin: 0 -20px 4px; touch-action: none; cursor: grab; }
  .sheet__grip span { width: 40px; height: 5px; border-radius: 3px; background: var(--line-3); }

}

/* ---------- movimiento reducido, transparencia reducida, más contraste ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  .beat, .beat.is-on { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .beat.is-on { transition: opacity 200ms ease, visibility 0s; }
  .beat--world img, .beat--world video, .beat--close img, .beat--close.is-on img { transform: none !important; transition: none; }
  .beat--ui .pane, .beat--ui.is-on .pane { transition: none; }
  .beat__bg img, .frame__img, .frame__s { transition: opacity 200ms ease !important; transform: none !important; }
  .story__frame { transition: opacity 200ms ease, visibility 0s !important; }
  .share__bldg .w { transition: none; }
  .scene, .scene.is-on { transform: none; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .hero__dark { display: none; }
  .scene.is-on { transition: opacity 200ms ease, visibility 0s; }
  .js .sheet:modal, .js .sheet.is-closing { transform: none !important; transition: opacity 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete; }
  .js .sheet.is-closing { opacity: 0; }
  @starting-style { .js .sheet:modal { opacity: 0; transform: none; } }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .sheet:modal .sheet__panel { background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-2: #d0d0d6; --text-3: #a8a8b2; --line: rgb(255 255 255 / 0.2); --line-2: rgb(255 255 255 / 0.32); }
}
