/* Pitt — marca «Contraste» en oscuro: obsidiana de fondo, hueso de tinta, bermellón solo en el punto y un CTA,
   latón en filetes y detalles, humo en lo secundario. Bodoni Moda (titulares) + Archivo (texto e interfaz). */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/bodoni-moda-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/bodoni-moda-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"); font-stretch: 62% 125%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"); font-stretch: 62% 125%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --p-bg: #141210; --p-surface: #1d1a17; --p-ink: #f4efe6; --p-muted: #a39a90;
  --p-accent: #e2431f; --p-accent-ink: #141210; --p-action: #e2431f; --p-action-ink: #141210;
  --p-inv-bg: #f4efe6; --p-inv-surface: #e9e3d8; --p-inv-ink: #141210; --p-inv-muted: #5f5850;
  --p-inv-accent: #e2431f; --p-inv-accent-ink: #141210; --p-inv-action: #141210; --p-inv-action-ink: #f4efe6;
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --font-text: "Archivo", system-ui, sans-serif;
  --display-weight: 500; --display-tracking: -0.015em; --display-tracking-xl: -0.025em;
  --laton: #c6a15b; --line: rgba(244, 239, 230, .1); --line-2: rgba(244, 239, 230, .16);
  --bermellon: #e2431f;
  color-scheme: dark;
}
body { background: var(--p-bg); color: var(--p-ink); }

/* logotipo */
.pitt-logo { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 30px; color: var(--p-ink); text-decoration: none; }
.pitt-dot { color: var(--bermellon); }
.nav { background: rgba(20, 18, 16, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }

/* rótulos «01 / Agentes IA» en latón */
.kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--laton); margin: 0 0 var(--s-5); }
.kicker__n { display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 6px; border: 1px solid rgba(198,161,91,.55); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.kicker::after { content: ""; flex: 0 1 120px; height: 1px; background: linear-gradient(90deg, rgba(198,161,91,.6), transparent); }
.sec-head { align-items: end; margin-bottom: var(--s-8); }
.sec-head h2 { margin: 0; }
.sec-head .t-lead { margin: 0; color: var(--p-muted); }

/* hero: el punto de Pitt convertido en un mundo */
.hero--fx { position: relative; isolation: isolate; overflow: clip; }
.hero__fx { position: absolute; inset: 0; z-index: -1; isolation: isolate; }
.hero__fx::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--p-bg)); pointer-events: none; }
.hero--word h1 { font-weight: 400; letter-spacing: -0.03em; line-height: .95; }
.hero--word .ly-word > span { font-style: italic; }
.hero--word .ly-word::after { background: var(--laton) !important; }
.hero .kicker { margin-bottom: var(--s-6); }
.hero__lead { color: rgba(244, 239, 230, .82); }
.hero__facts dt { color: var(--laton); }

/* la consola del agente */
.console { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, #1d1a17, #171513); box-shadow: 0 40px 120px -40px rgba(226, 67, 31, .28), 0 0 0 1px rgba(0,0,0,.4); overflow: hidden; }
.console__bar { display: flex; align-items: center; gap: var(--s-4); padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.console__dots { display: flex; gap: 6px; } .console__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(244,239,230,.16); }
.console__title { font-weight: 500; }
.console__live { display: inline-flex; align-items: center; gap: 8px; color: var(--laton); font-size: 13px; margin-right: auto; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--laton); box-shadow: 0 0 0 0 rgba(198,161,91,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(198,161,91,0); } 100% { box-shadow: 0 0 0 0 rgba(198,161,91,0); } }
.console__pause { font: inherit; font-size: 13px; color: var(--p-muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; min-height: 32px; cursor: pointer; }
.console__pause:hover { color: var(--p-ink); border-color: var(--laton); }
.console__body { display: grid; grid-template-columns: 1fr 1fr 1.1fr; min-height: 420px; }
.pane { padding: 24px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.pane:last-child { border-right: 0; }
.pane__h { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); margin: 0 0 6px; }
.pane__h img { width: 16px; height: 16px; } .pane__h img.odoo { width: 34px; } .inv { filter: invert(1); }
.bubble { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.bubble--in { background: #2a2622; border-bottom-left-radius: 4px; }
.bubble--out { background: #e9e3d8; color: #141210; align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #2a2622; border-radius: 14px; align-self: flex-end; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--p-muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: l; }
.log li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums; }
.log li span::before { content: "✓"; color: var(--laton); margin-right: 10px; }
.log em { font-style: normal; color: var(--p-muted); }
.opp { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.opp__name { font-family: var(--font-display); font-size: 22px; margin: 0; }
.opp__fields { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.opp__fields dt { font-size: 12px; color: var(--p-muted); } .opp__fields dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stages { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.stages li { flex: 1; text-align: center; font-size: 12px; padding: 7px 4px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--p-muted); transition: background .4s, color .4s, border-color .4s; }
.stages li.is-on { background: rgba(198,161,91,.16); border-color: var(--laton); color: var(--p-ink); }
.agent-toast { margin-top: auto; display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(198,161,91,.12); border: 1px solid rgba(198,161,91,.4); }
.agent-toast__ok { color: var(--laton); font-weight: 700; }
/* las piezas aparecen al ritmo del agente */
.js-console [data-at] { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.js-console .stages [data-at] { transform: none; opacity: 1; }
.js-console [data-at].is-on { opacity: 1; transform: none; }
.js-console .typing.is-gone { display: none; }

/* la escena: el punto de la frase es el punto de Pitt */
#techo .dfs__dot, #techo .dfs__stop { color: var(--bermellon); }
#techo .dfs__line { font-weight: 400; }

/* capacidades */
.caps { row-gap: var(--s-6); }
.cap { border: 1px solid var(--line); border-radius: 20px; padding: 14px 14px 28px; background: var(--p-surface); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.cap:hover { transform: translateY(-2px); border-color: rgba(198,161,91,.45); }
.cap > h3, .cap > p, .cap > .chips { margin-inline: 14px; }
.cap h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.cap > p { color: var(--p-muted); margin-top: 0; max-width: 46ch; }
.cap__panel { height: 236px; border-radius: 12px; overflow: hidden; position: relative; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 80% 0%, rgba(226,67,31,.22), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(198,161,91,.16), transparent 60%), #120f0d; border: 1px solid var(--line); }
.cap__panel--dg .dg { width: 100%; height: 100%; padding: 12px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); margin-bottom: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); }
.chips img { width: 18px; height: 18px; object-fit: contain; }
.chip-h { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--p-ink); color: var(--p-bg); }
/* mini embudo */
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 86%; }
.mb__col { background: rgba(244,239,230,.04); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 150px; position: relative; }
.mb__col p { margin: 0 0 2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); }
.mb__card { font-size: 13px; padding: 9px 10px; border-radius: 8px; background: #2a2622; }
.mb__card--move { background: #e9e3d8; color: #141210; animation: mbmove 3.6s cubic-bezier(.6,0,.2,1) infinite; }
.mb__ghost { height: 34px; border-radius: 8px; border: 1px dashed rgba(198,161,91,.5); animation: ghost 3.6s infinite; }
@keyframes mbmove { 0%, 18% { transform: translate(0,0); } 55%, 82% { transform: translate(calc(200% + 20px), 0); } 100% { transform: translate(0,0); opacity: 1; } }
@keyframes ghost { 0%, 30% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
/* mini gráfico */
.mini-chart { width: 84%; }
.mc__k { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); }
.mc__bars { height: 140px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line-2); }
.mc__bars i { flex: 1; height: calc(var(--v) * 100%); background: rgba(244,239,230,.18); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 3.4s cubic-bezier(.2,.7,.2,1) infinite; }
.mc__bars i:nth-child(n) { animation-delay: calc(var(--v) * .3s); }
.mc__bars i.hi { background: linear-gradient(180deg, var(--laton), rgba(198,161,91,.35)); }
@keyframes grow { 0% { transform: scaleY(.15); } 35%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
/* mini IA */
.mini-ai { width: 84%; display: grid; gap: 12px; }
.ai__q { margin: 0; align-self: end; justify-self: end; font-size: 14px; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: #2a2622; max-width: 80%; }
.ai__a { margin: 0; font-size: 15px; line-height: 1.5; padding: 14px; border-radius: 12px; border: 1px solid rgba(198,161,91,.35); background: rgba(198,161,91,.07); }
.ai__a span { animation: write 3.8s infinite; }
.ai__a span:nth-child(2) { animation-delay: .35s; } .ai__a span:nth-child(3) { animation-delay: .7s; }
@keyframes write { 0%, 8% { opacity: .15; } 30%, 90% { opacity: 1; } 100% { opacity: .15; } }

/* ecosistema */
.eco { aspect-ratio: 1 / .92; border: 1px solid var(--line); border-radius: 20px; padding: var(--s-5);
  background: radial-gradient(60% 60% at 50% 50%, rgba(226,67,31,.14), transparent 70%), #120f0d; display: grid; }
.eco .dg { width: 100%; height: 100%; }
.facts { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.facts li { padding-top: var(--s-4); border-top: 1px solid rgba(198,161,91,.4); line-height: 1.5; color: var(--p-muted); }
.facts strong { font-weight: 500; display: block; color: var(--p-ink); }

/* el test */
.quiz { background: var(--p-surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--s-7); display: grid; gap: var(--s-5); align-content: start; min-height: 560px; }
.quiz__count { color: var(--laton); margin: 0; }
.quiz__q { font-family: var(--font-display); font-size: 32px; line-height: 1.2; margin: 0; outline: none; }
.quiz__opts { display: grid; gap: var(--s-3); }
.quiz__opt { font: inherit; font-size: var(--t-body); font-weight: 500; text-align: left; color: var(--p-ink); background: rgba(244,239,230,.04); border: 1px solid var(--line-2); border-radius: 12px; min-height: 56px; padding: var(--s-3) var(--s-5); cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.quiz__opt:hover { border-color: var(--laton); background: rgba(198,161,91,.08); transform: translateX(2px); }
.quiz__opt:active { transform: scale(.99); }
.quiz__rows { background: rgba(244,239,230,.04); border-radius: 12px; padding: 0 var(--s-5); }
.quiz__nav { margin-top: auto; }

/* proceso */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, var(--laton), rgba(198,161,91,.15)); }
.timeline li { position: relative; padding-top: 64px; }
.timeline li::before { content: ""; position: absolute; top: 17px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--p-bg); border: 1px solid var(--laton); }
.tl__n { font-family: var(--font-display); font-size: 88px; line-height: 1; color: rgba(244,239,230,.1); display: block; margin-bottom: var(--s-4); }
.timeline h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; margin: 0 0 var(--s-2); }
.timeline p { color: var(--p-muted); margin: 0; line-height: 1.55; }

/* contacto */
.tel { color: inherit; font-weight: 500; text-underline-offset: 3px; }
.contacto { background: var(--p-surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--s-7); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.contacto > .btn-row, .contacto .field--wide { grid-column: 1 / -1; }
.contacto input, .contacto textarea { background: rgba(244,239,230,.04); border-color: var(--line-2); color: var(--p-ink); }
.contacto textarea { width: 100%; font: inherit; min-height: 150px; }

/* cierre y pie */
.pfoot__cta h2 { font-weight: 400; font-size: clamp(40px, 5vw, 72px); max-width: 16ch; line-height: 1.02; }
.giant-mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 24vw, 380px); line-height: .8; letter-spacing: -0.04em; margin: var(--s-9) 0 var(--s-6); color: var(--p-ink); }
.pfoot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: 13px; color: var(--p-muted); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.pfoot__cols { margin-top: var(--s-9); }
.pfoot__col h3 { font-family: var(--font-text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--laton); font-weight: 500; }
.pfoot__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.pfoot__col a { color: var(--p-ink); text-decoration: none; }
.pfoot__lede { font-family: var(--font-display); font-size: 26px; line-height: 1.2; max-width: 14ch; margin: 0; }

@media (max-width: 1023px) {
  .console__body { grid-template-columns: 1fr 1fr; }
  .pane--crm { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: var(--s-8); }
  .timeline::before { display: none; }
}
@media (max-width: 639px) {
  .console__body { grid-template-columns: 1fr; }
  .pane { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .pane--log { display: none; }
  .console__title { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .tl__n { font-size: 56px; }
  .contacto { grid-template-columns: 1fr; padding: var(--s-5); }
  .contacto > * { grid-column: 1 / -1; }
  .quiz { padding: var(--s-5); min-height: 0; }
  .cap__panel { height: 200px; }
  .mini-board { width: 94%; }
  .eco { aspect-ratio: 1 / 1.05; }
}
@media (prefers-reduced-motion: reduce) {
  .mb__card--move, .mb__ghost, .mc__bars i, .ai__a span, .pulse, .typing i { animation: none; }
  .mb__ghost { opacity: 1; }
}

.nav__logo.pitt-logo { gap: 0; font: 700 30px/1 var(--font-display); }
.ly-word > span { background-image: linear-gradient(var(--laton), var(--laton)) !important; }
.pfoot { border-top: 1px solid var(--line); padding-block: var(--section) var(--s-6); background: radial-gradient(70% 60% at 85% 100%, rgba(226,67,31,.12), transparent 70%), var(--p-bg); }
.pfoot__cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-6); padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.pfoot__cta h2 { margin: 0; }
.pfoot__col a:hover { color: var(--laton); }
.pfoot .giant-mark { margin: var(--s-8) 0 var(--s-5); }

/* ───── HUD: lenguaje de interfaz de vuelo, sin nave ───── */
.hud { position: absolute; inset: calc(var(--nav-h, 72px) + 20px) max(20px, calc((100vw - var(--container, 1280px)) / 2 - 24px)) 24px; pointer-events: none; z-index: 0; }
.hud__c { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(198,161,91,.7); }
.hud__c--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud__c--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud__c--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud__c--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud__read { position: absolute; display: flex; gap: 22px; font-size: 11px; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,239,230,.62); font-variant-numeric: tabular-nums; }
.hud__read b { font-weight: 500; color: var(--p-ink); margin-left: 6px; }
.hud__read--tr { top: 14px; right: 36px; }
.hud__read--bl { bottom: 14px; left: 36px; align-items: center; }
.hud__ok { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--laton); margin-right: 8px; vertical-align: middle; animation: pulse 1.8s infinite; }
.hud__bar { width: 120px; height: 2px; background: rgba(244,239,230,.12); position: relative; overflow: hidden; }
.hud__bar i { position: absolute; inset: 0; width: 40%; background: var(--laton); animation: scan 3.2s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.hero--fx .wrap { position: relative; z-index: 1; }
.hero__fx::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(244,239,230,.025) 0 1px, transparent 1px 3px); }
.hero__facts dt { font-size: 11px; font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; }
.hero__facts > div { border-color: rgba(198,161,91,.25) !important; }

/* marco HUD: esquinas en latón sobre consola, tarjetas y diagrama */
.hud-frame { position: relative; }
.hud-frame::before, .hud-frame::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 2; border: 0 solid var(--laton); opacity: .85; }
.hud-frame::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; border-top-left-radius: inherit; }
.hud-frame::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: inherit; }
.console, .cap, .eco, .quiz, .contacto { border-radius: 6px; }
.cap__panel { border-radius: 3px; }
.console__body { background-image: linear-gradient(rgba(244,239,230,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(244,239,230,.03) 1px, transparent 1px); background-size: 32px 32px; }
.console::marker { content: none; }
.console__body { position: relative; }
.console__body::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(198,161,91,.06), transparent); animation: sweep 6s linear infinite; }
@keyframes sweep { from { transform: translateY(-80px); } to { transform: translateY(520px); } }
.console__title, .console__live, .pane__h, .console__pause, .mb__col p, .mc__k { font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; font-size: 11px; }
.log li { border-radius: 3px; } .log li em { font-stretch: 112%; }
.bubble { border-radius: 4px 12px 12px 12px; } .bubble--out { border-radius: 12px 4px 12px 12px; }
.stages li { border-radius: 2px; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.agent-toast { border-radius: 3px; }
.chips li { border-radius: 3px; }
.quiz__opt { border-radius: 3px; }
.quiz__count, .timeline .tl__n { font-stretch: 125%; }
.tl__n { font-family: var(--font-text); font-weight: 300; font-size: 64px; letter-spacing: .04em; color: rgba(198,161,91,.35); }
.timeline li::before { border-radius: 0; transform: rotate(45deg); }
.btn { border-radius: 3px; }
.btn--primary { box-shadow: 0 0 0 1px rgba(226,67,31,.4), 0 0 28px -6px rgba(226,67,31,.55); }
.pfoot__col h3, .footer__col h3 { font-stretch: 125%; letter-spacing: .2em; font-size: 11px; }
@media (max-width: 1023px) { .hud__read--tr span:nth-child(3), .hud__read--bl { display: none; } }
@media (max-width: 639px) { .hud { inset: calc(var(--nav-h, 56px) + 10px) 10px 10px; } .hud__read--tr { right: 22px; gap: 12px; font-size: 10px; } .hud__read--tr span:nth-child(2) { display: none; } }
@media (prefers-reduced-motion: reduce) { .hud__bar i, .console__body::after, .hud__ok { animation: none; } }

.section-head .kicker, .sec-head .kicker { font-size: 12px; line-height: 1; color: var(--laton); white-space: nowrap; margin-bottom: var(--s-5); }
.chips img.wide, .pane__h img.wide { width: 40px; height: 14px; }

@media (max-width: 639px) { .kicker { font-size: 10px; letter-spacing: .16em; gap: 10px; } .kicker::after { display: none; } .hero .kicker { margin-top: 28px; } }

.hero--word h1 .hero__em { font-style: italic; font-weight: 400; background: linear-gradient(var(--laton), var(--laton)) no-repeat 0 100% / 100% 4px; padding-bottom: .04em; }

/* selector de casos del agente: lo elige el visitante, nunca rota solo */
.agent-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.agent-tabs::-webkit-scrollbar { display: none; }
.agent-tabs button { flex: none; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 12px; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--p-muted); background: transparent; border: 1px solid var(--line-2); border-radius: 3px; min-height: 44px; padding: 0 16px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.agent-tabs button span { font-variant-numeric: tabular-nums; color: rgba(198,161,91,.6); }
.agent-tabs button:hover { color: var(--p-ink); border-color: rgba(198,161,91,.5); }
.agent-tabs button[aria-pressed="true"] { color: var(--p-ink); border-color: var(--laton); background: rgba(198,161,91,.1); }
.agent-tabs button[aria-pressed="true"] span { color: var(--laton); }
.bubble--sys { align-self: stretch; max-width: none; background: transparent; border: 1px dashed rgba(198,161,91,.55); color: var(--laton); font-size: 13px; letter-spacing: .04em; border-radius: 3px; }
.console__body.is-swapping { opacity: 0; transition: opacity .18s; }
.console__body { transition: opacity .25s; }
/* tamaños más contenidos: la frase de la escena y el logotipo del pie */
#techo .dfs__line { font-size: clamp(34px, 4.6vw, 72px) !important; }
#techo .dfs__sub { font-size: 18px; }
.pfoot .giant-mark { font-size: clamp(72px, 9vw, 140px); margin: var(--s-8) 0 var(--s-5); }
.pfoot__cols { margin-top: 0; }
/* formulario de contacto */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; margin: 0; font-size: 15px; min-height: 1.4em; }
.form-msg.is-ok { color: var(--laton); }
.form-msg.is-err { color: #ff8a6e; }
.contacto [aria-invalid="true"] { border-color: #ff8a6e; }
.contacto.is-sent .field, .contacto.is-sent .btn-row { opacity: .45; pointer-events: none; }

/* ═════════ RITMO: una sola regla de espaciado para toda la página ═════════
   Cada sección mide lo que su contenido (nada de alturas fijas de pantalla que recorten),
   con el mismo aire arriba y abajo, y el mismo hueco entre su cabecera y su contenido. */
:root { --py: clamp(80px, 7.5vw, 112px); --gap-head: 56px; --gap-block: 24px; }
@media (max-width: 1023px) { :root { --py: 80px; --gap-head: 40px; } }
@media (max-width: 639px)  { :root { --py: 64px; --gap-head: 32px; --gap-block: 16px; } }

main > section.section {
  height: auto !important; min-height: 0 !important;
  padding: var(--py) 0 !important; display: block !important;
}
main > section.section > .wrap { height: auto !important; display: block !important; }
main > section.section + section.section { border-top: 1px solid var(--line); }

main > .hero { height: auto !important; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav, 72px) + 48px) 0 64px !important; display: flex; flex-direction: column; justify-content: center; }
main > .hero > .wrap { height: auto !important; display: block !important; }
.hero__foot { margin-top: 40px; }

.sec-head, .section-head { margin: 0 0 var(--gap-head) !important; }
.sec-head { row-gap: 20px; }
.kicker { margin-bottom: 20px; }
.grid--top { align-items: start; row-gap: var(--gap-head); }
.stack-5 { display: flex !important; flex-direction: column; gap: 20px; }
.stack-5 > * { margin: 0 !important; }
.stack-5 > .kicker { margin-bottom: 0 !important; }
.stack-5 > .facts { margin-top: 12px !important; }

/* agentes: la consola entera, sin recortes */
.agent-tabs { margin-bottom: var(--gap-block); }
.console__body { min-height: 400px; }
.agent-toast { margin-top: auto; }

/* capacidades y ecosistema */
.caps { row-gap: var(--gap-block); column-gap: var(--gap-block); }
.cap { padding: 12px 12px 28px; }
.cap h3 { margin-top: 24px; }
.eco { aspect-ratio: 1 / .86; }

/* proceso, pack, contacto */
.timeline { row-gap: 40px; }
.quiz { min-height: 0; }
.contacto, .quiz { padding: 40px; }
.pfoot { padding-top: var(--py); }
.pfoot .giant-mark { margin: 56px 0 32px; }

/* la escena bisagra entre «lo que hacemos» y «cómo te ayudamos» */
#techo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

@media (max-width: 639px) {
  .contacto, .quiz { padding: 24px; }
  .hero__foot { margin-top: 28px; }
  main > .hero { padding-top: calc(var(--nav, 56px) + 32px) !important; padding-bottom: 40px !important; }
  .console__body { min-height: 0; }
}

/* ═════════ EL CAMINO: raíl HUD fijo con las seis paradas ═════════ */
.route { position: fixed; z-index: 40; left: 22px; top: 50%; transform: translateY(-50%); display: none;
  flex-direction: column; align-items: center; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .35s; }
.route.is-on { opacity: 1; pointer-events: auto; }
.route::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(var(--line-2), rgba(198,161,91,.5), var(--line-2)); z-index: -1; }
.route__ch { margin: 6px 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--laton); background: var(--p-bg); padding: 8px 0; }
.route a { position: relative; display: grid; place-items: center; width: 30px; height: 22px; text-decoration: none; background: var(--p-bg); }
.route a span { font-size: 10px; font-stretch: 125%; letter-spacing: .1em; color: rgba(244,239,230,.4); font-variant-numeric: tabular-nums; transition: color .2s; }
.route a em { position: absolute; left: 38px; top: 50%; transform: translate(-4px, -50%); white-space: nowrap; font-style: normal; font-size: 11px; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase;
  color: var(--p-ink); background: rgba(20,18,16,.92); border: 1px solid rgba(198,161,91,.4); padding: 6px 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.route a:hover em, .route a:focus-visible em { opacity: 1; transform: translate(0, -50%); }
.route a:hover span { color: var(--p-ink); }
.route a.is-active span { color: var(--laton); }
.route a.is-active::after { content: ""; position: absolute; left: -2px; width: 4px; height: 4px; background: var(--laton); transform: rotate(45deg); }
@media (min-width: 1280px) { .route { display: flex; } }
@media (prefers-reduced-motion: reduce) { .route { transition: none; } }

.pfoot__col h3 { margin: 0 0 16px; }
.pfoot__col ul { margin: 0; }
.sec-head .kicker, .stack-5 .kicker { line-height: 22px; }
@media (max-width: 639px) {
  .mini-board { width: 100%; padding: 0 10px; gap: 6px; }
  .mb__col { padding: 8px 6px; min-height: 130px; }
  .mb__col p { font-size: 9px; letter-spacing: .06em; }
  .mb__card { font-size: 11px; padding: 7px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @keyframes mbmove { 0%, 18% { transform: translate(0,0); } 55%, 82% { transform: translate(calc(200% + 12px), 0); } 100% { transform: translate(0,0); } }
  .timeline li { padding-top: 0; }
  .timeline li::before { display: none; }
  .tl__n { margin-bottom: 8px; }
  .contacto .btn-row .btn { width: 100%; }
}
.chip-h--odoo { background: #714B67; color: #fff; border-radius: 50%; font-size: 12px; }
.route { top: calc(50% + 36px); gap: 6px; }
.route a { height: 20px; }
.route__ch { font-size: 8px; padding: 6px 0; margin: 2px 0; }
@media (max-height: 560px) { .route { display: none !important; } }

/* ---------- v3 (19/11): bisagra compacta, FAQ, consentimiento, chips IA, enlaces legales */
.hinge { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: calc(var(--py) * .75) 0;
  background: radial-gradient(60% 120% at 100% 50%, rgba(198,161,91,.08), transparent 70%), var(--p-bg); }
.hinge__in { width: 100%; text-align: left; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-6); align-items: end; }
.hinge h2 { margin: 0; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; font-weight: 400; }
.hinge__dot { color: var(--laton); }
.hinge__sub { margin: 0; font-size: 18px; line-height: 1.5; color: var(--p-muted); max-width: 40ch; justify-self: end; }
@media (max-width: 767px) { .hinge__in { grid-template-columns: 1fr; gap: var(--s-4); } .hinge__sub { justify-self: start; } }
main > section.section + .hinge, .hinge + section.section { border-top: 0; }

.faq { border: 1px solid var(--line); border-radius: 20px; background: var(--p-surface); padding: var(--s-6) var(--s-7); }
.faq > .faq__item { gap: 8px; padding: 20px 0 !important; }
.faq > .faq__item:first-child { padding-top: 0 !important; }
.faq > .faq__item:last-child { border-bottom: 0; padding-bottom: 0 !important; }
.faq .faq__item > h3 { margin: 0; font: 500 18px/1.35 var(--font-text); color: var(--p-ink); }
.faq .faq__item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--p-muted); }
@media (max-width: 639px) { .faq { padding: var(--s-5); } }

.consent { grid-column: 1 / -1; display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--laton); }
.check a, .consent__info a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.check input[aria-invalid="true"] { outline: 2px solid #ff8a6e; outline-offset: 2px; }
.consent__info { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--p-muted); }

.chip-h--diio { text-transform: lowercase; }
.chip-svg { width: 18px; height: 18px; color: var(--p-ink); }

.pfoot__links { display: flex; gap: var(--s-5); }
.pfoot__links a { color: inherit; text-decoration: none; }
.pfoot__links a:hover { color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- páginas legales */
.legal { padding: calc(var(--nav, 72px) + 56px) 0 var(--py); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin: 0 0 12px; }
.legal .legal__date { color: var(--p-muted); font-size: 14px; margin: 0 0 48px; }
.legal h2 { font-family: var(--font-text); font-size: 20px; font-weight: 600; letter-spacing: 0; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: rgba(244,239,230,.86); max-width: 72ch; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal a { color: var(--p-ink); text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 16px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.legal th { color: var(--p-muted); font-weight: 500; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px !important; padding: 0 !important; list-style: none; }
.legal__nav a { display: inline-block; font-size: 13px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 3px; text-decoration: none; color: var(--p-muted); }
.legal__nav a[aria-current="page"] { color: var(--p-ink); border-color: var(--laton); }
main > section.hinge { height: auto !important; min-height: 0 !important; display: block !important; }
main > section.hinge > .wrap { height: auto !important; }
.hinge h2 { text-align: left; justify-self: start; max-width: none !important; }
