/* ==========================================================================
   Cuantico — Home
   ========================================================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 48px) 0 150px;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(14, 95, 166, .28), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(3, 65, 117, .35), transparent 70%),
    var(--void);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: pan-y; }
.hero__glow { position: absolute; z-index: 0; left: 58%; top: 50%; width: 46vw; height: 46vw; max-width: 760px; max-height: 760px; transform: translate(-30%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(38, 170, 238, .16), transparent 62%); pointer-events: none; }
.hero__lines { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); pointer-events: none; }
.hero__lines span { border-left: 1px solid rgba(160, 200, 255, .055); }
.hero__lines span:last-child { border-right: 1px solid rgba(160, 200, 255, .055); }
.hero__fallback { display: none; position: absolute; z-index: 1; right: 7%; top: 50%; width: min(34vw, 460px); transform: translateY(-50%); filter: drop-shadow(0 0 60px rgba(38, 170, 238, .45)); animation: floaty 8s ease-in-out infinite; }
.hero.no-webgl .hero__fallback { display: block; }
@keyframes floaty { 50% { transform: translateY(calc(-50% - 14px)) rotate(-3deg); } }

.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: none; }
.hero__copy .eyebrow, .hero__lead { max-width: 48ch; }
.hero__eyebrow { color: #bfe6ff; }
.hero__title { margin: 26px 0 30px; font-size: clamp(2.9rem, 6.6vw, 7rem); line-height: .93; letter-spacing: -.055em; font-weight: 500; }
.hero__title .split-line { padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .serif-i { font-size: 1.1em; line-height: .8; letter-spacing: -.03em; padding-right: .08em; }
.hero__lead { max-width: 48ch; color: #c3d2e5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero [data-hero-in] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.hero .split-line > span { transition-duration: 1.4s; }
.hero.is-ready [data-hero-in] { opacity: 1; transform: none; }
.hero.is-ready .split-line > span { transform: none; }

.hero__hint {
  position: absolute; z-index: 2; left: var(--hint-x, 60%); top: var(--hint-y, 84%);
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: #9fb6d3; background: rgba(11, 31, 58, .55); box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none; white-space: nowrap;
}
.hero__hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 10px var(--brand-bright); }
.hero.was-burst .hero__hint { opacity: 0 !important; transition: opacity .6s; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desk { display: none; } .hint-touch { display: inline; } }
.hero.no-webgl .hero__hint { display: none; }

.hero__foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__ticker { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: .8rem; color: #a9bbd2; }
.hero__ticker-label { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 7px 13px 7px 11px; border-radius: 999px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #c4f6e1; background: rgba(79, 227, 168, .07); box-shadow: inset 0 0 0 1px rgba(79, 227, 168, .24); }
.hero__ticker-label .pulse-dot { width: 6px; height: 6px; }
.hero__ticker-label .pulse-dot::after { inset: -4px; }
.hero__ticker-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { width: 7px; height: 15px; flex: none; margin-left: -8px; background: var(--brand-bright); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #8193ad; }
.scroll-cue i { position: relative; width: 1px; height: 54px; background: rgba(160, 200, 255, .18); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(transparent, var(--brand-glow)); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }

@media (max-width: 860px) {
  .hero { justify-content: flex-end; padding-top: calc(var(--header-h) + 30vh); padding-bottom: 116px; }
  .hero__lines { grid-template-columns: repeat(3, 1fr); }
  .hero__lines span:nth-child(n + 4) { display: none; }
  .hero__fallback { right: -6%; top: 28%; width: 62vw; opacity: .7; }
  .hero__glow { left: 70%; top: 22%; width: 90vw; height: 90vw; }
  .hero__hint { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-h) + 24vh); }
  .hero__title { margin: 18px 0 20px; }
  .hero__ctas { margin-top: 28px; }
  .hero__ctas .btn { width: 100%; }
  .hero__ticker-text { max-width: 52vw; }
}

/* ---------- MANIFIESTO ---------- */
.manifesto { padding-bottom: clamp(80px, 10vw, 150px); }
.manifesto__text {
  margin-top: clamp(32px, 4vw, 56px); max-width: 1180px;
  font-size: clamp(1.8rem, 4.1vw, 4.05rem); line-height: 1.12; letter-spacing: -.038em; font-weight: 450; text-wrap: pretty;
}
.manifesto__text .w { opacity: .14; transition: opacity .35s linear, color .35s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text .m-past .w { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--muted); background: linear-gradient(var(--risk), var(--risk)) 0 58% / 0 2px no-repeat; transition: opacity .35s linear, background-size .6s var(--ease-out); }
.manifesto__text .m-past .w.on { background-size: 100% 2px; }
.manifesto__text .m-future .w { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; padding-right: .04em; }
.manifesto__text .m-future .w.on { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.pillars { list-style: none; padding: 0; margin: clamp(64px, 8vw, 120px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillar { position: relative; padding: 34px 32px 8px 0; display: grid; gap: 14px; align-content: start; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar__n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; color: var(--brand-bright); box-shadow: inset 0 0 0 1px rgba(38, 170, 238, .4); }
.pillar p { color: var(--muted); max-width: 40ch; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- CAOS → CONTROL ---------- */
.chaos { position: relative; height: 400vh; background: var(--bg); }
.chaos__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.chaos__layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.5fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding-top: calc(var(--header-h) * .6); }
.chaos__title { font-size: clamp(2rem, 3.6vw, 3.6rem); margin: 22px 0 36px; }
.chaos__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; position: relative; }
.chaos__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 14px 0; opacity: .38; transition: opacity .5s var(--ease-out); }
.chaos__step h3 { font-size: 1.12rem; font-weight: 550; letter-spacing: -.01em; }
.chaos__step p { font-size: .93rem; color: var(--muted); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease-out), opacity .5s, margin .5s; }
.chaos__step.is-active { opacity: 1; }
.chaos__step.is-active p { max-height: 120px; opacity: 1; margin-top: 6px; }
.chaos__n { font-size: .72rem; color: var(--muted); padding-top: 4px; transition: color .4s; }
.chaos__step.is-active .chaos__n { color: var(--brand-bright); }
.chaos__step::before { content: ""; position: absolute; left: -18px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--grad-brand); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease-out); }
.chaos__step.is-active::before { transform: none; }

.chaos__stage {
  position: relative; height: min(70vh, 640px); min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; contain: layout paint;
  border: 1px solid var(--line);
  background:
    radial-gradient(55% 55% at 50% 50%, rgba(14, 95, 166, .2), transparent 70%),
    radial-gradient(circle, rgba(160, 200, 255, .13) 1px, transparent 1.2px) 0 0 / 22px 22px,
    rgba(255, 255, 255, .012);
}
.chaos__core { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; z-index: 3; will-change: transform, opacity; }
.chaos__core span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #c3ecff, #3db8f5 32%, #0e5fa6 70%, #034175); box-shadow: 0 0 60px rgba(38, 170, 238, .7), 0 0 140px rgba(38, 170, 238, .35); }
.chaos__core::before, .chaos__core::after { content: ""; position: absolute; inset: -26px -54px; border-radius: 50%; border: 1px solid rgba(108, 203, 255, .4); transform: rotate(-32deg); animation: orbitSpin 9s linear infinite; }
.chaos__core::after { inset: -46px -16px; transform: rotate(40deg); border-color: rgba(108, 203, 255, .2); animation-duration: 13s; animation-direction: reverse; }
@keyframes orbitSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
.chaos__caption { position: absolute; left: 20px; bottom: 16px; z-index: 6; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.chaos__caption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); transition: background-color .4s, box-shadow .4s; }
.chaos__caption.is-ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.chaos__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(160, 200, 255, .08); }
.chaos__bar span { display: block; height: 100%; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(0); }

/* fragmentos */
.frag { position: absolute; left: 0; top: 0; z-index: 4; will-change: transform, opacity; transform-origin: 50% 50%; }
.frag__doc, .frag__row { position: absolute; inset: 0; border-radius: 12px; transition: none; }
.frag__doc {
  display: grid; align-content: start; gap: 7px; padding: 11px 12px; overflow: hidden;
  background: linear-gradient(180deg, #12233d, #0b182b); border: 1px solid rgba(160, 200, 255, .2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); font-size: .7rem; color: #c9d7e8;
}
.frag__doc b { display: flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frag__type { flex: none; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .06em; padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: #9fdcff; }
.frag__type--pdf { color: #ffb3a8; background: rgba(255, 122, 107, .14); }
.frag__type--xls { color: #9ff2c9; background: rgba(79, 227, 168, .13); }
.frag__type--msg { color: #ffd89b; background: rgba(255, 181, 71, .14); }
.frag__doc i { display: block; height: 5px; border-radius: 3px; background: rgba(160, 200, 255, .14); }
.frag__doc i:nth-of-type(2) { width: 78%; } .frag__doc i:nth-of-type(3) { width: 54%; }
.frag__row {
  display: grid; grid-template-columns: 74px minmax(0, 1.6fr) minmax(0, 1fr) 92px; align-items: center; gap: 10px; padding: 0 12px;
  background: rgba(13, 31, 54, .92); border: 1px solid rgba(38, 170, 238, .3); border-radius: 8px; font-size: .72rem; color: #dbe7f5; opacity: 0;
}
.frag__row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frag__row .tag { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #9fdcff; }
.frag__row .amt { font-family: var(--font-mono); font-size: .68rem; text-align: right; color: #fff; }
.frag__row .st { justify-self: end; font-size: .6rem; padding: 2px 8px; border-radius: 999px; color: #c4f6e1; background: rgba(79, 227, 168, .12); }
.frag__row .st--w { color: #ffe2b0; background: rgba(255, 181, 71, .14); }
.frag__dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #6ccbff; box-shadow: 0 0 0 3px rgba(38, 170, 238, .25), 0 0 14px rgba(108, 203, 255, .8); opacity: 0; }

.chaos__table-head {
  position: absolute; z-index: 5; display: grid; grid-template-columns: 74px minmax(0, 1.6fr) minmax(0, 1fr) 92px; gap: 10px; padding: 0 12px;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: 0;
}
.chaos__table-head span:nth-child(3) { text-align: right; } .chaos__table-head span:nth-child(4) { text-align: right; }

.chaos__chart { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
.chaos__chart .grid line { stroke: rgba(160, 200, 255, .09); stroke-dasharray: 2 4; }
.chaos__chart .hist { fill: none; stroke: #6ccbff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(108, 203, 255, .6)); }
.chaos__chart .fc { fill: none; stroke: #ffb547; stroke-width: 2.2; stroke-dasharray: 6 6; stroke-linecap: round; }
.chaos__chart .fc-ok { fill: none; stroke: #4fe3a8; stroke-width: 2.4; stroke-linecap: round; }
.chaos__chart .band { fill: rgba(255, 181, 71, .12); }
.chaos__chart .band-ok { fill: rgba(79, 227, 168, .1); }
.chaos__chart .min { stroke: rgba(255, 122, 107, .55); stroke-dasharray: 3 5; }
.chaos__chart .min-label { fill: #ff9d91; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.chaos__chart .today { stroke: rgba(160, 200, 255, .35); }
.chaos__chart .today-label { fill: #8193ad; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; }
.chaos__alert {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 10px; font-size: .72rem; white-space: nowrap;
  color: #ffe2b0; background: rgba(40, 26, 8, .85); border: 1px solid rgba(255, 181, 71, .45); opacity: 0; transform: translate(-50%, -130%);
  transition: color .4s, background-color .4s, border-color .4s;
}
.chaos__alert::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.chaos__alert.is-ok { color: #c4f6e1; background: rgba(6, 34, 26, .85); border-color: rgba(79, 227, 168, .45); }
.chaos__alert.is-ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.chaos__actions { position: absolute; z-index: 7; right: 18px; top: 18px; width: min(300px, 46%); display: grid; gap: 8px; }
.act {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 11px 12px; border-radius: 12px; font-size: .74rem;
  background: rgba(10, 22, 40, .92); border: 1px solid rgba(160, 200, 255, .2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateX(30px); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.act small { grid-column: 1; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.act strong { grid-column: 1; font-weight: 500; color: #eaf2fc; }
.act .ok { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #8193ad; box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .25); transition: background-color .35s, color .35s, box-shadow .35s; }
.act .ok svg { width: 14px; height: 14px; }
.act.is-done .ok { background: var(--ok); color: #03231a; box-shadow: 0 0 16px rgba(79, 227, 168, .55); }

@media (max-width: 960px) {
  .chaos { height: 380vh; }
  .chaos__layout { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: center; padding-top: var(--header-h); }
  .chaos__title { font-size: clamp(1.7rem, 6.4vw, 2.4rem); margin: 10px 0 6px; }
  .chaos__side .label { display: none; }
  .chaos__steps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .chaos__step { grid-template-columns: 1fr; padding: 8px 0 0; border-top: 2px solid var(--line); }
  .chaos__step::before { left: 0; right: 0; top: -2px; bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .chaos__step.is-active::before { transform: none; }
  .chaos__step h3 { font-size: .82rem; }
  .chaos__step p { display: none; }
  .chaos__n { padding: 0; font-size: .62rem; }
  .chaos__mobile-desc { display: block !important; }
  .chaos__stage { height: 54vh; height: 54svh; min-height: 340px; }
  .chaos__actions { left: 12px; right: 12px; width: auto; top: 12px; }
}
.chaos__mobile-desc { display: none; font-size: .9rem; color: var(--fg-2); min-height: 3em; line-height: 1.45; }

/* ---------- COPILOTO ---------- */
.copilot { overflow: hidden; overflow: clip; }
.copilot::before { content: ""; position: absolute; left: 50%; top: 38%; width: 90vw; height: 60vw; max-width: 1300px; max-height: 900px; transform: translate(-50%, 0); background: radial-gradient(closest-side, rgba(38, 170, 238, .16), transparent); pointer-events: none; }
.copilot__app {
  position: relative; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(80% 60% at 70% 0%, rgba(38, 170, 238, .14), transparent 60%), linear-gradient(180deg, #0c1c33, #060f1e); border: 1px solid rgba(6, 20, 39, .2);
  box-shadow: 0 70px 140px -50px rgba(6, 20, 39, .55), 0 30px 60px -40px rgba(14, 95, 166, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.copilot__side { padding: 28px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; background: rgba(3, 7, 15, .35); }
.copilot__side-title { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.copilot__prompts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prompt {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 14px; text-align: left; font-size: .92rem; line-height: 1.35; color: var(--fg-2);
  background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, box-shadow .3s, color .3s, transform .4s var(--ease-out);
}
.prompt:hover { background: rgba(38, 170, 238, .08); box-shadow: inset 0 0 0 1px rgba(38, 170, 238, .45); color: #fff; transform: translateX(3px); }
.prompt.is-used { color: var(--muted); }
.prompt.is-used .prompt__i { color: var(--ok); }
.prompt[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.prompt__i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--brand-bright); background: rgba(38, 170, 238, .1); }
.prompt__i svg { width: 18px; height: 18px; }
.copilot__note { margin-top: auto; display: flex; gap: 10px; font-size: .78rem; line-height: 1.5; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.copilot__note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand-bright); }
.copilot__note strong { color: var(--fg-2); font-weight: 500; }

.copilot__window { display: flex; flex-direction: column; min-width: 0; height: clamp(560px, 70vh, 680px); }
.copilot__bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.copilot__dots { display: flex; gap: 6px; }
.copilot__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(160, 200, 255, .18); }
.copilot__name { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.copilot__name img { width: 20px; height: auto; }
.copilot__status { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.copilot__status .pulse-dot { width: 6px; height: 6px; }
.copilot__log { flex: 1; overflow-y: auto; padding: 24px clamp(16px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; overscroll-behavior: contain; }
.copilot__log::-webkit-scrollbar { width: 8px; } .copilot__log::-webkit-scrollbar-thumb { background: rgba(160, 200, 255, .15); border-radius: 8px; }

.msg { display: flex; gap: 12px; max-width: 100%; animation: msgIn .6s var(--ease-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } }
.msg--user { justify-content: flex-end; }
.msg--user .msg__body { max-width: 78%; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--grad-brand); color: #fff; box-shadow: 0 12px 30px -14px rgba(38, 170, 238, .7); }
.msg__avatar { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(38, 170, 238, .1); box-shadow: inset 0 0 0 1px rgba(38, 170, 238, .3); }
.msg__avatar img { width: 20px; height: auto; }
.msg--ai .msg__body { flex: 1; min-width: 0; display: grid; gap: 14px; padding-top: 4px; color: var(--fg-2); }
.msg--ai .msg__body p strong { color: #fff; font-weight: 550; }
.thinking { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.thinking li { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease-out), color .3s; }
.thinking li.is-on { opacity: 1; transform: none; }
.thinking li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(160, 200, 255, .3); border-top-color: var(--brand-bright); animation: spin .8s linear infinite; }
.thinking li.is-done { color: var(--fg-2); }
.thinking li.is-done::before { animation: none; border: 0; background: var(--ok) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303231a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.2 4.2L19 7'/></svg>") center / 8px no-repeat; }
.answer { min-height: 1.6em; }
.answer .cur { display: inline-block; width: 7px; height: 1em; vertical-align: -2px; margin-left: 2px; background: var(--brand-bright); animation: blink 1s steps(1) infinite; }
.viz { border-radius: 16px; padding: 18px; background: rgba(3, 7, 15, .5); box-shadow: inset 0 0 0 1px var(--line); animation: msgIn .7s var(--ease-out) both; }
.viz__title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.viz svg { width: 100%; height: auto; overflow: visible; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.src { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; color: var(--fg-2); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.src--conf { color: #c4f6e1; box-shadow: inset 0 0 0 1px rgba(79, 227, 168, .3); background: rgba(79, 227, 168, .06); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: #fff; background: rgba(38, 170, 238, .16); box-shadow: inset 0 0 0 1px rgba(38, 170, 238, .45); transition: background-color .3s, box-shadow .3s; }
.ai-btn:hover { background: rgba(38, 170, 238, .3); }
.ai-btn svg { width: 15px; height: 15px; }
.ai-btn--ghost { background: transparent; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ai-btn.is-done { background: rgba(79, 227, 168, .14); box-shadow: inset 0 0 0 1px rgba(79, 227, 168, .5); color: #c4f6e1; pointer-events: none; }

/* tablas y barras dentro de respuestas */
.mini-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.mini-table th { text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 8px 10px 0; }
.mini-table td { padding: 9px 8px 9px 0; border-top: 1px solid var(--line); color: var(--fg-2); vertical-align: middle; }
.mini-table td:first-child { color: #fff; }
.mini-table .num { font-family: var(--font-mono); font-size: .76rem; text-align: right; white-space: nowrap; }
.cov { position: relative; height: 6px; min-width: 70px; border-radius: 6px; background: rgba(160, 200, 255, .1); overflow: hidden; }
.cov i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); border-radius: inherit; background: var(--risk); transform-origin: left; animation: grow 1s var(--ease-out) both; }
.cov i.w { background: var(--warn); } .cov i.g { background: var(--ok); }
@keyframes grow { from { transform: scaleX(0); } }
.pill { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: .64rem; font-family: var(--font-mono); letter-spacing: .04em; white-space: nowrap; }
.pill--r { color: #ffc4bc; background: rgba(255, 122, 107, .14); } .pill--w { color: #ffe2b0; background: rgba(255, 181, 71, .14); } .pill--g { color: #c4f6e1; background: rgba(79, 227, 168, .12); }
.ring-wrap { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; }
.ring-wrap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .82rem; }
.ring-wrap li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.ring-wrap li span:last-child { font-family: var(--font-mono); font-size: .78rem; color: #fff; }
.ring-wrap li .cov { grid-column: 1 / -1; }
@media (max-width: 560px) { .ring-wrap { grid-template-columns: 1fr; justify-items: center; } .ring-wrap ul { width: 100%; } }

.copilot__input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: rgba(3, 7, 15, .35); }
.copilot__input input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--fg); font-size: .95rem; transition: border-color .25s, box-shadow .25s; }
.copilot__input input::placeholder { color: #5f7290; }
.copilot__input input:focus { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 4px rgba(38, 170, 238, .16); }
.copilot__send { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 24px -10px rgba(38, 170, 238, .8); transition: transform .4s var(--ease-out); }
.copilot__send:hover { transform: translateY(-2px); }
.copilot__send svg { width: 20px; height: 20px; }
.copilot__send[aria-disabled="true"] { opacity: .5; pointer-events: none; }

@media (max-width: 960px) {
  .copilot__app { grid-template-columns: minmax(0, 1fr); }
  .copilot__side { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 16px; }
  .copilot__prompts { grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .copilot__prompts::-webkit-scrollbar { display: none; }
  .copilot__prompts li { scroll-snap-align: start; }
  .prompt { height: 100%; }
  .copilot__note { margin-top: 0; }
  .copilot__window { height: 600px; }
  .copilot__status { display: none; }
}

/* ---------- PLATAFORMA / ÓRBITA ---------- */
.platform { overflow: hidden; overflow: clip; }
.orbit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.orbit__stage { position: relative; width: 100%; max-width: 700px; aspect-ratio: 1 / 1; margin-inline: auto; touch-action: pan-y; }
.orbit__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__svg .ring { fill: none; stroke: rgba(108, 203, 255, .22); stroke-width: 1; }
.orbit__svg .ring--2 { stroke: rgba(108, 203, 255, .12); stroke-dasharray: 2 6; }
.orbit__svg .link { fill: none; stroke: url(#orbitLink); stroke-width: 1.6; stroke-dasharray: 4 6; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.orbit__svg .pulse { fill: #9fdcff; filter: drop-shadow(0 0 6px #26aaee); }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; z-index: 5; pointer-events: none; }
.orbit__core-orb { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #c3ecff, #3db8f5 30%, #0e5fa6 68%, #034175); box-shadow: 0 0 90px rgba(38, 170, 238, .55), inset -10px -14px 30px rgba(3, 30, 60, .6); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 130px rgba(38, 170, 238, .75), inset -10px -14px 30px rgba(3, 30, 60, .6); } }
.orbit__core-label { position: relative; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 1px 8px rgba(0, 20, 50, .8); }
.orbit__nodes { position: absolute; inset: 0; }
.orbit__node {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .9rem; font-weight: 500; white-space: nowrap;
  color: var(--fg-2); background: rgba(14, 38, 70, .82); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .3s, box-shadow .3s, background-color .3s; will-change: transform;
}
.orbit__dot { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #9fdcff, #26aaee 45%, #0e5fa6); box-shadow: 0 0 0 4px rgba(38, 170, 238, .12); transition: box-shadow .4s; }
.orbit__node:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(108, 203, 255, .6); }
.orbit__node[aria-selected="true"] { color: #fff; background: rgba(14, 50, 90, .9); box-shadow: inset 0 0 0 1px rgba(108, 203, 255, .9), 0 0 40px rgba(38, 170, 238, .45); }
.orbit__node[aria-selected="true"] .orbit__dot { box-shadow: 0 0 0 5px rgba(38, 170, 238, .3), 0 0 22px rgba(108, 203, 255, .9); }

.orbit__panel { position: relative; min-height: 440px; display: flex; flex-direction: column; }
.mod { display: grid; gap: 16px; }
.mod.is-active { animation: modIn .7s var(--ease-out) both; }
@keyframes modIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
.mod__kicker { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-bright); }
.mod__title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.mod__lead { font-size: 1.08rem; color: var(--fg-2); }
.mod__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mod__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: .97rem; }
.mod__list li::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 8px var(--brand-bright); }
.mod__ai { display: flex; gap: 12px; padding: 16px; border-radius: 16px; font-size: .93rem; color: var(--fg-2); background: linear-gradient(120deg, rgba(38, 170, 238, .12), rgba(38, 170, 238, .03)); box-shadow: inset 0 0 0 1px rgba(38, 170, 238, .28); }
.mod__ai svg { flex: none; width: 20px; height: 20px; color: var(--brand-glow); margin-top: 2px; }
.mod__ai strong { color: #fff; font-weight: 550; }
.orbit__more { margin-top: 28px; align-self: flex-start; }

@media (max-width: 960px) {
  .orbit { grid-template-columns: minmax(0, 1fr); }
  .orbit__stage { max-width: 560px; }
  .orbit__node { font-size: .78rem; padding: 4px 10px 4px 4px; gap: 7px; }
  .orbit__dot { width: 18px; height: 18px; }
  .orbit__panel { min-height: 0; }
}

/* ---------- IA RESPONSABLE (sección clara) ---------- */
.responsible__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.responsible__intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 26px; }
.responsible .lead { color: var(--fg-2); }

.why { margin-top: 18px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 30px 70px -36px rgba(6, 20, 39, .35), 0 0 0 1px rgba(6, 20, 39, .07); color: var(--fg); }
.why__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.why__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.why__badge svg { width: 15px; height: 15px; }
.why__conf { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: #0b6b4a; background: #dcf7ec; }
.why__title { font-size: 1.15rem; line-height: 1.4; letter-spacing: -.01em; }
.why__title strong { font-weight: 600; }
.why__toggle { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: .88rem; font-weight: 550; color: var(--brand); background: rgba(14, 95, 166, .08); transition: background-color .3s; }
.why__toggle:hover { background: rgba(14, 95, 166, .14); }
.why__toggle svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.why__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.why__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.why__detail.is-open { grid-template-rows: 1fr; }
.why__inner { overflow: hidden; }
.why__sub { margin-top: 18px; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.why__factors { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.why__factors li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .9rem; color: var(--fg-2); }
.why__factors b { font-family: var(--font-mono); font-size: .82rem; font-weight: 500; color: var(--fg); }
.why__factors i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #26aaee, #0e5fa6) 0 0 / calc(var(--w) * 100%) 100% no-repeat, #e3eaf3; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out); }
.why__detail.is-open .why__factors i { transform: none; }
.why__detail.is-open .why__factors li:nth-child(2) i { transition-delay: .08s; }
.why__detail.is-open .why__factors li:nth-child(3) i { transition-delay: .16s; }
.why__detail.is-open .why__factors li:nth-child(4) i { transition-delay: .24s; }
.why__src { margin-top: 14px; font-size: .64rem; letter-spacing: .08em; color: var(--muted); }
.why__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.why__approve { color: #fff; background: #061427; }
.why__approve:hover { background: #0e5fa6; }
.why__approve svg { width: 16px; height: 16px; }
.why__approve.is-done { background: #0b6b4a; pointer-events: none; }
.why__state { font-size: .66rem; letter-spacing: .08em; color: var(--muted); }

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.principle {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; padding: clamp(24px, 3vw, 36px); border-radius: 24px;
  background: #fff; box-shadow: 0 0 0 1px rgba(6, 20, 39, .07), 0 20px 50px -34px rgba(6, 20, 39, .3);
  transition: transform .6s var(--ease-out), box-shadow .5s;
}
.principle:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(14, 95, 166, .25), 0 30px 60px -30px rgba(14, 95, 166, .35); }
.theme-light .spot::before { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(38, 170, 238, .1), transparent 45%); }
.theme-light .spot::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 95, 166, .6), transparent 45%); }
.principle__i { grid-row: span 3; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; background: var(--grad-brand); box-shadow: 0 14px 30px -14px rgba(14, 95, 166, .8); }
.principle__i svg { width: 26px; height: 26px; }
.principle__n { font-size: .66rem; letter-spacing: .12em; color: var(--brand); }
.principle h3 { margin-top: -4px; }
.principle p { color: var(--muted); }
@media (max-width: 960px) {
  .responsible__grid { grid-template-columns: minmax(0, 1fr); }
  .responsible__intro { position: static; }
}
@media (max-width: 480px) { .principle { grid-template-columns: minmax(0, 1fr); } .principle__i { grid-row: auto; } }

/* ---------- INDUSTRIAS (scroll horizontal) ---------- */
.industries { position: relative; background: var(--bg); }
.industries__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding-top: calc(var(--header-h) * .6); }
.industries__headrow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 64px; align-items: end; margin-top: 14px; }
.industries__headrow .h2 { font-size: clamp(2rem, 4vw, 4rem); }
.industries__viewport { width: 100%; }
.industries__track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); will-change: transform; }
.ind {
  position: relative; flex: none; width: clamp(290px, 29vw, 420px); min-height: clamp(450px, 62vh, 570px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: linear-gradient(180deg, #0b1a30, #071223); box-shadow: inset 0 0 0 1px var(--line);
}
.ind__art { width: 100%; height: clamp(120px, 23vh, 210px); flex: none; border-bottom: 1px solid var(--line); }
.ind__body { display: flex; flex-direction: column; gap: 11px; padding: 20px 24px 22px; flex: 1; }
.ind__n { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-bright); }
.ind__title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 550; }
.ind__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.ind__list li { display: flex; gap: 10px; }
.ind__list li::before { content: "—"; color: var(--brand-bright); }
.ind__ai { display: flex; gap: 10px; font-size: .86rem; color: var(--fg-2); padding: 10px 12px; border-radius: 12px; background: rgba(38, 170, 238, .07); box-shadow: inset 0 0 0 1px rgba(38, 170, 238, .2); }
.ind__ai svg { flex: none; width: 16px; height: 16px; color: var(--brand-glow); margin-top: 3px; }
.ind .link-arrow { margin-top: auto; align-self: flex-start; font-size: .92rem; }
.ind--cta { justify-content: flex-end; gap: 18px; padding: 32px; background: radial-gradient(120% 80% at 100% 0%, rgba(38, 170, 238, .35), transparent 60%), linear-gradient(160deg, #0d2a4d, #061223); }
.ind--cta .ind__title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.ind--cta .btn { align-self: flex-start; }
.industries__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.industries__progress { position: relative; flex: 1; max-width: 360px; height: 2px; background: rgba(160, 200, 255, .12); border-radius: 2px; overflow: hidden; }
.industries__progress span { position: absolute; inset: 0; background: var(--grad-brand); transform-origin: left; transform: scaleX(0); }
.industries__hint { display: inline-flex; align-items: center; gap: 10px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.industries__hint svg { width: 16px; height: 16px; animation: nudge 1.6s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

.industries.is-static { height: auto !important; }
.industries.is-static .industries__sticky { position: relative; height: auto; padding-block: clamp(88px, 12vw, 140px); }
.industries.is-static .industries__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.industries.is-static .industries__viewport::-webkit-scrollbar { display: none; }
.industries.is-static .industries__track { transform: none !important; padding-inline: var(--gutter); }
.industries.is-static .ind { scroll-snap-align: center; width: min(84vw, 380px); min-height: 0; }
.industries.is-static .ind__art { height: 180px; }
@media (max-width: 900px) { .industries__headrow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- MÉTODO ---------- */
.method__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.method__intro { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 26px; justify-items: start; }
.method__steps { --p: 0; list-style: none; margin: 0; padding: 0 0 0 72px; position: relative; display: grid; gap: clamp(40px, 6vw, 72px); }
.method__steps::before, .method__steps::after { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.method__steps::after { background: var(--grad-brand); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 14px rgba(38, 170, 238, .6); }
.mstep { position: relative; display: grid; gap: 10px; opacity: .35; transition: opacity .6s var(--ease-out); }
.mstep.is-on { opacity: 1; }
.mstep__n { position: absolute; left: -72px; top: -4px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: .72rem; color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); z-index: 1; transition: color .4s, box-shadow .4s, background-color .4s; }
.mstep.is-on .mstep__n { color: #fff; background: #0b2a4b; box-shadow: inset 0 0 0 1px var(--brand-bright), 0 0 24px rgba(38, 170, 238, .5); }
.mstep p { color: var(--muted); max-width: 52ch; margin-top: 10px; }
@media (max-width: 900px) {
  .method__grid { grid-template-columns: minmax(0, 1fr); }
  .method__intro { position: static; }
  .method__steps { padding-left: 60px; }
  .mstep__n { left: -60px; width: 40px; height: 40px; }
  .method__steps::before, .method__steps::after { left: 19px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero [data-hero-in] { opacity: 1; transform: none; }
  .chaos { height: auto; }
  .chaos__sticky { position: relative; height: auto; padding-block: 100px; }
  .chaos__step { opacity: 1; }
  .chaos__step p { max-height: none; opacity: 1; }
}

/* ---------- Barras de margen (respuesta del copiloto) ---------- */
.bars { display: grid; gap: 12px; }
.bars__row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 14px; font-size: .84rem; color: var(--fg-2); }
.bars__row b { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; color: #fff; white-space: nowrap; }
.bars__row b small { font-size: .7rem; color: var(--muted); font-weight: 400; }
.bars__track { position: relative; height: 10px; border-radius: 10px; background: rgba(160, 200, 255, .08); }
.bars__track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); border-radius: inherit; background: linear-gradient(90deg, #0e5fa6, #26aaee); transform-origin: left; animation: grow 1.1s var(--ease-out) both; }
.bars__track i.ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 122, 107, .6); animation-delay: .1s; }
.bars__row.is-hl { color: #fff; }
.bars__row.is-hl .bars__track i:not(.ghost) { background: linear-gradient(90deg, #b8473b, #ff7a6b); }
@media (max-width: 560px) { .bars__row { grid-template-columns: 84px 1fr; } .bars__row b { grid-column: 2; } }

/* ---------- Escenario angosto de la secuencia ---------- */
.chaos__stage.is-narrow .frag__row, .chaos__stage.is-narrow ~ .chaos__table-head, .chaos__stage.is-narrow .chaos__table-head { grid-template-columns: 58px minmax(0, 1fr) 84px; gap: 8px; padding: 0 10px; font-size: .66rem; }
.chaos__stage.is-narrow .frag__row .st, .chaos__stage.is-narrow .chaos__table-head span:nth-child(4) { display: none; }
.chaos__stage.is-narrow .frag__doc { padding: 9px 10px; font-size: .64rem; }
.chaos__stage.is-narrow .act { padding: 8px 10px; font-size: .68rem; }
.chaos__stage.is-narrow .chaos__alert { font-size: .64rem; }


/* ---------- Ronda 2 del árbitro ---------- */
@media (min-width: 861px) { .hero__title .split-line { white-space: nowrap; } }
.copilot .section-head .lead { color: var(--fg-2); }

/* saltar la secuencia */
.chaos__skip {
  position: absolute; right: var(--gutter); bottom: 18px; z-index: 8; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, box-shadow .3s;
}
.chaos__skip svg { width: 14px; height: 14px; transform: rotate(90deg); }
.chaos__skip:hover, .chaos__skip:focus-visible { color: #fff; box-shadow: inset 0 0 0 1px var(--brand-bright); }
@media (max-width: 960px) { .chaos__skip { top: 14px; bottom: auto; padding: 6px 12px; } }

/* pausa de la órbita */
.orbit__pause {
  position: absolute; left: 0; bottom: 2%; z-index: 9; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 10px;
  border-radius: 999px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
  background: rgba(14, 38, 70, .7); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .3s, box-shadow .3s;
}
.orbit__pause:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(108, 203, 255, .6); }
.orbit__pause-i { position: relative; width: 14px; height: 14px; }
.orbit__pause-i::before, .orbit__pause-i::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 4px; border-radius: 1px; background: currentColor; }
.orbit__pause-i::before { left: 2px; } .orbit__pause-i::after { right: 2px; }
.orbit__pause[aria-pressed="true"] .orbit__pause-i::before { left: 3px; top: 0; bottom: 0; width: 0; height: 0; background: none; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.orbit__pause[aria-pressed="true"] .orbit__pause-i::after { display: none; }
@media (max-width: 960px) { .orbit__core-label { font-size: .5rem; letter-spacing: .1em; } }

/* pista del scroll horizontal */
.industries__hint { transition: opacity .5s; }
.industries__hint.is-done { opacity: 0; }
.industries__hint .hint-touch { display: none; }
.industries.is-static .industries__hint .hint-desk { display: none; }
.industries.is-static .industries__hint .hint-touch { display: inline; }


/* ---------- Ronda 3: pantallas bajas y escenario angosto ---------- */
.hero__hint { max-width: calc(100% - 32px); }
@media (min-width: 901px) and (max-height: 820px) {
  .industries__sticky { gap: 16px; padding-top: calc(var(--header-h) * .45); }
  .industries__headrow { margin-top: 8px; }
  .industries__headrow .h2 { font-size: clamp(1.8rem, 3.1vw, 2.9rem); }
  .industries__headrow .lead { font-size: 1rem; }
  .ind { min-height: 0; }
  .ind__art { height: clamp(90px, 16vh, 140px); }
  .ind__body { gap: 8px; padding: 16px 20px 18px; }
  .ind__title { font-size: 1.18rem; }
  .ind__list { font-size: .82rem; gap: 3px; }
  .ind__ai { font-size: .8rem; padding: 8px 10px; }
}
@media (min-width: 901px) and (max-height: 700px) { .ind__list { display: none; } }
.chaos__stage.is-narrow .act { padding: 7px 10px; }
.chaos__stage.is-narrow .act small { display: none; }
.chaos__stage.is-narrow .act .ok { width: 22px; height: 22px; }
.chaos__alert.is-below { transform: translate(-50%, 45%); }
