/* Havebee — landing. Oscura a propósito: es una página de producto, como las de Apple. */

@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: dark;
  --bg: #0a0907;
  --bg-2: #12100c;
  --bg-3: #1a1712;
  --fg: #f6f3ec;
  --fg-2: rgba(246, 243, 236, .66);
  --fg-3: rgba(246, 243, 236, .44);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --honey: #f5b83d;
  --honey-2: #ffd27a;
  --honey-3: #c98a12;
  --green: #30d158;
  --orange: #ff9f0a;
  --blue: #4da3ff;
  --red: #ff6961;
  --win: #1d1d1f;
  --win-2: #242426;
  --win-3: #2c2c2e;
  --term: #111113;
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(245, 184, 61, .35); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--honey); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

/* ---------- Idiomas: los textos en inglés los pone i18n.js ---------- */
.lang span { opacity: .45; transition: opacity .2s; }
html[lang="es"] .lang [data-l="es"], html[lang="en"] .lang [data-l="en"] { opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 9, 7, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 56px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
/* El nombre va en Unbounded (solo las letras de «Havebee»: 1 KB). Licencia SIL Open Font License. */
@font-face {
  font-family: "Unbounded Havebee"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/unbounded-700-havebee.woff2") format("woff2");
}
.wordmark { font-family: "Unbounded Havebee", var(--sans); font-weight: 700; letter-spacing: -.02em; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; font-size: 13.5px; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  font: 600 12px/1 var(--sans); letter-spacing: .04em; color: var(--fg);
  background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 10px; cursor: pointer; display: flex; gap: 6px;
}
.lang:hover { border-color: rgba(255,255,255,.3); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 16px/1 var(--sans); letter-spacing: -.01em;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .3s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--honey-2), var(--honey) 55%, #e7a52a);
  color: #1a1203;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 30px -8px rgba(245,184,61,.55);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 14px 44px -8px rgba(245,184,61,.75); }
.btn-ghost { color: var(--honey-2); padding-inline: 12px; }
.btn-ghost:hover { color: #fff; }
.btn-small { padding: 9px 16px; font-size: 13.5px; background: var(--fg); color: #111; }
.btn-small:hover { background: #fff; }
.btn-large { padding: 19px 34px; font-size: 18px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; filter: saturate(.4); }
.apple { width: 15px; height: 18px; margin-top: -2px; }

/* ---------- Tipografía de secciones ---------- */
.eyebrow, .kicker {
  font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--honey);
  margin: 0 0 14px;
}
.section-title, .mega, .hero-title {
  font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin: 0;
  text-wrap: balance;
}
.section-sub, .hero-sub, .step h3, .tc-copy h3 { text-wrap: balance; }
.section-title { font-size: clamp(36px, 5.6vw, 72px); }
.mega { font-size: clamp(48px, 9vw, 128px); letter-spacing: -.045em; }
.section-sub { font-size: clamp(18px, 2vw, 22px); color: var(--fg-2); max-width: 680px; margin: 22px auto 0; line-height: 1.45; letter-spacing: -.01em; }
.honey-text {
  background: linear-gradient(100deg, var(--honey-2) 0%, var(--honey) 40%, #ff9b2f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dim-text { color: var(--fg-3); }

/* ---------- Aparecer al entrar en pantalla ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 150px var(--gutter) 0; text-align: center;
  overflow: clip;
}
.hero-glow {
  position: absolute; left: 50%; top: 380px; width: 1400px; height: 900px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(245,184,61,.30), rgba(245,184,61,.08) 45%, transparent 75%);
  filter: blur(20px); pointer-events: none;
}
.hex-field {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%23f5b83d' stroke-opacity='.10' stroke-width='1'%3E%3Cpath d='M28 1 L55 16.5 L55 47.5 L28 63 L1 47.5 L1 16.5 Z'/%3E%3Cpath d='M28 63 L28 97'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 97px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 10%, transparent 70%);
}
.hero-copy { position: relative; max-width: 980px; margin: 0 auto; }
.hero-title { font-size: clamp(52px, 9.4vw, 124px); }
.hero-sub { font-size: clamp(19px, 2.3vw, 25px); color: var(--fg-2); max-width: 720px; margin: 26px auto 0; letter-spacing: -.012em; line-height: 1.4; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; font-size: 13.5px; color: var(--fg-3); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.version-tag { color: var(--fg-2); }
.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; }

.hero-stage {
  --p: 0;
  position: relative; max-width: 1180px; margin: 72px auto 0; perspective: 2200px;
  padding-bottom: 80px;
}
.hero-stage .window {
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p)) * 24deg)) scale(calc(.9 + var(--p) * .1)) translateY(calc((1 - var(--p)) * 30px));
  will-change: transform;
}
.stage-reflection {
  position: absolute; left: 8%; right: 8%; bottom: 40px; height: 120px;
  background: radial-gradient(closest-side, rgba(245,184,61,.22), transparent);
  filter: blur(30px); pointer-events: none;
}

/* ---------- Ventana de la app (maqueta) ---------- */
.window {
  position: relative; text-align: left;
  background: var(--win);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 50px 120px -30px rgba(0,0,0,.9),
    0 30px 80px -40px rgba(245,184,61,.35);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13px;
  color: #e9e9ea;
  user-select: none;
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
}
.window { container-type: inline-size; }
.win-toolbar {
  display: flex; align-items: center; gap: 6px; overflow: hidden;
  height: 42px; padding: 0 12px; flex: none;
  background: linear-gradient(180deg, #2a2a2c, #242426);
  border-bottom: 1px solid rgba(0,0,0,.55);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.lights { display: flex; gap: 8px; margin-right: 8px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tb-icon { width: 26px; height: 26px; display: grid; place-items: center; color: rgba(255,255,255,.62); flex: none; }
.tb-icon .ic { width: 15px; height: 15px; }
.tb-proj { flex: none; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, #94c93b 22%, #2a2a2c); display: grid; place-items: center; margin: 0 2px; }
.tb-proj img { width: 82%; height: 82%; object-fit: contain; }
.tb-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; flex: none;
  border-radius: 7px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.78); font-size: 12px; white-space: nowrap;
}
.tb-pill img { width: 14px; height: 14px; }
.tb-pill .ic { opacity: .8; }
.chev { font-style: normal; opacity: .5; font-size: 10px; margin: -4px 0 0 1px; }
.tb-title { display: flex; flex-direction: column; line-height: 1.15; margin-left: 6px; min-width: 0; }
.tb-title b { font-size: 13px; font-weight: 600; }
.tb-title small { font-size: 11px; color: rgba(255,255,255,.5); white-space: nowrap; }
.tb-spacer { flex: 1; }
.tb-status { color: var(--honey); }
.tb-status .arc { width: 11px; height: 11px; }
.tb-on { background: rgba(255,255,255,.13); color: #fff; }
.tb-count { font: 700 10px/1 var(--sans); padding: 2px 5px; border-radius: 6px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); transition: background .3s; }
.tb-count.bump { background: var(--honey); color: #241800; }
.tb-ctx .pie { width: 11px; height: 11px; border-radius: 50%; background: conic-gradient(rgba(255,255,255,.6) 0 42%, rgba(255,255,255,.14) 0); }
/* La barra de la app real tiene más botones de los que entran: se van escondiendo según el ancho de la ventana */
@container (max-width: 1300px) { .hide-xl { display: none; } }
@container (max-width: 1060px) { .hide-lg { display: none; } }
@container (max-width: 760px) { .tb-ctx, .tb-icon:nth-of-type(2) { display: none; } }
@container (max-width: 560px) { .tb-status { display: none; } }

.br {
  display: inline-block; width: .9em; height: .9em; vertical-align: -.1em; margin-right: .25em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='4' cy='3.2' r='1.7'/%3E%3Ccircle cx='4' cy='12.8' r='1.7'/%3E%3Ccircle cx='12' cy='5' r='1.7'/%3E%3Cpath d='M4 4.9v6.2M12 6.7c0 3-8 2.2-8 4.4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='4' cy='3.2' r='1.7'/%3E%3Ccircle cx='4' cy='12.8' r='1.7'/%3E%3Ccircle cx='12' cy='5' r='1.7'/%3E%3Cpath d='M4 4.9v6.2M12 6.7c0 3-8 2.2-8 4.4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.tree-row .br { color: #5aa2ff; }
.arc {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none;
  border: 1.8px solid var(--honey); border-right-color: transparent;
  animation: spin .9s linear infinite;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); flex: none; display: inline-block; }
.dot.green { background: var(--green); box-shadow: 0 0 8px rgba(48,209,88,.6); }
.dot.blue { background: var(--blue); box-shadow: 0 0 8px rgba(77,163,255,.7); }
@keyframes spin { to { transform: rotate(360deg); } }

.win-body { flex: 1; display: flex; min-height: 0; }
.rail {
  width: 66px; flex: none; background: #1c1c1e; border-right: 1px solid rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; padding: 8px 0 10px; overflow: hidden;
}
.rail-list { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.rail-item { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; }
.rail-item.sel { background: rgba(245,184,61,.2); box-shadow: inset 0 0 0 2px var(--honey); }
.tile {
  position: relative; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font: 800 14px/1 ui-rounded, var(--sans); color: #fff; letter-spacing: -.01em;
  background: color-mix(in srgb, var(--tint, #888) 22%, #2a2a2c);
}
.tile > img { width: 80%; height: 80%; object-fit: contain; border-radius: 4px; }
.tile.home > img { width: 66%; height: 66%; }
.tile.initials, .tile.symbol {
  background: linear-gradient(170deg, color-mix(in srgb, var(--tint) 82%, #fff), var(--tint) 60%, color-mix(in srgb, var(--tint) 82%, #000));
}
.tile .sym { font: 800 13px var(--mono); }
.tile.dim { filter: saturate(.3); opacity: .62; }
.tile .badge {
  position: absolute; top: -7px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  font: 800 10px/16px var(--sans); text-align: center; z-index: 1;
  box-shadow: 0 0 0 2px #1c1c1e;
}
.badge.green { background: #30d158; color: #fff; }
.badge.orange { background: var(--orange); color: #1b1200; }
.rail-item.sel .badge { box-shadow: 0 0 0 2px #3a3122; }
.tile::after {
  content: ""; position: absolute; inset: -4.5px; border-radius: 14px; padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.ring-working::after {
  background: conic-gradient(from var(--spin), transparent 0deg, rgba(245,184,61,.3) 110deg, var(--honey) 300deg, transparent 300deg);
  animation: ring 1.4s linear infinite;
}
.ring-attention::after { background: var(--orange); box-shadow: 0 0 12px rgba(255,159,10,.45); }
.ring-pending::after { background: var(--green); }
.rail-item:nth-child(3n+1) .ring-working::after { animation-delay: -.5s; }
.rail-item:nth-child(3n+2) .ring-working::after { animation-delay: -.9s; }
@keyframes ring { to { --spin: 360deg; } }
.rail-foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 8px; }
.rail-usage { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px; width: 44px; font: 600 10.5px var(--sans); color: rgba(255,255,255,.72); }
.rail-usage img { width: 10px; height: 10px; }
.rail-usage i { width: 30px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.rail-usage em { display: block; height: 100%; background: var(--honey); }
.rail-add { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.62); font-size: 20px; }

.win-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tabs {
  height: 40px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px;
  background: #1f1f21; border-bottom: 1px solid rgba(0,0,0,.55); overflow: hidden;
}
.tabs-project { display: flex; align-items: center; gap: 7px; flex: none; font-weight: 700; font-size: 12.5px; padding: 0 12px 0 4px; border-right: 1px solid rgba(255,255,255,.1); margin-right: 4px; }
.tabs-project img { width: 18px; height: 18px; border-radius: 5px; padding: 2px; background: color-mix(in srgb, #94c93b 22%, #2a2a2c); object-fit: contain; }
.tab {
  position: relative; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; flex: none;
  border-radius: 6px; color: rgba(255,255,255,.66); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; white-space: nowrap;
}
.tab-overview { text-transform: none; font-weight: 500; letter-spacing: 0; font-size: 12px; }
.tab img { width: 13px; height: 13px; }
.tab .arc { width: 11px; height: 11px; }
.tab.active { background: rgba(255,255,255,.1); color: #fff; }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -6px; height: 2px; border-radius: 2px; background: var(--honey); }
.ring-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid rgba(255,255,255,.35); flex: none; }
.ring-dot.green { border-color: var(--green); }

.win-split { flex: 1; display: flex; min-height: 0; }
.term {
  flex: 1; background: var(--term); padding: 14px 20px 8px; overflow: hidden; position: relative; min-width: 0;
  display: flex; flex-direction: column;
  font: 12.5px/1.6 var(--mono); color: #d8d8da;
}
.term-scroll { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.cc-banner {
  display: inline-flex; gap: 12px; align-items: flex-start; margin-bottom: 16px;
  border: 1px solid rgba(217,119,87,.75); border-radius: 8px; padding: 9px 16px 9px 12px;
}
.cc-banner > b { color: #d97757; font-size: 15px; line-height: 1.3; }
.cc-banner div { display: flex; flex-direction: column; line-height: 1.45; }
.cc-banner strong { color: #fff; font-weight: 600; }
.cc-banner span { color: rgba(255,255,255,.5); font-size: 12px; }
.side-changes {
  width: 31%; max-width: 330px; flex: none; background: #1b1b1d; border-left: 1px solid rgba(0,0,0,.6);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px;
}
.sc-head { display: flex; align-items: center; gap: 8px; padding: 0 6px 8px; }
.sc-head b { font-size: 13px; }
.sc-count { font: 600 11px/1 var(--sans); padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); transition: background .3s; }
.sc-count.bump { background: rgba(245,184,61,.35); color: #fff; }
.sc-label { font-size: 10.5px; letter-spacing: .05em; color: rgba(255,255,255,.4); padding: 4px 6px; }
.sc-files { display: flex; flex-direction: column; gap: 2px; }
.sc-file { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; animation: pop .5s both var(--ease); }
.sc-file b { font: 700 10.5px var(--mono); width: 12px; flex: none; }
.sc-file b.m { color: var(--honey); } .sc-file b.a { color: var(--green); }
.sc-file span { overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.85); }
.sc-file small { margin-left: auto; font: 11px var(--mono); color: rgba(255,255,255,.4); flex: none; }
.sc-file:first-child { background: rgba(255,255,255,.06); }
.sc-empty { color: rgba(255,255,255,.35); font-size: 12px; padding: 6px; }
.term-lines > div { white-space: pre-wrap; min-height: 1.6em; margin-bottom: .55em; }
.term-lines > .t-sub { margin-top: -.55em; }
.t-user { color: #fff; background: rgba(255,255,255,.07); margin-left: -20px !important; margin-right: -20px; padding: 1px 20px; }
.t-user::before { content: "❯ "; color: rgba(255,255,255,.55); }
.t-gray { color: rgba(255,255,255,.48); }
.t-dot::before { content: "●  "; color: #e9e9ea; font-size: .8em; vertical-align: 1px; }
.t-ok::before { content: "●  "; color: #4ec36b; font-size: .8em; vertical-align: 1px; }
.t-tool b { color: #fff; }
.t-sub { color: rgba(255,255,255,.5); padding-left: 3ch; }
.t-add { color: #5ad37a; }
.t-del { color: #ff8a80; }
.cc-spin { color: #e07b53; margin-top: .2em; }
.cc-spin b { display: inline-block; animation: pulse 1.2s ease-in-out infinite; }
.cc-spin small { color: rgba(255,255,255,.4); font-size: 1em; }
.cc-spin[hidden] { display: none; }
.cc-input { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 0; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); color: #fff; }
.cc-caret { width: 8px; height: 15px; background: #6fbf73; animation: blink 1.1s steps(1) infinite; }
.cc-foot { flex: none; display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; font-size: 11.5px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; }
.cc-mode { color: #b392f0; overflow: hidden; text-overflow: ellipsis; }
.cc-mode small { color: rgba(255,255,255,.4); font-size: 1em; }
@keyframes pulse { 50% { opacity: .35; } }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: var(--honey); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.toast {
  position: absolute; right: 22px; top: 66px; width: min(360px, 60%);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; background: rgba(44,44,46,.82); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(-14px) scale(.98);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.toast img { width: 34px; height: 34px; border-radius: 8px; }
.toast div { display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; min-width: 0; }
.toast b { font-size: 12.5px; }
.toast span { color: rgba(255,255,255,.75); }
.toast-btn { margin-left: auto; flex: none; background: rgba(255,255,255,.12); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.window.show-toast .toast { opacity: 1; transform: none; }

/* ---------- Statement ---------- */
.statement { padding: 90px var(--gutter) 70px; text-align: center; }
.statement-inner { max-width: 1040px; margin: 0 auto; }
.scrub {
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.22; font-weight: 600; letter-spacing: -.025em;
  margin: 48px auto 0; max-width: 980px; text-align: left;
}
.scrub .w { color: rgba(246,243,236,.16); transition: color .25s linear; }
.scrub .w.on { color: var(--fg); }
.scrub .w.on.hl { color: var(--honey); }

.before-after { max-width: 1100px; margin: 110px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba { position: relative; border-radius: var(--radius); padding: 56px 28px 28px; background: var(--bg-2); border: 1px solid var(--line); min-height: 340px; overflow: hidden; }
.ba-label { position: absolute; top: 20px; left: 24px; font-size: 13px; font-weight: 600; color: var(--fg-3); letter-spacing: .02em; }
.ba-label.honey { color: var(--honey); }
.ide { display: flex; gap: 10px; height: 250px; filter: grayscale(1); opacity: .55; }
.ide i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); }
.ide-tree { width: 26%; display: flex; flex-direction: column; gap: 9px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.ide-code { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ide-tabs { display: flex; gap: 4px; }
.ide-tabs i { flex: 1; height: 16px; border-radius: 4px; }
.ide-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.ide-terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 60px; }
.ide-terms i { height: 100%; border-radius: 6px; background: rgba(255,255,255,.06); }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.ba-before::after { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 3px; background: var(--red); border-radius: 2px; transform: rotate(-8deg) scaleX(0); transform-origin: left; transition: transform 1.1s .5s var(--ease); opacity: .8; }
.before-after.in .ba-before::after { transform: rotate(-8deg) scaleX(1); }

.hive-mini { --w: 86px; --h: 98px; --g: 6px; position: relative; height: 270px; }
.hx {
  position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h);
  translate: calc(-50% + var(--x) * (var(--w) + var(--g))) calc(-50% + var(--y) * (var(--h) * .75 + var(--g)));
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #3a2f18, #241d10);
  transition: scale .6s var(--ease);
}
.hx img { width: 32px; height: 32px; }
.hx b { font: 700 18px var(--mono); color: rgba(255,255,255,.45); }
.hx-center { background: linear-gradient(160deg, #2b2a27, #141310); }
.hx-center img { width: 52px; height: 52px; border-radius: 12px; }
.hx-working { background: linear-gradient(160deg, #f8c75a, #e09a18); animation: breathe 2.6s ease-in-out infinite; }
.hx-pending { background: linear-gradient(160deg, #3ad46b, #1f9e4b); }
.hx-attention { background: linear-gradient(160deg, #ffad33, #e07800); }
.hx-idle { background: linear-gradient(160deg, #2c2416, #1e1910); }
.hx-working img, .hx-pending img, .hx-attention img { filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.hx:nth-child(4) { animation-delay: .7s; }
.hx:nth-child(7) { animation-delay: 1.4s; }
.js .before-after:not(.in) .hx { scale: .6; }
@keyframes breathe { 50% { filter: brightness(1.16); } }
img.mono { filter: invert(1); }
.hx-attention img.mono { filter: none; }

/* ---------- How (scroll con la maqueta fija) ---------- */
.how { padding: 90px var(--gutter) 40px; }
.how-head { text-align: center; max-width: 900px; margin: 0 auto 40px; }
.how-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 56px; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--ease); }
.step.active { opacity: 1; }
.step-n { font: 600 14px/1 var(--mono); color: var(--honey); margin-bottom: 18px; }
.step h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; }
.step p { margin: 0; color: var(--fg-2); font-size: 19px; line-height: 1.5; }
.how-stage { position: relative; }
.how-sticky { position: sticky; top: max(90px, calc(50vh - 300px)); }
.window-how { aspect-ratio: 16 / 11; }
.how-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.how-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.2); transition: width .4s var(--ease), background .4s; }
.how-dots i.on { width: 26px; background: var(--honey); }

.scenes { position: relative; flex: 1; background: #161618; overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 26px; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .55s var(--ease), transform .7s var(--ease); pointer-events: none; }
.window-how[data-step="1"] .scene-1, .window-how[data-step="2"] .scene-2, .window-how[data-step="3"] .scene-3,
.window-how[data-step="4"] .scene-4, .window-how[data-step="5"] .scene-5 { opacity: 1; transform: none; }

.home-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.home-head b { font-size: 24px; letter-spacing: -.02em; }
.home-head span { color: rgba(255,255,255,.55); font-size: 13.5px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { border-radius: 12px; background: #222224; border: 1px solid rgba(255,255,255,.07); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card-top { display: flex; align-items: center; gap: 8px; }
.card-top img { width: 16px; height: 16px; }
.card-top b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { margin: 0; font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.4; }
.card small { color: rgba(255,255,255,.4); font-size: 11px; }
.st { margin-left: auto; font-style: normal; font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.st-attention { color: var(--orange); }
.st-pending { color: var(--green); }
.st-working { color: var(--honey); }
.st .arc { width: 10px; height: 10px; }
.c-attention { border-color: rgba(255,159,10,.55); }
.c-pending { border-color: rgba(48,209,88,.45); }

.scene-2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.sheet { background: #252527; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); display: flex; flex-direction: column; gap: 8px; }
.sheet-title { font-size: 15px; margin-bottom: 4px; }
.sheet label { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; }
.field { display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; background: #1b1b1d; border: 1px solid rgba(245,184,61,.6); box-shadow: 0 0 0 3px rgba(245,184,61,.15); font: 12.5px var(--mono); overflow: hidden; white-space: nowrap; }
.caret { width: 1.5px; height: 15px; background: var(--honey); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.seg { display: flex; padding: 2px; border-radius: 8px; background: #1b1b1d; font-size: 11.5px; }
.seg span { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; color: rgba(255,255,255,.6); }
.seg .on { background: #3a3a3c; color: #fff; }
.sheet-note { margin: 0; font-size: 11.5px; color: rgba(255,255,255,.6); }
.check { color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.chip img { width: 12px; height: 12px; }
.chip.on { background: rgba(245,184,61,.22); border-color: rgba(245,184,61,.75); }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.btn-mock { font-size: 12px; padding: 6px 12px; border-radius: 7px; background: rgba(255,255,255,.1); }
.btn-mock.primary { background: var(--honey); color: #1a1203; font-weight: 600; }
.tree { background: #1c1c1e; border-radius: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.06); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.tree-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.tree-row.i1 { padding-left: 22px; color: rgba(255,255,255,.75); }
.tree-row .dot, .tree-row .arc { margin-left: auto; }
.tf { font-weight: 700; }
.tree-row.new { background: rgba(245,184,61,.14); color: #fff; }
.tree-row em { margin-left: auto; font-style: normal; font-size: 10.5px; color: #1a1203; background: var(--honey); border-radius: 5px; padding: 1px 6px; font-weight: 700; }
.window-how[data-step="2"] .tree-row.new { animation: pop .7s .5s both var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.scene-3 { display: grid; place-items: start end; background: radial-gradient(120% 90% at 80% 0%, rgba(245,184,61,.18), transparent 60%), linear-gradient(160deg, #23201a, #141416); }
.desk { width: min(380px, 92%); display: flex; flex-direction: column; gap: 10px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 18px; background: rgba(58,58,60,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); }
.notif img { width: 36px; height: 36px; border-radius: 9px; }
.notif-body { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; min-width: 0; flex: 1; }
.notif-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 11px; }
.notif-top b { color: rgba(255,255,255,.75); font-weight: 600; }
.notif-title { font-size: 13px; margin-top: 2px; }
.notif-body span { color: rgba(255,255,255,.82); }
.notif-actions { display: flex; gap: 6px; }
.notif-actions span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; background: rgba(58,58,60,.72); border: 1px solid rgba(255,255,255,.1); font-size: 12px; font-weight: 600; }
.notif-actions span:first-child { background: rgba(245,184,61,.9); color: #1a1203; border-color: transparent; }
.notif-2 { opacity: .78; transform: scale(.97); transform-origin: top; }
.window-how[data-step="3"] .notif:first-child { animation: drop .7s .2s both var(--ease); }
.window-how[data-step="3"] .notif-actions { animation: drop .7s .35s both var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

.switch { display: grid; grid-template-columns: 220px 1fr; gap: 18px; height: 100%; }
.switch-menu { align-self: start; background: rgba(40,40,42,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); font-size: 12.5px; }
.switch-menu small { color: rgba(255,255,255,.45); font-size: 11px; padding: 4px 8px; }
.mi { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.mi img { width: 15px; height: 15px; }
.mi.on { background: #3c6fd8; }
.mi-note { border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; padding-top: 8px !important; }
.handoff { background: var(--term); border-radius: 12px; padding: 16px; font: 12.5px/1.55 var(--mono); display: flex; flex-direction: column; gap: 12px; border: 1px solid rgba(255,255,255,.05); }
.ho-marker { text-align: center; color: var(--honey); font-size: 11.5px; position: relative; }
.ho-marker span { background: var(--term); padding: 0 10px; position: relative; }
.ho-marker::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(245,184,61,.4); }
.ho-user { color: #fff; }
.ho-user::before { content: "> "; color: var(--honey); }
.ho-agent { display: flex; gap: 8px; color: #d8d8da; }
.ho-agent img { width: 14px; height: 14px; margin-top: 3px; flex: none; }
.window-how[data-step="4"] .ho-line { animation: drop .6s both var(--ease); }
.window-how[data-step="4"] .ho-user { animation-delay: .25s; }
.window-how[data-step="4"] .ho-agent { animation-delay: .6s; }

.changes { display: grid; grid-template-columns: 220px 1fr; gap: 14px; height: 100%; }
.ch-list { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.ch-list small { font-size: 10.5px; color: rgba(255,255,255,.42); letter-spacing: .04em; padding: 8px 6px 4px; }
.ch { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; }
.ch.on { background: rgba(255,255,255,.08); }
.ch b { font: 700 10.5px var(--mono); width: 14px; }
.ch .m { color: var(--honey); } .ch .a { color: var(--green); }
.ch em { margin-left: auto; font-style: normal; font: 11px var(--mono); color: rgba(255,255,255,.45); }
.diff { background: var(--term); border-radius: 10px; padding: 12px 0; font: 12px/1.75 var(--mono); border: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; position: relative; overflow: hidden; white-space: pre; }
.dl { padding: 0 14px; color: #c9c9cc; }
.dl i { font-style: normal; color: rgba(255,255,255,.28); display: inline-block; width: 3ch; }
.dl.add { background: rgba(48,209,88,.12); color: #8fe3a5; }
.dl.del { background: rgba(255,105,97,.12); color: #ff9c95; }
.commit { margin: auto 12px 0; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; background: #1f1f21; border: 1px solid rgba(255,255,255,.08); font-family: var(--sans); font-size: 12px; white-space: nowrap; }
.commit span { flex: 1; color: rgba(255,255,255,.85); overflow: hidden; text-overflow: ellipsis; }
.commit b { background: var(--honey); color: #1a1203; padding: 6px 12px; border-radius: 7px; }

/* ---------- Agentes ---------- */
.agents { padding: 110px var(--gutter) 120px; text-align: center; }
.agent-row { max-width: 1100px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.agent { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 12px 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.agent:hover { transform: translateY(-4px); border-color: rgba(245,184,61,.35); }
.agent-logo { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(160deg, #26231d, #17150f); border: 1px solid var(--line); margin-bottom: 10px; }
.agent-logo img { width: 38px; height: 38px; }
.term-logo { font: 700 22px var(--mono); color: var(--fg-2); }
.agent b { font-size: 16px; letter-spacing: -.01em; }
.agent small { color: var(--fg-3); font-size: 13px; }
.js .agent.reveal:nth-child(2) { transition-delay: .06s; }
.js .agent.reveal:nth-child(3) { transition-delay: .12s; }
.js .agent.reveal:nth-child(4) { transition-delay: .18s; }
.js .agent.reveal:nth-child(5) { transition-delay: .24s; }

/* ---------- Funciones (bento) ---------- */
.features { padding: 60px var(--gutter) 140px; text-align: center; }
.bento { max-width: 1180px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.tile-card {
  position: relative; border-radius: 28px; padding: 32px; background: linear-gradient(180deg, #16140f, #100e0b);
  border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 26px; min-height: 340px;
}
.tile-card.span-2 { grid-column: span 2; }
.tc-copy h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.025em; line-height: 1.1; }
.tc-copy p { margin: 0; color: var(--fg-2); font-size: 16px; max-width: 460px; }

.palette { margin-top: auto; background: rgba(36,36,38,.9); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 8px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); font-size: 13px; }
.pal-field { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 6px; font-size: 16px; }
.pal-field > span:first-child { font-size: 11px; padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.pal-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; }
.pal-row.on { background: #3c6fd8; }
.pal-row img { width: 18px; height: 18px; }
.pal-row div { display: flex; flex-direction: column; min-width: 0; }
.pal-row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-row small { font-size: 11.5px; opacity: .6; }
.pal-ico { width: 18px; text-align: center; color: var(--blue); }

.usage { margin-top: auto; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ctx-gauge { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.ctx-gauge svg { width: 64px; height: 64px; flex: none; rotate: -90deg; }
.ctx-gauge circle { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 7; }
.ctx-gauge .ctx-fill { stroke: var(--honey); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s .2s var(--ease); }
.tile-card.in .ctx-gauge .ctx-fill { stroke-dasharray: 42 100; }
.ctx-gauge div { display: flex; flex-direction: column; gap: 2px; }
.ctx-gauge b { font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.ctx-gauge span { font-size: 13px; color: var(--fg-2); }
.u-row { display: grid; grid-template-columns: 18px 64px 1fr 70px 40px; align-items: center; gap: 8px; color: var(--fg-2); }
.u-row img { width: 16px; height: 16px; }
.u-row b { color: var(--fg); font-weight: 600; }
.u-row > span:nth-of-type(1) { text-align: right; font-size: 13px; }
.u-row .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.u-row .bar em { display: block; height: 100%; width: 0; border-radius: 3px; background: rgba(255,255,255,.55); transition: width 1.4s .3s var(--ease); }
.u-row .bar.hot em { background: var(--honey); }
.tile-card.in .u-row .bar em { width: var(--w); }
.u-row span:last-child { font: 600 13px var(--mono); text-align: right; color: var(--fg); }
.u-row .hot { color: var(--honey) !important; }

.hist { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.h-u { align-self: flex-end; background: rgba(245,184,61,.16); border: 1px solid rgba(245,184,61,.3); padding: 9px 13px; border-radius: 14px 14px 4px 14px; max-width: 85%; }
.h-a { background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 9px 13px; border-radius: 14px 14px 14px 4px; max-width: 92%; color: var(--fg-2); }
.h-m { text-align: center; font-size: 11.5px; color: var(--fg-3); }

.cmds { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font: 13.5px var(--mono); color: var(--fg-2); }
.cmd i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.cmd.on { color: var(--fg); }
.cmd.on i { background: var(--blue); box-shadow: 0 0 10px rgba(77,163,255,.8); animation: pulse 2s ease-in-out infinite; }

.mcp { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mcp-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; }
.mcp-row b { font: 600 13.5px var(--mono); }
.mcp-row em { font-style: normal; font-size: 12px; color: var(--fg-3); }

.tile-card.native { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
.native .tc-copy { max-width: 420px; }
.native .native-stats { flex: 1; max-width: 640px; }
.native { background: radial-gradient(120% 140% at 100% 100%, rgba(245,184,61,.18), transparent 55%), linear-gradient(180deg, #16140f, #100e0b); }
.native-stats { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.native-stats div { display: flex; flex-direction: column; gap: 4px; }
.native-stats b { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.035em; line-height: 1; }
.native-stats small { color: var(--fg-2); font-size: 14px; }

/* ---------- Descargar ---------- */
.download { position: relative; padding: 140px var(--gutter) 150px; text-align: center; overflow: clip; }
.dl-glow { position: absolute; left: 50%; top: 40px; width: 900px; height: 700px; translate: -50% 0; background: radial-gradient(closest-side, rgba(245,184,61,.28), transparent 70%); filter: blur(10px); pointer-events: none; }
.dl-icon { position: relative; margin: 0 auto 36px; border-radius: 38px; filter: drop-shadow(0 30px 60px rgba(245,184,61,.35)); }
.download .mega { position: relative; }
.dl-cta { position: relative; margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dl-meta, .dl-soon { margin: 0; color: var(--fg-3); font-size: 14px; }
.dl-soon { color: var(--honey); }
.dl-steps { position: relative; list-style: none; padding: 0; margin: 64px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.dl-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--fg-2); font-size: 15px; }
.dl-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,184,61,.16); color: var(--honey); font-size: 13px; }

/* ---------- Preguntas ---------- */
.faq { padding: 40px var(--gutter) 140px; text-align: center; }
.faq-list { max-width: 820px; margin: 48px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; font-size: 21px; font-weight: 600; letter-spacing: -.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-weight: 300; font-size: 28px; color: var(--honey); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: -8px 0 26px; color: var(--fg-2); font-size: 17px; max-width: 700px; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px var(--gutter) 44px; color: var(--fg-3); font-size: 13px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 13px; }
.foot-brand img { border-radius: 5px; }
.footer p { margin: 0; flex: 1; min-width: 260px; }
.foot-links { display: flex; gap: 18px; flex: none !important; min-width: 0 !important; }
.foot-links a:hover { color: var(--fg); }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 1080px) {
  .hide-md { display: none; }
  .agent-row { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-card.span-2 { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hide-sm { display: none; }
  .hero { padding-top: 120px; }
  .hero-stage { margin-top: 48px; padding-bottom: 60px; }
  .window { aspect-ratio: auto; height: 440px; font-size: 12px; }
  .rail { width: 54px; }
  .rail-item { width: 44px; height: 44px; border-radius: 12px; }
  .tile { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
  .tile::after { inset: -4px; border-radius: 12px; }
  .rail-add { width: 30px; height: 30px; font-size: 17px; }
  .rail-usage { display: none; }
  .tb-title { display: none; }
  .cc-foot .cc-mode { display: none; }
  .cc-banner { margin-bottom: 10px; }
  .hive-mini { --w: 70px; --h: 80px; height: 230px; }
  .term { padding: 12px 14px 6px; font-size: 11px; }
  .t-user { margin-left: -14px !important; margin-right: -14px; padding: 1px 14px; }
  .toast { right: 10px; left: 10px; width: auto; top: 60px; }
  .before-after { grid-template-columns: 1fr; margin-top: 70px; }
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { order: -1; position: sticky; top: 60px; z-index: 2; height: 380px; }
  .how-sticky { position: relative; top: 0; }
  .window-how { aspect-ratio: auto; height: 340px; }
  .how-dots { margin-top: 10px; }
  .step { min-height: 64vh; justify-content: flex-end; padding-bottom: 8vh; }
  .step h3, .step p { background: rgba(10,9,7,.86); }
  .scene { padding: 14px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:nth-child(n+3) { display: none; }
  .scene-2 { grid-template-columns: 1fr; }
  .tree { display: none; }
  .switch, .changes { grid-template-columns: 1fr; }
  .ch-list { display: none; }
  .agent-row { grid-template-columns: repeat(2, 1fr); }
  .agent:last-child { grid-column: span 2; }
  .bento { grid-template-columns: 1fr; }
  .tile-card.native { flex-direction: column; align-items: stretch; gap: 26px; }
  .tile-card.span-2 { grid-column: auto; }
  .tile-card { padding: 24px; min-height: 0; }
  .native-stats { grid-template-columns: 1fr; }
  .dl-steps { grid-template-columns: 1fr; }
  .scrub { text-align: left; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 46px; }
  .btn-small { display: none; }
  .u-row { grid-template-columns: 18px 54px 1fr 54px 38px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-stage .window { transform: none; }
  .scrub .w { color: var(--fg); }
}
