/* Sitio v2 · claro, editorial, tech. Solo modo claro (gusto de J). */
/* 19-nov · Poesi: Inter (OFL) servida desde el mismo sitio, variable 100–900 (600 títulos, 400 texto). Sin Google Fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/inter-var.woff2) format("woff2"); }
/* respaldo calibrado a las métricas de Inter (Arial ajustada): el titular no salta de línea cuando llega la fuente (CLS) */
@font-face { font-family: "Inter fb"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
:root {
  --bg: #FFFFFF;          /* 10-nov: J pidió fondo blanco */
  --bg2: #F4F5F8;
  --paper: #FFFFFF;
  --ink: #12163A;
  --ink2: #3B4062;
  --muted: #5C6077;
  --line: #E2E0D8;
  --line2: #D3D1C7;
  --accent: #2E3470;      /* índigo tinta */
  --accent-deep: #0B0E27;
  --accent-soft: #EEF0F6;
  --warm: #4F46E5;        /* acento cálido, mínimo */
  --warm-soft: #ECEBFD;
  --ok: #138A5B;
  --shadow: 0 1px 2px rgba(18,22,58,.04), 0 12px 40px rgba(18,22,58,.08);
  --shadow-lg: 0 2px 6px rgba(18,22,58,.05), 0 30px 80px rgba(18,22,58,.14);
  --f-head: "Inter", "Inter fb", system-ui, sans-serif;
  --f-sans: "Inter", "Inter fb", system-ui, sans-serif;
  --f-mono: "Inter", "Inter fb", system-ui, sans-serif; /* 19-nov: la marca usa solo Inter; las etiquetas usan cifras tabulares */
  --r: 18px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(46px, 6.6vw, 96px); line-height: .95; }
h2 { font-size: clamp(36px, 5.2vw, 72px); line-height: 1; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); }
.eyebrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink2); max-width: 58ch; line-height: 1.55; }
.help { font-size: 13px; color: var(--muted); line-height: 1.5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 60; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(19,138,91,.5); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(19,138,91,0); } 100% { box-shadow: 0 0 0 0 rgba(19,138,91,0); } }

/* glosario */
.term { background: none; border: 0; padding: 0; cursor: help; color: inherit; border-bottom: 1.5px dotted var(--accent); font: inherit; }
.term:hover { color: var(--accent); }
.term-pop { position: fixed; z-index: 90; max-width: 320px; background: var(--ink); color: #F1F2FA; font-size: 14px; line-height: 1.5; padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px var(--f-sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, box-shadow .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(18,22,58,.18); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border-color: rgba(18,22,58,.08); box-shadow: var(--shadow); }
.btn-glass:hover { background: #fff; }
.magnetic { will-change: transform; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--accent-deep); }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink2); }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; font: 500 12px var(--f-mono); }
.lang a { text-decoration: none; padding: 5px 9px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
@media (max-width: 980px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-right .btn { padding: 0 12px; font-size: 13px; } .brand span { font-size: 17px; } }

/* ============ HÉROE ============ */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 56px; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(closest-side, rgba(46,52,112,.10), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "copy sphere" "lede sphere" "try sphere"; column-gap: 40px; row-gap: 26px; align-items: start; position: relative; }
.hero-copy { grid-area: copy; }
.hero-sphere { grid-area: sphere; position: sticky; top: 84px; align-self: start; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: end; }
.hero-try { grid-area: try; }
#sphere { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.sphere-labels { position: absolute; inset: 0; pointer-events: none; }
.sl { position: absolute; left: 0; top: 0; font: 500 11.5px var(--f-mono); color: var(--ink2); background: rgba(255,255,255,.86); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; white-space: nowrap; transform: translate(-50%, -50%); transition: opacity .3s, color .3s, border-color .3s; backdrop-filter: blur(6px); }
.sl.hot { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.sphere-hint { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.hero-rot { font-size: clamp(20px, 2.2vw, 28px); margin-top: 22px; color: var(--ink2); letter-spacing: -.01em; min-height: 1.5em; }
.rot { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); display: inline-block; }
.rot.out { animation: rotOut .35s forwards; }
.rot.in { animation: rotIn .45s; }
@keyframes rotOut { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes rotIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.hero-lede { grid-area: lede; margin-top: -8px; }

.ask { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.ask-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1; min-width: 0; height: 50px; border: 1px solid var(--line2); border-radius: 14px; padding: 0 16px; font: 400 16px var(--f-sans); background: var(--bg); color: var(--ink); }
.ask-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.ask .help { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid var(--line2); background: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); background: #fff; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.diag { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 14px; box-shadow: var(--shadow); }
.diag-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.diag-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.diag-status { font-size: 11.5px; color: var(--muted); }
.diag-sources { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.diag-sources li { font: 400 12px var(--f-mono); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.diag-sources .bar { flex: 1; height: 3px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.diag-sources .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.diag-list { list-style: none; margin: 0; padding: 0; }
.diag-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.diag-list li.in { opacity: 1; transform: none; }
.diag-list .n { font: 500 12px var(--f-mono); color: var(--accent); padding-top: 2px; }
.diag-list b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.diag-list span.d { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.imp { text-align: right; font: 500 10.5px var(--f-mono); color: var(--muted); white-space: nowrap; }
.imp .dots { display: flex; gap: 3px; justify-content: flex-end; margin-top: 4px; }
.imp .dots i { width: 14px; height: 4px; border-radius: 2px; background: var(--bg2); }
.imp .dots i.on { background: var(--accent); }
.diag-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
.diag-foot .help { flex: 1 1 240px; }
.typing::after { content: "▍"; animation: blink 1s steps(2) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.not-chatbot { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line2); }
.not-chatbot li { padding: 22px 24px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.not-chatbot li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.vs-no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(79,70,229,.6); font-size: 15px; }
.vs-yes { font-size: 17px; font-weight: 500; line-height: 1.4; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "sphere" "try" "lede"; row-gap: 8px; }
  .hero-sphere { position: relative; top: 0; max-width: none; aspect-ratio: auto; height: 250px; justify-self: stretch; margin: 0 calc(-1 * var(--gut)); width: auto; }
  .hero-lede { margin-top: 18px; }
  .not-chatbot { grid-template-columns: 1fr; margin-top: 36px; }
  .not-chatbot li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .not-chatbot li { padding: 16px 0; }
}
@media (max-width: 520px) {
  .hero { padding-top: 18px; }
  .hero-sphere { height: 220px; }
  .sphere-hint { display: none; }
  .hero h1 { font-size: 46px; }
  .hero-rot { font-size: 18px; margin-top: 12px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .08em; gap: 8px; margin-bottom: 12px; }
  .ask { padding: 14px; }
  .ask .help { display: none; }
    .ask-row { flex-direction: column; }
  .ask-row .btn { width: 100%; }
  .diag-sources { grid-template-columns: 1fr; }
}

/* ============ SECCIONES ============ */
section { position: relative; }
.sec-head { margin-bottom: 44px; max-width: 900px; }
.sec-head .lede { margin-top: 20px; }
.cases, .feats, .impl, .trust, .cta { padding: clamp(72px, 10vw, 140px) 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ UN DÍA ============ */
.day { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day-track { height: 340vh; position: relative; }
.day-sticky { position: sticky; top: 66px; height: calc(100vh - 66px); min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.day-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; width: 100%; }
.day-left h2 { font-size: clamp(34px, 4.4vw, 62px); }
.day-left .lede { margin-top: 16px; font-size: 17px; }
.clock { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.clock-face { width: 96px; height: 96px; flex: none; }
.cf-ring { fill: var(--bg); stroke: var(--line2); stroke-width: 1.5; }
.cf-ticks line { stroke: var(--line2); stroke-width: 1.5; }
.cf-h { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.cf-m { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.cf-dot { fill: var(--warm); }
.clock-digits { display: flex; flex-direction: column; }
#clock-time { font: 600 clamp(54px, 6vw, 84px)/1 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.day-bar { height: 3px; background: var(--bg2); border-radius: 3px; margin-top: 24px; max-width: 420px; overflow: hidden; }
.day-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--warm)); }
.day-help { margin-top: 12px; max-width: 420px; }
.day-feed { list-style: none; margin: 0; padding: 0; position: relative; height: min(70vh, 640px); overflow: hidden; mask-image: linear-gradient(transparent, #000 8%, #000 86%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 86%, transparent); }
.day-feed-in { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ev { padding: 6px 0; opacity: .18; transform: scale(.97); transform-origin: left center; transition: opacity .5s, transform .5s; }
.ev.on { opacity: 1; transform: none; }
.ev.now .ev-btn { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.ev-btn { width: 100%; text-align: left; display: grid; grid-template-columns: 58px 1fr auto; grid-template-areas: "time agent open" "time title title" "time sub sub"; column-gap: 14px; row-gap: 2px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .3s, box-shadow .3s, background .3s; }
.ev-btn:hover { background: #fff; border-color: var(--ink2); }
.ev-time { grid-area: time; font-size: 13px; color: var(--ink2); padding-top: 2px; }
.ev-agent { grid-area: agent; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ev-title { grid-area: title; font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.ev-sub { grid-area: sub; font-size: 14px; color: var(--muted); }
.ev-open { grid-area: open; font-size: 11px; color: var(--muted); }
.ev-btn:hover .ev-open { color: var(--accent); }
@media (max-width: 900px) {
  .day-track { height: auto; }
  .day-sticky { position: relative; top: 0; height: auto; min-height: 0; padding: 72px 0; display: block; overflow: visible; }
  .day-grid { grid-template-columns: 1fr; gap: 28px; }
  .day-grid { display: block; }
  .day-left { display: contents; }
  .day-left .lede { margin-bottom: 18px; }
  .clock-box { position: sticky; top: 66px; z-index: 2; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); padding: 10px var(--gut) 12px; margin: 0 calc(-1 * var(--gut)) 10px; border-bottom: 1px solid var(--line); }
  .day-help { margin: 0 0 12px; }
  .clock { margin-top: 0; gap: 14px; }
  .clock-face { width: 56px; height: 56px; }
  #clock-time { font-size: 46px; }
  .day-bar { margin-top: 10px; max-width: none; }
  .day-feed { height: auto; overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .day-feed-in { position: static; transform: none !important; }
  .ev { opacity: .35; }
}
/* ============ CASOS ============ */
.case-tabs { display: flex; gap: 10px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.case-tabs::-webkit-scrollbar { display: none; }
.case-tab { flex: 1 0 auto; text-align: left; border: 1px solid var(--line2); background: transparent; border-radius: 16px; padding: 14px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: all .25s; min-width: 200px; }
.case-tab:hover { border-color: var(--ink); }
.case-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ct-name { font-family: var(--f-head); font-size: 26px; line-height: 1.1; }
.ct-kind { font-size: 13px; opacity: .7; }
.case-panel { animation: fadeUp .5s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.case-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; align-items: start; }
.case-copy h3 { font-family: var(--f-head); font-weight: 600; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; margin: 10px 0 16px; letter-spacing: -.01em; }
.case-copy > p { color: var(--ink2); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .04em; color: var(--ink2); background: var(--paper); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }
#panel-speakercoach .status-dot { background: var(--ok); }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font: 600 30px/1.05 var(--f-head); color: var(--accent-deep); letter-spacing: -.01em; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.fict { font-size: 11.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.demo { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.demo-title { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.demo-actions { display: flex; gap: 8px; }
.live { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.side { border-top: 1px solid var(--line); padding: 16px 18px; min-height: 92px; background: var(--bg); }
.side h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.side dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: 14px; }
.side dt { color: var(--muted); font: 400 12px var(--f-mono); padding-top: 2px; }
.side dd { margin: 0; }
.side .tag { display: inline-block; font: 500 11px var(--f-mono); padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin: 2px 4px 2px 0; }
.side .tag.hit { background: var(--warm-soft); color: #B4471A; }
.side .letter { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink2); }
.side .btn { margin-top: 10px; }
@media (max-width: 1000px) { .case-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .case-tab { min-width: 170px; } .ct-name { font-size: 22px; } }

/* grafo */
.graph-wrap { position: relative; height: 440px; background: radial-gradient(circle at 50% 50%, #fff, var(--bg) 80%); }
#graph { width: 100%; height: 100%; display: block; touch-action: none; }
#graph .edge { stroke: var(--line2); stroke-width: 1.2; transition: stroke .4s; }
#graph .edge.hit { stroke: var(--warm); stroke-width: 1.8; }
#graph .node { cursor: pointer; }
#graph .node circle { transition: fill .4s, stroke .4s, r .3s; }
#graph .node.fam circle { fill: var(--accent-deep); }
#graph .node.soc circle { fill: #fff; stroke: var(--accent); stroke-width: 1.8; }
#graph .node.soc.hit circle { fill: var(--warm); stroke: var(--warm); }
#graph .node.sel circle { stroke: var(--ink); stroke-width: 3; }
#graph .node text { font: 500 10.5px var(--f-mono); fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.92); stroke-width: 4px; stroke-linejoin: round; }
#graph .node.soc text { opacity: 0; transition: opacity .25s; }
#graph .node.soc:hover text, #graph .node.soc.sel text, #graph .node.soc:focus-visible text { opacity: 1; }
#graph .node.fam text { font-size: 11.5px; font-weight: 600; fill: var(--ink); }
#graph .node:hover circle { stroke-width: 3; }
#graph .wave { fill: none; stroke: var(--warm); stroke-width: 2; opacity: 0; }
.law-chip { position: absolute; top: 12px; left: 12px; right: 12px; background: var(--warm-soft); color: #9A3A12; border: 1px solid #C9C6F8; border-radius: 12px; padding: 8px 12px; font-size: 12px; line-height: 1.4; animation: fadeUp .4s; }
.graph-legend { display: flex; gap: 16px; padding: 10px 18px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); flex-wrap: wrap; }
.lg::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg-fam::before { background: var(--accent-deep); }
.lg-soc::before { background: #fff; border: 1.5px solid var(--accent); }
.lg-hit::before { background: var(--warm); }

/* bodega 3D */
.wh-wrap { position: relative; height: 460px; background: linear-gradient(180deg, #F3F3F8, #E9E9F1); }
.wh-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.wh-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.wh-overlay { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.wh-scale { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink2); background: rgba(255,255,255,.8); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.wh-scale i { width: 70px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #C9D3F2, #8A93E8, #4F46E5); }
.wh-dock { position: absolute; left: 12px; top: 12px; font-size: 10.5px; letter-spacing: .1em; color: #fff; background: var(--ink); padding: 6px 10px; border-radius: 999px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; }
.seg-b { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; color: var(--ink2); }
.seg-b[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 520px) { .wh-wrap, .graph-wrap { height: 380px; } .wh-scale { top: auto; bottom: 60px; } }

/* organigrama */
.org { position: relative; padding: 22px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 26px; background: radial-gradient(circle at 50% 0, #fff, var(--bg) 85%); }
.org-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.org-lines path { fill: none; stroke: var(--line2); stroke-width: 1.4; }
.org-lines circle { fill: var(--accent); }
.org-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: 100%; }
.org-node { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .25s, box-shadow .25s, transform .25s; min-width: 0; }
.org-node:hover, .org-node.sel { border-color: var(--accent); box-shadow: var(--shadow); }
.org-node.ping { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.org-human { background: var(--ink); color: #fff; border-color: var(--ink); min-width: 150px; }
.org-gen { min-width: 150px; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.on-k { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.on-n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.feed { list-style: none; margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); height: 150px; overflow: hidden; font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.feed li { display: grid; grid-template-columns: 50px 92px 1fr; gap: 8px; color: var(--ink2); animation: feedIn .5s; }
.feed li .who { color: var(--accent); }
.feed li .tm { color: var(--muted); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 620px) {
  .org-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed li { grid-template-columns: 84px 1fr; }
  .feed li .tm { display: none; }
  .on-n { font-size: 13px; }
}

/* ============ FUNCIONES (bento) ============ */
.feats { background: var(--bg2); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, auto); gap: 14px; }
.tile { grid-column: span 2; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile-screen { display: block; height: 230px; position: relative; overflow: hidden; background: linear-gradient(180deg, #FAFAFD, #F1F1F7); border-bottom: 1px solid var(--line); }
.tile-txt { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.tile-k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tile-t { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.tile-d { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.tile-play { position: absolute; top: 12px; right: 12px; font-size: 10.5px; background: rgba(255,255,255,.9); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; opacity: 0; transition: opacity .25s; }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .tile { grid-column: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile-screen { height: 210px; } .tile-play { opacity: 1; } }

/* loops (≈10 s, en bucle). Cada .lp es una mini-interfaz animada que se puede cambiar por un MP4 (ver LEEME). */
.lp { position: absolute; inset: 0; font-family: var(--f-sans); }
.lp * { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.3,.7,.2,1); }
.paused .lp *, .paused.lp * { animation-play-state: paused; }
.lp .card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(18,22,58,.07); }
.lp .ln { display: block; height: 6px; border-radius: 3px; background: #E4E4EE; margin: 6px 0; }
.lp .ln.dk { background: #C7C9DB; }
.lp .ln.ac { background: var(--accent); }
.lp .pill { position: absolute; font: 500 9.5px var(--f-mono); padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.lp .pill.ok { background: #DDF3E8; color: var(--ok); }
.lp .pill.w { background: var(--warm-soft); color: #B4471A; }
.lp .tx { display: block; font-size: 10.5px; line-height: 1.35; color: var(--ink2); }
.lp .tx-k { display: block; font: 500 8.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lp .tx-k.ac { color: var(--accent); margin-bottom: 4px; }
.lp .tx-h { font-family: var(--f-head); font-size: 18px; line-height: 1; color: var(--ink); }
/* correo */
.lp-mail .inbox { left: 6%; top: 10%; width: 42%; bottom: 12%; padding: 8px; }
.lp-mail .row { display: block; padding: 6px 8px; border-radius: 7px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mail .row .tx { overflow: hidden; text-overflow: ellipsis; }
.lp-mail .row.r2 { animation-name: mailSel; }
@keyframes mailSel { 0%, 12% { background: transparent; } 18%, 85% { background: var(--accent-soft); } 95%, 100% { background: transparent; } }
.lp-mail .draft { left: 51%; top: 10%; right: 6%; bottom: 20%; padding: 12px; animation-name: draftIn; }
@keyframes draftIn { 0%, 18% { opacity: 0; transform: translateX(14px); } 25%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.lp-mail .draft .ln { animation-name: typeLn; transform-origin: left; }
.lp-mail .typed { animation-name: typeTx; clip-path: inset(0 100% 0 0); }
@keyframes typeTx { 0%, 24% { clip-path: inset(0 100% 100% 0); } 50%, 100% { clip-path: inset(0 0 0 0); } }
.lp-mail .draft .ln:nth-child(2) { animation-delay: .25s; } .lp-mail .draft .ln:nth-child(3) { animation-delay: .5s; } .lp-mail .draft .ln:nth-child(4) { animation-delay: .75s; } .lp-mail .draft .ln:nth-child(5) { animation-delay: 1s; }
@keyframes typeLn { 0%, 26% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }
.lp-mail .pill.ok { right: 10%; bottom: 16%; animation-name: popIn; }
@keyframes popIn { 0%, 55% { opacity: 0; transform: scale(.8); } 60%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
/* datos: caos → orden */
.lp-data .cell { position: absolute; width: 17%; height: 13%; background: #fff; border: 1px solid var(--line); border-radius: 6px; animation-name: cellOrder; }
.lp-data .cell::after { content: ""; position: absolute; left: 14%; right: 30%; top: 44%; height: 5px; border-radius: 3px; background: #D3D5E6; }
.lp-data .cell.h::after { background: var(--accent); }
@keyframes cellOrder { 0%, 15% { transform: translate(var(--x0), var(--y0)) rotate(var(--r0)); } 45%, 85% { transform: translate(var(--x1), var(--y1)) rotate(0); } 100% { transform: translate(var(--x0), var(--y0)) rotate(var(--r0)); } }
.lp-data .pill.ok { left: 50%; bottom: 8%; transform: translateX(-50%); animation-name: popIn; }
/* cotización */
.lp-quote .msg { left: 6%; top: 14%; width: 38%; padding: 9px 10px; border-radius: 12px 12px 12px 3px; animation-name: msgIn; }
@keyframes msgIn { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.lp-quote .doc { right: 6%; top: 8%; width: 48%; bottom: 16%; padding: 10px 12px; animation-name: draftIn; }
.lp-quote .qrow { display: flex; justify-content: space-between; gap: 6px; align-items: center; animation-name: qrow; opacity: 0; }
.lp-quote .qrow:nth-child(2) { animation-delay: .3s; } .lp-quote .qrow:nth-child(3) { animation-delay: .6s; } .lp-quote .qrow:nth-child(4) { animation-delay: .9s; }
.lp-quote .qrow { padding: 5px 0; border-bottom: 1px solid var(--line); } .lp-quote .qrow b { font: 500 8.5px var(--f-mono); color: var(--ok); white-space: nowrap; }
@keyframes qrow { 0%, 28% { opacity: 0; } 34%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.lp-quote .tot { border-top: 1px dashed var(--line2); margin-top: 8px; padding-top: 6px; display: flex; justify-content: space-between; animation-name: qrow; animation-delay: 1.3s; opacity: 0; }
.lp-quote .tot i { width: 30%; height: 8px; border-radius: 3px; background: var(--ink); display: block; }
.lp-quote .pill.ok { right: 9%; bottom: 4%; animation-name: popIn; animation-delay: .6s; }
/* whatsapp */
.lp-chat .phone { left: 50%; top: 8%; bottom: 0; width: 62%; max-width: 300px; transform: translateX(-50%); border-radius: 18px 18px 0 0; padding: 12px 10px; background: #F4F1EA; overflow: hidden; }
.lp-chat .b { display: block; width: fit-content; max-width: 82%; font-size: 10.5px; line-height: 1.35; padding: 7px 9px; border-radius: 10px; margin-bottom: 7px; animation-name: msgIn; opacity: 0; }
.lp-chat .b .ln { margin: 3px 0; height: 5px; }
.lp-chat .b.q { background: #fff; }
.lp-chat .b.a { background: #DCE0FB; margin-left: auto; }
.lp-chat .b:nth-child(2) { animation-delay: 1.2s; } .lp-chat .b:nth-child(3) { animation-delay: 2.6s; } .lp-chat .b:nth-child(4) { animation-delay: 3.8s; }
.lp-chat .dots3 { display: inline-flex; gap: 3px; padding: 8px 10px; background: #DCE0FB; border-radius: 10px; margin-left: auto; float: right; animation-name: msgIn; animation-delay: .6s; opacity: 0; }
/* reporte */
.lp-report .panel { left: 6%; right: 6%; top: 10%; bottom: 10%; padding: 14px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.lp-report .bars { display: flex; align-items: flex-end; gap: 6%; height: 100%; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.lp-report .bars i { flex: 1; background: var(--accent-soft); border-radius: 4px 4px 0 0; height: var(--h); transform-origin: bottom; animation-name: barUp; }
.lp-report .bars i.hi { background: var(--accent); }
.lp-report .bars i:nth-child(2) { animation-delay: .1s; } .lp-report .bars i:nth-child(3) { animation-delay: .2s; } .lp-report .bars i:nth-child(4) { animation-delay: .3s; } .lp-report .bars i:nth-child(5) { animation-delay: .4s; } .lp-report .bars i:nth-child(6) { animation-delay: .5s; } .lp-report .bars i:nth-child(7) { animation-delay: .6s; }
@keyframes barUp { 0%, 6% { transform: scaleY(0); } 26%, 90% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.lp-report .sum { display: flex; flex-direction: column; gap: 8px; }
.lp-report .al { display: flex; gap: 6px; align-items: center; animation-name: qrow; opacity: 0; }
.lp-report .al:nth-child(2) { animation-delay: .4s; } .lp-report .al:nth-child(3) { animation-delay: .8s; }
.lp-report .al b { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); flex: none; }
.lp-report .al.g b { background: var(--ok); }
.lp-report .al .tx { flex: 1; }
.lp-report .clk { font: 500 10px var(--f-mono); color: var(--muted); }
/* gemelo 3D (CSS) */
.lp-twin .iso { position: absolute; left: 50%; top: 56%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(45deg); animation-name: isoSpin; animation-duration: 20s !important; animation-timing-function: linear !important; }
@keyframes isoSpin { to { transform: rotateX(58deg) rotateZ(405deg); } }
.lp-twin .fl { position: absolute; width: 190px; height: 190px; left: -95px; top: -95px; background: repeating-linear-gradient(0deg, #E3E4EE 0 1px, transparent 1px 19px), repeating-linear-gradient(90deg, #E3E4EE 0 1px, transparent 1px 19px), #F8F8FC; border: 1px solid var(--line2); }
.lp-twin .bx { position: absolute; width: 22px; height: 22px; transform-style: preserve-3d; animation-name: bxUp; }
.lp-twin .bx::before { content: ""; position: absolute; inset: 0; background: var(--c); transform: translateZ(var(--z)); box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset; }
@keyframes bxUp { 0%, 8% { opacity: 0; transform: translate(var(--x), var(--y)) translateZ(30px); } 22%, 92% { opacity: 1; transform: translate(var(--x), var(--y)); } 100% { opacity: 0; transform: translate(var(--x), var(--y)); } }

/* ============ IMPLEMENTACIÓN ============ */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.stage { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; position: relative; transition: border-color .3s, transform .3s; }
.stage:hover { border-color: var(--accent); transform: translateY(-3px); }
.stage::after { content: "→"; position: absolute; right: -11px; top: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--muted); z-index: 1; }
.stage:last-child::after { display: none; }
.st-n { font-size: 12px; color: var(--accent); }
.stage h3 { font-family: var(--f-head); font-weight: 600; font-size: 30px; }
.st-what { font-size: 14.5px; color: var(--ink2); min-height: 2.8em; }
.st-row { border-top: 1px solid var(--line); padding-top: 8px; }
.st-row span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.st-ai span { color: var(--accent); }
.st-hu span { color: var(--accent-deep); }
.st-row p { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.impl-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 26px; }
.speed { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "k k" "n p"; gap: 6px 20px; align-items: center; }
.speed .sp-k-old { grid-area: k; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #A9AEEA; }
.speed b { grid-area: n; font: 600 54px/1 var(--f-head); }
.speed .sp-p-old { grid-area: p; font-size: 14.5px; color: #CDD0EE; line-height: 1.45; }
.own { background: var(--accent-soft); border-radius: 20px; padding: 22px 24px; font-size: 18px; line-height: 1.45; color: var(--accent-deep); display: block; align-self: stretch; }
@media (max-width: 1000px) { .stages { grid-template-columns: 1fr 1fr; } .stage::after { display: none; } .impl-foot { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .stages { grid-template-columns: 1fr; } .st-what { min-height: 0; } .speed { grid-template-areas: "k" "n" "p"; grid-template-columns: 1fr; } }

/* ============ CONFIANZA ============ */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sec-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.sec-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.sec-card h3 { margin: 14px 0 6px; font-size: 18px; }
.sec-card p { font-size: 14.5px; color: var(--muted); }
.faq-wrap { margin-top: 64px; display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 40px; }
.faq-h { font-family: var(--f-head); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.faq details { border-top: 1px solid var(--line2); }
.faq details:last-child { border-bottom: 1px solid var(--line2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink2); }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: 1fr 1fr; } .faq-wrap { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 520px) { .sec-grid { grid-template-columns: 1fr; } }

/* ============ DIAGNÓSTICO ============ */
.cta { background: var(--paper); border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.cta .lede { margin-top: 18px; }
.cta-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: c; display: flex; flex-direction: column; gap: 12px; }
.cta-steps li { counter-increment: c; display: flex; gap: 14px; align-items: baseline; font-size: 16px; }
.cta-steps li::before { content: "0" counter(c); font: 500 12px var(--f-mono); color: var(--accent); }
.dform { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line2); border-radius: 12px; background: #fff; padding: 12px 14px; font: 400 16px var(--f-sans); color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .help { margin-top: 5px; }
.field.err input { border-color: var(--warm); }
.form-msg { background: var(--accent-soft); color: var(--accent-deep); padding: 12px 14px; border-radius: 12px; font-weight: 500; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 32px; } }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.foot-tag { color: var(--ink2); }
.foot-small { font-size: 11.5px; color: var(--muted); width: 100%; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(18,22,58,.38); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; background: var(--paper); border-radius: 26px; width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; z-index: 3; font-size: 15px; }
.modal-body { padding: 30px; }
.modal-body .m-k { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.modal-body h3 { font-family: var(--f-head); font-weight: 600; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 8px 50px 16px 0; }
.modal-body h4 { font-size: 17px; margin-bottom: 10px; }
.modal-body ul { padding-left: 20px; margin: 0 0 12px; }
.modal-body li { margin-bottom: 6px; }
.modal-body p { margin-bottom: 12px; color: var(--ink2); }
.m-doc { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 8px; }
.m-dec { background: var(--accent-soft); color: var(--accent-deep) !important; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; }
.m-chat { display: flex; flex-direction: column; gap: 8px; background: #F4F1EA; padding: 14px; border-radius: 14px; }
.m-chat span { max-width: 80%; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; }
.m-chat .q { background: #fff; align-self: flex-start; }
.m-chat .a { background: #DCE0FB; align-self: flex-end; }
.m-video { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #FAFAFD, #F1F1F7); border: 1px solid var(--line); margin-bottom: 18px; }
.m-video .lp { zoom: 1.45; }
.m-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.m-vnote { font: 400 11px var(--f-mono); color: var(--muted); }
.m-meta { display: flex; gap: 8px; flex-wrap: wrap; font: 500 11px var(--f-mono); color: var(--muted); margin-bottom: 12px; }
@media (max-width: 600px) { .m-video .lp { zoom: 1; } .modal { padding: 0; align-items: end; } .modal-card { border-radius: 22px 22px 0 0; max-height: 92vh; } .modal-body { padding: 24px 18px 30px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .lp * { animation: none !important; opacity: 1 !important; }
}

/* =================== v2 =================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.more { font-size: 11px; letter-spacing: .06em; color: var(--accent); margin-top: auto; padding-top: 10px; opacity: .78; transition: opacity .3s, transform .3s; display: inline-block; font-style: normal; }

/* héroe: demo automática */
.ask-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ask-top .ask-label { margin-bottom: 0; }
.demo-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; animation: fade .4s; }
.demo-badge[hidden] { display: none; }
.ask.demo-on .ask-row input { border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; caret-color: var(--accent); }

/* cifras de los casos: se abren */
.facts li { padding: 0; background: none; border: 0; }
.fact { width: 100%; height: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.fact b { font: 600 30px/1.05 var(--f-head); color: var(--accent-deep); letter-spacing: -.01em; }
.fact > span:not(.more) { font-size: 13px; color: var(--muted); line-height: 1.4; }
.fact:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.fact:hover .more, .sec-card:hover .more, .speed:hover .more { opacity: 1; transform: translateX(3px); }

/* columna vertebral */
.spine { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .7fr) minmax(0, 1fr); align-items: center; gap: 0 clamp(40px, 7vw, 120px); width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(26px, 4vw, 48px); margin-bottom: 30px; cursor: pointer; box-shadow: var(--shadow); overflow: hidden; font: inherit; color: inherit; transition: box-shadow .4s, border-color .4s; }
.spine::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 50%, rgba(46,52,112,.07), transparent 70%); pointer-events: none; }
.spine:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow-lg); }
.sp-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.sp-in { align-items: flex-start; }
.sp-out { align-items: flex-end; }
.sp-k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sp-node { font-size: 14px; font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: 0 1px 2px rgba(18,22,58,.04); white-space: nowrap; }
.sp-dst { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }
.sp-core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.sp-bar { position: relative; width: 14px; height: 300px; border-radius: 999px; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); box-shadow: 0 0 0 6px var(--accent-soft), 0 20px 50px rgba(46,52,112,.28); overflow: hidden; margin-bottom: 10px; }
.sp-bar i { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.55), transparent); transform: translateY(-100%); will-change: transform; }
.spine.live .sp-bar i { animation: spineRun 3.6s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes spineRun { to { transform: translateY(250%); } }
.sp-name { font: 600 30px/1 var(--f-head); letter-spacing: -.01em; }
.sp-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.sp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.sp-lines path { fill: none; stroke-width: 1.2; }
.sp-in-l { stroke: var(--line2); }
.sp-out-l { stroke: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.sp-in-f, .sp-out-f { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 3 120; stroke-linecap: round; opacity: 0; }
.spine.live .sp-in-f { opacity: .8; animation: flow 4.5s linear infinite; }
.spine.live .sp-out-f { opacity: .8; stroke: var(--accent-deep); animation: flow 4.5s linear infinite; animation-delay: 1.6s; }
@keyframes flow { from { stroke-dashoffset: 123; } to { stroke-dashoffset: 0; } }
.sp-more { position: absolute; right: 18px; bottom: 14px; z-index: 2; font-size: 11px; color: var(--accent); opacity: .75; }
@media (max-width: 760px) {
  .spine { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 0 18px; padding: 22px 14px 40px; }
  .sp-node { font-size: 11.5px; padding: 5px 9px; white-space: normal; line-height: 1.25; }
  .sp-k { font-size: 9px; letter-spacing: .08em; }
  .sp-bar { width: 10px; height: 250px; }
  .sp-name { font-size: 15px; writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; top: 50%; left: 50%; translate: -50% -50%; color: #fff; display: none; }
  .sp-sub { display: none; }
  .sp-core::after { content: attr(data-x); }
  .sp-more { left: 0; right: 0; text-align: center; }
}

/* etapas */
.st-we span { color: var(--ink2); }
.st-more { margin-top: auto; align-self: flex-start; background: none; border: 0; border-top: 1px solid var(--line); width: 100%; text-align: left; padding: 12px 0 0; font-size: 11.5px; letter-spacing: .06em; color: var(--accent); cursor: pointer; }
.st-more:hover { color: var(--accent-deep); }
.stage { cursor: default; }
.speed { border: 0; text-align: left; cursor: pointer; font: inherit; width: 100%; grid-template-areas: "k k" "n p" "m m"; }
.speed .sp-k { grid-area: k; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #A9AEEA; }
.speed .sp-l { grid-area: p; font-size: 14.5px; color: #CDD0EE; line-height: 1.45; }
.speed .more { grid-area: m; color: #C9CCF5; }

/* confianza: tarjetas que se abren */
.sec-card { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; transition: border-color .35s, box-shadow .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.sec-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.sec-t { display: block; margin: 14px 0 6px; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.sec-d { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.trust .sec-head .lede { margin-top: 18px; }

/* bento de 9 con videos */
.tile-diag, .tile-law, .tile-team, .tile-twin { grid-column: span 3; }
.tile-diag { order: 1; } .tile-law { order: 2; } .tile-team { order: 3; } .tile-twin { order: 4; }
.tile-mail { order: 5; } .tile-data { order: 6; } .tile-quote { order: 7; }
.tile-chat { order: 8; grid-column: span 3; } .tile-report { order: 9; grid-column: span 3; }
.tile-diag .tile-screen, .tile-twin .tile-screen, .tile-law .tile-screen, .tile-team .tile-screen { height: auto; aspect-ratio: 16 / 9; }
.tile-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 980px) { .tile-diag, .tile-law, .tile-team, .tile-twin, .tile-chat, .tile-report { grid-column: span 2; } }
@media (max-width: 600px) { .tile-diag, .tile-law, .tile-team, .tile-twin, .tile-chat, .tile-report { grid-column: span 1; } }

/* modal de detalle */
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.dt { border-top: 1px solid var(--line); padding-top: 12px; }
.dt-what, .dt-how { grid-column: span 1; }
.dt-ex, .dt-state, .dt-honest, .dt-check, .dt-out { grid-column: 1 / -1; }
.dt-k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px !important; }
.dt-b { color: var(--ink2); font-size: 15.5px; line-height: 1.6; }
.dt-b ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.dt-ex .dt-b { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); }
.dt-state .dt-b, .dt-honest .dt-b, .dt-check .dt-b, .dt-out .dt-b { background: var(--accent-soft); color: var(--accent-deep); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.modal-body .m-vnote { margin-top: 16px; }
@media (max-width: 600px) { .dt-grid { grid-template-columns: 1fr; } .dt-what, .dt-how { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .spine.live .sp-bar i, .spine.live .sp-in-f, .spine.live .sp-out-f { animation: none; } }

/* marca gráfica externa (marca/): logo horizontal y estela de fondo del héroe, si existen */
.brand-logo { height: 30px; width: auto; display: block; }
.hero[data-estela] { isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7; will-change: transform, opacity; animation: almaRise 24s ease-in-out infinite alternate; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
@keyframes almaRise { from { transform: translate3d(0, 1.5%, 0) scale(1); opacity: .78; } to { transform: translate3d(0, -1.5%, 0) scale(1.03); opacity: .5; } }
@media (max-width: 900px) { .hero-bg { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }

section[id] { scroll-margin-top: 72px; }
.eb-sep { opacity: .5; }
@media (max-width: 520px) { .hero .eb-sep, .hero .eb-b { display: none; } }
@media (max-width: 600px) { .speed { grid-template-areas: "k" "n" "p" "m"; } }
.tile-team .tile-screen video { object-position: center top; }

/* héroe v2 · tono de marca: titular serif centrado, mucho aire, la estela detrás */
@media (min-width: 901px) {
  .hero { padding: clamp(48px, 7vw, 96px) 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy copy" "lede lede" "try sphere"; column-gap: 48px; row-gap: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero h1 { font-size: clamp(56px, 5.4vw, 80px); line-height: 1; }
  .hero h1 em { white-space: nowrap; }
  .hero-rot { margin-top: 18px; }
  .hero-lede { text-align: center; margin: 18px auto 44px; max-width: 64ch; font-size: 18px; }
  .hero-sphere { position: sticky; top: 72px; max-width: 520px; justify-self: center; margin-top: -40px; }
  .hero-try { align-self: start; }
}
.hero::before { background: radial-gradient(closest-side, rgba(46,52,112,.06), transparent 70%); }
.hero[data-estela] > .wrap { position: relative; z-index: 1; }

/* =========================================================
   v3 · héroe cinematográfico (una idea: titular + 1 línea + 1 CTA; esfera y estela = un solo elemento)
   ========================================================= */
.hero { padding: clamp(22px, 4.2vh, 60px) 0 0; min-height: min(calc(100svh - 66px), 1000px); display: flex; flex-direction: column; text-align: center; }
.hero-in { position: relative; z-index: 2; width: 100%; }
.hero .hero-copy { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .eyebrow { justify-content: center; margin-bottom: 20px; }
.hero h1 { font-size: clamp(50px, 5.7vw, 86px); line-height: .98; }
.hero h1 em { white-space: nowrap; }
.hero-sub { margin-top: 20px; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--ink2); max-width: 24em; text-wrap: balance; }
@media (min-width: 601px) { .hero-sub { min-height: 4.5em; } }
.hero-cta { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-cta .arr { display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.hero-cta .btn:hover .arr { transform: translateY(3px); }
.hero-cta-note { font-size: 11.5px; letter-spacing: .05em; color: var(--muted); }
/* la chispa: arriba del texto, nunca encima de él */
.hero-bg .spark, .hero-bg .spark-core { display: none; }
.hero-spark { position: relative; width: 8px; height: 8px; margin-bottom: 20px; }
.hero-spark::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(79,70,229,.26), rgba(79,70,229,.08) 45%, transparent); pointer-events: none; }
.hero-spark i { position: absolute; inset: 0; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px rgba(79,70,229,.14); animation: sparkRise 6s ease-in-out infinite; }
@keyframes sparkRise { 0%, 100% { transform: translateY(2px) scale(.94); opacity: .85; } 50% { transform: translateY(-3px) scale(1.06); opacity: 1; } }
.hero-orb { position: relative; z-index: 1; flex: 1 0 auto; width: min(100%, 1100px); min-height: clamp(300px, 50vh, 560px); margin: -18px auto 0; }
.hero-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.hero-orb .sphere-labels { position: absolute; inset: 0; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 0; }
@media (max-width: 600px) {
  .hero { padding-top: 30px; min-height: 0; }
  .hero h1 { font-size: 46px; }
  .hero h1 em { white-space: normal; }
  .hero-sub { font-size: 17px; margin-top: 16px; }
  .hero-cta { margin-top: 22px; gap: 10px; }
  .hero-spark { margin-bottom: 18px; }
  .hero-spark::before { width: 90px; height: 90px; }
  .hero-orb { flex: none; height: 290px; min-height: 0; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-spark i { animation: none; } }

/* =========================================================
   v3 · Pregúntale a Alma
   ========================================================= */
.askx { padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 112px); }
.askx .sec-head { text-align: center; margin: 0 auto 40px; max-width: 860px; }
.askx .sec-head .lede { margin: 18px auto 0; }
.aa { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); height: 660px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.aa-chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.aa-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.aa-logo { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; letter-spacing: .04em; }
.aa-co { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.aa-co b { font-size: 15px; font-weight: 600; }
.aa-co span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-fict { margin-left: auto; flex: none; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; }
.aa-log { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 22px 10px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; scrollbar-width: thin; }
.aa-msg { display: flex; gap: 12px; align-items: flex-start; }
.aa-av { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff url(/assets/favicon.svg) center / 17px no-repeat; border: 1px solid var(--line); margin-top: 1px; }
.aa-bubble { min-width: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.aa-bubble p + p, .aa-bubble ul + p, .aa-bubble p + ul { margin-top: 10px; }
.aa-user { justify-content: flex-end; }
.aa-user .aa-bubble { background: var(--ink); color: #fff; padding: 10px 15px; border-radius: 18px 18px 4px 18px; max-width: 82%; }
.aa-mapped { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line2); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.aa-mapped b { color: var(--ink); font-weight: 600; }
.aa-trace { list-style: none; margin: 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--accent-soft); font: 12px/1.7 var(--f-mono); color: var(--muted); }
.aa-trace li { display: flex; gap: 8px; align-items: center; }
.aa-trace li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line2); flex: none; }
.aa-trace li.on::before { background: var(--accent); animation: pulseDot 1s ease-in-out infinite; }
.aa-trace li.ok::before { background: var(--ok); animation: none; }
.aa-trace b { color: var(--ink); font-weight: 500; }
@keyframes pulseDot { 50% { opacity: .3; } }
.aa-ans { margin-top: 12px; }
.aa-ans ul { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 10px; }
.aa-ans li { position: relative; padding-left: 16px; }
.aa-ans li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.aa-ans b { font-weight: 600; }
.aa-cite { display: inline-flex; align-items: center; gap: 5px; margin: 3px 5px 0 0; padding: 2px 9px 2px 6px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 60%, #fff); color: var(--accent-deep); border-radius: 999px; font: 500 11.5px/1.5 var(--f-mono); cursor: pointer; vertical-align: 1px; transition: background .2s, color .2s, border-color .2s; animation: citeIn .35s both; }
.aa-cite:hover, .aa-cite.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.aa-cite .aa-ico { width: 13px; height: 13px; }
@keyframes citeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.aa-act { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; background: linear-gradient(180deg, #fff, var(--bg)); animation: citeIn .4s both; }
.aa-act-ic { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.aa-act-ic svg { width: 16px; height: 16px; }
.aa-act b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.aa-act .who { grid-column: 2; font: 500 11px var(--f-mono); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.aa-act .who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C9A227; flex: none; }
.aa-act .btn { grid-column: 3; grid-row: 1 / span 2; }
.aa-meta { margin-top: 10px; font: 11px var(--f-mono); color: var(--muted); }
.aa-caret::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2) infinite; margin-left: 1px; }
.aa-compose { border-top: 1px solid var(--line); padding: 12px 16px 16px; background: #fff; }
.aa-notice { font-size: 12.5px; line-height: 1.45; color: var(--accent-deep); background: var(--accent-soft); border-radius: 10px; padding: 7px 11px; margin-bottom: 9px; animation: citeIn .35s both; }
.aa-notice[hidden] { display: none; }
.aa-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--accent); margin-bottom: 8px; letter-spacing: .04em; }
.aa-badge[hidden] { display: none; }
.aa-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.aa-chip { border: 1px solid var(--line2); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, opacity .2s; }
.aa-chip:hover { border-color: var(--ink); background: #fff; }
.aa-chip.used { opacity: .5; }
.aa-form { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line2); border-radius: 16px; padding: 5px 5px 5px 16px; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.aa-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.aa-form input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: 400 16px var(--f-sans); color: var(--ink); outline: none; }
.aa-send { width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.aa-send:hover { background: var(--accent); }
.aa-send svg { width: 18px; height: 18px; }
.aa.busy .aa-chip, .aa.busy .aa-send { pointer-events: none; opacity: .55; }
.aa-side { position: relative; background: var(--bg); min-height: 0; overflow: hidden; }
.aa-mem { height: 100%; padding: 20px; display: flex; flex-direction: column; }
.aa-side-h .mono { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.aa-side-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.aa-srcs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aa-src { position: relative; display: flex; flex-direction: column; gap: 1px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 9px; overflow: hidden; transition: border-color .35s, box-shadow .35s, opacity .35s; }
.aa-src .aa-ico { width: 17px; height: 17px; color: var(--accent); margin-bottom: 6px; }
.aa-src b { font: 600 21px/1.1 var(--f-sans); letter-spacing: -.02em; }
.aa-src-l { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.aa-src-hit { font-size: 11px; color: var(--accent); min-height: 1.5em; margin-top: 2px; }
.aa-src-hit b { font: inherit; letter-spacing: 0; }
.aa-scan { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.aa-scan i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; }
.aa-src.scan { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft); }
.aa-src.scan .aa-scan i { opacity: 1; animation: aaScan 1s linear infinite; }
.aa-src.dim { opacity: .5; }
@keyframes aaScan { to { left: 100%; } }
.aa-hint { margin-top: auto; padding-top: 16px; }
.aa-feed { margin-top: 16px; }
.aa-feed-h { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.aa-feed ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aa-feed li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 2px 9px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 11px; font-size: 12.5px; animation: feedIn .5s cubic-bezier(.2,.7,.2,1); }
.aa-feed li .aa-ico { width: 14px; height: 14px; color: var(--accent); }
.aa-feed .ft { font: 10.5px var(--f-mono); color: var(--muted); }
.aa-feed .fw { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-feed .fx { grid-column: 3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }
.aa-ico { display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.aa-doc { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: #fff; animation: aaIn .35s cubic-bezier(.2,.7,.2,1); }
.aa-doc[hidden] { display: none; }
@keyframes aaIn { from { transform: translateX(28px); opacity: 0; } }
.aa-doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.aa-back { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--accent); font-size: 12px; }
.aa-doc-k { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aa-doc-k .aa-ico { width: 14px; height: 14px; color: var(--accent); }
.aa-doc-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px 26px; font-size: 14.5px; line-height: 1.6; color: var(--ink2); outline: none; }
.dv-h { font: 600 26px/1.1 var(--f-head); color: var(--ink); }
.dv-meta { font: 11.5px var(--f-mono); color: var(--muted); margin: 6px 0 14px; }
.dv-fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.dv-fields dt { color: var(--muted); }
.dv-fields dd { margin: 0; color: var(--ink); }
.dv-body p + p { margin-top: 10px; }
.dv-flag { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font: 500 11px var(--f-mono); color: var(--ink2); background: var(--bg2); border-radius: 999px; padding: 5px 11px; }
.dv-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C9A227; }
.dv-wa { background: var(--bg2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.wa-b { max-width: 86%; background: #fff; border-radius: 12px 12px 12px 4px; padding: 7px 11px 6px; font-size: 14px; line-height: 1.5; color: var(--ink); box-shadow: 0 1px 1px rgba(18,22,58,.06); }
.wa-us { margin-left: auto; background: #E4E7FB; border-radius: 12px 12px 4px 12px; }
.wa-who { display: block; font: 500 10.5px var(--f-mono); color: var(--accent-deep); margin-bottom: 2px; }
.wa-t { display: block; text-align: right; font: 10px var(--f-mono); color: var(--muted); margin-top: 2px; }
.dv-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dv-tab th { text-align: left; font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line2); }
.dv-tab td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.dv-tab th:last-child, .dv-tab td:last-child { text-align: right; padding-right: 0; }
.dv-total { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); padding-top: 10px; }
.dv-foot { margin-top: 12px; font-size: 13.5px; color: var(--ink); }
.mt-l { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1px 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mt-t { font: 11px var(--f-mono); color: var(--muted); padding-top: 2px; }
.mt-who { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.mt-x { grid-column: 2; color: var(--ink2); }
.dv-pdf { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: linear-gradient(#fff, #FCFCFA); box-shadow: 0 1px 2px rgba(18,22,58,.04); font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: var(--ink); }
.dv-pend { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); color: var(--accent-deep); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px; }
.dv-pend b { font-weight: 600; }
.dv-to { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.dv-to b { color: var(--ink); font-weight: 500; }
.aa-doc-body mark { color: var(--ink); background: linear-gradient(rgba(46,52,112,.15), rgba(46,52,112,.15)) no-repeat 0 0 / 0% 100%; border-radius: 3px; padding: 1px 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size .9s cubic-bezier(.2,.7,.2,1) .25s; box-shadow: inset 0 -1.5px 0 rgba(46,52,112,.55); }
.aa-doc-body.lit mark { background-size: 100% 100%; }
.aa-note { max-width: 860px; margin: 18px auto 0; text-align: center; }
.aa-sheet-back { display: none; }
@media (max-width: 900px) {
  .aa { grid-template-columns: minmax(0, 1fr); height: auto; border-radius: 22px; }
  .aa-chat, .aa-side, .aa-compose { min-width: 0; }
  .aa-feed { display: none; }
  .aa-chat { border-right: 0; }
  .aa-log { height: 470px; flex: none; padding: 18px 16px 8px; }
  .aa-side { order: -1; border-bottom: 1px solid var(--line); overflow: visible; }
  .aa-mem { padding: 12px 14px; height: auto; }
  .aa-side-sub, .aa-hint { display: none; }
  .aa-srcs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .aa-src { padding: 8px 9px 7px; border-radius: 12px; }
  .aa-src .aa-ico { display: none; }
  .aa-src b { font-size: 15px; }
  .aa-src-l { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .aa-src-hit { font-size: 10px; min-height: 1.3em; margin-top: 1px; }
  .aa-src-hit .hw { display: none; }
  .aa-doc { position: fixed; inset: auto 0 0 0; height: 80vh; height: 80svh; z-index: 86; border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); animation: aaUp .35s cubic-bezier(.2,.7,.2,1); }
  .aa-sheet-back { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(18,22,58,.38); }
  .aa-sheet-back[hidden] { display: none; }
  .aa-top { padding: 12px 14px; }
  .aa-co span { font-size: 11.5px; }
  .aa-compose { padding: 10px 12px 12px; }
  .aa-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 10px; padding: 0 12px; }
  .aa-chips::-webkit-scrollbar { display: none; }
  .aa-act { grid-template-columns: auto minmax(0, 1fr); }
  .aa-act .btn { grid-column: 1 / -1; grid-row: auto; margin-top: 10px; }
}
@keyframes aaUp { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 420px) { .aa-fict { display: none; } }
@media (prefers-reduced-motion: reduce) { .aa-src.scan .aa-scan i, .aa-trace li.on::before { animation: none; } .aa-doc-body mark { transition: none; } }

/* =========================================================
   v3 · diagnóstico por rubro (antes en el héroe)
   ========================================================= */
.tryx { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); background: var(--bg2); border-top: 1px solid var(--line); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.try-grid .hero-try { grid-area: auto; }
@media (max-width: 900px) {
  .try-grid { grid-template-columns: 1fr; gap: 8px; }
}
.tile-ask { grid-column: span 3; order: 1; }
.tile-ask .tile-screen { height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 980px) { .tile-ask { grid-column: span 2; } }
@media (max-width: 600px) { .tile-ask { grid-column: span 1; } }

/* =========================================================
   v4 · casos jugables, 3D, etiquetas del héroe, ritmo y cierre
   ========================================================= */
/* héroe: etiquetas siempre legibles (por encima de los puntos, sin choques) */
.sl { background: rgba(255,255,255,.96); border-color: var(--line2); color: var(--ink); font-size: 12px; padding: 4px 10px; box-shadow: 0 1px 2px rgba(18,22,58,.06), 0 6px 18px rgba(18,22,58,.08); backdrop-filter: none; transition: color .3s, border-color .3s, box-shadow .3s, background .3s; }
.sl.back { color: var(--ink2); }
.sl.hot { color: #fff; background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 6px 20px rgba(22,27,110,.25); }
.sphere-labels { z-index: 2; }

/* ritmo entre secciones: una línea fina con el punto de la columna vertebral */
main > section + section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1240px, calc(100% - 32px)); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line2) 18%, var(--line2) 82%, transparent); pointer-events: none; z-index: 1; }
main > section + section::after { content: ""; position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); pointer-events: none; z-index: 1; }
.sec-head h2 { letter-spacing: -.02em; }
.askx .not-chatbot { margin-top: 44px; }

/* pestañas de casos */
.case-tabs { gap: 12px; margin-bottom: 34px; }
.case-tab { position: relative; padding: 16px 20px 16px 58px; border-radius: 18px; background: var(--paper); border-color: var(--line); box-shadow: 0 1px 2px rgba(18,22,58,.03); }
.case-tab .ct-i { position: absolute; left: 18px; top: 19px; font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.case-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); box-shadow: 0 14px 36px rgba(18,22,58,.22); }
.case-tab[aria-selected="true"] .ct-i { color: #9EA4FF; }
.case-panel { animation: fadeUp .55s cubic-bezier(.2,.7,.2,1); }
.case-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: 28px; }
.case-head h3 { font-family: var(--f-head); font-weight: 600; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -.015em; margin-top: 14px; }
.ch-r p { color: var(--ink2); font-size: 16.5px; line-height: 1.6; margin: 0; }
.ch-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.status-dot.ok { background: var(--ok); }

/* escenario: el mismo marco de producto que «Pregúntale» */
.cstage { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stage-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px 11px 20px; border-bottom: 1px solid var(--line); min-height: 60px; }
.stage-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.st-steps { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0; overflow-x: auto; scrollbar-width: none; counter-reset: st; }
.st-steps::-webkit-scrollbar { display: none; }
.st-steps li { counter-increment: st; }
.st-step { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font: 500 12.5px var(--f-sans); padding: 6px 10px 6px 7px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.st-step i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); display: inline-grid; place-items: center; font: 500 10px var(--f-mono); font-style: normal; transition: all .25s; flex: none; }
.st-step i::before { content: counter(st); }
.st-step:hover { color: var(--ink); background: var(--bg); }
.st-step.done i { border-color: var(--accent); color: var(--accent); }
.st-step.on { color: var(--ink); background: var(--accent-soft); }
.st-step.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-step span { max-width: 0; overflow: hidden; transition: max-width .45s cubic-bezier(.2,.7,.2,1); }
.st-step.on span, .st-step:hover span { max-width: 260px; }
.stage-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }
.stage-body > .side { border-top: 0; border-left: 1px solid var(--line); background: var(--bg); padding: 22px; min-height: 0; overflow: auto; }
.cstage .side .sd-k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.cstage .side h4 { font-family: var(--f-head); font-weight: 600; font-size: 24px; line-height: 1.1; margin-bottom: 8px; letter-spacing: -.01em; }
.cstage .side p { font-size: 14.5px; color: var(--ink2); margin: 0; }
.cstage .side .help { font-size: 13.5px; margin-top: 10px; }
.cstage .side > .help:first-child { margin-top: 0; }
.cstage .side .tag { border: 0; font: 500 11px var(--f-mono); }
.cstage .side button.tag { cursor: pointer; }
.cstage .side button.tag:hover { background: var(--accent); color: #fff; }
.cstage .side button.tag.hit:hover { background: var(--warm); }
.cstage .side .tag.hot { background: var(--accent-deep); color: #fff; }
.cstage .side .tag.pend { background: var(--bg2); color: var(--ink2); margin-top: 10px; }
.cstage .side .proof { font: 400 12px var(--f-mono); color: var(--ink2); }
.cstage .side .tags { margin-top: 10px; }
.st-cap { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 6px 14px; padding: 14px 20px 16px; border-top: 1px solid var(--line); background: #fff; position: relative; min-height: 56px; }
.st-cap-n { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.st-cap-t { font-weight: 600; font-size: 15px; white-space: nowrap; }
.st-cap-d { font-size: 14.5px; color: var(--ink2); }
.st-cap.flash .st-cap-t, .st-cap.flash .st-cap-d { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1); }
.st-prog { position: absolute; left: 0; right: 0; top: -1px; height: 2px; }
.st-prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; gap: 12px; }
#panel-legal .facts-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-row .fact { padding: 18px 18px 16px; border-radius: 18px; }
.facts-row .fact b { font-size: 34px; }

/* @LEGAL@: grafo */
.cstage-legal .graph-wrap { height: 540px; background: radial-gradient(120% 90% at 50% 40%, #fff 40%, #F4F5F8); }
#graph { width: 100%; height: 100%; display: block; }
#graph .edge { fill: none; stroke: #CFCDDE; stroke-width: 1.3; transition: stroke .4s, opacity .4s, stroke-width .3s; }
#graph .edge.x { stroke-dasharray: 2 5; stroke: #A9ACD6; stroke-linecap: round; }
#graph .edge.path { stroke: var(--accent); stroke-width: 2.6; stroke-dasharray: none; }
#graph .edge.hit { stroke: var(--warm); stroke-width: 2; }
#graph .edge.gone { opacity: 0; }
#graph .pct { font: 500 10.5px var(--f-mono); fill: var(--ink2); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
#graph .pct.on { fill: var(--accent); font-weight: 600; font-size: 12px; }
#graph .node { cursor: pointer; transition: opacity .4s; outline: none; }
#graph .node .halo { fill: var(--accent); opacity: 0; transition: opacity .3s; stroke: none; }
#graph .node:hover .halo, #graph .node:focus-visible .halo, #graph .node.sel .halo, #graph .node.on .halo { opacity: .1; }
#graph .node.fam circle:not(.halo) { fill: var(--accent-deep); stroke: #fff; stroke-width: 2; }
#graph .node.soc circle:not(.halo) { fill: #fff; stroke: var(--accent); stroke-width: 1.6; }
#graph .node.soc.on circle:not(.halo) { fill: var(--accent); }
#graph .node.soc.on .gl { fill: #fff; }
#graph .node.soc.hit circle:not(.halo) { fill: var(--warm); stroke: var(--warm); }
#graph .node.soc.hit .gl { fill: #fff; }
#graph .node.hit .halo { fill: var(--warm); opacity: .16; }
#graph .node.sel circle:not(.halo) { stroke: var(--ink); stroke-width: 2.6; }
#graph .node.gone { opacity: .22; }
#graph .node text { pointer-events: none; }
#graph .node:hover circle:not(.halo) { stroke-width: 2.6; }
#graph .ini { font: 600 12px var(--f-sans); fill: #fff; }
#graph .gl { font: 600 8.5px var(--f-mono); fill: var(--accent); }
#graph .lbl { font: 600 12px var(--f-sans); fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.95); stroke-width: 5px; stroke-linejoin: round; }
#graph .lbl.s { font: 500 10.5px var(--f-mono); fill: var(--ink2); }
#graph .wave { fill: none; stroke: var(--warm); stroke-width: 2; opacity: 0; }
.cstage-legal .graph-legend { position: absolute; left: 16px; bottom: 14px; border: 0; padding: 7px 12px; background: rgba(255,255,255,.9); border-radius: 999px; backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.graph-act { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 8px; }
.cstage-legal .law-chip { left: 16px; right: auto; max-width: min(560px, calc(100% - 32px)); top: 14px; }
.law-chip.time { background: var(--accent-soft); color: var(--accent-deep); border-color: #CDD0F6; }
.seg-time .seg-b { font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
.eff { margin-top: 14px; background: #fff; border: 1px solid #CDD0F6; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.eff .mono { font-size: 11px; color: var(--muted); line-height: 1.45; }
.eff b { font: 600 40px/1 var(--f-head); color: var(--accent); }
.cstage .side .letter { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 14px; box-shadow: var(--shadow); }
.cstage .side .letter p { font-size: 14px; margin-top: 6px; }

/* Grupo: 3D */
.cstage-3d .wh-wrap { height: 580px; background: radial-gradient(120% 100% at 40% 0%, #FBFBFD, #E9E9F1 75%); }
.wh-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.wl { position: absolute; left: 0; top: 0; font: 500 11.5px var(--f-sans); color: var(--ink); background: rgba(255,255,255,.95); border: 1px solid rgba(18,22,58,.1); padding: 4px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(18,22,58,.1); transition: opacity .25s, background .3s, color .3s; will-change: transform; opacity: 0; }
.wl.zone { font: 600 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; border-color: var(--ink); }
.wl.mini { font: 500 10px var(--f-mono); padding: 2px 7px; background: rgba(255,255,255,.88); box-shadow: none; }
.wl.warm { color: #A2400F; border-color: #C9C6F8; background: #FFF6F1; font: 500 10.5px var(--f-mono); }
.wl.focus:not(.zone):not(.warm) { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.wl.warm.focus { background: var(--warm); color: #fff; border-color: var(--warm); }
.wl.zone.focus { background: var(--accent); border-color: var(--accent); }
.wl.pin { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--warm); color: #fff; border: 2px solid #fff; font: 600 12px var(--f-mono); box-shadow: 0 6px 16px rgba(79,70,229,.35); }
.wh-hud { position: absolute; left: 14px; top: 14px; z-index: 3; display: grid; grid-template-columns: auto auto; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid rgba(18,22,58,.08); border-radius: 16px; box-shadow: var(--shadow); max-width: calc(100% - 28px); }
.hud-c { padding: 10px 16px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hud-c + .hud-c { border-left: 1px solid var(--line); }
.hud-k { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hud-v { font: 600 30px/1.05 var(--f-head); color: var(--ink); transition: color .4s; }
.is-opt .hud-v { color: var(--accent); }
.hud-s { font-size: 10px; color: var(--ink2); }
.hud-note { grid-column: 1 / -1; margin: 0; padding: 6px 16px 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.wh-legend { position: absolute; right: 14px; top: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font-size: 10.5px; color: var(--ink2); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); padding: 9px 12px; border-radius: 14px; border: 1px solid rgba(18,22,58,.08); box-shadow: var(--shadow); transition: opacity .3s; }
.wl-ramp { display: inline-flex; align-items: center; gap: 8px; }
.wl-ramp i { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #E6E6EE, #B9BCE6 35%, #6E76DA 65%, #2E3470 85%, #141A66); }
.cstage-3d:has([data-wh="real"][aria-pressed="true"]) .wh-legend { opacity: 0; }
.wh-ctrl { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg-glass { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-color: rgba(18,22,58,.08); box-shadow: var(--shadow); }
#wh-route[aria-pressed="true"] { background: var(--warm); color: #fff; border-color: var(--warm); }
.wh-search { margin-left: auto; display: flex; align-items: center; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border: 1px solid rgba(18,22,58,.1); border-radius: 999px; padding: 3px 3px 3px 14px; box-shadow: var(--shadow); }
.wh-search input { border: 0; background: transparent; font: 500 14px var(--f-sans); width: 150px; outline: none; color: var(--ink); min-width: 0; }
.wh-search button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 11.5px; cursor: pointer; }
.wh-loading { z-index: 1; }
.cstage .side .found { font-size: 11px; color: var(--accent); margin-bottom: 10px; }

/* SpeakerCoach: organigrama + recorrido del correo */
.org-wrap { display: flex; flex-direction: column; min-height: 0; }
.cstage-org .org { padding: 30px 22px 26px; gap: 30px; min-height: 340px; justify-content: center; flex: 1; }
.org-mid { display: flex; gap: 14px; justify-content: center; position: relative; z-index: 1; }
.org-rev { min-width: 150px; border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.org-node.flow { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow); }
.org-human.flow { box-shadow: 0 0 0 6px rgba(18,22,58,.12), var(--shadow); }
.org-tok { position: absolute; left: 0; top: 0; z-index: 4; width: 34px; height: 34px; border-radius: 50%; background: var(--warm); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(79,70,229,.4); transition: transform .9s cubic-bezier(.65,0,.35,1); pointer-events: none; }
.org-tok[hidden] { display: none; }
.org-tok svg { width: 18px; height: 18px; }
.cstage-org .feed { height: 168px; }
.feed li.hl span:last-child { color: var(--ink); font-weight: 500; }
.mail-card .q { font-size: 15px; color: var(--ink); margin: 2px 0 0; }
.draft { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cstage .side .draft .tw { font-size: 14px; color: var(--ink); min-height: 3em; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.checks li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.checks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; transition: all .3s; }
.checks li.ok { color: var(--ink); }
.checks li.ok::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--ok); }
.approve { margin-top: 14px; background: #fff; border: 1px solid var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); animation: fadeUp .4s; }
.ap-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ap-row .code { background: rgba(255,255,255,.18); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.ap-row .btn-ghost .code { background: var(--bg2); }
.ap-row .press { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.cstage .side .sent { margin-top: 14px; font: 500 13px var(--f-mono); color: var(--ink2); }
.cstage .side .sent.ok { color: var(--ok); }
.sent.ok::before { content: "✓ "; }

/* caso completo */
.dossier h3 { font-family: var(--f-head); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 10px 0 14px; letter-spacing: -.015em; }
.ds-ctx { color: var(--ink2); font-size: 16px; max-width: 70ch; margin: 0; }
.ds-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 22px 0 26px; }
.ds-nums div { background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ds-nums b { font: 600 28px/1.05 var(--f-head); color: var(--accent-deep); }
.ds-nums span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ds-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; }
.dossier h4 { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-weight: 500; }
.ds-grid ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink2); }
.ds-tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line2); display: flex; flex-direction: column; gap: 12px; }
.ds-tl li { position: relative; }
.ds-tl li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); }
.ds-tl .mono { font-size: 11px; color: var(--accent); }
.ds-tl p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink2); }
.ds-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.ds-foot > div { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.ds-foot p { margin: 0; font-size: 14px; color: var(--ink2); }

/* qué hace: 5 tarjetas parejas (2 grandes + 3) */
.tile-mail, .tile-data { order: 1; grid-column: span 3; }
.tile-quote, .tile-chat, .tile-report { order: 2; grid-column: span 2; }

/* cierre: diagnóstico sobre tinta */
.cta { position: relative; overflow: clip; background: radial-gradient(90% 120% at 12% 0%, #1D2366 0%, var(--ink) 58%); color: #EDEEF8; border-top: 0; padding: clamp(88px, 11vw, 160px) 0; }
main > section.cta::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.14) 18%, rgba(255,255,255,.14) 82%, transparent); }
main > section.cta::after { background: var(--ink); border-color: var(--warm); }
.cta .eyebrow { color: #ABA6FF; }
.cta h2 { color: #fff; font-size: clamp(40px, 5.4vw, 78px); }
.cta h2 em { color: #ABA6FF; }
.cta .lede { color: rgba(237,238,248,.8); }
.cta-steps li { color: rgba(237,238,248,.92); }
.cta-steps li::before { color: #ABA6FF; }
.cta .dform { box-shadow: 0 40px 90px rgba(0,0,0,.35); color: var(--ink); }
.cta-grid { align-items: center; position: relative; z-index: 1; }
.cta-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 85% 90%, rgba(46,52,112,.35), transparent 70%); }

@media (max-width: 1080px) {
  .stage-body { grid-template-columns: 1fr; }
  .stage-body > .side { border-left: 0; border-top: 1px solid var(--line); }
  .case-head { grid-template-columns: 1fr; align-items: start; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) { .tile-mail, .tile-data, .tile-quote, .tile-chat, .tile-report { grid-column: span 1; } .tile-report { grid-column: span 2; } }
@media (max-width: 600px) { .tile-report { grid-column: span 1; } }
@media (max-width: 760px) {
  .cstage { border-radius: 22px; }
  .stage-bar { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .stage-title { order: 1; flex: 1; }
  .stage-bar .seg, .stage-bar .live { order: 2; }
  .st-steps { order: 3; width: 100%; margin: 0; }
  .st-step span { max-width: 0 !important; }
  .st-step.on span { max-width: 240px !important; }
  .cstage-legal .graph-wrap { height: 440px; }
  .cstage-3d .wh-wrap { height: 540px; }
  .st-cap { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px 14px; }
  .st-cap-t { white-space: normal; }
  .wh-hud { left: 10px; top: 10px; right: 10px; max-width: none; grid-template-columns: 1fr 1fr; }
  .hud-c { padding: 8px 12px 6px; }
  .hud-v { font-size: 24px; }
  .hud-note { padding: 5px 12px 6px; font-size: 10.5px; }
  .wh-legend { top: auto; bottom: 104px; right: 10px; padding: 7px 10px; }
  .wh-legend > span:first-child { display: none; }
  .wh-ctrl { left: 10px; right: 10px; bottom: 10px; }
  .wh-search { margin-left: 0; width: 100%; }
  .wh-search input { flex: 1; width: auto; }
  .ds-grid, .ds-foot { grid-template-columns: 1fr; }
  .case-tab { padding: 14px 16px 14px 46px; min-width: 220px; }
  .case-tab .ct-i { left: 16px; top: 17px; }
  .org-mid { gap: 8px; width: 100%; }
  .org-rev, .org-gen { min-width: 0; flex: 1; }
  .cstage-org .org { padding: 22px 12px; gap: 22px; }
  .graph-act { right: 10px; bottom: 10px; }
  .cstage-legal .graph-legend { left: 10px; bottom: 58px; }
}
@media (max-width: 420px) { .facts-row, #panel-legal .facts-row { grid-template-columns: 1fr; } .facts-row .fact b { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .org-tok { transition: none; } .caret { animation: none; } .st-step span { transition: none; } }

.cstage-org .org-lines path { stroke: #C3C1D3; stroke-width: 1.4; }
@media (max-width: 760px) { .cstage { display: flex; flex-direction: column; } .cstage .st-cap { order: 1; border-top: 0; border-bottom: 1px solid var(--line); } .cstage .stage-body { order: 2; } #graph .lbl { font-size: 11px; } }
.ds-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--line); }
@media (max-width: 600px) { .ds-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ds-nums b { font-size: 24px; } }
/* v5: resto de la sociedad en manos de terceros (no es un enlace) */
.cstage .side .tag.ext { background: transparent; color: var(--muted); border: 1px dashed #C9CBE0; }
#graph-side dl { grid-template-columns: 1fr; gap: 2px; }
#graph-side dt { margin-top: 10px; }
#graph-side dl > dt:first-child { margin-top: 0; }
.cstage .side .tag.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; text-align: left; border-radius: 8px; padding: 5px 10px; margin: 0 0 4px; line-height: 1.35; }
.cstage .side .tag.row b { font-weight: 600; white-space: nowrap; }
#graph .node.soc .lbl.s { opacity: 1; }
.cstage-legal .graph-wrap { height: 580px; }
@media (max-width: 760px) { .cstage-legal .graph-wrap { height: 600px; } .cstage-legal .law-chip { font-size: 11px; line-height: 1.35; } }
/* v5: 3D · cifras, leyenda y ficha en el panel derecho (nada encima de la maqueta salvo los controles) */
.wh-side { display: flex; flex-direction: column; gap: 16px; }
.wh-sum { display: flex; flex-direction: column; gap: 14px; }
.whk { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 10px; transition: border-color .4s, box-shadow .4s; }
.whk-k { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.whk-b { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 10px; padding: 3px 0; }
.whk-b span { font-size: 10.5px; color: var(--ink2); }
.whk-b i { display: block; height: 8px; border-radius: 4px; background: #D9DAE8; transform-origin: left; transition: background .4s; }
.whk-b b { font: 600 22px/1.05 var(--f-head); color: var(--ink2); min-width: 64px; text-align: right; transition: color .4s; }
.wh-side:not(.is-opt) .whk-b.now b, .wh-side.is-opt .whk-b.prop b { color: var(--ink); }
.wh-side:not(.is-opt) .whk-b.now i { background: #8A8FB0; }
.wh-side.is-opt .whk-b.prop i { background: var(--accent); }
.wh-side.is-opt .whk-b.prop b { color: var(--accent); }
.wh-side.is-route .whk[data-k="2"], .wh-side.em-1 .whk[data-k="1"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wh-sum .hud-note { padding: 0; border: 0; font-size: 11.5px; }
.wh-sum .whl { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--ink2); }
.cstage-3d:has([data-wh="real"][aria-pressed="true"]) .wh-sum .whl { opacity: .35; }
.wh-pick:empty { display: none; }
.wh-pick { border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 760px) { .whk-b { grid-template-columns: 70px 1fr auto; } .whk-b b { font-size: 20px; } }
@media (max-width: 760px) { .st-step.on span { max-width: 0 !important; } }
/* v5: el titular no cambia de número de líneas cuando llega la fuente (CLS) */
.hero h1 { font-size: clamp(50px, 5.7vw, 82px); }
@media (max-width: 600px) { .hero h1 { font-size: 46px; } .h1br { display: none; } }

/* v5: paneles laterales con contenido útil desde el primer momento */
.side-sum { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; }
.side-sum li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.side-sum b { font: 600 24px/1 var(--f-head); color: var(--ink); }
.side-sum span { font-size: 13.5px; color: var(--ink2); line-height: 1.35; }
.side-rules { margin: 4px 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink2); }
.side-rules li::marker { font: 500 12px var(--f-mono); color: var(--accent); }
/* v5: mesón por WhatsApp (caso del grupo automotriz) */
.cstage-wa { margin-bottom: 22px; }
.cstage-wa .stage-bar .st-play { margin-left: auto; }
.wa-phone { display: flex; flex-direction: column; min-height: 460px; background: #EFEDE6; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.wa-head b { display: block; font-size: 14.5px; color: var(--ink); }
.wa-head small { display: block; font-size: 12px; color: var(--muted); }
.wa-av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.wa-av svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.wa-badge { margin-left: auto; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; }
.wa-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; }
.wa-m { display: flex; }
.wa-m span { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; color: var(--ink); box-shadow: 0 1px 1px rgba(18,22,58,.06); animation: waIn .3s ease-out; }
.wa-m.them span { background: #fff; border-top-left-radius: 4px; }
.wa-m.us { justify-content: flex-end; }
.wa-m.us span { background: #E4E7FB; border-top-right-radius: 4px; }
.wa-m .wa-pay { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; }
.wa-pay b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; }
.wa-m.typing span { display: inline-flex; gap: 4px; padding: 12px 14px; }
.wa-m.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA0C3; animation: waDot 1s infinite ease-in-out; }
.wa-m.typing i:nth-child(2) { animation-delay: .15s; } .wa-m.typing i:nth-child(3) { animation-delay: .3s; }
.wa-sys { align-self: center; font-size: 11.5px; color: var(--ok, #1E7F4F); background: #fff; border: 1px solid #CDE7D8; border-radius: 999px; padding: 5px 12px; text-align: center; }
@keyframes waIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes waDot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.wa-side dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 12px; font-size: 14px; }
.wa-big { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0 12px; }
.wa-big b { font: 600 30px/1.05 var(--f-sans); letter-spacing: -.02em; color: var(--ink); }
.wa-big span { font-size: 13.5px; color: var(--ink2); }
.wa-fit { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px !important; padding: 7px 10px; border-radius: 10px; margin: 0 0 6px !important; }
.wa-fit .mono { font-size: 11.5px; font-weight: 600; }
.wa-fit.ok { background: var(--accent-soft); color: var(--accent-deep) !important; }
.wa-fit.no { background: var(--bg2); color: var(--muted) !important; text-decoration: line-through; }
.wa-prod { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.wa-prod svg { width: 64px; height: 64px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; fill: none; stroke: var(--accent); stroke-width: 2; }
.wa-state { font-size: 11px !important; color: var(--muted) !important; margin-top: 10px !important; }
@media (max-width: 760px) { .wa-phone { min-height: 380px; } .wa-log { max-height: 380px; } .cstage-wa .stage-bar .st-play { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-m span { animation: none; } }
/* =========================================================
   v5 · TIPOGRAFÍA (decisión GG + Jorge, 30-oct): todo en Inter Tight; titulares 600, sin serif delgada
   ========================================================= */
body { color: var(--ink); }
:root { --ink2: #2A2F55; --muted: #4E5373; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.025em; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--accent); }
h2 { font-size: clamp(30px, 3.5vw, 50px); line-height: 1.06; }
.day-left h2 { font-size: clamp(28px, 3.1vw, 44px); }
.cta h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; }
.hero h1 { font-size: clamp(40px, 4.6vw, 68px); font-weight: 650; letter-spacing: -.03em; line-height: 1.04; }
.case-head h3 { font-size: clamp(25px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.025em; }
.case-copy h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.08; }
.faq-h, .modal-body h3, .dossier h3 { font-size: clamp(25px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -.025em; }
.stage h3 { font-size: 22px; line-height: 1.1; }
.cstage .side h4 { font-size: 19px; line-height: 1.18; letter-spacing: -.02em; }
.ct-name { font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.lp .tx-h { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.facts b, .fact b { font-size: 27px; letter-spacing: -.03em; }
.ds-nums b { font-size: 23px; letter-spacing: -.03em; }
.eff b { font-size: 34px; letter-spacing: -.03em; }
.speed b { font-size: 44px; letter-spacing: -.035em; }
#clock-time { font-size: clamp(44px, 4.8vw, 68px); letter-spacing: -.035em; }
.sp-name { font-size: 22px; letter-spacing: -.025em; }
.dv-h { font-size: 21px; letter-spacing: -.02em; }
.hud-v { font-size: 26px; }
.whk-b b { font-size: 19px; letter-spacing: -.02em; }
.side-sum b { font-size: 21px; letter-spacing: -.025em; }
/* cuerpo: 17 px en desktop, tinta con contraste */
@media (min-width: 901px) { body { font-size: 17px; } .lede { font-size: clamp(17px, 1.35vw, 19px); } .hero-sub { font-size: clamp(18px, 1.4vw, 21px); } }
.lede, .hero-sub, .cstage .side p { color: var(--ink2); }
/* la mono acompaña, no compite */
.eyebrow { font-size: 11px; letter-spacing: .1em; font-weight: 500; }
@media (max-width: 600px) { .hero h1 { font-size: 38px; } .h1br { display: none; } h2 { font-size: 30px; } }
.case-head { align-items: start; }
.st-play-3d { margin-left: auto; }
@media (max-width: 760px) { .st-play-3d { display: none; } }
[hidden] { display: none !important; }
/* v6 · rendimiento móvil: lo que está bajo el pliegue no se calcula ni se pinta hasta que se acerca (el héroe pinta antes) */
/* #pregunta también: en el celular su visor de documentos (position: fixed) se mueve a <body> al abrirse (site.js, placeDoc) */
main > section:not(.hero), .foot { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
/* la contención recorta lo que sale de la sección: el punto del separador entre secciones va entero dentro (antes asomaba 3,5 px hacia arriba) */
main > section + section::before { top: 3.5px; }
main > section + section::after { top: 0; }
/* ===== v6 · celular (CEO que abre el link desde WhatsApp): se lee sin zoom, todo al alcance del pulgar ===== */
#graph { touch-action: manipulation; }             /* el grafo no se arrastra: no debe atrapar el scroll de la página */
.wh-wrap canvas { touch-action: pan-y; }           /* 3D: arrastre horizontal gira, vertical baja la página, dos dedos acercan */
@media (max-width: 760px) {
  /* texto mínimo 12 px */
  .eyebrow, .hero .eyebrow, .hero-cta-note, .aa-meta, .aa-doc-k, .dv-tab th, .ev-agent, .ev-open, .m-k, .status, .stage-title, .lg, .sd-k,
  .st-cap-n, .fict, .dt-k, .m-vnote, .wa-badge, .whk-k, .wa-sys, .wa-state, .live, .tile-k, .tile-play, .sp-k, .who, .aa-src-hit,
  .dossier h4, .dossier h4.mono, .wh-sum .mono, .on-k, .aa-side-h .mono, .whk-b span, .wh-sum .whl, .wa-who, .wa-t, .mt-t, .aa-feed .ft, .aa-feed-h,
  .aa-fict, .aa-badge, .m-meta, .dv-flag, .more, .sp-sub, .sp-more, .ct-i, .cstage .side .sd-k, .cstage .side .tag, .side .tag, .eff .mono, .hud-k,
  .hud-s, .hud-note, .ds-tl .mono, .cstage .side .found, .graph-legend, .st-row span, .demo-badge, .modal-body .m-k, .cstage-legal .law-chip { font-size: 12px !important; }
  .aa-co span, .dv-meta { font-size: 13px; }
  .sp-node, .foot-small { font-size: 12px !important; }
  .graph-legend { font-family: var(--f-sans); gap: 12px; letter-spacing: 0; padding-left: 14px; padding-right: 14px; }   /* leyenda del grafo en una línea */
  /* WhatsApp del mesón: la etiqueta «Simulación · datos ficticios» baja a su propia línea (no aprieta el nombre) */
  .wa-head { flex-wrap: wrap; row-gap: 8px; }
  .wa-badge { margin-left: 48px; letter-spacing: .04em; white-space: nowrap; }
  /* animaciones de «Qué hace» en el modal: más altas y un poco más grandes, para que el texto se lea completo */
  .m-video { aspect-ratio: 4 / 3; }
  .m-video .lp { zoom: 1.2 !important; }
  .m-video .lp-mail .row, .m-video .lp-mail .row .tx { white-space: normal; overflow: visible; text-overflow: clip; }
  .m-video .lp-mail .row.r4 { display: none; }   /* tres asuntos completos en vez de cuatro cortados */
  .on-k { letter-spacing: .08em; }
  /* memoria de la empresa: etiquetas completas, en dos líneas si hace falta (antes «mensajes de Wh…») */
  .aa-src-l { font-size: 12px !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25 !important; }
  /* botones y chips al alcance del pulgar (44 px) */
  .btn, .btn-sm { min-height: 44px; }
  .aa-chip { min-height: 44px; padding: 10px 15px; font-size: 14px; }
  .aa-cite { min-height: 34px; padding: 4px 11px 4px 8px; font-size: 12.5px; margin-top: 6px; }
  .st-step { min-height: 44px; min-width: 44px; padding: 8px 10px; justify-content: center; }
  .st-step i { width: 26px; height: 26px; font-size: 12px; }
  .seg-b { min-height: 40px; padding: 8px 14px; }
  .st-more { min-height: 44px; font-size: 12px; padding: 14px 0 6px; }
  .wh-search { padding: 4px 4px 4px 16px; }
  .wh-search input { font-size: 16px; min-height: 40px; }     /* 16 px: iOS no hace zoom al escribir */
  .wh-search button { min-height: 40px; padding: 8px 16px; font-size: 13px; }
  /* visor de documentos como hoja inferior: tirador, botón de volver grande y se cierra deslizando hacia abajo */
  .aa-doc::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line2); }
  .aa-doc-bar { padding: 14px 14px 10px; touch-action: none; }
  .aa-back { min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; font-weight: 500; }
  /* nodos del grafo: área de toque mayor que el dibujo */
  #graph g circle.tap { display: inline; }   /* más específico que la regla general de abajo */
}
/* «tap» y no «hit»: .hit ya marca las sociedades afectadas por la norma */
#graph circle.tap { display: none; fill: transparent !important; stroke: none !important; transition: none !important; }

/* 10-nov (marca anterior): el nombre largo empujaba el botón fuera de la pantalla en celular.
   En pantallas angostas el selector muestra solo el otro idioma y el botón se compacta. */
@media (max-width: 560px) {
  .nav-in { gap: 10px; }
  .nav-right { gap: 8px; flex: none; }
  .lang a[aria-current] { display: none; }
  .lang a { padding: 5px 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand span { font-size: 17px; }
}
@media (max-width: 400px) {
  .brand span { font-size: 15.5px; letter-spacing: -.025em; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-right .btn { padding: 0 11px; font-size: 12.5px; }
}

/* ---------- Un sistema vivo (10-nov): constelación + comparación con un ERP tradicional ---------- */
.live-grid { grid-template-columns: repeat(3, 1fr); }
.live .live-card { cursor: default; }
.live .live-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
.live-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; }
.cmp-wrap { margin-top: 48px; }
.cmp-h { font-size: 22px; letter-spacing: -.01em; margin: 0 0 16px; }
.cmp { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; font-size: 15px; line-height: 1.45; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg2); }
.cmp tbody th { font-weight: 600; width: 20%; }
.cmp td { color: var(--muted); width: 40%; }
.cmp td.cmp-us { color: var(--ink); font-weight: 500; background: color-mix(in srgb, var(--accent-soft) 45%, var(--paper)); }
.cmp thead th.cmp-us { color: var(--accent-deep); background: var(--accent-soft); }
.cmp-note { margin-top: 14px; }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .live-grid { grid-template-columns: 1fr; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp thead { display: none; }
  .cmp tbody tr + tr { border-top: 1px solid var(--line2); }
  .cmp tbody th { border-top: 0; padding: 14px 16px 4px; width: auto; }
  .cmp td { border-top: 0; padding: 4px 16px 10px; }
  .cmp td::before { content: attr(data-l); display: block; font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .cmp td.cmp-us { margin: 0 10px 12px; border-radius: 12px; padding: 10px 12px; }
}

/* ---------- pie de página v2 (10-nov: dirección, mapa del sitio, derechos) ---------- */
.foot { padding: 72px 0 32px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #F6F6FC 100%); }
.foot-top { display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr)); gap: 40px 48px; align-items: start; }
.foot-id { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foot-id .brand-logo { height: 36px; }
.foot-tag { color: var(--ink2); font-size: 16px; line-height: 1.55; max-width: 34ch; margin: 0; }
.foot-col { display: flex; flex-direction: column; gap: 11px; font-style: normal; font-size: 15px; color: var(--ink2); }
.foot-h { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.foot-col a { color: var(--ink); text-decoration: none; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease, color .2s; }
.foot-col a:hover { color: var(--accent); background-size: 100% 1px; }
.foot-addr a { color: var(--accent); margin-top: 4px; }
.foot-bar { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-id { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot { padding: 52px 0 28px; } .foot-top { gap: 32px 20px; } .foot-addr { grid-column: 1 / -1; } .foot-bar { margin-top: 40px; } }

/* ---------- pie v3 (10-nov): línea de Odoo + columna Guías ---------- */
.foot-top { grid-template-columns: minmax(250px, 1.45fr) repeat(4, minmax(128px, 1fr)); gap: 40px 36px; }
.foot-odoo { margin: -4px 0 0; font-size: 14.5px; line-height: 1.5; max-width: 34ch; }
.foot-odoo a { color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.foot-odoo a:hover { background-size: 100% 1px; }
.foot-col a.foot-all { color: var(--accent); margin-top: 4px; }
@media (max-width: 1100px) { .foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-id { grid-column: 1 / -1; } .foot-tag, .foot-odoo { max-width: 52ch; } }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }

@media (max-width: 520px) { .foot-top { gap: 32px 20px; } }

/* =====================================================================
   ETAPA 1 (10-nov-2026) · un solo mundo con el héroe: escenas oscuras donde el sistema trabaja
   (.scene), tarjeta de evento compartida (.sc-card), barra superior según el tramo (html.nav-dark),
   consola de trabajo (Pregúntale), Tecnopoiesis (Sistema vivo), menú del celular.
   ===================================================================== */
.scene {
  --bg: #060714; --bg2: #0B0D22; --paper: #0D0F24; --ink: #F4F5FF; --ink2: #C3C8EC; --muted: #8C93C4;
  --line: rgba(255,255,255,.14); --line2: rgba(255,255,255,.24);
  --accent: #8B85FF; --accent-deep: #B9B5FF; --accent-soft: rgba(139,133,255,.16);
  --ok: #3DDC84; --prob: #FFA51F; --ag: #7DF0FF; --no: #FF8F8F; --card: rgba(13,15,36,.92);
  position: relative; background: #060714; color: var(--ink); color-scheme: dark; overflow: clip;
}
.scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 46% at 86% 8%, rgba(61,72,224,.26), transparent 70%), radial-gradient(46% 40% at 6% 92%, rgba(124,58,237,.16), transparent 70%); }
.scene > .wrap { position: relative; z-index: 1; }
.scene .lede { color: var(--ink2); }
.scene .help { color: var(--muted); }
.scene h2, .scene h3 { color: var(--ink); }
.scene .term { color: inherit; }

/* barra superior sobre un tramo oscuro */
.nav { transition: background .25s, border-color .25s; }
html.nav-dark .nav { background: rgba(6,7,20,.9); border-bottom-color: transparent; }
html.nav-dark .nav.scrolled { border-bottom-color: rgba(255,255,255,.08); }
html.nav-dark .nav-links { color: #C3C8EC; }
html.nav-dark .nav-links a::after { background: #8B85FF; }
html.nav-dark .brand { color: #fff; }
html.nav-dark .nav .brand-logo-l { display: none; }
html.nav-dark .nav .brand-logo-d { display: block; }
html.nav-dark .lang { border-color: rgba(255,255,255,.22); }
html.nav-dark .lang a { color: #9AA1D0; }
html.nav-dark .lang a[aria-current] { background: #fff; color: #12163A; }
html.nav-dark .nav .btn-primary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
html.nav-dark .nav-menu { border-color: rgba(255,255,255,.3); color: #fff; }
html.nav-dark .progress { background: #8B85FF; }

/* ---------- tarjeta de evento compartida (la misma del héroe) ---------- */
.sc-card { position: relative; background: var(--card, rgba(13,15,36,.92)); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 13px; box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: border-color .4s; text-align: left; }
.sc-card.st-prob { border-color: color-mix(in srgb, var(--prob) 60%, transparent); }
.sc-card.st-work { border-color: color-mix(in srgb, var(--ag) 55%, transparent); }
.sc-card.st-ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.sc-card.st-no { border-color: color-mix(in srgb, var(--no) 55%, transparent); }
.sc-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; min-height: 18px; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; transition: background .3s; }
.st-prob .sc-dot { background: var(--prob); box-shadow: 0 0 0 4px color-mix(in srgb, var(--prob) 22%, transparent); }
.st-work .sc-dot { background: var(--ag); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ag) 20%, transparent); }
.st-ok .sc-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.st-no .sc-dot { background: var(--no); }
.sc-area { color: var(--ink); font-weight: 700; }
.sc-state { color: var(--muted); font-weight: 700; }
.st-prob .sc-state { color: var(--prob); } .st-work .sc-state { color: var(--ag); } .st-ok .sc-state { color: var(--ok); } .st-no .sc-state { color: var(--no); }
.sc-t { font: 600 17px/1.38 var(--f-sans); letter-spacing: -.01em; margin: 9px 0 0; color: var(--ink); }
.sc-res { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 13px; }
.sc-res strong { font: 700 31px/1 var(--f-sans); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; transition: color .3s; }
.st-ok .sc-res strong { color: var(--ok); }
.sc-res-l { font-size: 13px; color: var(--ink2); max-width: 18ch; line-height: 1.25; }
.sc-btns { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-apr { font: 600 14px var(--f-sans); padding: 10px 19px; border-radius: 999px; border: 0; background: #fff; color: #12163A; cursor: pointer; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: scAsk 1.4s ease-out infinite; transition: transform .12s, background .2s, color .2s; display: inline-block; }
.sc-apr:hover { background: var(--ok); color: #04220F; }
.sc-apr.press { transform: scale(.92); animation: none; }
.sc-apr.done { background: var(--ok); color: #04220F; animation: none; font-size: 13px; padding: 8px 14px; }
@keyframes scAsk { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }
.sc-rej { font: 500 14px var(--f-sans); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); cursor: pointer; transition: border-color .2s, color .2s; }
.sc-rej:hover { border-color: var(--no); color: var(--no); }
.sc-done { display: inline-flex; gap: 6px; align-items: center; font: 600 13px var(--f-sans); padding: 8px 14px; border-radius: 999px; }
.sc-done svg { width: 15px; height: 15px; }
.sc-done.ok { background: var(--ok); color: #04220F; }
.sc-done.no { background: color-mix(in srgb, var(--no) 14%, transparent); color: var(--no); border: 1px solid color-mix(in srgb, var(--no) 50%, transparent); }
.sc-undo { background: none; border: 0; padding: 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 11px; }
.sc-out { margin: 12px 0 0; padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 14px; line-height: 1.5; color: var(--ink2); animation: citeIn .35s both; }
.sc-out[hidden] { display: none; }
.st-ok .sc-out { background: color-mix(in srgb, var(--ok) 11%, transparent); }
.st-no .sc-out { background: color-mix(in srgb, var(--no) 9%, transparent); }
.sc-demo { display: block; margin-top: 6px; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.sc-who { font-size: 11px; color: var(--muted); }
.sc-who b { color: var(--ink2); font-weight: 500; }
.sc-link { background: none; border: 0; padding: 4px 0; color: var(--accent); font: 500 13.5px var(--f-sans); cursor: pointer; }
.sc-link:hover { color: var(--ink); }
.sc-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font: 500 11.5px var(--f-mono); color: var(--muted); }
.sc-steps li { display: flex; align-items: center; white-space: nowrap; }
.sc-steps li + li::before { content: "→"; margin: 0 8px; opacity: .6; font-weight: 400; }
.sc-steps li.done { color: var(--ink2); }
.sc-steps li.cur { color: var(--ag); font-weight: 700; }
.sc-steps li.cur span { border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.st-prob .sc-steps li.cur { color: var(--prob); } .st-ok .sc-steps li.cur { color: var(--ok); }

/* ---------- Pregúntale: consola de trabajo ---------- */
.askx.scene .aa { height: 720px; background: rgba(11,13,34,.72); border-color: var(--line); box-shadow: 0 40px 120px rgba(0,0,0,.5), 0 0 0 1px rgba(139,133,255,.08); backdrop-filter: blur(8px); }
.askx.scene .aa-chat { border-right-color: var(--line); }
.askx.scene .aa-logo { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); }
.askx.scene .aa-compose { background: transparent; border-top: 0; border-bottom: 1px solid var(--line); padding: 14px 18px 14px; }
.askx.scene .aa-form { background: rgba(255,255,255,.05); border-color: var(--line2); border-radius: 14px; padding: 5px 5px 5px 14px; }
.askx.scene .aa-form:focus-within { background: rgba(255,255,255,.08); border-color: var(--ag); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ag) 16%, transparent); }
.aa-prompt { color: var(--ag, var(--accent)); font-size: 19px; line-height: 1; margin-right: 2px; }
.askx.scene .aa-form input { color: var(--ink); font-family: var(--f-mono); font-size: 15px; }
.askx.scene .aa-form input::placeholder { color: var(--muted); }
.askx.scene .aa-send { background: #fff; color: #12163A; }
.askx.scene .aa-send:hover { background: var(--ag); }
.askx.scene .aa-chips { margin: 10px 0 0; }
.askx.scene .aa-chip { background: rgba(255,255,255,.04); color: var(--ink2); border-color: var(--line); }
.askx.scene .aa-chip:hover { border-color: var(--ink); background: rgba(255,255,255,.1); color: var(--ink); }
.askx.scene .aa-chip.used { opacity: .72; }
.askx.scene .aa-chip.cur { opacity: 1; border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.askx.scene .aa-notice { margin: 10px 0 0; color: var(--ink2); }
.askx.scene .aa-badge { margin: 10px 0 0; color: var(--ag); }
.askx.scene .aa-log { padding: 18px 20px 22px; gap: 0; scrollbar-color: rgba(255,255,255,.2) transparent; }
.cx-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.cx-idle { margin: auto; text-align: center; padding: 30px 16px; max-width: 46ch; }
.cx-idle-t { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.cx-ghost { margin: 26px auto 0; display: grid; gap: 9px; max-width: 300px; }
.cx-ghost i { display: block; height: 12px; border-radius: 6px; background: rgba(139,133,255,.16); animation: cxGhost 2.4s ease-in-out infinite; transform-origin: left; }
.cx-ghost i:nth-child(1) { width: 82%; } .cx-ghost i:nth-child(2) { width: 46%; animation-delay: .2s; } .cx-ghost i:nth-child(3) { width: 64%; animation-delay: .4s; } .cx-ghost i:nth-child(4) { width: 30%; animation-delay: .6s; }
@keyframes cxGhost { 0%, 100% { opacity: .5; transform: scaleX(.92); } 50% { opacity: 1; transform: scaleX(1); } }
.cx-run { display: flex; flex-direction: column; gap: 14px; }
.cx-q { margin: 0; font-size: 14.5px; line-height: 1.45; color: #fff; padding: 10px 13px; background: color-mix(in srgb, var(--ag) 7%, transparent); border-left: 2px solid var(--ag); border-radius: 0 10px 10px 0; }
.cx-q span { color: var(--ag); margin-right: 4px; }
.cx-steps { margin: 0; padding: 0; border-top: 0; }
.askx.scene .aa-trace b { color: var(--ink); }
.cx-chart { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 15px; }
.cx-chart-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cx-chart-h b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cx-chart-h span { font-size: 11.5px; color: var(--muted); }
.cx-mark-l { margin-left: auto; font-style: normal; font-size: 11px; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; }
.cx-mark-l::before { content: ""; height: 12px; border-left: 1.5px dashed rgba(255,255,255,.7); }
.cx-bars { display: grid; gap: 9px; margin-top: 13px; }
.cx-bar { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr) auto; gap: 10px; align-items: center; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.cx-bar.go { opacity: 1; transform: none; }
.cx-bl { font-size: 13px; line-height: 1.25; color: var(--ink2); }
.cx-bt { position: relative; height: 14px; border-radius: 7px; background: rgba(255,255,255,.06); }
.cx-bt i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, #3D48E0, #8B85FF); transition: width .85s cubic-bezier(.2,.7,.2,1); }
.cx-bar.go .cx-bt i { width: var(--w); }
.cx-bar.t-ok .cx-bt i { background: linear-gradient(90deg, #1E9E5E, #3DDC84); }
.cx-bar.t-warn .cx-bt i { background: linear-gradient(90deg, #B8791A, #FFC24D); }
.cx-bar.t-bad .cx-bt i { background: linear-gradient(90deg, #D9480F, #FFA51F); box-shadow: 0 0 16px rgba(255,165,31,.45); }
.cx-bars.has-mark .cx-bt::after { content: ""; position: absolute; left: var(--mark); top: -5px; bottom: -5px; border-left: 1.5px dashed rgba(255,255,255,.6); }
.cx-bv { font-size: 12.5px; color: var(--ink); min-width: 62px; text-align: right; }
.cx-bar.t-bad .cx-bv { color: var(--prob); font-weight: 700; }
.askx.scene .aa-ans { margin-top: 0; font-size: 14.5px; line-height: 1.58; color: var(--ink2); }
.askx.scene .aa-ans .cx-k { margin-bottom: 8px; }
.askx.scene .aa-ans b { color: var(--ink); }
.askx.scene .aa-cite { background: var(--accent-soft); border-color: var(--line2); color: var(--accent-deep); }
.askx.scene .aa-cite:hover, .askx.scene .aa-cite.on { background: var(--accent); color: #060714; border-color: var(--accent); }
.askx.scene .aa-mapped { background: rgba(255,255,255,.04); margin: 0; }
.askx.scene .aa-meta { margin: 0; }
.cx-card { animation: citeIn .4s both; }
.askx.scene .aa-side { background: rgba(255,255,255,.02); }
.askx.scene .aa-src { background: rgba(255,255,255,.04); transition: border-color .35s, box-shadow .35s, opacity .35s, background .35s; }
.askx.scene .aa-src b { color: var(--ink); }
.askx.scene .aa-src.scan { box-shadow: 0 0 0 4px var(--accent-soft); }
.askx.scene .aa-src.hit { border-color: color-mix(in srgb, var(--ag) 55%, transparent); background: color-mix(in srgb, var(--ag) 6%, transparent); }
.askx.scene .aa-src.hit .aa-src-hit, .askx.scene .aa-src-hit { color: var(--ag); }
.askx.scene .aa-feed li { background: rgba(255,255,255,.04); }
/* el visor de documentos se queda en papel claro: es el registro fuente */
.askx.scene .aa-doc { --bg: #FFFFFF; --bg2: #F4F5F8; --paper: #FFFFFF; --ink: #12163A; --ink2: #2A2F55; --muted: #4E5373; --line: #E2E0D8; --line2: #D3D1C7; --accent: #2E3470; --accent-deep: #0B0E27; --accent-soft: #EEF0F6; --ok: #138A5B; color: var(--ink); color-scheme: light; }
.askx.scene .not-chatbot { border-top-color: var(--line); }
.askx.scene .vs-yes { color: var(--ink); }
@media (max-width: 900px) {
  .askx.scene .aa { height: auto; }
  .askx.scene .aa-side { order: 2; border-bottom: 0; border-top: 1px solid var(--line); }
  .askx.scene .aa-log { height: auto; min-height: 250px; max-height: none; overflow: visible; flex: none; padding: 16px 14px 18px; }
  .askx.scene .aa-compose { padding: 12px 12px 12px; }
  .askx.scene .aa-chips { flex-wrap: wrap; overflow: visible; margin: 10px 0 0; padding: 0; gap: 6px; }
  .askx.scene .aa-chip { white-space: normal; text-align: left; width: 100%; border-radius: 12px; min-height: 0; padding: 9px 12px; font-size: 13.5px; line-height: 1.3; }
  .cx-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .cx-bl { grid-column: 1 / -1; font-size: 12.5px; }
  .sc-btns { margin-left: 0; width: 100%; }
  .sc-apr, .sc-rej { flex: 1; text-align: center; }
  .sc-res-l { max-width: none; flex: 1; }
}

/* ---------- Sistema vivo · Tecnopoiesis ---------- */
.vivo { padding: clamp(64px, 8vw, 112px) 0; }
.vivo .sec-head { max-width: 900px; }
.tp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin-bottom: 20px; }
.tp-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-tab { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink2); border-radius: 999px; padding: 9px 16px; font: 500 14px var(--f-sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tp-tab:hover { border-color: var(--ink); color: var(--ink); }
.tp-tab.on { background: #fff; color: #12163A; border-color: #fff; }
.tp-replay { background: none; border: 1px solid var(--line); color: var(--ink2); border-radius: 999px; padding: 8px 14px; font-size: 11.5px; letter-spacing: .04em; cursor: pointer; }
.tp-replay:hover { border-color: var(--ink); color: var(--ink); }
.tp-ev { font: 600 clamp(20px, 2.1vw, 27px)/1.2 var(--f-head); letter-spacing: -.02em; margin: 0 0 16px; min-height: 1.2em; }
.tp-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: stretch; }
.tp-col { border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px 20px; display: flex; flex-direction: column; min-width: 0; }
.tp-erp { background: rgba(255,255,255,.025); }
.tp-us { background: radial-gradient(120% 80% at 85% 0%, rgba(61,72,224,.3), transparent 62%), rgba(13,15,36,.55); border-color: rgba(139,133,255,.42); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.tp-k { display: flex; gap: 9px; align-items: center; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.tp-k i { width: 8px; height: 8px; border-radius: 2px; background: var(--muted); flex: none; }
.tp-us .tp-k { color: var(--ag); }
.tp-us .tp-k i { background: #fff; transform: rotate(45deg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ag) 30%, transparent); }
.tp-erp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tp-erp-log li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); font-size: 14.5px; line-height: 1.45; color: var(--ink2); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.tp-erp-log li.on { opacity: 1; transform: none; }
.tp-day { font-size: 11.5px; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.tp-end { margin: auto 0 0; padding-top: 16px; font: 600 15px/1.35 var(--f-sans); opacity: 0; transition: opacity .5s; display: flex; gap: 9px; align-items: baseline; }
.tp-end::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-1px); }
.tp-end.on { opacity: 1; }
.tp-erp-end { color: var(--prob); }
.tp-us-end { color: var(--ok); }
.tp-graph { margin: 0 0 8px; }
.tp-graph svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-bg { fill: #6A73CC; opacity: .45; }
.g-bgl { stroke: #6A73CC; stroke-width: .6; opacity: .22; fill: none; }
.g-e { stroke: #8B85FF; stroke-width: 1.6; fill: none; opacity: .85; transition: stroke .4s, opacity .6s; }
.s-prob .g-cut { stroke: var(--prob); stroke-dasharray: 5 6; animation: tpDash 1s linear infinite; }
.s-ok .g-cut { opacity: .16; animation: none; }
@keyframes tpDash { to { stroke-dashoffset: -22; } }
.g-new { stroke: var(--ag); stroke-width: 2; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.3,.7,.2,1), stroke .5s, stroke-width .5s; }
.s-prop .g-new { stroke-dashoffset: 0; }
.s-ok .g-new { stroke: var(--ok); stroke-width: 2.6; filter: drop-shadow(0 0 6px rgba(61,220,132,.7)); }
.g-pulse { fill: #fff; opacity: 0; transition: opacity .4s; }
.s-test .g-pulse { opacity: 1; }
.s-ok .g-pulse { fill: var(--ok); }
.g-dot { fill: #8B85FF; transition: fill .4s; }
.g-halo { fill: #8B85FF; opacity: .14; transition: fill .4s, opacity .4s; }
.g-n text { fill: var(--ink2); font: 500 11px var(--f-mono); }
.s-prob .g-hot .g-dot { fill: var(--prob); }
.s-prob .g-hot .g-halo { fill: var(--prob); opacity: .28; }
.s-ok .g-hot .g-dot { fill: var(--ok); }
.s-ok .g-hot .g-halo { fill: var(--ok); opacity: .28; }
.g-ag { transform: translate(26px, 14px); transition: transform 1.1s cubic-bezier(.3,.7,.2,1); }
.s-prob .g-ag { transform: translate(var(--hx), var(--hy)); }
.s-ok .g-ag { transform: translate(26px, 14px); }
.g-ag rect { fill: #fff; }
.g-agh { fill: var(--ag); opacity: .3; }
.g-ag text { fill: var(--ag); font: 500 10.5px var(--f-mono); }
.tp-us .sc-card { box-shadow: none; background: rgba(6,7,20,.55); }
.tp-stage { display: grid; gap: 10px; margin-top: 10px; align-content: start; }
.tp-s { opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; }
.tp-s.on { opacity: 1; transform: none; }
.tp-det .sc-t { margin-top: 0; font-size: 16.5px; }
.tp-evi { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; padding: 0; }
.tp-evi li { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); }
.tp-diff { display: grid; gap: 6px; font-size: 14px; line-height: 1.4; }
.tp-rule { display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; margin: 0; }
.tp-rule span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.tp-old { background: rgba(255,143,143,.07); border: 1px solid rgba(255,143,143,.26); }
.tp-old span { color: var(--no); }
.tp-old s { color: var(--muted); text-decoration-color: rgba(255,143,143,.6); }
.tp-new { background: rgba(61,220,132,.09); border: 1px solid rgba(61,220,132,.32); }
.tp-new span { color: var(--ok); }
.tp-new b { color: var(--ink); font-weight: 600; }
.tp-test { padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ag) 6%, transparent); border: 1px dashed color-mix(in srgb, var(--ag) 40%, transparent); }
.tp-test span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ag); }
.tp-test p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink2); }
.tp-apr { margin-top: 2px; }
.tp-apr .sc-apr { cursor: default; }
.tp-live { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ok); }
.tp-note { margin-top: 14px; }
.vivo .cmp-wrap { margin-top: 64px; }
.vivo .cmp { background: rgba(13,15,36,.6); border-color: var(--line); }
.vivo .cmp thead th { background: rgba(255,255,255,.04); }
.vivo .cmp td.cmp-us { background: rgba(139,133,255,.1); }
.vivo .cmp thead th.cmp-us { background: rgba(139,133,255,.18); color: var(--accent-deep); }
@media (max-width: 900px) {
  .tp-split { grid-template-columns: minmax(0, 1fr); }
  .tp-col { padding: 16px 14px 16px; border-radius: 18px; }
  .tp-tabs { flex-direction: column; width: 100%; }
  .tp-tab { text-align: left; border-radius: 12px; }
  .tp-erp-log li { grid-template-columns: 54px minmax(0, 1fr); padding: 10px 12px; font-size: 14px; }
  .tp-end { padding-top: 14px; }
  .g-n text { font-size: 13px; }
  .g-ag text { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .s-prob .g-cut, .sc-apr, .cx-ghost i { animation: none; } .g-new, .g-ag, .tp-s, .tp-erp-log li, .cx-bt i { transition: none; } }

/* ---------- menú de secciones en el celular ---------- */
.nav-menu { display: none; width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--ink); place-items: center; cursor: pointer; padding: 0; }
.nav-menu span, .nav-menu span::before, .nav-menu span::after { display: block; width: 18px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .25s, background .2s; }
.nav-menu span { position: relative; }
.nav-menu span::before, .nav-menu span::after { content: ""; position: absolute; left: 0; }
.nav-menu span::before { top: -6px; } .nav-menu span::after { top: 6px; }
.nav-menu[aria-expanded="true"] span { background: transparent; }
.nav-menu[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-sheet { position: fixed; inset: 66px 0 0 0; z-index: 49; background: rgba(6,7,20,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nav-sheet[hidden] { display: none; }
.nav-sheet-in { background: #fff; padding: 18px 20px 24px; display: flex; flex-direction: column; border-radius: 0 0 22px 22px; box-shadow: 0 30px 80px rgba(18,22,58,.25); max-height: calc(100svh - 66px); overflow-y: auto; animation: navDrop .26s cubic-bezier(.2,.7,.2,1); }
@keyframes navDrop { from { opacity: 0; transform: translateY(-10px); } }
.nav-sheet-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #2E3470; margin: 0 0 6px; }
.nav-sheet-in a:not(.btn) { padding: 14px 2px; font: 500 18px var(--f-sans); color: #12163A; text-decoration: none; border-bottom: 1px solid #E2E0D8; }
.nav-sheet-in a.nav-sheet-lang { font-size: 15px; color: #4E5373; border-bottom: 0; }
.nav-sheet-in .btn { margin-top: 14px; justify-content: center; }
html.menu-open { overflow: hidden; }
@media (max-width: 980px) { .nav-menu { display: grid; } }
@media (min-width: 981px) { .nav-sheet { display: none; } }
@media (max-width: 560px) {
  .nav .lang { display: none; }
  .nav-right { gap: 8px; }
  .nav .btn-sm { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 380px) { .nav .brand-logo { height: 24px; } }

/* pie: Tecnopoiesis */
.foot-tp { margin: -6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink2); max-width: 34ch; }
@media (max-width: 1100px) { .foot-tp { max-width: 52ch; } }

/* ronda 2 · consola: el gráfico queda a la vista mientras se escriben los hallazgos; órdenes en 2 columnas */
@media (min-width: 901px) {
  .askx.scene .aa { height: 760px; }
  .askx.scene .aa-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .askx.scene .aa-chip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; font-size: 13px; padding: 7px 12px; }
  .askx.scene .aa-log { padding-top: 0; }
  .cx-run { padding-top: 16px; }
  .cx-chart { position: sticky; top: 10px; z-index: 2; background: #0E1028; box-shadow: 0 -12px 0 10px #0B0D22, 0 14px 24px rgba(6,7,20,.75); }
}
/* ronda 2 · ERP tradicional como línea de tiempo que se queda esperando */
.tp-erp-log { position: relative; gap: 14px; padding-left: 18px; }
.tp-erp-log::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; border-left: 1.5px dashed var(--line2); }
.tp-erp-log li { position: relative; }
.tp-erp-log li::before { content: ""; position: absolute; left: -18px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #060714; border: 1.5px solid var(--muted); }
.tp-erp-log li:last-child.on { border-color: color-mix(in srgb, var(--prob) 45%, transparent); }
.tp-erp-log li:last-child.on::before { border-color: var(--prob); background: var(--prob); }
.tp-wait { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--prob); }
.tp-wait::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; border-top-color: transparent; animation: tpSpin 1.6s linear infinite; }
@keyframes tpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tp-wait::before { animation: none; } }

/* ---------- Manifiesto (punto E): tipografía grande, mucho aire, líneas que se encienden con el scroll ---------- */
.mani { padding: clamp(84px, 13vh, 150px) 0 clamp(90px, 14vh, 160px); }
.mani::before { background: radial-gradient(50% 30% at 50% 0%, rgba(61,72,224,.2), transparent 70%), radial-gradient(40% 26% at 50% 100%, rgba(61,72,224,.16), transparent 70%); }
.mani-bg { position: absolute; inset: 0; pointer-events: none; opacity: .62; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 13%, transparent 56%, #000 80%); mask-image: linear-gradient(90deg, #000 0%, transparent 13%, transparent 56%, #000 80%); }
.mani-bg svg { width: 100%; height: 100%; display: block; }
.mani-bg path { stroke: #6A73CC; stroke-width: 1; opacity: .5; fill: none; }
.mani-bg circle { fill: #8B85FF; opacity: .75; }
.mani-ag circle { fill: #7DF0FF; opacity: .22; }
.mani-ag rect { fill: #fff; }
.mani-ag { animation: maniFloat 9s ease-in-out infinite; }
.mani-ag.a1 { animation-delay: -3s; } .mani-ag.a2 { animation-delay: -6s; }
@keyframes maniFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -26px; } }
.mani-in { max-width: 900px; }
.mani .eyebrow { color: var(--ag); margin-bottom: 22px; }
.mani h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 clamp(54px, 9vh, 96px); max-width: 15ch; }
.mani-p { font: 500 clamp(23px, 2.75vw, 38px)/1.24 var(--f-head); letter-spacing: -.022em; color: var(--ink); margin: 0 0 clamp(44px, 8vh, 84px); max-width: 23ch; text-wrap: balance; }
.mani-p.mani-dim { color: var(--muted); }
.mani-p.mani-own { font-size: clamp(34px, 4.6vw, 64px); font-weight: 650; line-height: 1.04; letter-spacing: -.035em; margin-bottom: clamp(22px, 3.4vh, 36px); max-width: none; }
.mani-p.mani-hl { font-size: clamp(30px, 4vw, 56px); font-weight: 650; line-height: 1.08; letter-spacing: -.03em; max-width: 17ch; background: linear-gradient(92deg, #fff 0%, #B9B5FF 45%, #7DF0FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.mani-cta { margin: 0; }
.mani .btn-primary { background: #fff; color: #12163A; box-shadow: 0 10px 40px rgba(139,133,255,.3); }
.mani .btn-primary:hover { background: var(--ag); }
.mani-l { opacity: .13; transform: translateY(16px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.mani-l.lit { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .mani-bg { opacity: .35; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 16%, transparent 80%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, transparent 16%, transparent 80%, #000 100%); }
  .mani h2 { max-width: none; }
  .mani-p, .mani-p.mani-hl { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .mani-l { opacity: 1; transform: none; transition: none; } .mani-ag { animation: none; } }

/* una línea del concepto, en el bloque que sigue al héroe */
.concept { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto clamp(44px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); font: 500 clamp(20px, 2.3vw, 30px)/1.25 var(--f-head); letter-spacing: -.02em; color: var(--ink); text-align: center; text-wrap: balance; max-width: 980px; }
.concept i { width: 11px; height: 11px; flex: none; background: #fff; transform: rotate(45deg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ag) 26%, transparent); }
@media (max-width: 700px) { .concept { flex-direction: column; gap: 16px; } }

/* ronda 2 · errores del celular */
.cta-grid > * { min-width: 0; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  /* pestañas de casos: las tres a la vista, sin cortes */
  .case-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .case-tab { min-width: 0; padding: 26px 10px 10px; border-radius: 14px; }
  .case-tab .ct-i { left: 10px; top: 9px; }
  .ct-name { font-size: 14.5px; line-height: 1.15; overflow-wrap: anywhere; }
  .ct-kind { display: none; }
  /* «Ver en grande» pasa a un ícono en la esquina: ya no tapa el texto de la ilustración */
  .tile-play { font-size: 0; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; top: auto; bottom: 10px; right: 10px; }
  .tile-play::before { content: "⤢"; font-size: 15px; line-height: 1; }
}

/* ronda 3 · celular: en el grafo de Tecnopoiesis solo se rotulan los dos nodos del problema, en letra legible */
@media (max-width: 900px) {
  .g-n:not(.g-hot) text { display: none; }
  .g-n text { font-size: 17px; }
  .g-ag text { font-size: 16px; }
  .tp-graph { margin-bottom: 12px; }
}
.aa-trace li > span { min-width: 0; }

/* menú de celular visible sobre el héroe oscuro */
html.hero-grafo.hg-navdark:not(.hg-light) .nav-menu, html.hg-pre .nav-menu { border-color: rgba(255,255,255,.3); color: #fff; }

/* =====================================================================
   ETAPA 2 (10-nov-2026) · qué es, indicador del rubro, un día (línea de tiempo), casos con resultados,
   cómo se implementa en 4 etapas + qué tengo hoy, confianza demostrada, cierre con esfera.
   ===================================================================== */
.rb { width: 8px; height: 8px; background: #fff; transform: rotate(45deg); display: inline-block; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag, #7DF0FF) 30%, transparent); }
.que .rb, .conf .rb, .impl .rb { background: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Qué es (fondo blanco) ---------- */
.que { padding: clamp(72px, 9vw, 128px) 0 0; background: var(--bg); }
.que-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.que h2 { font-size: clamp(36px, 4.8vw, 66px); line-height: 1.02; letter-spacing: -.03em; }
.que-def { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink2); margin-top: 26px; max-width: 46ch; }
.que-auto { display: flex; gap: 12px; align-items: baseline; margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); font-size: 15.5px; line-height: 1.5; max-width: 52ch; }
.que-auto i { width: 9px; height: 9px; flex: none; background: var(--accent); transform: rotate(45deg) translateY(-1px); }
.que-fig { position: relative; min-width: 0; }
.que-stack { position: relative; height: 400px; }
.que-stack::before { content: ""; position: absolute; left: 31%; top: 62px; bottom: 70px; border-left: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.que-stack::after { content: ""; position: absolute; left: calc(31% - 4px); top: 62px; width: 9px; height: 9px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warm) 20%, transparent); animation: queUp 3.6s ease-in-out infinite; }
@keyframes queUp { 0% { transform: translateY(268px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.que-layer { position: absolute; left: 0; right: 0; height: 130px; }
.que-layer.l03 { top: 0; } .que-layer.l02 { top: 132px; } .que-layer.l01 { top: 264px; }
.que-plane { position: absolute; left: 4%; top: 6px; width: 54%; height: 120px; border-radius: 14px; transform: perspective(900px) rotateX(60deg) rotateZ(-36deg); transform-origin: 50% 50%; border: 1px solid var(--line2); }
.l01 .que-plane { background: #12163A; border-color: #12163A; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 18px 18px; box-shadow: 0 30px 40px rgba(18,22,58,.25); }
.l02 .que-plane { background: radial-gradient(circle at 30% 40%, rgba(46,52,112,.55) 0 5px, transparent 6px), radial-gradient(circle at 62% 62%, rgba(46,52,112,.55) 0 5px, transparent 6px), radial-gradient(circle at 78% 30%, rgba(79,70,229,.75) 0 6px, transparent 7px), linear-gradient(135deg, #EEF0F6, #C9CDF6); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 24px 34px rgba(46,52,112,.16); }
.l03 .que-plane { background: #fff; background-image: linear-gradient(45deg, transparent 46%, rgba(22,27,110,.85) 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, rgba(22,27,110,.85) 46% 54%, transparent 54%); background-size: 34px 34px; background-position: 8px 6px; box-shadow: 0 20px 30px rgba(18,22,58,.1); }
.que-lab { position: absolute; left: 62%; right: 0; top: 26px; display: grid; gap: 3px; }
.que-lab b { font-size: 11.5px; color: var(--accent); letter-spacing: .1em; }
.que-lab strong { font: 600 19px/1.2 var(--f-head); letter-spacing: -.015em; color: var(--ink); }
.que-lab small { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.que-own { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: 4%; }
.que-own i { width: 8px; height: 8px; background: var(--warm); transform: rotate(45deg); }
.que .concept { margin: clamp(56px, 7vw, 96px) auto 0; padding: clamp(36px, 5vw, 56px) var(--gut) clamp(64px, 8vw, 110px); border-bottom: 0; border-top: 1px solid var(--line); }
.que .concept i { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
@media (max-width: 900px) {
  .que-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .que-stack { height: 360px; }
  .que-layer { height: 116px; } .que-layer.l02 { top: 120px; } .que-layer.l01 { top: 240px; }
  .que-plane { width: 46%; height: 100px; left: 0; }
  .que-lab { left: 50%; top: 14px; }
  .que-lab strong { font-size: 16.5px; } .que-lab small { font-size: 13px; }
  .que-stack::before, .que-stack::after { left: 23%; }
  .que-stack::after { left: calc(23% - 4px); }
  @keyframes queUp { 0% { transform: translateY(232px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .que-stack::after { animation: none; display: none; } }

/* ---------- indicador fijo del rubro ---------- */
.wbar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 45; transform: translate(-50%, 160%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; max-width: calc(100% - 24px); font-family: var(--f-sans); }
.wbar.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.wbar[hidden] { display: block; }
.wbar-in { display: flex; align-items: center; gap: 12px; background: rgba(6,7,20,.93); color: #F4F5FF; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 16px 5px 5px; box-shadow: 0 18px 50px rgba(6,7,20,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap; }
.wbar-pick { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.09); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; color: #fff; font: 600 14px var(--f-sans); min-height: 38px; }
.wbar-pick:hover, .wbar.open .wbar-pick { background: rgba(255,255,255,.16); }
.wbar-k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8C93C4; font-weight: 500; }
.wbar-ch { color: #7DF0FF; font-weight: 500; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.wbar-st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #C3C8EC; }
.wbar-st i { font-style: normal; opacity: .45; }
.wb-n b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.wb-n.bump b { animation: wbBump .7s; }
@keyframes wbBump { 30% { color: #3DDC84; } }
.wbar-menu { position: absolute; bottom: calc(100% + 10px); left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(460px, calc(100vw - 24px)); padding: 8px; border-radius: 18px; background: #0D0F24; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.wbar-menu[hidden] { display: none; }
.wbar-o { display: grid; gap: 1px; text-align: left; background: transparent; border: 0; border-radius: 12px; padding: 9px 12px; color: #fff; cursor: pointer; min-height: 44px; }
.wbar-o b { font-size: 14px; font-weight: 600; }
.wbar-o span { font-size: 12px; color: #8C93C4; }
.wbar-o:hover { background: rgba(255,255,255,.07); }
.wbar-o[aria-pressed="true"] { background: #fff; color: #12163A; }
.wbar-o[aria-pressed="true"] span { color: #5C6077; }
@media (max-width: 640px) {
  .wbar { left: 12px; right: 12px; transform: translateY(160%); max-width: none; }
  .wbar.on { transform: none; }
  .wbar-in { justify-content: space-between; padding-right: 12px; gap: 8px; }
  .wbar-pick { padding: 7px 11px; font-size: 13.5px; }
  .wbar-st { font-size: 12px; gap: 6px; }
  .wbar-st > .wb-n:first-child, .wbar-st > i:first-of-type { display: none; }
  .wbar-menu { width: 100%; }
}
@media (max-width: 380px) { .wbar-k { display: none; } }

/* ---------- Un día: línea de tiempo oscura ---------- */
.dia { padding: clamp(72px, 9vw, 128px) 0; }
.dia-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.dia-left { position: sticky; top: 96px; }
.dia h2 { font-size: clamp(36px, 4.6vw, 64px); }
.dia .lede { margin-top: 20px; }
.dia-clock { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.dia-ring { width: 170px; height: 170px; flex: none; }
.dia-ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dr-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; }
.dr-prog { fill: none; stroke: var(--ag); stroke-width: 2.6; stroke-linecap: round; }
.dr-tick { stroke: rgba(255,255,255,.3); stroke-width: 1.2; }
.dr-ev { fill: #0B0D22; stroke: var(--muted); stroke-width: 1.3; transition: fill .3s, stroke .3s; }
.dr-ev.on { fill: #fff; stroke: var(--ag); }
.dr-hand { fill: var(--ag); filter: drop-shadow(0 0 6px rgba(125,240,255,.8)); }
.dia-now { display: grid; min-width: 0; }
.dia-time { font: 600 56px/1 var(--f-head); letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: #fff; }
.dia-co { font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-top: 10px; }
.dia-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 14px; }
.dia-tot div { display: flex; flex-direction: column-reverse; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.03); }
.dia-tot dd { margin: 0; font: 700 26px/1 var(--f-sans); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.dia-tot div:last-child dd { color: var(--ok); }
.dia-tot dt { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.dia-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; }
.dia-feed::before { content: ""; position: absolute; left: 63px; top: 24px; bottom: 24px; border-left: 1.5px dashed var(--line2); }
.dl { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 26px; opacity: .38; transition: opacity .5s; }
.dl.on { opacity: 1; }
.dl-time { font-size: 13px; color: var(--muted); padding-top: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.dl.on .dl-time { color: var(--ink2); }
.dl.now .dl-time { color: var(--ag); font-weight: 500; }
.dl-card { position: relative; background: rgba(13,15,36,.72); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 14px; transition: border-color .4s, box-shadow .4s; min-width: 0; }
.dl-card::before { content: ""; position: absolute; left: -19px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: #060714; border: 1.5px solid var(--muted); transition: background .3s, border-color .3s; }
.dl.now .dl-card { border-color: color-mix(in srgb, var(--ag) 55%, transparent); box-shadow: 0 22px 60px rgba(0,0,0,.4); }
.dl.now .dl-card::before { background: var(--ag); border-color: var(--ag); }
.dl.ok .dl-card::before { background: var(--ok); border-color: var(--ok); }
.dl-h { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; }
.dl-ag { display: inline-flex; gap: 9px; align-items: center; color: var(--ag); font-weight: 600; min-width: 0; }
.dl-area { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dl-t { font: 600 18px/1.35 var(--f-sans); letter-spacing: -.01em; margin-top: 8px; color: var(--ink); }
.dl-d { font-size: 14.5px; color: var(--ink2); margin-top: 4px; }
.dl-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: stretch; }
.dl-side { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.dl-did { font-size: 14px; color: var(--ink2); line-height: 1.45; }
.dl-did span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dl-fig b { display: block; font: 700 28px/1 var(--f-sans); letter-spacing: -.03em; color: #fff; transition: color .3s; }
.dl-fig span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.dl.ok .dl-fig b { color: var(--ok); }
.dl-ap { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; min-height: 42px; align-items: center; }
.dl-wait { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--prob); }
.dl-wait::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; border-top-color: transparent; animation: tpSpin 1.6s linear infinite; }
.dl:not(.on) .dl-wait { visibility: hidden; }
.dl-ok { display: none; align-items: center; gap: 6px; font: 600 13px var(--f-sans); background: var(--ok); color: #04220F; padding: 6px 13px; border-radius: 999px; }
.dl-ok svg { width: 14px; height: 14px; }
.dl.ok .dl-wait { display: none; }
.dl.ok .dl-ok { display: inline-flex; animation: citeIn .35s both; }
.dl-brief .dl-card { background: radial-gradient(120% 90% at 100% 0%, rgba(61,72,224,.28), transparent 60%), rgba(13,15,36,.72); }
.dl-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 12px 0 0; }
.dl-close .dl-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-rows div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.dl-rows dd { margin: 0; font: 700 21px/1.1 var(--f-sans); color: #fff; }
.dl-rows dt { font-size: 12.5px; color: var(--muted); }
.dl-for { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
/* mini-demos: lo que dejó listo el agente */
.dm { position: relative; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); padding: 11px 12px 12px; min-height: 122px; overflow: hidden; min-width: 0; }
.dm-k { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dm-doc { display: grid; gap: 5px; background: #fff; color: #12163A; border-radius: 8px; padding: 9px 11px; font-size: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.dm-doc > b { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #2E3470; }
.dm-ln span { display: block; color: #3B4062; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-ln, .dm-tot { opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s; }
.dm-tot { display: flex; justify-content: space-between; border-top: 1px solid #E2E0D8; padding-top: 5px; font-weight: 600; }
.dm-tot b { color: #12163A; }
.dl.on .dm-ln, .dl.on .dm-tot { opacity: 1; transform: none; }
.dl.on .dm-ln:nth-of-type(2) { transition-delay: .25s; } .dl.on .dm-ln:nth-of-type(3) { transition-delay: .5s; } .dl.on .dm-tot { transition-delay: .75s; }
.dm-seq ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.dm-seq li { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(139,133,255,.14); font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; transition: transform .8s cubic-bezier(.2,.8,.2,1) .35s, background .4s .35s; }
.dm-seq li span { overflow: hidden; text-overflow: ellipsis; }
.dm-seq li i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.dl.on .dm-seq li { transform: translateY(calc((var(--o) - var(--i)) * 32px)); }
.dl.on .dm-seq li.mv { background: color-mix(in srgb, var(--ag) 24%, transparent); }
.dl.on .dm-seq li.mv i { background: var(--ag); }
.dm-msg { display: block; background: #fff; color: #12163A; border-radius: 12px 12px 12px 4px; padding: 9px 12px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.dm-to { display: block; font-size: 10px; letter-spacing: .06em; color: #2E3470; margin-bottom: 3px; }
.dm-tx { display: block; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s steps(28) .2s; }
.dl.on .dm-tx { clip-path: inset(0 0 0 0); }
.dm-bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; }
.dm-bars i { flex: 1; height: 4%; background: rgba(139,133,255,.4); border-radius: 3px 3px 0 0; transition: height .7s cubic-bezier(.2,.8,.2,1) var(--d); }
.dl.on .dm-bars i { height: var(--h); }
.dm-bars i.hi { background: var(--ag); }
.dm-rec { display: block; font-size: 10.5px; color: var(--muted); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .dia-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .dia-left { position: static; }
  .dia-ring { width: 120px; height: 120px; }
  .dia-time { font-size: 42px; }
  .dia-tot dd { font-size: 21px; }
  .dia-tot div { padding: 10px 11px; }
  .dl { grid-template-columns: 40px minmax(0, 1fr); gap: 18px; }
  .dia-feed::before { left: 49px; }
  .dl-card::before { left: -15px; }
  .dl-time { font-size: 12px; }
}
@media (max-width: 560px) {
  .dl-body { grid-template-columns: minmax(0, 1fr); }
  .dl-close .dl-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-t { font-size: 16.5px; }
  .dm { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .dl-wait::before { animation: none; } .dm-ln, .dm-tot, .dm-seq li, .dm-tx, .dm-bars i { transition: none; } }

/* ---------- Casos: etapa · qué cambió · resultado ---------- */
.case-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; }
.case-rows div { border-top: 2px solid var(--ink); padding-top: 12px; }
.case-rows div:last-child { border-top-color: var(--accent); }
.case-rows dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.case-rows dd { margin: 7px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.case-rows div:last-child dd { font-weight: 600; }
.facts-more { margin-top: 18px; }
.facts-more summary { cursor: pointer; font-size: 12px; letter-spacing: .06em; color: var(--muted); list-style: none; display: inline-flex; gap: 8px; align-items: center; min-height: 36px; }
.facts-more summary::-webkit-details-marker { display: none; }
.facts-more summary::before { content: "+"; font-size: 16px; color: var(--accent); }
.facts-more[open] summary::before { content: "−"; }
.facts-more[open] .facts { margin-top: 12px; }
@media (max-width: 760px) { .case-rows { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- Cómo se implementa: 4 etapas + qué tengo hoy + alta autonomía ---------- */
.stg { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line2); }
.stg li { position: relative; padding: 24px 24px 4px 0; display: flex; flex-direction: column; gap: 10px; }
.stg li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
.stg-n { font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.stg h3 { font-size: 21px; }
.stg li p { font-size: 15.5px; color: var(--ink2); line-height: 1.5; margin-top: 6px; }
.stg .st-more { margin-top: 8px; }
.have { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: var(--bg2); margin-bottom: 24px; }
.have .eyebrow { margin-bottom: 10px; }
.have-t { font: 600 clamp(22px, 2.2vw, 28px)/1.15 var(--f-head); letter-spacing: -.02em; }
.have-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.have-o { position: relative; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 9px 15px; cursor: pointer; font-size: 14.5px; min-height: 42px; transition: border-color .2s; }
.have-o input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.have-box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s; }
.have-o input:checked + .have-box { background: var(--ink); border-color: var(--ink); }
.have-o input:checked + .have-box::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.have-o:has(input:checked) { border-color: var(--ink); }
.have-o input:focus-visible + .have-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.have-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.have-list li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; display: grid; gap: 2px; animation: citeIn .35s both; }
.have-list li[hidden] { display: none; }
.have-list b { font-size: 14.5px; }
.have-list span { font-size: 14px; color: var(--ink2); line-height: 1.45; }
.have-none { color: var(--muted); font-size: 14px; }
.have-fig svg { width: 100%; height: auto; display: block; }
.hv-l { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.hv-f { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 8 240; animation: hvFlow 2.4s linear infinite; }
@keyframes hvFlow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -248; } }
.hv-s rect { fill: #fff; stroke: var(--line2); }
.hv-s text { font: 600 13px var(--f-sans); fill: var(--ink); }
.hv-core { fill: #12163A; }
.hv-halo { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, transparent); stroke-width: 1.5; stroke-dasharray: 3 5; }
.hv-ag { fill: var(--accent); }
.hv-ct { fill: #fff; font: 600 11.5px var(--f-sans); }
.auton { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px 40px; padding: 30px 32px; border-radius: 24px; background: var(--ink); color: #fff; margin-bottom: 24px; }
.auton .eyebrow { color: #ABA6FF; margin-bottom: 10px; }
.auton h3 { font: 600 clamp(22px, 2.2vw, 28px)/1.15 var(--f-head); color: #fff; letter-spacing: -.02em; }
.auton ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: center; }
.auton li { position: relative; padding-left: 28px; color: #C3C8EC; font-size: 16px; }
.auton li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--warm); font-weight: 700; }
.auton-d { grid-column: 1 / -1; color: #fff; font-size: 17px; font-weight: 500; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; margin-top: 4px; }
@media (max-width: 1000px) { .stg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stg li { padding-bottom: 20px; } }
@media (max-width: 760px) {
  .have { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 18px; }
  .have-fig { order: -1; }
  .auton { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
}
@media (max-width: 560px) { .stg { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hv-f { animation: none; } }

/* ---------- Confianza demostrada (fondo blanco) ---------- */
.conf { padding: clamp(72px, 10vw, 140px) 0; background: var(--bg); }
.conf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.conf-box { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.conf-h { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.conf-h b { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.conf-h span { font-size: 14.5px; color: var(--ink2); }
.clog { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 372px; overflow: auto; align-content: start; }
.clog-empty { border: 1.5px dashed var(--line2); border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.clog-r { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; animation: citeIn .35s both; }
.clog-r.you { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.clog-t { font-size: 12px; color: var(--muted); padding-top: 1px; }
.clog-b { display: grid; gap: 3px; min-width: 0; }
.clog-ag { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); font-size: 13px; }
.clog-w { color: var(--ink2); line-height: 1.45; }
.clog-who { font-size: 11.5px; color: var(--ok); }
.clog-r.st-no .clog-who { color: #B42318; }
.clog-r.st-perm .clog-who { color: var(--muted); }
.clog-r.undone .clog-w { text-decoration: line-through; color: var(--muted); }
.clog-r.undone .clog-who { color: var(--muted); }
.clog-undo { background: none; border: 0; padding: 2px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: 11.5px; cursor: pointer; min-height: 28px; }
.perm-in { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: center; }
.perm-graph svg { width: 100%; height: auto; display: block; }
.pg-core { fill: var(--ink); }
.pg-l { stroke: var(--accent); stroke-width: 1.3; opacity: .55; transition: opacity .3s; }
.pg-l.off { stroke: var(--muted); stroke-dasharray: 3 4; opacity: .3; }
.pg-a circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.pg-a text { font: 600 12px var(--f-sans); fill: var(--ink2); }
.pg-a.off circle { stroke: var(--line2); fill: var(--bg2); }
.pg-a.off text { fill: #A3A6B8; }
.pg-g { fill: var(--accent); stroke: #fff; stroke-width: 1.5; transition: fill .3s; }
.pg-g.off { fill: #C9CBD6; }
.perm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.perm-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line); transition: background .3s; }
.pl-n { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 9px; align-items: center; min-width: 0; }
.pl-n .rb { grid-row: span 2; }
.pl-n b { font-size: 13.5px; }
.pl-n small { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.35; }
.perm-list li.off { background: var(--bg2); }
.perm-list li.off b { color: var(--muted); }
.perm-list li.off .rb { background: #C9CBD6; box-shadow: none; }
.sw { width: 42px; height: 26px; border-radius: 999px; border: 0; background: var(--ok); position: relative; cursor: pointer; flex: none; transition: background .25s; padding: 0; }
.sw i { position: absolute; top: 4px; left: 20px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw[aria-checked="false"] { background: #C9CBD6; }
.sw[aria-checked="false"] i { left: 4px; }
.conf-proof { margin-top: 28px; display: grid; gap: 14px; }
.conf-k { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.proof-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.proof { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.proof:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.proof .sec-ico svg { width: 26px; height: 26px; }
.proof-t { font-size: 15px; font-weight: 600; line-height: 1.35; }
.proof .more { margin-top: auto; font-size: 11.5px; color: var(--accent); }
.conf-office { font-style: normal; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bg2); font-size: 14.5px; }
.conf-office b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.conf-office a { color: var(--accent); }
.conf .faq-wrap { margin-top: 56px; }
@media (max-width: 1000px) { .conf-grid { grid-template-columns: minmax(0, 1fr); } .proof-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .perm-in { grid-template-columns: minmax(0, 1fr); }
  .perm-graph { max-width: 280px; margin: 0 auto; }
  .conf-box { padding: 16px 14px; }
  .clog-r { grid-template-columns: 40px minmax(0, 1fr); }
  .clog-undo { grid-column: 2; justify-self: start; }
}

/* ---------- Cierre: esfera del rubro junto al formulario ---------- */
.cta-orb { position: relative; height: 260px; margin-top: 30px; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.cta-orb canvas { width: 100%; height: 100%; display: block; }
.cta-orb-k { position: absolute; left: 16px; bottom: 12px; z-index: 3; font-size: 11.5px; color: var(--accent-deep); background: rgba(255,255,255,.92); padding: 3px 8px; border-radius: 999px; }
@media (max-width: 600px) { .cta-orb { height: 230px; } }

/* ---------- Casos · el grafo del estudio en el lenguaje del héroe (fondo de noche, nodos de luz) ---------- */
.cstage-legal .graph-wrap { background: radial-gradient(70% 60% at 50% 45%, rgba(61,72,224,.28), transparent 70%), #060714; }
.cstage-legal #graph .edge { stroke: rgba(195,200,236,.32); }
.cstage-legal #graph .edge.x { stroke: rgba(139,133,255,.6); }
.cstage-legal #graph .edge.path { stroke: #7DF0FF; }
.cstage-legal #graph .edge.hit { stroke: #FFA51F; }
.cstage-legal #graph .pct { fill: #C3C8EC; stroke: #060714; }
.cstage-legal #graph .pct.on { fill: #7DF0FF; }
.cstage-legal #graph .node .halo { fill: #8B85FF; }
.cstage-legal #graph .node.fam circle:not(.halo) { fill: #fff; stroke: rgba(139,133,255,.6); stroke-width: 4; }
.cstage-legal #graph .ini { fill: #12163A; }
.cstage-legal #graph .node.soc circle:not(.halo) { fill: #0D0F24; stroke: #8B85FF; }
.cstage-legal #graph .node.soc.on circle:not(.halo) { fill: #8B85FF; }
.cstage-legal #graph .gl { fill: #B9B5FF; }
.cstage-legal #graph .node.soc.hit circle:not(.halo) { fill: #FFA51F; stroke: #FFA51F; }
.cstage-legal #graph .node.hit .halo { fill: #FFA51F; }
.cstage-legal #graph .node.sel circle:not(.halo) { stroke: #7DF0FF; }
.cstage-legal #graph .lbl { fill: #F4F5FF; stroke: rgba(6,7,20,.92); }
.cstage-legal #graph .lbl.s { fill: #C3C8EC; }
.cstage-legal #graph .wave { stroke: #FFA51F; }
.cstage-legal .graph-legend { background: rgba(13,15,36,.88); color: #C3C8EC; box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.cstage-legal .graph-act .btn-glass { background: rgba(255,255,255,.92); }

/* =====================================================================
   INFORME (11-nov-2026, J: «look más premium y serio… no un artefacto de IA»)
   La consola «Pregúntale» deja la estética de terminal y pasa a informe ejecutivo:
   papel blanco sobre gris frío, tinta, una sola familia tipográfica, cifras tabulares,
   líneas finas, colores de dato planos. Sin monoespaciada, sin bordes de color a la
   izquierda, sin puntos encendidos, sin degradés ni brillos.
   ===================================================================== */
.askx.scene.rep {
  --bg: #F4F5F8; --bg2: #ECEEF3; --paper: #FFFFFF; --ink: #12163A; --ink2: #2A2F55; --muted: #5B6080;
  --line: #E1E3EB; --line2: #CDD0DC; --accent: #0B0E27; --accent-deep: #0B0E27; --accent-soft: #ECEDF7;
  --ok: #1F7A55; --prob: #A9731A; --ag: #0B0E27; --no: #A8432C; --card: #FFFFFF;
  --d-ok: #2F8F68; --d-warn: #C2932F; --d-bad: #B4452C;
  background: #F4F5F8; color: var(--ink); color-scheme: light;
}
.askx.rep .mono, .askx.rep .aa-form input, .askx.rep .aa-cite, .askx.rep .aa-meta, .askx.rep .aa-feed .ft { font-family: var(--f-sans); font-variant-numeric: tabular-nums; }
.askx.rep .aa { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 0 rgba(18,22,58,.03), 0 30px 70px -40px rgba(18,22,58,.28); backdrop-filter: none; }
.askx.rep .aa-logo { background: var(--ink); color: #fff; border: 0; border-radius: 6px; font-weight: 600; }
.askx.rep .aa-fict { text-transform: none; letter-spacing: 0; font-size: 12px; border: 0; padding: 0; color: var(--muted); }
.askx.rep .aa-compose { background: #fff; border-bottom: 1px solid var(--line); }
.askx.rep .aa-form { background: #fff; border: 1px solid var(--line2); border-radius: 8px; }
.askx.rep .aa-form:focus-within { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.askx.rep .aa-prompt { display: none; }
.askx.rep .aa-form input { font-size: 16px; }
.askx.rep .aa-send { background: var(--ink); color: #fff; border-radius: 6px; }
.askx.rep .aa-send:hover { background: var(--accent); }
.askx.rep .aa-chip { background: #fff; color: var(--ink2); border: 1px solid var(--line); border-radius: 8px; }
.askx.rep .aa-chip:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.askx.rep .aa-chip.used { opacity: 1; color: var(--muted); }
.askx.rep .aa-chip.cur { border-color: var(--ink); background: #fff; color: var(--ink); font-weight: 600; }
.askx.rep .aa-badge { color: var(--muted); letter-spacing: 0; font-size: 12px; }
.askx.rep .live-dot { background: var(--ink2); box-shadow: none; animation: none; width: 5px; height: 5px; }
.askx.rep .aa-log { scrollbar-color: var(--line2) transparent; }

/* la pregunta es el título del informe */
.askx.rep .cx-run { gap: 18px; }
.askx.rep .cx-q { font: 600 clamp(19px, 2.2vw, 23px)/1.25 var(--f-head); letter-spacing: -.02em; color: var(--ink); background: none; border: 0; border-radius: 0; padding: 0; text-wrap: balance; }
.askx.rep .cx-q span { display: none; }
.askx.rep .aa-mapped { background: none; border: 0; padding: 0; font-size: 13px; }
/* etapas: una regla fina con el paso actual en tinta */
.askx.rep .sc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; border: 0; font: 500 12.5px var(--f-sans); color: var(--muted); }
.askx.rep .sc-steps li { display: block; padding-top: 9px; border-top: 2px solid var(--line); white-space: nowrap; transition: border-color .3s, color .3s; }
.askx.rep .sc-steps li + li::before { content: none; }
.askx.rep .sc-steps li.done { color: var(--ink2); border-top-color: var(--ink2); }
.askx.rep .sc-steps li.cur { color: var(--ink); font-weight: 600; border-top-color: var(--ink); }
.askx.rep .sc-steps li.cur span { border: 0; padding: 0; }
/* fuentes consultadas: tabla, nombre a la izquierda y cifra a la derecha */
.askx.rep .aa-trace { border: 0; padding: 0; font: 400 13.5px/1.35 var(--f-sans); color: var(--ink2); }
.askx.rep .aa-trace li { justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.askx.rep .aa-trace li::before { content: none; }
.askx.rep .aa-trace li:first-child { color: var(--muted); font-size: 12.5px; padding-top: 0; }
.askx.rep .aa-trace li.on { color: var(--muted); }
.askx.rep .aa-trace .tr-n { white-space: nowrap; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.askx.rep .aa-trace .tr-n b { color: var(--ink); font-weight: 600; font-size: 13.5px; }
/* gráfico: barras planas y delgadas */
.askx.rep .cx-chart { background: none; border: 0; border-radius: 0; padding: 0; }
.askx.rep .cx-chart-h { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.askx.rep .cx-chart-h b { font-size: 15px; }
.askx.rep .cx-chart-h span { font-size: 13px; color: var(--muted); margin-left: auto; }
.askx.rep .cx-mark-l { margin-left: 0; width: 100%; }
.askx.rep .cx-mark-l::before { border-left-color: var(--ink2); }
.askx.rep .cx-bars { gap: 12px; margin-top: 14px; }
.askx.rep .cx-bl { font-size: 13.5px; color: var(--ink2); }
.askx.rep .cx-bt { height: 8px; border-radius: 1px; background: var(--bg2); }
.askx.rep .cx-bt i, .askx.rep .cx-bar.t-ok .cx-bt i, .askx.rep .cx-bar.t-warn .cx-bt i, .askx.rep .cx-bar.t-bad .cx-bt i { border-radius: 1px; box-shadow: none; background: var(--ink2); }
.askx.rep .cx-bar.t-ok .cx-bt i { background: var(--d-ok); }
.askx.rep .cx-bar.t-warn .cx-bt i { background: var(--d-warn); }
.askx.rep .cx-bar.t-bad .cx-bt i { background: var(--d-bad); }
.askx.rep .cx-bars.has-mark .cx-bt::after { border-left-color: var(--ink2); }
.askx.rep .cx-bv { font: 600 14px var(--f-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.askx.rep .cx-bar.t-bad .cx-bv { color: var(--d-bad); font-weight: 700; }
/* hallazgos */
.askx.rep .cx-k { font: 600 13px var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.askx.rep .aa-ans { font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.askx.rep .aa-ans b { color: var(--ink); }
.askx.rep .aa-ans li::before { width: 5px; height: 1.5px; border-radius: 0; background: var(--ink2); top: .78em; }
.askx.rep .aa-cite { background: none; border: 0; border-radius: 0; padding: 0; margin: 2px 8px 0 0; color: var(--accent); font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.askx.rep .aa-cite:hover, .askx.rep .aa-cite.on { background: none; color: var(--ink); text-decoration-color: var(--ink); }
.askx.rep .aa-meta { font-size: 12.5px; }
.askx.rep .cx-ghost i { background: var(--bg2); }
/* tarjeta de la acción propuesta */
.askx.rep .sc-card, .askx.rep .sc-card.st-work, .askx.rep .sc-card.st-prob, .askx.rep .sc-card.st-ok, .askx.rep .sc-card.st-no { background: #fff; border: 1px solid var(--line2); border-radius: 10px; box-shadow: none; }
.askx.rep .sc-card.st-ok { border-color: var(--ok); }
.askx.rep .sc-head { text-transform: none; letter-spacing: 0; font-size: 13px; }
.askx.rep .sc-dot { display: none; }
.askx.rep .sc-area { font-weight: 600; }
.askx.rep .sc-state { font-weight: 500; }
.askx.rep .sc-res strong { font-variant-numeric: tabular-nums; }
.askx.rep .sc-apr { background: var(--ink); color: #fff; border-radius: 8px; animation: none; box-shadow: none; }
.askx.rep .sc-apr:hover { background: var(--accent); color: #fff; }
.askx.rep .sc-apr.done, .askx.rep .sc-done.ok { background: var(--ok); color: #fff; border-radius: 8px; }
.askx.rep .sc-rej { border-radius: 8px; }
.askx.rep .sc-done.no { border-radius: 8px; }
.askx.rep .sc-out { background: var(--bg); border-radius: 8px; }
.askx.rep .sc-demo { letter-spacing: 0; font-size: 12px; }
.askx.rep .sc-who, .askx.rep .sc-undo { font-size: 12.5px; }
/* panel de fuentes (derecha) */
.askx.rep .aa-side { background: #FAFAFC; }
.askx.rep .aa-side-h .mono, .askx.rep .aa-feed-h { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.askx.rep .aa-src { background: #fff; border-radius: 8px; }
.askx.rep .aa-src b { color: var(--ink); font-variant-numeric: tabular-nums; }
.askx.rep .aa-src .aa-ico, .askx.rep .aa-feed li .aa-ico { color: var(--ink2); }
.askx.rep .aa-src.scan { box-shadow: none; border-color: var(--ink2); }
.askx.rep .aa-src.hit { border-color: var(--ink); background: #fff; }
.askx.rep .aa-src.hit .aa-src-hit, .askx.rep .aa-src-hit { color: var(--ink2); }
.askx.rep .aa-feed li { background: #fff; border-radius: 8px; }
.askx.rep .not-chatbot { border-top-color: var(--line2); }
@media (max-width: 900px) {
  .askx.rep .aa-chip { border-radius: 8px; }
  .askx.rep .sc-steps { font-size: 12px; }
  .askx.rep .aa-log { padding: 20px 16px 22px; }
}
.askx.rep .aa-cite { vertical-align: baseline; line-height: inherit; margin: 0 10px 0 0; }
.askx.rep .aa-ans li { padding-left: 18px; }
.askx.rep .cx-chart { background: #fff; padding: 10px 0 14px; box-shadow: 0 -14px 0 0 #fff, 0 10px 14px -10px rgba(18,22,58,.18); }

/* =====================================================================
   UN DÍA EN ESCENAS (11-nov-2026, J: «no refleja lo que es el sistema»)
   Seis momentos con forma de artefacto real: mensaje en el chat del equipo, correos escritos,
   facturas por emitir, pregunta y respuesta, una función que el sistema propone ya construida
   y el cierre. Mismo lenguaje «informe» de la consola: papel, tinta, una familia, líneas finas.
   ===================================================================== */
.dia.scene.rep {
  --bg: #F4F5F8; --bg2: #ECEEF3; --paper: #FFFFFF; --ink: #12163A; --ink2: #2A2F55; --muted: #5B6080;
  --line: #E1E3EB; --line2: #CDD0DC; --accent: #0B0E27; --accent-deep: #0B0E27; --accent-soft: #ECEDF7;
  --ok: #1F7A55; --prob: #A9731A; --ag: #0B0E27; --no: #A8432C; --card: #FFFFFF;
  background: #F4F5F8; color: var(--ink); color-scheme: light;
}
.dia.rep .mono { font-family: var(--f-sans); font-variant-numeric: tabular-nums; }
.dia.rep h2 { font-size: clamp(32px, 4vw, 54px); text-wrap: balance; }
.dia.rep h2 em { font-style: normal; color: inherit; }
/* columna izquierda: reloj y totales */
.dia.rep .dr-track { stroke: var(--line2); stroke-width: 1.5; }
.dia.rep .dr-prog { stroke: var(--ink); stroke-width: 2; }
.dia.rep .dr-tick { stroke: var(--line2); }
.dia.rep .dr-ev { fill: #F4F5F8; stroke: var(--muted); }
.dia.rep .dr-ev.on { fill: var(--ink); stroke: var(--ink); }
.dia.rep .dr-hand { fill: var(--ink); filter: none; }
.dia.rep .dia-time { color: var(--ink); }
.dia.rep .dia-co { letter-spacing: 0; font-size: 13.5px; color: var(--muted); }
.dia.rep .dia-tot { gap: 0; border-top: 1px solid var(--ink); }
.dia.rep .dia-tot div { border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; background: none; padding: 12px 12px 12px 0; }
.dia.rep .dia-tot dd { color: var(--ink); font-weight: 600; }
.dia.rep .dia-tot div:last-child dd { color: var(--ink); }
.dia.rep .dia-tot dt { font-size: 13px; }
/* la línea de tiempo: solo la hora como marcador */
.dia.rep .dia-feed { gap: 22px; }
.dia.rep .dia-feed::before { content: none; }
.dia.rep .dl { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; opacity: .45; }
.dia.rep .dl.on { opacity: 1; }
.dia.rep .dl-time { font: 500 14px var(--f-sans); font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 18px; text-align: left; }
.dia.rep .dl.on .dl-time { color: var(--ink2); }
.dia.rep .dl.now .dl-time { color: var(--ink); font-weight: 700; }
.dy-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 14px; min-width: 0; transition: border-color .4s, box-shadow .4s; }
.dl.now .dy-card { border-color: var(--line2); box-shadow: 0 24px 50px -34px rgba(18,22,58,.35); }
.dy-t { font: 600 19px/1.3 var(--f-head); letter-spacing: -.015em; color: var(--ink); margin: 0; text-wrap: balance; }
.dy-d { font-size: 14.5px; line-height: 1.5; color: var(--ink2); margin: 6px 0 0; }
.dy-k { font: 600 13px var(--f-sans); color: var(--muted); margin: 0 0 6px; }
.dy-note { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 12px 0 0; }
/* hilo de chat de trabajo */
.dy-who { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); }
.dy-who + .dy-msg { margin-top: 6px; }
.dy-msg + .dy-who { margin-top: 16px; }
.dy-who b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dy-av { width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 12px var(--f-sans); }
.dy-av svg { width: 15px; height: 15px; display: block; }
.dy-who.me .dy-av { background: var(--bg2); color: var(--ink2); }
.dy-at { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dy-msg { font-size: 15.5px; line-height: 1.5; color: var(--ink); margin: 0; padding-left: 35px; }
.dy-list { list-style: none; counter-reset: dy; margin: 12px 0 0 35px; padding: 0; border-top: 1px solid var(--line); }
.dy-list li { counter-increment: dy; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; color: var(--ink2); }
.dy-list li::before { content: counter(dy); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dy-list b { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dy-chat .dy-note { margin-left: 35px; }
/* bandeja de correos escritos */
.dy-mail { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.dy-mail li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dy-to { font-size: 12.5px; color: var(--muted); }
.dy-mail b { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.dy-pre { font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* facturas por emitir */
.dy-tb { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.dy-tb th, .dy-tb td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.dy-tb thead th { font-weight: 500; font-size: 12.5px; color: var(--muted); border-bottom-color: var(--ink); }
.dy-tb td:first-child { font-weight: 600; color: var(--ink); }
.dy-tb td { color: var(--ink2); }
.dy-tb .num { text-align: right; padding-right: 0; white-space: nowrap; color: var(--ink); }
.dy-tb tfoot th, .dy-tb tfoot td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 700; color: var(--ink); font-size: 15px; }
/* la mejora que el sistema propone */
.dy-chg { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.dy-chg li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.dy-chg b { font-weight: 600; color: var(--ink); }
.dy-chg span { color: var(--ink2); }
/* cierre */
.dy-rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; margin: 14px 0 0 35px; border-top: 1px solid var(--ink); }
.dy-rows div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 10px 0 2px; }
.dy-rows dd { margin: 0; font: 700 21px/1.1 var(--f-sans); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dy-rows dt { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
/* estado y botones de cada escena */
.dia.rep .dl-ap { border-top: 0; margin-top: 12px; padding-top: 0; min-height: 36px; gap: 10px; flex-wrap: wrap; }
.dy-chat .dl-ap { padding-left: 35px; }
.dia.rep .dl-wait { text-transform: none; letter-spacing: 0; font: 500 13px var(--f-sans); color: var(--muted); }
.dia.rep .dl-wait::before { content: none; }
.dia.rep .dl-ok { background: none; color: var(--ok); padding: 0; border-radius: 0; font: 600 13.5px var(--f-sans); }
.dy-btns { margin-left: auto; display: inline-flex; gap: 8px; }
.dy-btn { font: 600 13.5px var(--f-sans); padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line2); color: var(--ink2); background: #fff; white-space: nowrap; }
.dy-btn.pri { background: var(--ink); border-color: var(--ink); color: #fff; }
.dl.ok .dy-btns { display: none; }
@media (max-width: 900px) {
  .dia.rep .dl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dia.rep .dl-time { padding-top: 0; }
  .dy-card { padding: 16px 16px 12px; }
  .dy-msg { padding-left: 0; margin-top: 8px; }
  .dy-list, .dy-rows, .dy-chat .dy-note { margin-left: 0; }
  .dy-chat .dl-ap { padding-left: 0; }
  .dy-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dy-chg li { grid-template-columns: minmax(0, 1fr); }
  .dy-tb thead th:nth-child(2), .dy-tb tbody td:nth-child(2) { display: none; }
  .dy-btns { margin-left: 0; width: 100%; }
  .dy-btn { flex: 1; text-align: center; }
}

/* =====================================================================
   PANTALLA CENTRAL «El sistema a las 07:30» (CON1A, 11-nov-2026)
   Se ve como el producto por dentro: barra de aplicación, las decisiones del día a la izquierda,
   el expediente de la elegida al centro y la sala de agentes a la derecha. Lenguaje «informe».
   ===================================================================== */
.askx.rep .sec-head { text-align: left; margin: 0 0 34px; max-width: 900px; }
.askx.rep .sec-head .lede { margin: 16px 0 0; }
.askx.rep .sec-head h2 { text-wrap: balance; }
.os { background: #fff; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(18,22,58,.03), 0 40px 90px -50px rgba(18,22,58,.38); }
.os-bar { display: flex; align-items: center; gap: 14px; padding: 11px 18px; background: var(--ink); color: #fff; font-size: 13.5px; }
.os-logo { width: 30px; height: 30px; flex: none; border-radius: 6px; background: #fff; color: var(--ink); display: grid; place-items: center; font: 700 12px var(--f-sans); letter-spacing: .02em; }
.os-co { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; margin-right: auto; }
.os-co b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-co span { font-size: 12px; color: rgba(255,255,255,.62); }
.os-date { color: rgba(255,255,255,.72); white-space: nowrap; }
.os-clock { font: 600 15px var(--f-sans); font-variant-numeric: tabular-nums; }
.os-user { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: rgba(255,255,255,.86); }
.os-user i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font: 600 11.5px var(--f-sans); font-style: normal; }
.os-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 330px); align-items: stretch; min-height: 620px; }
.os-left { border-right: 1px solid var(--line); background: #FAFAFC; min-width: 0; }
.os-right { border-left: 1px solid var(--line); background: #FAFAFC; min-width: 0; display: flex; flex-direction: column; }
.os-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.os-ph h3 { font: 600 15px var(--f-sans); letter-spacing: -.01em; color: var(--ink); margin: 0; }
.os-ph span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* izquierda: las decisiones de hoy */
.os-list { list-style: none; margin: 0; padding: 0; }
.os-dec { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 3px 10px; width: 100%; text-align: left; padding: 14px 18px 13px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; background: none; color: var(--ink); font: inherit; cursor: pointer; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s, background .2s; }
.os-dec.in { opacity: 1; transform: none; }
.os-dec:hover { background: #fff; }
.os-dec[aria-pressed="true"] { background: #fff; border-left-color: var(--ink); }
.os-dec:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.os-n { grid-row: 1 / span 3; font: 500 13px var(--f-sans); color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.os-dt { font: 600 14.5px/1.3 var(--f-sans); color: var(--ink); }
.os-fig { font: 700 14.5px var(--f-sans); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.os-who { grid-column: 2 / -1; font-size: 12.5px; color: var(--muted); }
.os-st { grid-column: 2 / -1; font: 500 12.5px var(--f-sans); color: var(--prob); }
.os-st[data-s="y"] { color: var(--ok); font-weight: 600; }
.os-st[data-s="n"] { color: var(--no); font-weight: 600; }
/* centro: el expediente de la decisión */
.os-mid { padding: 22px 26px 24px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.os-k { font: 500 13px var(--f-sans); color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.os-h { font: 600 clamp(20px, 2.1vw, 26px)/1.22 var(--f-head); letter-spacing: -.02em; color: var(--ink); margin: -8px 0 0; text-wrap: balance; }
.os-p { font-size: 15px; line-height: 1.5; color: var(--ink2); margin: 0; }
.askx.rep .os-mid .cx-chart { position: static; box-shadow: none; padding: 0; }
.os-mid .aa-ans { margin-top: 0; }
.os-doc { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.os-doc .dy-tb, .os-doc .dy-chg { margin-top: 0; }
.os-mails { display: grid; gap: 12px; }
.os-mail { border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px 14px; background: #fff; min-width: 0; }
.os-ml { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--ink); margin: 0; }
.os-ml + .os-ml { margin-top: 2px; }
.os-ml span { flex: none; width: 4.2em; color: var(--muted); font-size: 13px; }
.os-ml b { font-weight: 600; }
.os-mbody { font-size: 14.5px; line-height: 1.55; color: var(--ink2); margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.os-code { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #F7F8FA; }
.os-code figcaption { font: 500 12.5px var(--f-sans); color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.os-code pre { margin: 0; padding: 10px 0; font: 400 12.5px/1.7 var(--f-mono); color: #1C5A40; overflow-x: auto; }
.os-code pre span { display: block; padding: 0 14px; background: #EAF4EE; white-space: pre; min-height: 1.7em; }
.os-tests { display: flex; align-items: center; gap: 7px; font: 600 13.5px var(--f-sans); color: var(--ok); margin: 0; }
.os-tests svg { width: 16px; height: 16px; flex: none; }
/* derecha: sala de agentes */
.os-room { list-style: none; margin: 0; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 640px; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.os-m { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; animation: citeIn .35s both; }
.os-av { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); display: grid; place-items: center; color: #fff; font: 600 12px var(--f-sans); }
.os-m.p .os-av { background: var(--bg2); color: var(--ink2); border-radius: 50%; }
.os-rb { width: 8px; height: 8px; background: #fff; transform: rotate(45deg); display: block; }
.os-mh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; margin: 0; color: var(--ink); }
.os-mh b { font-weight: 600; }
.os-mh span { color: var(--muted); font-size: 12.5px; }
.os-mh time { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.os-mt { font-size: 14px; line-height: 1.48; color: var(--ink2); margin: 3px 0 0; }
.os-m.p .os-mt { color: var(--ink); }
/* también puedes preguntarle */
.os-askrow { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }
.os-askbtn { font: 600 14.5px var(--f-sans); padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.os-askbtn:hover { border-color: var(--ink); }
.os-askbtn::after { content: "+"; margin-left: 10px; font-weight: 400; color: var(--muted); }
.os-askbtn[aria-expanded="true"]::after { content: "–"; }
.os-askbox { margin-top: 18px; }
.os-askbox[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .os-dec { opacity: 1; transform: none; transition: none; } .os-m { animation: none; } }
@media (max-width: 1100px) {
  .os-grid { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); }
  .os-right { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .os-room { max-height: none; }
}
@media (max-width: 900px) {
  .os-bar { gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
  .os-date { display: none; }
  .os-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .os-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .os-dec { padding: 12px 14px 11px; }
  .os-mid { padding: 18px 16px 20px; scroll-margin-top: 84px; }
  .os-ph { padding: 14px 14px 10px; }
  .os-room { padding: 12px 14px 16px; }
  .os-ml { flex-direction: column; gap: 0; }
  .os-ml span { width: auto; }
}

/* barra «Viendo» (11-nov): sin mayúsculas espaciadas ni celeste; en móvil solo la última cifra para que no se corte */
.wbar-in { background: #12163A; border-color: rgba(255,255,255,.12); backdrop-filter: none; -webkit-backdrop-filter: none; }
.wbar-k { font: 500 13px var(--f-sans); letter-spacing: 0; text-transform: none; color: #A9AED0; }
.wbar-ch { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
@media (max-width: 700px) {
  .wbar-st > .wb-n:not(:last-child), .wbar-st > i { display: none; }
}

/* grafo del caso legal (11-nov): los rótulos de grupo se veían como manchas oscuras; contorno más fino y relleno claro */
.cstage-legal #graph text.lbl { fill: #F4F5FF; stroke: rgba(6,7,20,.85); stroke-width: 3px; paint-order: stroke fill; }
.cstage-legal #graph text.lbl.s { fill: #C3C8EC; }

/* ==========================================================================
   19-nov-2026 · POESI (marca aprobada por J). Tinta #12163A; acento #4F46E5 SOLO en la acción principal
   y los puntos; sobre oscuro #8B85FF; fondo blanco; Inter 600 títulos / 400 texto. Ver CAMBIO_NOMBRE_Poesi_2026-11-19.md
   ========================================================================== */
:root {
  --ink: #12163A; --ink2: #33385C; --muted: #585D78;
  --line: #E4E6ED; --line2: #D5D8E2;
  --accent: #2E3470; --accent-deep: #0B0E27; --accent-soft: #EEF0F6;
  --warm: #4F46E5; --warm-soft: #ECEBFD;
  --cta: #4F46E5; --cta-hover: #4038D0; --dot: #4F46E5;
}
.mono { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { font-weight: 600; }
.hero h1 { font-weight: 600; }
/* la marca no usa cursiva: la segunda línea del titular va en tinta suave */
h1 em, h2 em, h3 em { font-style: normal; color: #575C82; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 6px 20px rgba(79,70,229,.22); }
.btn-primary:hover { background: var(--cta-hover); }
.field.err input, .field.err textarea, .field.err select { border-color: #C62828; }
.brand-logo { height: 42px; width: auto; margin: -4px 0 -4px -6px; } /* el SVG trae aire alrededor: a 42 px la palabra mide ~27 px */
.brand-logo-d { display: none; }
.foot-id .brand-logo { height: 48px; }
@media (max-width: 560px) { .nav .brand-logo { height: 38px; } }
@media (max-width: 380px) { .nav .brand-logo { height: 34px; } }
/* los botones de las demos (Jugar/Pausar) no son la acción principal: van en tinta */
.btn-primary.st-play { background: var(--ink); box-shadow: 0 6px 20px rgba(18,22,58,.18); }
.btn-primary.st-play:hover { background: var(--accent); }

/* 19-nov · crítico: manifiesto legible (la aparición parte en 55 %, no en 13 %), sin texto en degradado, alineado a la grilla */
.mani-l, .mani-l.lit { opacity: 1; } /* solo se mueve, no se apaga */
.mani .mani-p.mani-dim { color: #C9CCE8; }
.mani-p.mani-hl { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; -webkit-text-fill-color: currentColor; }
.mani-in { max-width: 1240px; } /* misma columna que las demás secciones */
/* chips del héroe en el celular: el borde se desvanece para indicar que se deslizan */
@media (max-width: 899px) { html.hero-grafo .hg-chips { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }

/* 19-nov · crítico v4 */
/* cabecera opaca: un solo estilo, no toma el color de lo que pasa por debajo */
.nav, html.nav-dark .nav, html.hero-grafo .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid #E6E8F0; }
.nav .lang { border-color: #DADDE6; }
/* demos: nada de paneles estirados y vacíos */
.tp-split { align-items: stretch; }
.wa-phone { min-height: 320px; }
.wa-log > :first-child { margin-top: auto; } /* el chat se llena desde abajo, como un chat real */
@media (max-width: 760px) { .wa-phone { min-height: 300px; } }
/* héroe en el celular: solo las etiquetas de áreas; las de agentes aparecen al seleccionarlas */
@media (max-width: 480px) {
  html.hero-grafo .hero .hg-l { display: none !important; }
  html.hero-grafo .hero .hg-today { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px 14px; align-items: baseline; }
  html.hero-grafo .hero .hg-today .k { grid-column: 1 / -1; }
  html.hero-grafo .hero .hg-today b { font-variant-numeric: tabular-nums; }
}
/* 19-nov · crítico v5: el recorrido completo se ve desde el inicio en «fantasma» (22 %) y se enciende paso a paso; sin huecos */
.tp-s, .tp-erp-log li { opacity: .38; }
.tp-s.on, .tp-erp-log li.on { opacity: 1; }

/* 19-nov · crítico v7 */
/* «Sistema vivo»: las dos columnas a la misma altura; la línea del ERP se reparte en todo el alto */
.tp-erp .tp-erp-log { flex: 1; align-content: space-between; }
/* pasos en fantasma: no parecen botones ni se pueden tocar hasta que se encienden */
.tp-s:not(.on) { pointer-events: none; }
.tp-s:not(.on) .sc-apr { background: none !important; border-color: transparent !important; box-shadow: none !important; }
/* cifras del héroe en el celular: se leen por filas, como en el escritorio */
@media (max-width: 480px) { html.hero-grafo .hero .hg-today { grid-auto-flow: row !important; } html.hero-grafo .hero .hg-today > span { order: 0 !important; } }

/* 19-nov · J: «Super Intelligence» bajo el logo, alineado con el inicio de la palabra «poesi» (no con el símbolo).
   La palabra parte en el 28,6 % del ancho del SVG (x 182 de 636) = 0,71 × alto del logo; el logo lleva -6 px de margen. */
.brand { --lh: 42px; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1; }
.nav .brand-logo, .foot-id .brand-logo { height: var(--lh); }
.brand-tag { display: block; font: 500 10px/1 var(--f-sans); letter-spacing: .12em; color: rgba(18,22,58,.65); white-space: nowrap;
  margin: calc(var(--lh) * -0.2) 0 0 calc(var(--lh) * 0.71 - 6px); }
.foot-id .brand { --lh: 48px; }
.foot-id .brand-tag { font-size: 10.5px; }
@media (max-width: 560px) { .nav .brand { --lh: 38px; } .brand-tag { font-size: 9px; letter-spacing: .1em; } }
@media (max-width: 380px) { .nav .brand { --lh: 34px; } }
html.nav-dark .nav .brand-tag, .foot.dark .brand-tag { color: rgba(255,255,255,.7); }
