/* Flow AI v2 · «Un solo cauce». Tokens → base → piezas → vistas → responsive. */

:root {
  --paper: #F3F5F0;
  --paper-2: #EBEEE7;
  --surface: #FFFFFF;
  --ink: #0B1C33;
  --ink-2: #26364D;
  --slate: #5B6577;
  --mute: #646C7C;
  --line: #DDE2DB;
  --line-2: #E8EBE5;
  --flow: #146EF5;
  --flow-ink: #0B55CC;
  --flow-soft: #E4EEFF;
  --night: #081A33;
  --night-2: #0E2548;
  --night-3: #16325C;
  --glow: #8FB8FF;
  --night-line: rgba(143, 184, 255, .2);
  --night-text: #DCE7FA;
  --night-mute: #93A7C6;
  --ok: #117A52;
  --ok-soft: #DDF3E8;
  --warn: #8A5A00;
  --warn-soft: #FFF1CC;
  --stop: #B8400F;
  --stop-soft: #FFE4D9;

  --compras: #CFE3FF; --compras-ink: #1D4E9E; --compras-dot: #5B97F0;
  --rrhh: #FFD5CA; --rrhh-ink: #9A3B22; --rrhh-dot: #EE7E62;
  --agricola: #DDF1A8; --agricola-ink: #486311; --agricola-dot: #8CB82E;
  --ingenio: #E3DCFF; --ingenio-ink: #5540A8; --ingenio-dot: #8F7BE0;
  --financiero: #FFE7AE; --financiero-ink: #7F5300; --financiero-dot: #E0A526;
  --dept: var(--flow-soft); --dept-ink: var(--flow-ink);

  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --text: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(11, 28, 51, .04), 0 6px 18px -10px rgba(11, 28, 51, .14);
  --shadow-2: 0 2px 4px rgba(11, 28, 51, .04), 0 18px 40px -18px rgba(11, 28, 51, .22);
  --shadow-float: 0 2px 6px rgba(11, 28, 51, .06), 0 30px 60px -24px rgba(11, 28, 51, .32);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
svg { display: block; }
:focus-visible { outline: 2.5px solid var(--flow); outline-offset: 3px; border-radius: 6px; }
h1:focus, main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-2); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, .display { font-family: var(--display); font-weight: 560; font-variation-settings: 'opsz' 96, 'wdth' 100; letter-spacing: -.022em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.4vw, 60px); }
h2 { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.1; letter-spacing: -.015em; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; }
.lede { font-size: clamp(16px, 1.1vw, 17px); line-height: 1.55; color: var(--slate); max-width: 58ch; text-wrap: pretty; }
.fine-print { font-size: 13px; color: var(--slate); }
.fine-print a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mute); }
.fine-print a:hover { color: var(--flow-ink); }

/* Iconos del sprite */
.ico { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; flex-shrink: 0; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; }
.ico-brand svg { stroke: none; }

/* Botones y píldoras */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.btn .ico { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 20px -10px rgba(11, 28, 51, .6); }
.btn-primary:hover:not(:disabled) { background: var(--flow); box-shadow: 0 10px 26px -10px rgba(20, 110, 245, .75); }
.btn-line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--flow-soft); }
.btn-quiet { background: transparent; color: var(--slate); min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-quiet:hover:not(:disabled) { color: var(--ink); background: rgba(11, 28, 51, .05); }
.btn-text { background: none; min-height: 36px; padding: 0 6px; color: var(--slate); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.btn-text:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn:disabled { opacity: .45; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; background: var(--pill, var(--flow-soft)); color: var(--ink); }
.tone-dept { background: var(--dept); color: var(--dept-ink); }
.tone-stop { background: var(--stop-soft); color: var(--stop); }
.tone-flag { background: var(--warn-soft); color: var(--warn); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--dept); color: var(--dept-ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; }

/* Barra superior con pestañas */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar); background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.topbar.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.topbar-inner { height: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variation-settings: 'opsz' 48; }
.brand small { font-family: var(--text); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--slate); margin-left: 2px; }
.brand-mark { width: 30px; height: 30px; color: var(--flow); }
.brand-mark path { fill: currentColor; }
.tabs { justify-self: center; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap; transition: color .2s, background .2s; }
.tabs a i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex-shrink: 0; }
.tabs a:hover { color: var(--ink); background: rgba(11, 28, 51, .045); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(11, 28, 51, .7); }
.tabs a[aria-current="page"] i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }

/* Transición entre pestañas */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }
.view[hidden] { display: none; }

/* Secciones */
.section { padding-block: clamp(56px, 7vw, 96px); }
.coverage, .why { padding-block: clamp(64px, 8vw, 116px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: clamp(28px, 3.5vw, 44px); }
.head-side { display: grid; gap: 14px; justify-items: start; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .6); }
.tag-night { color: #CFE0FF; background: rgba(143, 184, 255, .1); box-shadow: inset 0 0 0 1px var(--night-line); margin-bottom: 16px; align-self: flex-start; }
.section-head .lede { justify-self: start; }

/* ─────────── Inicio ─────────── */
.home-hero { padding-top: calc(var(--bar) + clamp(32px, 4.5vw, 64px)); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.hero-copy h1 { max-width: 18ch; font-size: clamp(34px, 4.3vw, 58px); }
.hero-side { display: grid; gap: 28px; padding-bottom: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy h1 span { display: block; color: var(--flow-ink); }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-note .ico { width: 18px; height: 18px; color: var(--flow); }
.film-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: clamp(28px, 3.5vw, 44px); font-size: 13.5px; color: var(--slate); }
.film-note .pill { background: var(--paper-2); color: var(--ink-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.film-note + .film { margin-top: 12px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 110, 245, .45); } 70% { box-shadow: 0 0 0 10px rgba(20, 110, 245, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 110, 245, 0); } }

.tools-strip { padding-block: clamp(40px, 5vw, 64px) 0; }


/* Película del inicio: del caos de hoy a una decisión aprobada */
.film { margin-top: clamp(28px, 3.5vw, 44px); }
.film-stage { position: relative; aspect-ratio: 16 / 8.6; border-radius: 28px; overflow: hidden; isolation: isolate; background: #EDF0E9; box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(11, 28, 51, .06); }
.film-bg { position: absolute; inset: 0; z-index: 0; }
.film-paper { background-color: #EDF0E9; background-image: radial-gradient(rgba(91, 101, 119, .2) .8px, transparent .9px); background-size: 18px 18px; }
.film-night { background: radial-gradient(70% 75% at 45% 55%, var(--night-3) 0%, var(--night-2) 45%, var(--night) 100%); clip-path: circle(0 at 50% 50%); }
.film-night::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 36px 36px; opacity: .28; mask-image: radial-gradient(70% 70% at 45% 55%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 45% 55%, #000, transparent); }
.film-map { position: absolute; inset: 0; z-index: 2; transform-origin: 50% 50%; }
.film-lines, .film-out { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.film-out { z-index: 7; }
.film-node, .film-bit, .film-actor, .film-hub, .film-chip, .film-idle { position: absolute; left: 0; top: 0; will-change: transform; }
.fl-tangle { fill: none; stroke: #97A098; stroke-width: 1.2; stroke-dasharray: 3 5; }
.fl-tangle.is-far { stroke: #B8BFB7; }
.fl-tangle.is-live { stroke: var(--stop); stroke-width: 1.7; stroke-dasharray: none; }
.fl-hop { fill: var(--stop); }
.fl-trib { fill: none; stroke: #5B9BFF; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(20, 110, 245, .9)); transition: stroke .4s; }
.fl-trib.is-idle { stroke: rgba(143, 184, 255, .22); filter: none; }
.fl-pulse { fill: #EAF2FF; filter: drop-shadow(0 0 6px #146EF5); }
.fl-out { fill: none; stroke: var(--glow); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(20, 110, 245, 1)); }
.film-node { z-index: 4; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-2); white-space: nowrap; transition: opacity .35s, box-shadow .3s; }
.film-node img { width: 62px; height: 42px; object-fit: cover; border-radius: 11px; background: var(--dept); mix-blend-mode: multiply; }
.film-node strong { display: block; font-size: 14px; line-height: 1.2; }
.film-node small { display: block; font-size: 12px; color: var(--slate); }
.film-node:hover, .film-node:focus-visible { box-shadow: 0 0 0 2px var(--flow), var(--shadow-2); outline: none; }
.film-node.is-idle { box-shadow: var(--shadow-1); }
.film-node.is-active { box-shadow: 0 0 0 2px #5B9BFF, 0 0 34px -6px rgba(20, 110, 245, .95); }
.film-stage.is-end .film-node { animation: node-call 2.4s var(--ease) infinite; }
@keyframes node-call { 50% { box-shadow: 0 0 0 3px rgba(91, 155, 255, .55), var(--shadow-2); } }
.film-bit { z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 8px; border-radius: 10px; background: #fff; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(11, 28, 51, .35), inset 0 0 0 1px var(--line); }
.film-bit .ico { width: 15px; height: 15px; }
.film-bit.is-hop { box-shadow: 0 0 0 1.5px var(--stop), 0 8px 18px -8px rgba(184, 64, 15, .5); }
.film-actor { z-index: 4; display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-2), 0 0 0 1.5px var(--stop); }
.film-actor-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--stop-soft); color: var(--stop); }
.film-actor-icon .ico { width: 18px; height: 18px; }
.film-actor strong { display: block; font-size: 13.5px; line-height: 1.2; }
.film-actor small { display: block; font-size: 12px; color: var(--slate); }
.film-hub { z-index: 5; display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 18px; background: linear-gradient(180deg, #2A80FF, var(--flow)); color: #fff; box-shadow: 0 0 0 1px rgba(143, 184, 255, .45), 0 0 0 calc(5px + var(--glow, 0) * 9px) rgba(20, 110, 245, .14), 0 18px 50px -10px rgba(20, 110, 245, calc(.45 + var(--glow, 0) * .55)); }
.film-hub strong { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.film-hub-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.film-hub-mark .ico { width: 20px; height: 20px; }
.film-hub-ring { position: absolute; inset: -7px; border-radius: 24px; border: 1.5px solid rgba(143, 184, 255, .7); opacity: 0; pointer-events: none; }
.film-hub.is-thinking .film-hub-ring { animation: hub-ring 1.3s ease-out infinite; }
@keyframes hub-ring { from { transform: scale(.97); opacity: .9; } to { transform: scale(1.14); opacity: 0; } }
.film-chip { z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .97); color: var(--ink); font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-2); opacity: 0; transition: opacity .35s; }
.film-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.film-chip .ico { width: 14px; height: 14px; }
.film-chip.is-on { opacity: 1; }
.film-chip.is-notice { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.film-idle { z-index: 6; font-size: 11.5px; color: var(--night-mute); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.film-idle.is-on { opacity: 1; }
.film-hud { position: absolute; left: 18px; top: 18px; z-index: 10; max-width: min(430px, 56%); pointer-events: none; }
.film-caption { display: grid; gap: 3px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-1); transition: background .5s, color .5s; }
.film-caption strong { font-size: 15px; line-height: 1.3; }
.film-caption span { font-size: 13.5px; line-height: 1.45; color: var(--slate); transition: color .5s; }
.film-caption.is-in { animation: event-in .45s var(--ease); }
.is-night .film-caption { background: rgba(8, 26, 51, .66); color: #fff; box-shadow: inset 0 0 0 1px var(--night-line); }
.is-night .film-caption span { color: var(--night-mute); }
.film-counter { position: absolute; right: 18px; top: 18px; z-index: 10; display: flex; align-items: baseline; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--display); font-size: 18px; font-weight: 600; transition: background .5s, color .5s, opacity .3s; }
.film-counter s { font-family: var(--text); font-size: 13px; font-weight: 400; color: var(--slate); }
.film-counter b { font-weight: 600; }
.film-counter b span { font-family: var(--text); font-size: 13px; font-weight: 400; color: var(--slate); }
.film-counter:not(.is-flow) b { color: var(--stop); }
.is-night .film-counter { background: rgba(8, 26, 51, .66); color: #fff; box-shadow: inset 0 0 0 1px var(--night-line); }
.is-night .film-counter s, .is-night .film-counter b span { color: var(--night-mute); }
.film-counter.is-done b { color: #9FC2FF; }
.film-cards { position: absolute; right: 2.2%; top: 17%; width: 33%; z-index: 9; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.film-proposal, .film-phone, .film-toast { box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .65); }
.film-proposal { padding: 16px 18px; border-radius: 18px; background: #fff; opacity: 0; transform: translateX(28px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.film-proposal.is-on { opacity: 1; transform: none; }
.film-card-caption { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--flow-ink); }
.film-card-caption .ico { width: 15px; height: 15px; }
.film-card-title { display: block; margin-top: 4px; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.film-evidence { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.film-evidence span { padding: 2px 8px; border-radius: 999px; background: var(--paper); font-size: 12px; color: var(--ink-2); }
.film-reasons { display: grid; gap: 4px; margin-top: 10px; }
.film-reasons li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.35; color: var(--ink-2); opacity: 0; transform: translateX(-4px); transition: opacity .35s, transform .35s; }
.film-reasons li.is-on { opacity: 1; transform: none; }
.film-reasons .ico { width: 15px; height: 15px; margin-top: 1px; color: var(--flow); }
.film-outcome, .film-approved { display: flex; align-items: center; gap: 7px; opacity: 0; transition: opacity .4s; }
.film-outcome { margin-top: 10px; padding: 7px 10px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.film-approved { margin-top: 8px; font-size: 13px; font-weight: 600; }
.film-outcome .ico, .film-approved .ico { width: 15px; height: 15px; }
.film-approved .ico { color: var(--ok); }
.has-outcome .film-outcome, .is-approved .film-approved { opacity: 1; }
.film-phone { border-radius: 18px; overflow: hidden; background: #ECE7DF; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.film-phone.is-on { opacity: 1; transform: none; }
.film-phone-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #0F5B4E; color: #fff; font-size: 13px; }
.film-phone-head .ico { width: 17px; height: 17px; background: #fff; border-radius: 50%; padding: 1px; }
.film-phone-head small { margin-left: auto; opacity: .75; }
.film-bubble { display: block; width: fit-content; max-width: 88%; margin: 10px 12px 0; padding: 8px 11px 6px; border-radius: 4px 12px 12px 12px; background: #fff; font-size: 13px; line-height: 1.38; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.film-bubble small { display: block; margin-top: 2px; text-align: right; font-size: 10.5px; color: var(--mute); }
.film-bubble.is-out { margin: 10px 12px 12px auto; border-radius: 12px 4px 12px 12px; background: #D9FDD3; font-weight: 600; color: #0E5B3A; display: none; }
.film-reply { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 8px 12px 12px; }
.film-reply-hint { font-size: 11px; color: var(--slate); }
.film-reply-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: #D9FDD3; color: #0E5B3A; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px #25D366; transition: transform .15s, background .15s; }
.film-reply-btn .ico { width: 14px; height: 14px; }
.is-pressed .film-reply-btn { transform: scale(.92); background: #BFF5B5; }
.is-sent .film-reply { display: none; }
.is-sent .film-bubble.is-out { display: block; }
.film-toast { position: absolute; left: 2.2%; bottom: 4%; z-index: 9; display: flex; align-items: center; gap: 10px; max-width: 60%; padding: 10px 16px 10px 10px; border-radius: 14px; background: #fff; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.film-toast.is-on { opacity: 1; transform: none; }
.film-toast > .ico { width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: var(--flow-soft); flex-shrink: 0; }
.film-toast strong { display: block; font-size: 13.5px; }
.film-toast small { display: block; font-size: 12px; color: var(--slate); }
.film-cursor { position: absolute; left: 0; top: 0; z-index: 12; width: 26px; height: 26px; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.film-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 14px; padding-inline: 4px; }
.film-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; transition: background .2s; }
.film-play:hover:not(:disabled) { background: var(--flow); }
.film-play .ico { width: 16px; height: 16px; }
.film-play:disabled { opacity: .35; }
.film-chapters { display: flex; gap: 6px; }
.film-chapters li { flex: var(--w) 1 0; min-width: 0; }
.film-chapters button { width: 100%; display: grid; gap: 7px; padding: 6px 0; text-align: left; font-size: 12.5px; color: var(--slate); }
.film-chapters i { display: block; height: 4px; border-radius: 4px; background: #D5DCE4; overflow: hidden; transition: background .2s; }
.film-chapters b { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.film-chapters button:hover i { background: #C2CCDA; }
.film-chapters button:hover { color: var(--ink); }
.film-chapters [aria-current="true"] { color: var(--ink); font-weight: 600; }
.film-chapters span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-time { font-size: 12.5px; color: var(--slate); font-variant-numeric: tabular-nums; }
/* Móvil: mapa arriba, tarjetas abajo, sin piezas extra */
.film-stage.is-narrow { aspect-ratio: 3 / 4.6; border-radius: 22px; }
.is-narrow .film-bit.is-extra { display: none; }
.is-narrow .film-bit { font-size: 11px; padding: 5px 8px 5px 6px; max-width: 150px; }
.is-narrow .film-bit > span { overflow: hidden; text-overflow: ellipsis; }
.is-narrow .film-node { gap: 7px; padding: 5px 10px 5px 5px; border-radius: 12px; }
.is-narrow .film-node img { width: 38px; height: 26px; border-radius: 7px; }
.is-narrow .film-node strong { font-size: 12.5px; }
.is-narrow .film-node small { display: none; }
.is-narrow .film-hub { padding: 7px 14px 7px 7px; }
.is-narrow .film-hub strong { font-size: 16px; }
.is-narrow .film-hub-mark { width: 26px; height: 26px; }
.is-narrow .film-chip { font-size: 11px; padding: 4px 9px; max-width: 250px; }
.is-narrow .film-hud { left: 10px; right: 10px; top: 10px; max-width: none; }
.is-narrow .film-caption { padding: 10px 12px; }
.is-narrow .film-caption strong { font-size: 14px; }
.is-narrow .film-caption span { font-size: 12.5px; }
.is-narrow .film-counter { top: auto; bottom: 10px; right: auto; left: 10px; font-size: 15px; padding: 6px 12px; }
.is-narrow.has-cards .film-counter { opacity: 0; }
.is-narrow .film-cards { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; gap: 8px; }
.is-narrow .film-proposal { padding: 12px 14px; }
.is-narrow .film-card-title { font-size: 16px; }
.is-narrow .film-proposal.is-compact .film-evidence, .is-narrow .film-proposal.is-compact .film-reasons { display: none; }
.is-narrow .film-proposal.is-compact .film-outcome { margin-top: 8px; }
.is-narrow .film-toast { left: 10px; right: 10px; bottom: 10px; max-width: none; }
.is-narrow .film-phone:not(.is-on) { display: none; }
.is-narrow .film-chip { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.is-narrow.has-toast .film-cards { opacity: 0; transition: opacity .4s; }
.is-narrow .film-idle { display: none; }
@media (max-width: 700px) {
  .film-chapters span { display: none; }
  .film .film-phases b { display: none; }
  .film .film-phases span { font-size: 11px; }
  .film-controls { gap: 12px; }
}

/* Película · fase de análisis y detección */
.film-scan { position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 2px; opacity: 0; pointer-events: none; background: linear-gradient(transparent, var(--flow) 12%, var(--flow) 88%, transparent); box-shadow: 0 0 18px 3px rgba(20, 110, 245, .35); }
.film-scan::before { content: ''; position: absolute; top: 0; bottom: 0; right: 2px; width: 140px; background: linear-gradient(90deg, transparent, rgba(20, 110, 245, .09)); }
.film-scan > span { position: absolute; bottom: 12%; left: 8px; width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; background: var(--flow); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(20, 110, 245, .9); }
.film-scan .ico { width: 15px; height: 15px; }
.film-flow { position: absolute; left: 0; top: 0; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--dot), 0 1px 3px rgba(11, 28, 51, .15); transition: background .3s, box-shadow .3s; }
.film-flow.is-ok { background: #D7EEDF; box-shadow: inset 0 0 0 2px #3E9B6E; }
.film-flow.is-warn { background: var(--warn-soft); box-shadow: inset 0 0 0 2px #E0A526; }
.film-flow.is-crit { background: var(--stop); box-shadow: 0 0 0 4px rgba(184, 64, 15, .18); }
.film-flow.is-dim { background: #E4E7E2; box-shadow: inset 0 0 0 2px #CBD0C8; }
.film-flow.is-selected { box-shadow: 0 0 0 4px rgba(184, 64, 15, .3), 0 0 0 11px rgba(184, 64, 15, .1); }
.film-flabel { position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .96); font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-1); transition: color .3s, filter .3s; }
.film-flabel i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); transition: background .3s; }
.film-flabel.is-crit { color: var(--stop); font-weight: 600; }
.film-flabel.is-crit i { background: var(--stop); }
.film-flabel.is-dim { filter: opacity(.35); }
.fl-link { fill: none; stroke: #7C93B6; stroke-width: 1.3; }
.fl-link.is-key { stroke: var(--stop); stroke-width: 1.8; }
.fl-chain { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.fl-dep { fill: none; stroke: #9AA5B4; stroke-width: 1.3; }
.film-step, .film-dep, .film-trace-title, .film-finding { position: absolute; left: 0; top: 0; z-index: 5; white-space: nowrap; will-change: transform; }
.film-step { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 7px; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.film-step b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--stop-soft); color: var(--stop); font-size: 11px; }
.film-step .ico { display: none; }
.film-dep { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #F7F8F5; font-size: 11.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.film-dep i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.film-trace-title { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--stop); color: #fff; font-size: 13px; font-weight: 600; }
.film-trace-title i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.film-finding { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--stop-soft); color: var(--stop); font-size: 13.5px; font-weight: 600; }
.film-finding .ico { width: 16px; height: 16px; }
.film-counter.is-pre b { color: var(--ink); }
.is-narrow .film-flow { width: 7px; height: 7px; }
.is-narrow .film-step { font-size: 11.5px; padding: 5px 10px 5px 5px; }
.is-narrow .film-step b { width: 17px; height: 17px; font-size: 10px; }
.is-narrow .film-scan > span { bottom: 20%; }
.film-track { min-width: 0; display: grid; gap: 4px; }
.film-phases { display: flex; gap: 6px; }
.film-phases span { flex: var(--w) 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; }
.film-phases b { display: grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; }

/* Película · ejecución sobre el flujo trazado */
.fl-chain.is-broken { stroke: #A8B0A7; stroke-width: 1.4; stroke-dasharray: 4 6; }
.fl-dep.is-broken { stroke: #BCC3BA; stroke-dasharray: 3 5; }
.fl-cauce { fill: none; stroke: #5B9BFF; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(20, 110, 245, .95)); }
.fl-cauce.is-shortcut { stroke: #6EE7B7; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(16, 185, 129, .9)); }
.fl-trib.is-hub { stroke: rgba(143, 184, 255, .7); stroke-width: 1.6; filter: none; }
.film-step.is-live { box-shadow: 0 0 0 1.5px rgba(91, 155, 255, .8), 0 10px 26px -12px rgba(20, 110, 245, .8); }
.film-step.is-muted { background: #C3CCD9; color: #56627A; box-shadow: none; }
.film-step.is-muted b { background: #AEB9C9; color: #56627A; }
.film-dep.is-muted { background: #C3CCD9; color: #56627A; box-shadow: none; }
.film-stage:not(.is-night) .film-step.is-muted, .film-stage:not(.is-night) .film-dep.is-muted { background: #E4E7E2; color: var(--mute); }
.film-step.is-skipped > span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.film-dep.is-broken { background: transparent; box-shadow: inset 0 0 0 1px #CBD0C8; color: var(--mute); }
.film-skip { position: absolute; left: 0; top: 0; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; background: #D1FAE5; color: #065F46; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; box-shadow: 0 8px 22px -10px rgba(16, 185, 129, .8); }
.film-skip .ico { width: 15px; height: 15px; }
.film-stage:not(.is-narrow) .film-cards { left: 2.2%; right: 35%; top: auto; bottom: 3.5%; width: auto; flex-direction: row; align-items: flex-end; gap: 12px; }
.film-stage:not(.is-narrow) .film-proposal { flex: 1.25 1 0; min-width: 0; }
.film-stage:not(.is-narrow) .film-phone { flex: 1 1 0; min-width: 0; }
.film-stage:not(.is-narrow) .film-toast { left: auto; right: 2.2%; bottom: 3.5%; width: 31%; max-width: none; }
.is-narrow .film-cards { flex-direction: column; }

/* Herramientas: franja que avanza sola y se desplaza a mano */
.tools-strip { padding-block: clamp(36px, 4.5vw, 56px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.tools-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.tools-head h2 { font-family: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0; font-variation-settings: normal; color: var(--ink); }
.tools-head p { font-size: 13.5px; color: var(--slate); }
.tools-scroller { overflow-x: auto; scrollbar-width: none; cursor: grab; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tools-scroller::-webkit-scrollbar { display: none; }
.tools-scroller.is-dragging { cursor: grabbing; user-select: none; }
.tools-scroller:focus-visible { outline-offset: -3px; }
.tools-track { display: flex; gap: 12px; width: max-content; padding: 4px 12px 8px; }
.tools-track li { display: flex; align-items: center; gap: 12px; width: 300px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.tool-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--paper); flex-shrink: 0; }
.tool-logo .ico { width: 24px; height: 24px; }
.tools-track strong { display: block; font-size: 15px; }
.tools-track small { display: block; font-size: 13px; line-height: 1.4; color: var(--slate); }

/* Bento: cómo decide Flow AI */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; min-height: 250px; }
.cell h3 { font-size: 18px; }
.cell > p { color: var(--slate); font-size: 15px; max-width: 46ch; }
.cell-context { grid-column: span 4; background: var(--night); color: var(--night-text); box-shadow: none; }
.cell-context > p { color: var(--night-mute); }
.cell-limits { grid-column: span 2; }
.cell-models, .cell-human, .cell-channels { grid-column: span 2; }
.cell-record { grid-column: span 6; flex-direction: row; align-items: center; gap: 12px 32px; min-height: 0; flex-wrap: wrap; }
.cell-record h3 { flex-shrink: 0; }
.cell-record > p:not(.viz-record) { flex: 1 1 320px; }
.viz-context { position: relative; margin-top: auto; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: repeat(4, auto); align-items: center; column-gap: 0; row-gap: 8px; padding-top: 22px; }
.viz-context .src { grid-column: 1; justify-self: start; padding: 7px 12px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--pill) 18%, transparent); color: #E9F0FF; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pill) 45%, transparent); }
.viz-context > svg { grid-column: 2; grid-row: 1 / 5; width: 100%; height: 100%; min-width: 80px; }
.viz-context path { fill: none; stroke: var(--glow); stroke-width: 1.4; opacity: .7; stroke-dasharray: 3 5; animation: flowdash 1.6s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -16; } }
.viz-context .out { grid-column: 3; grid-row: 1 / 5; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--flow); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 0 0 1px rgba(143, 184, 255, .4), 0 12px 32px -8px rgba(20, 110, 245, .9); }
.viz-context .out .ico { width: 18px; height: 18px; }
.viz-limits, .viz-models { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.viz-limits li, .viz-models li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--paper); font-size: 13.5px; }
.viz-limits b, .viz-models b { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.viz-limits .yes { background: var(--ok-soft); color: var(--ok); }
.viz-limits .wait { background: var(--warn-soft); color: var(--warn); }
.viz-limits .no { background: var(--stop-soft); color: var(--stop); }
.viz-models b { background: var(--flow-soft); color: var(--flow-ink); }
.viz-chain { margin-top: auto; padding-top: 18px; display: grid; gap: 0; }
.viz-chain li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--slate); }
.viz-chain li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 33px; height: 14px; border-left: 1.5px solid var(--line); }
.viz-chain i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--slate); background: #fff; }
.viz-chain i .ico { width: 14px; height: 14px; }
.viz-chain .is-done { color: var(--ink); }
.viz-chain .is-done i { background: var(--ok); color: #fff; box-shadow: none; }
.viz-chain .is-current { color: var(--flow-ink); font-weight: 600; }
.viz-chain .is-current i { box-shadow: inset 0 0 0 2px var(--flow); color: var(--flow-ink); }
.viz-channels { margin-top: auto; display: flex; gap: 12px; padding-top: 18px; }
.viz-channels .ico { width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--paper); }
.viz-record { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--flow-soft); color: var(--flow-ink); font-size: 14px; font-weight: 500; }
.viz-record .ico { width: 22px; height: 22px; }

/* Por qué Flow AI (lienzo de la v1, con piel nueva) */
.why-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-panel { padding: 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; }
.why-panel.is-nax { background: var(--night); color: var(--night-text); box-shadow: none; }
.why-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.why-label h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.why-label span { font-size: 13px; color: var(--slate); }
.is-nax .why-label span { color: var(--night-mute); }
.why-stage { position: relative; aspect-ratio: 3 / 2; margin: 16px 0 12px; border-radius: 16px; background: var(--paper); }
.is-nax .why-stage { background: radial-gradient(90% 70% at 50% 45%, var(--night-3) 0%, var(--night-2) 60%, var(--night) 100%); box-shadow: inset 0 0 0 1px var(--night-line); }
.why-stage .connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.why-stage .edge { stroke: #A9B1AA; stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; fill: none; }
.why-depts { position: absolute; z-index: 2; left: 2%; right: 2%; top: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 5px; }
.why-dept { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.why-dept .pill { font-size: 11px; padding: 2px 8px; }
.why-dept > small { font-size: 11px; color: var(--night-mute); line-height: 1.2; }
.why-dept.is-active > .pill { box-shadow: 0 0 0 1.5px var(--glow); }
.why-dept.is-active > small { color: var(--glow); font-weight: 600; }
.tool-chip { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 9px; font-size: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.tool-chip .ico { width: 15px; height: 15px; }
.why-ia { position: static; transform: none; width: 100%; max-width: 116px; justify-content: center; padding: 6px 5px; gap: 5px; font-size: 11px; line-height: 1.2; white-space: normal; color: var(--ink-2); }
.why-ia b { font-weight: 500; }
.is-nax .why-tool { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--night-line); color: var(--night-text); }
.is-nax .why-tool .ico-brand { background: #fff; border-radius: 4px; padding: 1.5px; }
.why-note { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 7px; font-size: 11.5px; color: var(--slate); background: #fff; box-shadow: 0 1px 4px rgba(11, 28, 51, .08); white-space: nowrap; }
.why-note-reverse { flex-direction: row-reverse; padding: 3px 3px 3px 8px; }
.why-note i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px dashed #8B939E; font: 600 11px/1 var(--text); font-style: normal; color: #6A727F; }
.why-compact .why-note { display: none; }
.why-hub { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 9px; padding: 12px 13px 16px; border-radius: 14px; background: linear-gradient(180deg, #2A80FF, var(--flow)); color: #fff; box-shadow: 0 0 0 1px rgba(143, 184, 255, .35), 0 16px 40px -10px rgba(20, 110, 245, .8); }
.why-hub-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .18); flex-shrink: 0; }
.hub-mark .ico { width: 20px; height: 20px; }
.why-hub strong { display: block; font-size: 14.5px; line-height: 1.2; }
.why-hub small { display: block; margin-top: 2px; font-size: 11px; color: rgba(255, 255, 255, .8); }
.why-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.why-pills > span { padding: 3px 9px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 500; color: var(--flow-ink); white-space: nowrap; }
.why-buyer { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--night-line); }
.why-buyer .ico { width: 22px; height: 22px; color: var(--glow); }
.why-buyer strong { font-size: 12px; line-height: 1.2; }
.why-buyer small { font-size: 11px; color: var(--night-mute); }
.is-nax .why-stage .edge[data-kind="blue"] { stroke: var(--glow); stroke-width: 1.4; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.why-stage .why-fade, .why-stage .edge { opacity: 0; }
@keyframes why-in { to { opacity: 1; } }
@keyframes why-draw { to { stroke-dashoffset: 0; } }
.why-stage.why-on .why-fade { animation: why-in .34s ease forwards; animation-delay: calc(var(--t, 0s) + var(--i, 0) * .045s); }
.why-stage.why-on .edge { animation: why-in .38s ease forwards; animation-delay: calc(var(--t, 0s) + .55s + var(--i, 0) * .055s); }
.why-stage.why-on .edge[data-kind="blue"] { animation: why-in .2s ease forwards, why-draw .5s ease forwards; animation-delay: calc(var(--t, 0s) + .55s + var(--i, 0) * .055s); }
.why-stage.why-done .why-fade, .why-stage.why-done .edge { opacity: 1; animation: none; }
.why-stage.why-done .edge[data-kind="blue"] { stroke-dashoffset: 0; }
#why-nax-stage { --t: 1.35s; }
.why-result { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--slate); }
.why-result strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.is-nax .why-result { border-top-color: var(--night-line); color: var(--night-mute); }
.is-nax .why-result strong { color: #fff; }
.reasons { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reasons li { padding: 24px 0 0; border-top: 1.5px solid var(--ink); }
.reasons h3 { font-size: 17px; margin-bottom: 8px; }
.reasons p { color: var(--slate); font-size: 15px; }

/* Datos de mercado (externos, con su estudio) */
.market { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.market li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 22px; padding: 22px 26px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.market b { grid-row: span 2; font-family: var(--display); font-size: clamp(40px, 4vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--flow-ink); }
.market p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.market a { justify-self: start; font-size: 12.5px; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.market a:hover { color: var(--flow-ink); text-decoration-color: currentColor; }

/* Niveles de madurez */
.levels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.levels-list { display: grid; gap: 8px; align-content: start; }
.levels-list button { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: start; gap: 4px 14px; padding: 16px 18px; border-radius: var(--r-lg); text-align: left; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, box-shadow .2s; }
.levels-list button:hover { background: #fff; }
.levels-list button[aria-selected="true"] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-1); }
.levels-list button.is-ai[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--flow), 0 12px 30px -16px rgba(20, 110, 245, .7); }
.level-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
[aria-selected="true"] > .level-n { background: var(--ink); color: #fff; }
.is-ai > .level-n { background: var(--flow-soft); color: var(--flow-ink); }
.is-ai[aria-selected="true"] > .level-n { background: var(--flow); color: #fff; }
.level-copy strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.level-copy small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--slate); }
.level-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--flow-soft); color: var(--flow-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.level-tag .ico { width: 14px; height: 14px; }
.levels-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s; }
.levels-panel.is-night { background: radial-gradient(90% 90% at 30% 20%, var(--night-3) 0%, var(--night-2) 45%, var(--night) 100%); color: var(--night-text); box-shadow: none; }
.level-case { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--compras); color: var(--compras-ink); font-size: 12.5px; font-weight: 600; }
.level-case .ico { width: 15px; height: 15px; }
.is-night .level-case { background: rgba(143, 184, 255, .12); color: var(--glow); }
.levels-panel h3 { font-family: var(--display); font-size: clamp(21px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.is-night h3 { color: #fff; }
.level-path { display: grid; gap: 12px; margin-top: 4px; }
.level-path li { position: relative; display: flex; align-items: center; gap: 9px; width: fit-content; padding: 8px 13px 8px 10px; border-radius: 12px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.level-path li + li::before { content: ''; position: absolute; left: 19px; top: -13px; height: 12px; border-left: 1.5px dashed #A9B1AA; }
.level-path .ico { width: 17px; height: 17px; }
.level-path .is-stop { background: var(--stop-soft); color: var(--stop); font-weight: 600; }
.level-path .is-ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.is-night .level-path li:not(.is-ok) { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px var(--night-line); }
.is-night .level-path li + li::before { border-left: 1.5px solid var(--glow); }
.is-night .level-path .ico-brand { background: #fff; border-radius: 5px; padding: 1px; }
.level-link { margin-top: auto; padding-inline: 0; }
.is-night .level-link { color: var(--night-mute); text-decoration-color: var(--night-line); }
.is-night .level-link:hover { color: #fff; }

/* Cómo trabajamos */
.method { background: var(--surface); border-block: 1px solid var(--line); }
.method-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.method-steps li { position: relative; display: grid; gap: 8px; align-content: start; }
.method-steps li:not(:last-child)::after { content: ''; position: absolute; top: 19px; left: 50px; right: -14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--flow), var(--glow)); }
.method-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%; background: var(--flow); color: #fff; font-family: var(--display); font-size: 17px; font-weight: 600; box-shadow: 0 0 0 5px var(--flow-soft); }
.method-steps h3 { font-size: 17px; }
.method-steps p { color: var(--slate); font-size: 15px; }
.method-out { display: flex; align-items: center; gap: 12px; margin-top: clamp(28px, 3.5vw, 40px); padding: 16px 20px; border-radius: var(--r-lg); background: var(--night); color: var(--night-text); font-size: 15.5px; }
.method-out strong { color: #fff; }
.method-out .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--flow); color: #fff; }

/* Detrás de Flow AI */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-grid li { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.team-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: var(--flow-soft); color: var(--flow-ink); }
.team-icon .ico { width: 24px; height: 24px; }
.team-grid h3 { font-size: 18px; }
.team-grid p { color: var(--slate); font-size: 15px; }

/* Llamada a la acción */
.cta-band { position: relative; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
.cta-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 0%, rgba(8, 26, 51, .92) 38%, rgba(8, 26, 51, .35) 70%, rgba(8, 26, 51, .1) 100%); }
.cta-inner { padding-block: clamp(80px, 10vw, 140px); display: grid; gap: 24px; justify-items: start; }
.cta-inner h2 { max-width: 20ch; color: #fff; }
.cta-inner p { max-width: 46ch; color: #B9C8E2; font-size: 17px; }

/* Pie */
.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 48px; padding-block: 48px 40px; }
.footer-brand p { margin-top: 12px; max-width: 40ch; color: var(--slate); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; justify-content: flex-end; font-weight: 500; }
.footer-nav a:hover { color: var(--flow-ink); }
.footer-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--slate); }
.footer-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ─────────── Departamento ─────────── */
.dept-hero { padding-top: calc(var(--bar) + clamp(36px, 5vw, 64px)); padding-bottom: clamp(56px, 7vw, 96px); }
.dept-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(28px, 3.5vw, 44px); }
.dept-head h1 { font-size: clamp(32px, 3.9vw, 52px); max-width: 16ch; }
.dept-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--dept); color: var(--dept-ink); font-size: 15px; font-weight: 600; }
.dept-badge > span:last-child { font-weight: 500; padding-left: 10px; border-left: 1px solid color-mix(in srgb, var(--dept-ink) 25%, transparent); }
.dept-badge-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.dept-badge-icon .ico { width: 18px; height: 18px; }
.dept-head-side { display: grid; gap: 20px; padding-bottom: 6px; }
.dept-owner { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.dept-owner small { display: block; font-size: 12px; color: var(--slate); }

/* Pestañas de escenario */
.scenario-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 14px; border-radius: 18px; background: var(--paper-2); overflow-x: auto; scrollbar-width: none; }
.scenario-tabs::-webkit-scrollbar { display: none; }
.scenario-tabs button { flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: max-content; padding: 11px 16px 11px 11px; border-radius: 13px; font-size: 14.5px; font-weight: 500; color: var(--slate); text-align: left; transition: background .2s, color .2s, box-shadow .2s; }
.scenario-tabs button:hover { color: var(--ink); }
.scenario-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.tab-index { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; font-size: 12.5px; font-weight: 700; background: rgba(11, 28, 51, .07); }
[aria-selected="true"] > .tab-index { background: var(--dept); color: var(--dept-ink); }

/* El antes / después: papel a la izquierda, noche a la derecha */
.side-switch { display: none; }
.cta-short { display: none; }
.compare-panels { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-float); transition: opacity .25s; }
.compare-panels.is-swapping { opacity: .35; transition: none; }
.side { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px 28px 24px; }
.side-before { background-color: #EDF0E9; background-image: radial-gradient(rgba(91, 101, 119, .18) .8px, transparent .9px); background-size: 16px 16px; }
.side-after { background: radial-gradient(110% 70% at 50% 0%, var(--night-3) 0%, var(--night-2) 42%, var(--night) 100%); color: var(--night-text); }
.side-after::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 32px 32px; opacity: .22; mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent); }
.side > * { position: relative; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.side-title { font-size: 25px; letter-spacing: -.02em; }
.side-after .side-title { color: #fff; }
.side-note { font-size: 13px; color: var(--slate); }
.side-after .side-note { color: var(--night-mute); }
.side-event { margin-top: 14px; display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 14.5px; }
.side-event .pill { flex-shrink: 0; }
.side-after .side-event .tone-dept { background: rgba(143, 184, 255, .16); color: #CFE0FF; }
.side-after .side-event .tone-flag { background: rgba(255, 212, 120, .16); color: #FFD98A; }
.event-text { min-width: 0; }
.side-event.in { animation: event-in .45s var(--ease); }
@keyframes event-in { from { opacity: 0; transform: translateY(6px); } }
.stage { position: relative; height: 216px; margin-top: 12px; }
.stage .edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tool { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 9px; border-radius: 10px; font-size: 13px; font-weight: 500; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px -2px rgba(11, 28, 51, .1); white-space: nowrap; transition: opacity .2s, box-shadow .2s, background .2s; }
.tool .ico { width: 17px; height: 17px; }
.stage-after .tool { background: rgba(255, 255, 255, .07); color: var(--night-text); box-shadow: inset 0 0 0 1px var(--night-line); }
.stage-after .tool .ico-brand, .stage-after .tool .ico { background: #fff; border-radius: 4px; padding: 1.5px; color: var(--ink); }
.stage.has-focus .tool:not(.is-lit) { opacity: .35; }
.stage-before .tool.is-lit { box-shadow: inset 0 0 0 1.5px var(--ink); }
.stage-after .tool.is-lit { box-shadow: inset 0 0 0 1.5px var(--glow), 0 0 18px -4px rgba(20, 110, 245, .9); }
.actor { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; padding: 9px 14px 9px 9px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; }
.actor-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--dept); color: var(--dept-ink); }
.actor-icon .ico { width: 18px; height: 18px; }
.side-before.is-finished .actor { box-shadow: var(--shadow-2), 0 0 0 1.5px var(--stop); }
.spoke { stroke: #C3CAC1; stroke-width: 1; stroke-dasharray: 2 5; fill: none; }
.spoke.is-lit { stroke: var(--ink); stroke-dasharray: none; }
.jump-path { stroke: #8E978D; stroke-width: 1.2; stroke-dasharray: 3 5; fill: none; opacity: 0; transition: opacity .3s; }
.jump-path.is-done { opacity: .55; }
.jump-path.is-current { opacity: 1; stroke: var(--stop); stroke-width: 1.6; stroke-dasharray: none; }
.dot-before { fill: var(--stop); }
.feed { stroke: rgba(143, 184, 255, .28); stroke-width: 1.3; fill: none; transition: stroke .3s; }
.is-listening .feed, .feed.is-lit { stroke: #5B9BFF; filter: drop-shadow(0 0 3px rgba(20, 110, 245, .9)); }
.proposal { stroke: rgba(143, 184, 255, .35); stroke-width: 2; fill: none; color: var(--glow); }
.is-proposing .proposal { stroke: var(--glow); filter: drop-shadow(0 0 4px rgba(20, 110, 245, 1)); }
.proposal-label { font: 500 12px var(--text); fill: var(--night-mute); }
.dot-feed, .dot-proposal { fill: #DCE9FF; filter: drop-shadow(0 0 5px #146EF5); }
.hub { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 16px; background: linear-gradient(180deg, #2A80FF 0%, var(--flow) 100%); color: #fff; box-shadow: 0 0 0 1px rgba(143, 184, 255, .45), 0 0 0 7px rgba(20, 110, 245, .12), 0 14px 44px -8px rgba(20, 110, 245, .95); }
.hub strong { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.hub-watch { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--night-mute); white-space: nowrap; }
.hub-watch i { width: 7px; height: 7px; border-radius: 50%; background: #5B9BFF; animation: pulse 1.8s infinite; }
.hub-watch em { font-style: normal; }
.hub-flag { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: #FFD98A; color: #4A3200; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(255, 217, 138, .7); }
.hub-watch[hidden], .hub-flag[hidden] { display: none; }

.jumps { margin-top: 12px; display: grid; gap: 2px; }
.jumps li { display: grid; grid-template-columns: 24px 96px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 30px; font-size: 13.5px; opacity: .22; transition: opacity .35s; }
.jumps li.is-shown { opacity: 1; }
.jump-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11.5px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--slate); }
.jumps li.is-done .jump-num { background: #DCE1D9; box-shadow: none; }
.jumps li.is-current .jump-num { background: var(--stop); color: #fff; box-shadow: 0 0 0 4px rgba(184, 64, 15, .14); }
.jump-tool { display: flex; align-items: center; gap: 6px; min-width: 0; }
.jump-tool .ico { width: 15px; height: 15px; }
.jump-tool b { font-weight: 600; }
.jump-act { color: var(--ink-2); line-height: 1.35; }
.handoff { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 22px; font-size: 13.5px; font-weight: 500; color: var(--stop); opacity: 0; transition: opacity .4s; }
.handoff .ico { width: 16px; height: 16px; }
.handoff.is-shown { opacity: 1; }

.decision { margin-top: 10px; padding: 18px 20px 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); opacity: .62; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.decision.is-ready { opacity: 1; transform: none; }
.decision-caption { display: block; font-size: 12.5px; color: var(--flow-ink); font-weight: 600; }
.decision-title { display: block; margin-top: 4px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.decision-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.decision-evidence span { padding: 3px 9px; border-radius: 999px; background: var(--paper); font-size: 12.5px; color: var(--ink-2); }
.decision-reasoning { margin-top: 12px; display: grid; gap: 5px; }
.decision-reasoning li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); opacity: 0; transform: translateX(-4px); transition: opacity .35s, transform .35s; }
.decision-reasoning li.is-shown { opacity: 1; transform: none; }
.decision-reasoning .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--flow); }
.decision-reasoning .is-approval { color: var(--ink); font-weight: 600; }
.decision-reasoning .is-approval .ico { color: var(--ok); }
.decision-outcome { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity .4s; }
.decision-outcome .ico { width: 16px; height: 16px; }
.decision.is-complete .decision-outcome { opacity: 1; }

.side-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.side-before .side-foot { border-top: 1px solid rgba(11, 28, 51, .08); margin-top: 14px; }
.side-after .side-foot { border-top: 1px solid var(--night-line); margin-top: 14px; }
.counter { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variation-settings: 'opsz' 72; }
.counter span { font-family: var(--text); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--slate); }
.side-after .counter { color: #fff; }
.side-after .counter span { color: var(--night-mute); }
.outcome { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); opacity: 0; transition: opacity .4s; }
.outcome .ico { width: 16px; height: 16px; }
.outcome.is-shown { opacity: 1; }
.outcome.tone-stop { color: var(--stop); font-weight: 600; background: none; }

.compare-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.deltas { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.deltas div { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.deltas dt { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; }
.deltas dd { font-weight: 600; color: var(--flow-ink); }
.deltas dd::before { content: ''; display: inline-block; width: 16px; height: 1.5px; margin-right: 10px; vertical-align: middle; background: var(--mute); }
.play .play-icon .ico { width: 16px; height: 16px; }

/* Proceso */
.flow-board { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: auto; column-gap: 58px; row-gap: 52px; padding: 36px 30px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.flow-board > .edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: #A3ACA5; }
.flow-step { grid-row: 2; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 4px 14px -8px rgba(11, 28, 51, .18); text-align: left; transition: opacity .2s, box-shadow .2s; }
.flow-step strong { font-size: 14.5px; line-height: 1.2; }
.flow-step-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--dept); color: var(--dept-ink); }
.flow-step-icon .ico { width: 20px; height: 20px; }
.flow-step-chip { font-size: 12px; color: var(--slate); }
.flow-step.is-lit { box-shadow: inset 0 0 0 1.5px var(--flow), 0 10px 26px -12px rgba(20, 110, 245, .6); }
.flow-dep { position: relative; z-index: 1; justify-self: center; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; line-height: 1.2; transition: opacity .2s, box-shadow .2s; width: max-content; max-width: 170px; }
.flow-dep.is-top { grid-row: 1; }
.flow-dep.is-bottom { grid-row: 3; }
.flow-dep strong { display: block; font-weight: 600; }
.flow-dep small { display: block; font-size: 11.5px; color: var(--slate); }
.dot-dept { width: 10px; height: 10px; border-radius: 3px; background: var(--dot); flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(11, 28, 51, .1); }
.flow-dep.is-lit { box-shadow: inset 0 0 0 1.5px var(--flow); background: var(--flow-soft); }
.flow-board.has-focus .flow-step:not(.is-lit), .flow-board.has-focus .flow-dep:not(.is-lit) { opacity: .35; }
.flow-edge { fill: none; stroke: #B3BBB4; stroke-width: 1.3; }
.flow-edge.is-dep { stroke-dasharray: 3 4; }
.flow-edge.is-lit { stroke: var(--flow); }
.flow-verb { font: 500 11.5px var(--text); fill: var(--slate); }
.flow-status { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 18px; }
.flow-issue { font-size: 16px; color: var(--slate); min-height: 26px; }
.flow-issue b { color: var(--ink); }
.flow-evidence { display: flex; gap: 28px; }
.flow-evidence div { display: flex; align-items: baseline; gap: 8px; }
.flow-evidence dt { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.flow-evidence dd { font-size: 14px; color: var(--slate); }

/* Hallazgos */
.findings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 16px; }
.lead-metric { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-xl); background: var(--dept); color: var(--dept-ink); }
.lead-metric h3 { font-size: 17px; color: var(--ink); }
.lead-value { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.lead-value strong { font-family: var(--display); font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -.035em; line-height: .9; color: var(--ink); }
.lead-value span { font-size: 16px; color: var(--ink-2); }
.lead-note { margin-top: 10px; color: var(--ink-2); }
.lead-route { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.lead-route i { flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px); opacity: .5; }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.metrics .metric { grid-column: span 2; }
.metrics .metric:nth-child(n + 4) { grid-column: span 3; }
.metric { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.metric h3 { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.metric-value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.metric-value strong { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -.028em; line-height: 1; }
.metric-value span { font-size: 13.5px; color: var(--slate); }
.meter { display: block; height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.meter-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.meter-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-2); }
.meter-dots i.is-on { background: var(--ink); }
.metric-note { margin-top: auto; font-size: 13px; color: var(--slate); }
.breakdown { grid-column: 1 / -1; padding: 26px 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.breakdown-head { display: flex; justify-content: space-between; align-items: baseline; }
.breakdown-head h3 { font-size: 16px; }
.breakdown-head strong { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.breakdown-bar { display: flex; gap: 3px; height: 44px; margin-top: 14px; border-radius: 12px; overflow: hidden; }
.band { display: grid; place-items: center; font-size: 12.5px; font-weight: 600; min-width: 0; }
.band-0 { background: #DCE4EC; } .band-1 { background: #B9C7D6; } .band-2 { background: var(--warn-soft); color: var(--warn); } .band-3 { background: var(--stop-soft); color: var(--stop); } .band-4 { background: #F6C9B8; } .band-5 { background: #EFB19C; }
.breakdown-highlight { margin-top: 14px; font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.breakdown-highlight strong { color: var(--stop); font-size: 17px; }
.breakdown-highlight b { font-weight: 600; }
.breakdown-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 20px; }
.breakdown-legend div { padding-top: 10px; border-top: 3px solid; }
.breakdown-legend .band-0 { border-color: #DCE4EC; background: none; } .breakdown-legend .band-1 { border-color: #B9C7D6; background: none; } .breakdown-legend .band-2 { border-color: #FFD978; background: none; color: inherit; } .breakdown-legend .band-3 { border-color: #F5A98C; background: none; color: inherit; } .breakdown-legend .band-4 { border-color: #F6C9B8; background: none; } .breakdown-legend .band-5 { border-color: #EFB19C; background: none; }
.breakdown-legend dt { font-size: 13px; color: var(--slate); }
.breakdown-legend dd { font-size: 13px; color: var(--slate); }
.breakdown-legend dd b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.findings > .fine-print { grid-column: 1 / -1; }

/* Mesa de decisiones */
.desk { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--line-2); }
.desk-bar { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line-2); background: #FAFBF9; font-size: 14px; }
.desk-product { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.desk-product .ico { width: 18px; height: 18px; color: var(--flow); }
.desk-tools { margin-left: auto; display: flex; gap: 6px; }
.desk-tools .ico { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.desk-demo { font-size: 12.5px; color: var(--slate); padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.desk-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.desk-agent { padding: 24px 28px 28px; border-right: 1px solid var(--line-2); min-width: 0; }
.agent-head { display: flex; align-items: center; gap: 12px; }
.agent-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--flow); color: #fff; box-shadow: 0 8px 22px -8px rgba(20, 110, 245, .8); }
.agent-mark .ico { width: 22px; height: 22px; }
.agent-head strong { display: block; font-size: 17px; }
.agent-head small { display: block; font-size: 13px; color: var(--slate); }
.agent-online { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); }
.agent-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.case-tabs { display: flex; gap: 4px; margin-top: 20px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.case-tabs button { position: relative; padding: 10px 14px 12px; font-size: 14.5px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.case-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.case-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.case { padding-top: 20px; }
.case-depts { display: flex; gap: 6px; flex-wrap: wrap; }
.case-message { margin-top: 14px; font-size: 18.5px; line-height: 1.38; letter-spacing: -.015em; }
.case-message strong { font-weight: 650; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-radius: 14px; background: var(--paper); }
.case-metrics div { padding: 12px 14px; text-align: center; }
.case-metrics div + div { border-left: 1px solid var(--line-2); }
.case-metrics dt { font-size: 12.5px; color: var(--slate); }
.case-metrics dd { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.case-proposal { margin-top: 14px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; }
.case-proposal.is-blocked { box-shadow: inset 0 0 0 1px #F5A98C; background: #FFF6F2; }
.case-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }
.case-choice select { min-width: 0; padding: 8px 32px 8px 12px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%235B6577' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; appearance: none; font-size: 14px; }
.case-evidence { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 13px; color: var(--slate); }
.case-evidence li { display: flex; align-items: center; gap: 6px; }
.case-evidence li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--mute); }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.case-status { margin-top: 14px; min-height: 40px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.status .ico { width: 17px; height: 17px; }
.tone-success { background: var(--ok-soft); color: var(--ok); }
.tone-warning { background: var(--warn-soft); color: var(--warn); }
.tone-selected { background: var(--flow-soft); color: var(--flow-ink); }
.desk-side { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #FAFBF9; min-width: 0; }
.approval-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.state-pill { padding: 3px 10px; border-radius: 999px; background: var(--flow-soft); color: var(--flow-ink); font-size: 12.5px; }
.state-pill.is-done { background: var(--ok-soft); color: var(--ok); }
.reviewer { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.reviewer strong { display: block; font-size: 15px; }
.reviewer small { display: block; font-size: 12.5px; color: var(--slate); }
.reviewer time { margin-left: auto; font-size: 13px; color: var(--slate); }
.chain { margin-top: 12px; display: grid; }
.chain li { position: relative; display: flex; gap: 12px; padding: 6px 0; }
.chain li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 32px; bottom: -6px; border-left: 1.5px solid var(--line); }
.chain li.is-done:not(:last-child)::after { border-color: var(--ok); }
.chain-node { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0; font-size: 12px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--slate); position: relative; z-index: 1; }
.chain-node .ico { width: 14px; height: 14px; }
.chain .is-done .chain-node { background: var(--ok); color: #fff; box-shadow: none; }
.chain .is-current .chain-node { box-shadow: inset 0 0 0 2px var(--flow); color: var(--flow-ink); }
.chain strong { display: block; font-size: 14px; }
.chain .is-current strong { color: var(--flow-ink); }
.chain small { display: block; font-size: 12.5px; color: var(--slate); }
.approval-rule { margin-top: 10px; font-size: 13px; color: var(--slate); }
.phone { border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.phone-head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; background: #0F5B4E; color: #fff; font-size: 14px; }
.phone-head .ico { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 1px; }
.phone-head span { margin-left: auto; font-size: 12px; opacity: .75; }
.phone-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #ECE7DF; min-height: 150px; }
.phone-date { align-self: center; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 11.5px; color: var(--slate); }
.bubble { max-width: 88%; padding: 9px 12px 7px; border-radius: 4px 14px 14px 14px; background: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.bubble strong { display: block; font-size: 12.5px; color: #0F7A5E; }
.bubble small { display: block; margin-top: 3px; font-size: 11px; color: var(--mute); text-align: right; }
.bubble.is-out { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: #D9FDD3; }
.bubble.is-suggested { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #0E5B3A; box-shadow: inset 0 0 0 1.5px #25D366; transition: background .2s; }
.bubble.is-suggested:hover:not(:disabled) { background: #C3F7BA; }
.bubble.is-suggested .ico { width: 15px; height: 15px; }
.reply-hint { align-self: flex-end; font-size: 11.5px; color: var(--slate); }
.erp { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--flow-soft); color: var(--ink-2); font-size: 13.5px; }
.erp > .ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #fff; }
.erp strong { display: block; font-size: 14px; color: var(--ink); }
.erp.is-done { background: var(--ok-soft); }

/* Estimador */
.estimator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-float); }
.est-inputs { display: grid; gap: 22px; align-content: start; padding: 30px 32px; background: var(--surface); }
.range label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; font-weight: 500; margin-bottom: 10px; }
.range output { font-weight: 700; font-size: 15px; white-space: nowrap; }
.range input { --fill: 50%; width: 100%; height: 22px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--ink) var(--fill), var(--paper-2) var(--fill)); }
.range input::-moz-range-track { height: 5px; border-radius: 5px; background: var(--paper-2); }
.range input::-moz-range-progress { height: 5px; border-radius: 5px; background: var(--ink); }
.range input::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink), 0 3px 8px rgba(11, 28, 51, .2); }
.range input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink), 0 3px 8px rgba(11, 28, 51, .2); }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px rgba(20, 110, 245, .3); }
.range-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--mute); }
.est-inputs .btn-text { justify-self: start; }
.est-result { position: relative; display: flex; flex-direction: column; padding: 32px 34px; background: radial-gradient(90% 70% at 70% 0%, var(--night-3), var(--night) 70%); color: var(--night-text); }
.est-total { display: flex; align-items: flex-start; gap: 10px; color: #fff; }
.est-currency { font-size: 22px; font-weight: 600; margin-top: 12px; color: var(--glow); }
.est-total strong { font-family: var(--display); font-size: clamp(46px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variation-settings: 'opsz' 96; }
.est-label { margin-top: 6px; color: var(--night-mute); font-size: 16px; }
.est-bar { display: flex; gap: 3px; height: 12px; margin-top: 26px; border-radius: 6px; overflow: hidden; }
.est-bar i { min-width: 3px; }
.part-0 { --part: #5B9BFF; } .part-1 { --part: #9FC2FF; } .part-2 { --part: #D8E6FF; } .part-3 { --part: #3C7BE8; }
.est-bar i { background: var(--part); }
.est-parts { display: grid; gap: 2px; margin-top: 18px; }
.est-parts div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--night-line); font-size: 15px; }
.est-parts dt { display: flex; align-items: center; gap: 10px; }
.est-parts dt::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--part); }
.est-parts dd { font-weight: 600; color: #fff; }
.est-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 22px; }
.est-facts dt { font-size: 12.5px; color: var(--night-mute); }
.est-facts dd { font-size: 15px; font-weight: 600; color: #fff; margin-top: 2px; }
.est-years { margin-top: 26px; }
.est-years figcaption { font-size: 12.5px; color: var(--night-mute); }
.est-years-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; height: 150px; margin-top: 12px; }
.est-years-bars div { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; }
.est-years-bars span { font-size: 13px; font-weight: 600; color: #fff; }
.est-years-bars i { display: block; height: calc(var(--h) * 100px); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #5B9BFF, rgba(91, 155, 255, .25)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); transition: height .4s var(--ease); }
.est-years-bars small { font-size: 12px; color: var(--night-mute); }
.est-note { margin-top: auto; padding-top: 22px; color: var(--night-mute); }

/* Siguiente departamento */
.dept-next { padding-block: 0 clamp(72px, 9vw, 120px); }
.next-card { display: grid; grid-template-columns: 1fr minmax(0, 1.1fr) auto; align-items: center; gap: 24px; padding: 12px 28px 12px 40px; border-radius: var(--r-xl); background: var(--dept); overflow: hidden; transition: transform .35s var(--ease); }
.next-card:hover { transform: translateY(-3px); }
.next-copy { display: grid; gap: 4px; }
.next-copy small { font-size: 14px; color: var(--ink-2); }
.next-copy strong { font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.028em; line-height: 1; }
.next-copy span { color: var(--ink-2); font-size: 15px; }
.next-media { height: 200px; border-radius: 20px; overflow: hidden; }
.next-media img { width: 100%; height: 100%; object-fit: cover; }
.next-arrow .ico { width: 54px; height: 54px; padding: 15px; border-radius: 50%; background: var(--ink); color: #fff; }

/* ─────────── Responsive ─────────── */
@media (max-width: 1180px) {
  .topbar-cta { display: none; }
  .topbar-inner { grid-template-columns: auto 1fr; }
  .tabs { justify-self: end; }
  .flow-board { grid-template-columns: 1fr; row-gap: 10px; padding: 20px; }
  .flow-board > .edges { display: none; }
  .flow-step, .flow-dep { grid-column: 1 !important; grid-row: auto !important; order: var(--o); }
  .flow-step { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .flow-step-chip { margin-left: auto; }
  .flow-step:not(:last-of-type)::after { content: ''; }
  .flow-dep { justify-self: start; margin-left: 56px; max-width: none; }
}
@media (max-width: 1024px) {
  .hero-copy, .section-head, .dept-head { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 20ch; }
  .compare-panels { grid-template-columns: 1fr; }
  .side-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 16px; background: var(--ink); }
  .side-switch button { min-height: 44px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #B9C8E2; transition: background .2s, color .2s; }
  .side-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
  .side-switch button[data-show="after"][aria-pressed="true"] { background: var(--flow); color: #fff; }
  .side-switch button.is-nudge { animation: nudge 1.6s var(--ease) infinite; }
  @keyframes nudge { 50% { box-shadow: 0 0 0 4px rgba(20, 110, 245, .45); color: #fff; } }
  [data-show="before"] .side-after, [data-show="after"] .side-before { display: none; }
  .compare-panels { border-radius: 24px; }
  .findings { grid-template-columns: 1fr; }
  .desk-body { grid-template-columns: 1fr; }
  .desk-agent { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .estimator { grid-template-columns: 1fr; }
  .why-panels { grid-template-columns: 1fr; }
  .bento .cell-context { grid-column: span 6; }
  .bento .cell-limits, .bento .cell-models, .bento .cell-human { grid-column: span 3; }
  .bento .cell-channels { grid-column: span 3; }
  .levels { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .method-steps li:nth-child(2n)::after { display: none; }
}
@media (max-width: 820px) {
  :root { --bar: 112px; }
  .topbar-inner { grid-template-rows: 58px 50px; gap: 0; padding-inline: 0; }
  .brand { padding-inline: var(--gutter); }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topbar-cta { display: inline-flex; grid-column: 2; grid-row: 1; margin-right: var(--gutter); min-height: 40px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .tabs { grid-column: 1 / -1; justify-self: stretch; border-radius: 0; background: transparent; box-shadow: none; padding: 2px var(--gutter) 6px; gap: 6px; mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 36px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 36px), transparent 100%); }
  .tabs a { height: 40px; padding: 0 14px; font-size: 14px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line); }
  .tabs a:last-child { margin-right: 28px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics .metric, .metrics .metric:nth-child(n + 4) { grid-column: span 1; }
  .reasons { grid-template-columns: 1fr; }
  .market, .team-grid { grid-template-columns: 1fr; }
  .next-card { grid-template-columns: 1fr auto; padding: 28px; }
  .next-media { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-copy h1 { font-size: 33px; line-height: 1.08; }
  .hero-copy, .hero-side { gap: 20px; }
  .btn-secondary { background: none; box-shadow: none; padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
  .side { padding: 20px 16px 20px; }
  .side-title { font-size: 26px; }
  .side-note { display: none; }
  .side-event { align-items: flex-start; flex-direction: column; gap: 6px; font-size: 14px; }
  .stage { height: 220px; }
  .tool { font-size: 11.5px; padding: 5px 8px 5px 6px; gap: 5px; }
  .tool .ico { width: 14px; height: 14px; }
  .actor { font-size: 12.5px; padding: 7px 10px 7px 7px; }
  .hub strong { font-size: 16px; }
  .jumps li { grid-template-columns: 22px minmax(0, 1fr); row-gap: 0; padding: 3px 0; }
  .jump-tool { grid-column: 2; }
  .jump-act { grid-column: 2; font-size: 13px; }
  .counter { font-size: 25px; }
  .counter span { font-size: 15px; }
  .compare-foot { flex-direction: column; align-items: flex-start; }
  .scenario-tabs button { font-size: 13.5px; }
  .bento .cell { grid-column: span 6 !important; min-height: 0; }
  .viz-context { grid-template-columns: 1fr; grid-template-rows: none; }
  .viz-context > svg { display: none; }
  .viz-context .src, .viz-context .out { grid-column: 1; grid-row: auto; }
  .viz-context .out { margin-top: 8px; justify-self: start; }
  .metrics { grid-template-columns: 1fr; }
  .case-message { font-size: 18px; }
  .case-metrics dd { font-size: 22px; }
  .desk-bar { flex-wrap: wrap; }
  .desk-tools { display: none; }
  .desk-demo { margin-left: auto; }
  .desk-agent, .desk-side { padding: 20px 16px; }
  .est-inputs, .est-result { padding: 24px 18px; }
  .flow-dep { margin-left: 24px; }
  .why-panel { padding: 16px; }
  .why-ia { font-size: 10.5px; }
  .tool-chip { font-size: 11px; padding: 5px 7px; }
  .market li { grid-template-columns: 1fr; padding: 20px; }
  .market b { grid-row: auto; font-size: 40px; }
  .levels-list button { grid-template-columns: 34px minmax(0, 1fr); padding: 14px; }
  .level-n { width: 34px; height: 34px; font-size: 15px; }
  .level-n { grid-column: 1; grid-row: 1 / span 2; }
  .level-copy { grid-column: 2; grid-row: 1; align-self: center; }
  .level-tag { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; }
  .levels-list button:not([aria-selected="true"]) .level-copy small { display: none; }
  .method-steps { grid-template-columns: 1fr; row-gap: 24px; }
  .method-steps li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .method-n { grid-row: span 2; margin-bottom: 0; }
  .method-steps li:not(:last-child)::after { display: block; top: 50px; bottom: -18px; left: 19px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--flow), var(--glow)); }
  .method-out { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .why-stage .why-fade, .why-stage .edge { opacity: 1; }
  .is-nax .why-stage .edge[data-kind="blue"] { stroke-dashoffset: 0; }
}
