/* Landing · estética oscura tech con firma lima.
   Reglas: un solo tema (oscuro), un solo acento (lima), radios: tarjetas 20px,
   elementos internos 12px, botones y pastillas redondos del todo.
   Sin mayúsculas sostenidas en ningún texto. */

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

:root {
  --bg: #070a09;
  --bg-1: #0b100e;
  --bg-2: #111815;
  --bg-3: #17201c;
  --line: rgba(237, 241, 238, 0.08);
  --line-2: rgba(237, 241, 238, 0.14);
  --tx: #edf1ee;
  --tx-2: #a7b1ac;
  --tx-3: #808b86;
  --ac: #c8f560;
  --ac-ink: #0b1a07;
  --ac-soft: rgba(200, 245, 96, 0.12);
  --ac-line: rgba(200, 245, 96, 0.35);
  --green: #1f7a4d;
  --amber: #f2a93b;
  --err: #ff8f78;
  --r-card: 20px;
  --r-in: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ac); color: var(--ac-ink); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.ic--accent { color: var(--ac); }
.ic--ai { width: 20px; height: 20px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ac); color: var(--ac-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.anchor-alias { position: absolute; top: calc(-1 * var(--nav-h)); }

/* Tipografía */
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.h2--xl { font-size: clamp(2.3rem, 5vw, 4rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--tx-2); line-height: 1.55; max-width: 58ch; text-wrap: pretty; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Botones */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.3s var(--ease);
}
.btn .ic { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn--accent { background: var(--ac); color: var(--ac-ink); box-shadow: 0 0 0 0 rgba(200, 245, 96, 0); }
.btn--accent:hover { box-shadow: 0 8px 32px -8px rgba(200, 245, 96, 0.45); }
.btn--ghost { background: rgba(237, 241, 238, 0.05); border-color: var(--line-2); color: var(--tx); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(237, 241, 238, 0.1); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(7, 10, 9, 0.45); color: var(--tx);
  font-size: 14px; font-weight: 500; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pill .ic { width: 16px; height: 16px; }

/* Isotipo animado */
.iso { overflow: visible; }
.iso--live .iso__node { transform-box: fill-box; transform-origin: center; animation: iso-twinkle 4.8s ease-in-out infinite; }
.iso--live .iso__depot { transform-box: fill-box; transform-origin: center; animation: iso-depot 2.4s ease-in-out infinite; }
.iso--live .iso__runner { stroke-dasharray: 9 91; animation: iso-run 5s linear infinite; }
.iso__node--d1 { animation-delay: -0.4s !important; } .iso__node--d2 { animation-delay: -0.8s !important; }
.iso__node--d3 { animation-delay: -1.2s !important; } .iso__node--d4 { animation-delay: -1.6s !important; }
.iso__node--d5 { animation-delay: -2s !important; } .iso__node--d6 { animation-delay: -2.4s !important; }
.iso__node--d7 { animation-delay: -2.8s !important; } .iso__node--d8 { animation-delay: -3.2s !important; }
.iso__node--d9 { animation-delay: -3.6s !important; } .iso__node--d10 { animation-delay: -4s !important; }
.iso__node--d11 { animation-delay: -4.4s !important; }
@keyframes iso-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes iso-depot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes iso-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.nav__brand:hover .iso__edges, .footer__logo:hover .iso__edges { stroke: var(--ac); transition: stroke 0.4s; }

/* Navegación */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(7, 10, 9, 0.72); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav__inner { height: var(--nav-h); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 32px; }
.nav__brand { display: inline-flex; padding: 4px; margin-left: -4px; }
.nav__links ul { display: flex; gap: 4px; }
.nav__links a { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--tx-2); transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--tx); background: rgba(237, 241, 238, 0.06); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(237, 241, 238, 0.04); align-items: center; justify-content: center; cursor: pointer; }
.nav__burger .ic { width: 22px; height: 22px; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(7, 10, 9, 0.4); }
.lang__opt { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; border-radius: 999px; opacity: 0.55; transition: opacity 0.2s, background-color 0.2s; }
.lang__opt img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.lang__opt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang__opt:hover { opacity: 0.9; }
.lang__opt[aria-current="true"] { opacity: 1; background: rgba(237, 241, 238, 0.1); }

.menu { border-top: 1px solid var(--line); background: rgba(7, 10, 9, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 16px var(--gutter) 24px; display: grid; gap: 20px; }
.menu[hidden] { display: none; }
.menu ul { display: grid; }
.menu ul a { display: block; padding: 14px 0; font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--line); }
.lang--mobile { justify-self: start; }
.lang--mobile .lang__opt { width: auto; padding: 0 14px; gap: 8px; }
.lang--mobile .lang__opt span { position: static; width: auto; height: auto; clip: auto; font-size: 14px; }
.menu .btn { justify-self: stretch; }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 40px) 0 72px; background: #050807 url("/media/hero-poster.jpg") center / cover no-repeat; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(7, 10, 9, 0.72), rgba(7, 10, 9, 0.2) 70%, transparent),
    linear-gradient(180deg, rgba(7, 10, 9, 0.55) 0%, rgba(7, 10, 9, 0) 22%, rgba(7, 10, 9, 0) 70%, var(--bg) 100%);
}
.hero__content { display: grid; justify-items: center; text-align: center; gap: 26px; }
.hero__title { font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; max-width: 13ch; text-wrap: balance; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35); }
.hero__sub { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #c9d1cc; max-width: 46ch; line-height: 1.5; text-wrap: balance; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

/* Manifiesto con palabras que se encienden al hacer scroll */
.manifesto { padding: clamp(96px, 14vw, 180px) 0; }
.manifesto__text { font-size: clamp(1.7rem, 3.7vw, 3.1rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 550; max-width: 24ch; text-wrap: pretty; }
.mw { color: var(--tx-3); }
.mw--strong { color: var(--tx); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mw { color: rgba(237, 241, 238, 0.14); animation: mw-soft linear both; animation-timeline: view(); animation-range: cover 18% cover 42%; }
    .mw--strong { animation-name: mw-strong; }
  }
}
@keyframes mw-strong { to { color: var(--tx); } }
@keyframes mw-soft { to { color: var(--tx-3); } }

/* Agentes: bento */
.agents { padding: clamp(48px, 8vw, 120px) 0; }
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "p p d" "p p c" "i a a";
}
.agent {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; min-height: 100%;
  background: linear-gradient(180deg, var(--bg-1), var(--bg)); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  transition: border-color 0.3s;
}
.agent::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(200, 245, 96, 0.08), transparent 60%);
}
.agent:hover { border-color: var(--line-2); }
.agent:hover::before { opacity: 1; }
.agent--planner { grid-area: p; }
.agent--dispatcher { grid-area: d; }
.agent--care { grid-area: c; }
.agent--incidents { grid-area: i; }
.agent--analyst { grid-area: a; }
.agent__viz { position: relative; flex: 1; min-height: 190px; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.agent__viz--map { min-height: 340px; padding: 0; background: radial-gradient(ellipse at 50% 40%, rgba(31, 122, 77, 0.16), transparent 70%); }
.agent__body { position: relative; display: grid; gap: 10px; padding: 0 28px 28px; }
.agent h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.agent h3 .ic { color: var(--ac); width: 22px; height: 22px; }
.agent p { color: var(--tx-2); max-width: 52ch; }
.agent--planner h3 { font-size: 1.6rem; }

.status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 550; border: 1px solid var(--line-2); color: var(--tx-2); }
.status--live { color: var(--ac); border-color: var(--ac-line); background: var(--ac-soft); }
.status--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 0 var(--ac); animation: live 2s ease-out infinite; }
.status--soon { border-style: dashed; color: var(--tx-3); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(200, 245, 96, 0.6); } 100% { box-shadow: 0 0 0 7px rgba(200, 245, 96, 0); } }

.planner { width: 100%; height: 100%; }
.planner .st { fill: none; stroke: rgba(237, 241, 238, 0.05); stroke-width: 1; }
.planner .chaos { fill: none; stroke: var(--amber); stroke-opacity: 0.45; stroke-width: 1.2; stroke-dasharray: 4 5; transition: opacity 0.9s var(--ease); }
.planner .rt { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s var(--ease); }
.planner .rt--0 { stroke: var(--ac); }
.planner .rt--1 { stroke: #8fd3a8; }
.planner .rt--2 { stroke: #e9f9c4; }
.planner .stop { fill: var(--tx); transition: fill 0.6s; }
.planner .depot { fill: var(--ac); }
.planner.is-solved .stop--r0 { fill: var(--ac); }
.planner.is-solved .stop--r1 { fill: #8fd3a8; }
.planner.is-solved .stop--r2 { fill: #e9f9c4; }
.planner .halo { fill: var(--ac); opacity: 0.18; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
.planner .van { fill: #fff; filter: drop-shadow(0 0 6px var(--ac)); opacity: 0; transition: opacity 0.6s; }
.planner.is-solved .chaos { opacity: 0; }
.planner.is-solved .rt { stroke-dashoffset: 0; }
.planner.is-solved .van { opacity: 1; }
@keyframes halo { from { transform: scale(1); opacity: 0.35; } to { transform: scale(3.2); opacity: 0; } }

.feed { position: absolute; inset: 0; padding: 20px 24px; display: grid; gap: 10px; align-content: start; animation: feed 18s linear infinite; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.feed li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: var(--r-in); background: rgba(237, 241, 238, 0.035); border: 1px solid var(--line); font-size: 14px; color: var(--tx-2); }
.feed time { font-family: var(--mono); font-size: 12.5px; color: var(--ac); }
@keyframes feed { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.chat { width: 100%; display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: bubble 9s var(--ease) infinite both; }
.bubble--in { justify-self: start; background: var(--bg-3); border-bottom-left-radius: 4px; color: var(--tx); }
.bubble--out { justify-self: end; background: #1f4d36; border-bottom-right-radius: 4px; color: #e8f5ec; }
.bubble--1 { animation-delay: 1.2s; }
.bubble--2 { animation-delay: 2.4s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(10px) scale(0.98); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }

.incident { width: 100%; display: grid; gap: 10px; }
.incident p { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-in); font-size: 14px; border: 1px solid var(--line); background: rgba(237, 241, 238, 0.03); }
.incident__alert { color: #f7cf93; border-color: rgba(242, 169, 59, 0.3) !important; }
.incident__alert .ic { color: var(--amber); }
.incident__fix { color: var(--tx); }
.incident__fix .ic { color: var(--ac); }
.incident__ok { margin-left: auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ac); color: var(--ac-ink); animation: ok 3.6s var(--ease) infinite; }
.incident__ok .ic { color: var(--ac-ink); width: 14px; height: 14px; }
@keyframes ok { 0%, 40% { transform: scale(0); } 55%, 90% { transform: scale(1); } 100% { transform: scale(0); } }

.analyst { width: 100%; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: end; }
.analyst__q { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 4px; background: var(--bg-3); font-size: 14.5px; align-self: center; }
.analyst__q .ic { color: var(--ac); margin-top: 2px; }
.bars { height: 130px; display: flex; align-items: flex-end; gap: 10px; }
.bar { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(237, 241, 238, 0.12); transform-origin: bottom; transform: scaleY(0.08); transition: transform 1.2s var(--ease); }
.bar--0 { height: 42%; } .bar--1 { height: 78%; } .bar--2 { height: 55%; }
.bar--3 { height: 96%; background: linear-gradient(180deg, var(--ac), #5f9a2e); }
.bar--4 { height: 63%; } .bar--5 { height: 34%; } .bar--6 { height: 70%; }
.is-in .bar { transform: scaleY(1); }
.bar--1 { transition-delay: 0.08s; } .bar--2 { transition-delay: 0.16s; } .bar--3 { transition-delay: 0.24s; }
.bar--4 { transition-delay: 0.32s; } .bar--5 { transition-delay: 0.4s; } .bar--6 { transition-delay: 0.48s; }

/* Plataforma: centro de mando */
.platform { padding: clamp(80px, 11vw, 160px) 0; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(31, 122, 77, 0.14), transparent 70%); }
.console { max-width: 1120px; margin-inline: auto; border-radius: var(--r-card); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-1), var(--bg)); box-shadow: 0 40px 120px -40px rgba(200, 245, 96, 0.12), 0 30px 80px -30px rgba(0, 0, 0, 0.8); overflow: hidden; }
.console__bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--tx-3); }
.console__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 460px; }
.console__chat { display: grid; align-content: start; gap: 16px; padding: 28px; border-right: 1px solid var(--line); }
.msg { padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg--user { justify-self: end; max-width: 88%; background: var(--bg-3); border-bottom-right-radius: 4px; }
.msg--agent { border: 1px solid var(--ac-line); background: linear-gradient(180deg, rgba(200, 245, 96, 0.07), rgba(200, 245, 96, 0.02)); border-bottom-left-radius: 4px; display: grid; gap: 14px; }
.msg__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 550; border: 1px solid var(--line-2); color: var(--tx-2); }
.chip .ic { width: 14px; height: 14px; }
.chip--accent { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.tools { display: grid; gap: 8px; padding-left: 4px; }
.tool { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--tx-3); }
.tool__dot { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color 0.3s, border-color 0.3s; }
.tool__dot .ic { width: 11px; height: 11px; opacity: 0; color: var(--ac-ink); transition: opacity 0.3s; }
.tool.is-run { color: var(--tx); }
.tool.is-run .tool__dot { border-color: var(--ac); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.tool.is-done { color: var(--tx-2); }
.tool.is-done .tool__dot { background: var(--ac); border-color: var(--ac); }
.tool.is-done .tool__dot .ic { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.console__map { position: relative; background: #080d0b; }
.cmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmap .st { fill: none; stroke: rgba(237, 241, 238, 0.06); }
.cmap .st--main { stroke: rgba(237, 241, 238, 0.11); stroke-width: 2; }
.cmap .stop { fill: rgba(237, 241, 238, 0.6); }
.cmap .stop--urgent { fill: var(--amber); }
.cmap .stop--late { fill: none; stroke: var(--err); stroke-width: 1.5; stroke-dasharray: 2 2; }
.cmap .depot { fill: var(--ac); }
.cmap .rt { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.cmap .rt--0 { stroke: var(--ac); } .cmap .rt--1 { stroke: #8fd3a8; } .cmap .rt--2 { stroke: #e9f9c4; }
.cmap.is-drawn .rt { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease); }
.cmap.is-drawn .rt--1 { transition-delay: 0.25s; } .cmap.is-drawn .rt--2 { transition-delay: 0.5s; }
.console [data-step] { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .console:not(.is-final) [data-step]:not(.is-shown) { opacity: 0; transform: translateY(8px); }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1120px; margin: 48px auto 0; }
.points li { display: flex; gap: 14px; }
.points .ic { width: 24px; height: 24px; margin-top: 2px; }
.points h3 { font-size: 1.02rem; font-weight: 600; }
.points p { color: var(--tx-2); font-size: 15px; }

/* Cómo funciona */
.how { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.how__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.how__title { position: sticky; top: calc(var(--nav-h) + 40px); max-width: 11ch; }
.steps { position: relative; display: grid; gap: 8px; padding-left: 56px; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line-2); border-radius: 2px; }
.steps::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, var(--ac), var(--green)); border-radius: 2px; transform-origin: top; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 60%; }
  }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.step { position: relative; padding: 18px 0 44px; display: grid; gap: 10px; }
.step__icon { position: absolute; left: -56px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--ac-line); color: var(--ac); box-shadow: 0 0 0 6px var(--bg); }
.step__icon .ic { width: 20px; height: 20px; }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; }
.step p { color: var(--tx-2); font-size: 1.06rem; max-width: 48ch; }

/* Soluciones: pestañas con vista animada */
.solutions { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.sol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.sol__list { display: grid; gap: 8px; align-content: start; }
.sol__tab { position: relative; display: grid; gap: 8px; text-align: left; padding: 20px 22px; border-radius: var(--r-card); border: 1px solid transparent; background: transparent; cursor: pointer; overflow: hidden; transition: background-color 0.3s, border-color 0.3s; }
.sol__tab:hover { background: rgba(237, 241, 238, 0.03); }
.sol__tab[aria-selected="true"] { background: var(--bg-1); border-color: var(--line-2); }
.sol__tabhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sol__tabhead .ic { width: 22px; height: 22px; }
.sol__name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.sol__tabhead .status { margin-left: auto; }
.sol__text { color: var(--tx-2); font-size: 15px; line-height: 1.55; display: none; }
.sol__tab[aria-selected="true"] .sol__text { display: block; }
.sol__bar { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--ac); transform-origin: left; transform: scaleX(0); }
.sol.is-auto .sol__tab[aria-selected="true"] .sol__bar { animation: solbar var(--sol-ms, 7000ms) linear forwards; }
@keyframes solbar { to { transform: scaleX(1); } }
.sol__stage { position: relative; min-height: 420px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: radial-gradient(ellipse at 70% 20%, rgba(31, 122, 77, 0.2), transparent 60%), var(--bg-1); overflow: hidden; display: grid; }
.sol__panel { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); animation: solin 0.6s var(--ease); }
.sol__panel[hidden] { display: none; }
@keyframes solin { from { opacity: 0; transform: translateY(10px); } }

.track { width: min(100%, 380px); display: grid; gap: 14px; padding: 18px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.track__map { border-radius: var(--r-in); background: #080d0b; overflow: hidden; }
.track__road { fill: none; stroke: rgba(237, 241, 238, 0.14); stroke-width: 4; stroke-linecap: round; }
.track__done { fill: none; stroke: var(--ac); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: trackdraw 2.4s var(--ease) 0.3s forwards; }
.track__van { fill: #fff; filter: drop-shadow(0 0 8px var(--ac)); }
.track__home { fill: none; stroke: var(--ac); stroke-width: 2.5; }
@keyframes trackdraw { to { stroke-dashoffset: 0; } }
.track__eta { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; }
.track__eta .ic { color: var(--ac); }
.track__steps { display: flex; gap: 8px; font-size: 13px; }
.track__steps li { flex: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--tx-3); text-align: center; }
.track__steps .is-done { color: var(--ac-ink); background: var(--ac); border-color: var(--ac); }
.track__steps .is-next { animation: pulse-b 2s ease-in-out infinite; }
@keyframes pulse-b { 50% { border-color: var(--ac-line); color: var(--tx); } }
.track__proof { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--tx-2); padding-top: 12px; border-top: 1px solid var(--line); }
.track__proof .ic { color: var(--ac); width: 18px; height: 18px; }

.visits { width: min(100%, 440px); display: grid; gap: 10px; }
.visit { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-in); background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; opacity: 0; animation: visitin 0.6s var(--ease) forwards; }
.visit:nth-child(2) { animation-delay: 0.12s; } .visit:nth-child(3) { animation-delay: 0.24s; } .visit:nth-child(4) { animation-delay: 0.6s; }
.visit time { font-family: var(--mono); font-size: 13px; color: var(--ac); }
.visit em { font-style: normal; font-size: 13px; color: var(--tx-2); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.visit--urgent { border-color: rgba(242, 169, 59, 0.4); }
.visit--urgent time { color: var(--amber); }
@keyframes visitin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.zbe { position: relative; width: min(100%, 460px); }
.zbe svg { width: 100%; height: auto; }
.zbe__zone { fill: rgba(31, 122, 77, 0.12); stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 5 5; animation: zone 6s linear infinite; }
@keyframes zone { to { stroke-dashoffset: -60; } }
.zbe__around { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: trackdraw 2.6s var(--ease) 0.2s forwards; }
.zbe__through { fill: none; stroke: var(--ac); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: trackdraw 1.8s var(--ease) 0.9s forwards; }
.zbe__dot { fill: var(--ac); }
.zbe__dot--b { fill: var(--amber); }
.zbe__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -150%); font-size: 13px; color: #8fd3a8; white-space: nowrap; }
.zbe__legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-size: 14px; color: var(--tx-2); justify-content: center; }
.zbe__l { display: inline-flex; align-items: center; gap: 8px; }
.zbe__l::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--amber); }
.zbe__l--ev::before { background: var(--ac); }
.zbe__l .ic { color: var(--ac); width: 16px; height: 16px; }

.code { margin: 0; width: min(100%, 520px); padding: 22px 24px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--tx-2); overflow-x: auto; white-space: pre; }
.c-k { color: var(--ac); } .c-s { color: #8fd3a8; } .c-v { color: #e9f9c4; } .c-n { color: var(--amber); }

/* Sectores: marquesina (única en la página) */
.sectors { padding: 64px 0 88px; border-top: 1px solid var(--line); overflow: hidden; }
.sectors__title { text-align: center; font-size: 1.05rem; font-weight: 500; color: var(--tx-2); margin-bottom: 32px; padding-inline: var(--gutter); }
.marquee { display: flex; gap: 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; flex: none; gap: 14px; padding-right: 14px; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li { flex: none; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-1); font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; color: var(--tx-2); white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.marquee li:hover { color: var(--tx); border-color: var(--ac-line); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Confianza */
.trust { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.flow__node { padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-1); font-size: 15px; font-weight: 550; white-space: nowrap; text-align: center; }
.flow__node--ai { border-color: var(--ac-line); color: var(--ac); background: var(--ac-soft); }
.flow__node--solver { border-color: rgba(31, 122, 77, 0.6); background: rgba(31, 122, 77, 0.14); }
.flow__link { height: 2px; min-width: 24px; background: repeating-linear-gradient(90deg, var(--ac) 0 8px, transparent 8px 16px); background-size: 32px 2px; opacity: 0.6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 32px 0; } }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.pillars li { display: grid; gap: 10px; align-content: start; padding: 4px 28px 8px; border-left: 1px solid var(--line); }
.pillars li:first-child { border-left: 0; padding-left: 0; }
.pillars .ic { width: 26px; height: 26px; margin-bottom: 8px; }
.pillars h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.pillars p { color: var(--tx-2); font-size: 15px; }

/* Visión */
.vision { position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); padding: 120px 0; }
.vision__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.vision::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(7, 10, 9, 0.85), transparent 75%), linear-gradient(180deg, var(--bg), transparent 18%, transparent 82%, var(--bg)); }
.vision__content { display: grid; justify-items: center; text-align: center; gap: 24px; }
.vision__title { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; max-width: 16ch; text-wrap: balance; }

/* Preguntas */
.faq { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 550; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s; }
.qa__icon .ic { width: 16px; height: 16px; }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.qa p { color: var(--tx-2); padding: 0 48px 26px 0; max-width: 62ch; }

/* Demo y formulario */
.demo { position: relative; padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 60% at 15% 30%, rgba(200, 245, 96, 0.06), transparent 70%); }
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.demo__intro { display: grid; gap: 22px; position: sticky; top: calc(var(--nav-h) + 40px); }
.next { display: grid; gap: 14px; margin-top: 10px; }
.next li { display: flex; gap: 12px; align-items: center; color: var(--tx); }
.next .ic { width: 22px; height: 22px; }
.demo__card { border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--bg-1); padding: clamp(24px, 3.5vw, 40px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 550; color: var(--tx); }
.field__opt { color: var(--tx-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-in);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--tx); font-size: 15.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx-2) 50%), linear-gradient(135deg, var(--tx-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(237, 241, 238, 0.24); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px rgba(200, 245, 96, 0.18); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__err { color: var(--err); font-size: 13.5px; min-height: 0; }
.field__err:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--ac); }
.field--check label { font-weight: 400; color: var(--tx-2); line-height: 1.5; }
.field--check label a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ac-line); }
.field--check .field__err { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: grid; gap: 12px; margin-top: 6px; }
.form__foot .btn { justify-self: start; }
.form__status { font-size: 14px; color: var(--tx-2); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--err); }
.form__gdpr { font-size: 12.5px; line-height: 1.55; color: var(--tx-3); }
.form__gdpr a { color: var(--tx-2); text-decoration: underline; text-underline-offset: 2px; }
.form-ok { display: grid; gap: 12px; justify-items: start; padding: 12px 0; }
.form-ok[hidden] { display: none; }
.form-ok__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ac); color: var(--ac-ink); }
.form-ok__icon .ic { width: 26px; height: 26px; }
.form-ok h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.form-ok p { color: var(--tx-2); }

/* Pie */
.footer { border-top: 1px solid var(--line); background: #050706; padding: 72px 0 32px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.footer__logo { justify-self: start; }
.footer__brand p { color: var(--tx-2); line-height: 1.6; }
.footer__mail { color: var(--tx); font-weight: 500; justify-self: start; }
.footer__mail:hover { color: var(--ac); }
.footer__social, .footer__ais { display: flex; gap: 10px; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-in); border: 1px solid var(--line-2); background: rgba(237, 241, 238, 0.03); color: var(--tx); transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease); }
.iconbtn:hover { border-color: var(--ac-line); background: rgba(237, 241, 238, 0.07); transform: translateY(-2px); }
.footer__col h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--tx-2); transition: color 0.2s; }
.footer__col a:hover { color: var(--tx); }
.footer__ask { margin-top: 56px; display: grid; gap: 14px; }
.footer__ask h3 { font-size: 14.5px; font-weight: 600; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--tx-3); font-size: 13.5px; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__bottom a { color: var(--tx-2); }
.footer__bottom a:hover { color: var(--tx); }

/* Legales */
.legal { padding: calc(var(--nav-h) + 72px) 0 96px; }
.legal__wrap { max-width: 780px; display: grid; gap: 16px; }
.legal__meta { color: var(--tx-3); font-size: 14px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 600; margin-top: 24px; }
.legal p { color: var(--tx-2); }
.legal p a:not(.btn) { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ac-line); }
.legal .lead { margin-bottom: 8px; }
.pend { color: var(--amber); background: rgba(242, 169, 59, 0.1); padding: 0 6px; border-radius: 6px; }
.notfound p .btn { margin-right: 8px; margin-top: 8px; }

/* Aparición al hacer scroll (solo con JS activo) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.js .hero [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.js .hero [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__end > .lang, .nav__end > .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "p p" "d c" "i a"; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .pillars li:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .console__body { grid-template-columns: 1fr; }
  .console__map { order: -1; height: 280px; }
  .console__chat { border-right: 0; border-top: 1px solid var(--line); padding: 22px; }
  .points { grid-template-columns: 1fr; gap: 22px; }
  .how__grid, .faq__grid, .demo__grid, .sol { grid-template-columns: 1fr; }
  .sol__stage { min-height: 340px; }
  .how__title, .demo__intro { position: static; max-width: none; }
  .flow { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .flow__link { width: 2px; min-width: 0; height: 28px; background: repeating-linear-gradient(180deg, var(--ac) 0 8px, transparent 8px 16px); background-size: 2px 32px; animation-name: flow-v; }
  @keyframes flow-v { to { background-position: 0 32px; } }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "p" "d" "c" "i" "a"; }
  .agent__viz--map { min-height: 260px; }
  .analyst { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { border-left: 0; padding: 0; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol__tabhead .status { margin-left: 0; }
  .hero__ctas { flex-direction: column; align-self: stretch; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .qa p { padding-right: 0; }
  .footer__bottom { flex-direction: column; }
}

/* Movimiento reducido: todo quieto, el vídeo se queda en su póster */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero__video { display: none; }
  .marquee { overflow-x: auto; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .feed { animation: none; }
  .bubble { animation: none; opacity: 1; }
  .incident__ok { animation: none; transform: none; }
}
