/* SnappyBits · sitio corporativo v24 (v20 sin cifras en la pila, Servicios sin hilos entre áreas y el brief de
   Sb. Hunting Dog encima de la consola; v20 era v19 con Servicios como sala de control en una pantalla; v19 era v18 con Servicios como mapa interactivo; v18 era v17 simplificado con las correcciones de la dirección: sin las funciones de
   conversión de v08 a v17; contacto simple como en v07; Sb. Hunting Dog como demo grabada)
   Marca: docs/manual-de-marca.md — azul manda; rojo y naranja acentúan.
   Naranja nunca como texto sobre blanco; rojo sobre blanco sólo en texto grande. */

/* ---------- Fuentes (SIL OFL, recortadas por tools/sitio.py) ---------- */
@font-face { font-family: "Saira"; src: url("../fonts/saira-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../fonts/saira-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("../fonts/source-code-pro-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("../fonts/noto-sans-sc-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+3000-303F, U+201C-201D, U+2018-2019, U+2026, U+00B7; }
@font-face { font-family: "Noto Sans SC"; src: url("../fonts/noto-sans-sc-600.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+3000-303F, U+201C-201D, U+2018-2019, U+2026, U+00B7; }

/* ---------- Tokens ---------- */
:root {
  --blue: #003352;
  --blue-deep: #00243b;
  --blue-line: rgba(255, 255, 255, .14);
  --red: #E5322C;
  --orange: #F18435;
  --ink: #494949;
  --ink-soft: #5d6670;
  --mist: #EEEEEE;
  --paper: #F6F7F8;
  --white: #FFFFFF;
  --rule: #DCE1E6;

  --f-head: "Saira", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Source Code Pro", "Noto Sans SC", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --slant: 16.26deg;                       /* 7:24, la única inclinación de la marca */
  --bit: polygon(18.7% 0, 100% 0, 81.3% 100%, 0 100%);   /* el bit: 33,73 × 26,62 con corrimiento 7,76 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f-body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; color: var(--blue); margin: 0; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
.num { font-family: var(--f-head); font-variant-numeric: lining-nums tabular-nums; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: var(--blue); }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--blue); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Chino: sin interletrado negativo y con más aire */
:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3 { letter-spacing: .01em; line-height: 1.22; }
:lang(zh-CN) body { line-height: 1.75; }
:lang(zh-CN) h1 em, :lang(zh-CN) h2 em { display: inline-block; white-space: nowrap; }  /* el destacado no se parte entre líneas */
@media (max-width: 360px) { :lang(zh-CN) h1 em, :lang(zh-CN) h2 em { white-space: normal; } }   /* v18: salvo en teléfonos angostos */
:lang(zh-CN) .eyebrow, :lang(zh-CN) .kpi__label { letter-spacing: .06em; }

/* ---------- Componentes comunes ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 .8125rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.eyebrow--dark { color: var(--orange); }
.eyebrow__bits { display: inline-flex; gap: 2px; }
.eyebrow__bits i { width: 13px; height: 8.4px; clip-path: var(--bit); background: var(--red); }
.eyebrow__bits i:nth-child(2) { background: var(--blue); }
.eyebrow__bits i:nth-child(3) { background: var(--orange); }
.eyebrow--dark .eyebrow__bits i:nth-child(2), .section--dark .eyebrow__bits i:nth-child(2) { background: var(--white); }

.btn {
  --bg: var(--blue); --fg: var(--white);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 3px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--f-head); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--accent { --bg: var(--orange); --fg: var(--blue); }
.btn--accent:hover { --bg: var(--white); box-shadow: 0 10px 30px -10px rgba(241, 132, 53, .6); }
.btn--primary:hover { --bg: var(--blue-deep); box-shadow: 0 10px 30px -12px rgba(0, 51, 82, .7); }
.btn--ghost { --bg: rgba(0, 36, 59, .55); --fg: var(--white); border-color: rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--white); --bg: rgba(0, 51, 82, .85); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

.link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--blue); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.link:hover { background-size: 100% 1px; }

.section { padding-block: clamp(80px, 10vw, 136px); position: relative; }
.section--mist { background: var(--paper); }
.section--dark { background: var(--blue); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.h2 em, .display em { color: var(--red); }
.section--dark .h2 em, .industries .h2 em { color: var(--orange); }
.display { font-size: clamp(2.3rem, 4.6vw, 4.25rem); }
.lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; max-width: 62ch; color: var(--ink-soft); }
.section--dark .lead { color: rgba(255, 255, 255, .78); }

/* Revelado al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.is-scrolled, .nav.is-open { background: rgba(0, 36, 59, .82); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 1px 0 var(--blue-line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__brand { flex: none; display: block; padding: 4px 0; }
.nav__brand img { height: 44px; width: auto; }
.nav__links { display: flex; gap: 6px; margin-inline: auto; }
.nav__links a, .lang a { position: relative; color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.nav__links a { padding: 10px 14px; font: 500 .9688rem/1 var(--f-head); }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0) skewX(calc(-1 * var(--slant))); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1) skewX(calc(-1 * var(--slant))); }
.nav__end { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav__links + .nav__end { margin-left: 0; }
.lang { display: flex; gap: 2px; font: 400 .8125rem/1 var(--f-mono); letter-spacing: .06em; }
.lang a { padding: 8px 7px; border-radius: 2px; }
.lang a:hover { color: var(--white); }
.lang a[aria-current] { color: var(--white); box-shadow: inset 0 -2px 0 var(--orange); }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 3px; background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.sheet { position: fixed; z-index: 49; inset: var(--nav-h) 0 0; background: var(--blue-deep); padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet__links { display: flex; flex-direction: column; }
.sheet__links a { font: 600 clamp(1.75rem, 7vw, 2.4rem)/1 var(--f-head); color: var(--white); text-decoration: none; padding: 18px 0; border-bottom: 1px solid var(--blue-line); }
.sheet__links a.sheet__cta { color: var(--orange); border: 0; }
.sheet__lang { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.sheet__lang a { color: rgba(255, 255, 255, .8); text-decoration: none; padding: 10px 16px; border: 1px solid var(--blue-line); border-radius: 3px; font-family: var(--f-mono); font-size: .875rem; }
.sheet__lang a[aria-current] { border-color: var(--orange); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100vh, 680px); min-height: max(100svh, 680px);
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(16px, 4vh, 48px));
  background:
    radial-gradient(1200px 700px at 78% 30%, rgba(26, 92, 135, .55), transparent 65%),
    radial-gradient(900px 600px at 0% 100%, rgba(0, 18, 31, .7), transparent 70%),
    var(--blue);
  color: var(--white);
}
.hero::after { /* vigneta inferior para que el riel de cifras se lea */
  content: ""; position: absolute; inset: auto 0 0; height: 40%; z-index: -1;
  background: linear-gradient(to top, rgba(0, 28, 46, .85), transparent);
  pointer-events: none;
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero__copy { max-width: 660px; }
.hero__title { color: var(--white); font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; }
.hero__title em { color: var(--orange); }
.hero__lead { margin-top: 24px; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__logo { display: flex; justify-content: center; }
.logo-svg { width: min(100%, 420px); height: auto; overflow: visible; }

/* Entrada: los bits del logo los pinta el canvas y después se encienden */
.js.motion .logo-svg .bit { opacity: 0; }
.js.motion .logo-svg .bit.is-on { opacity: 1; }
.js.motion .logo-svg .glyph { opacity: 0; transition: opacity .9s var(--ease); }
.js.motion .logo-svg #sb-mono-b { transition-delay: .15s; }
.js.motion .logo-svg.is-built .glyph, .js.motion .logo-svg.is-assembled .glyph { opacity: 1; }
.sb-safe .logo-svg .bit, .sb-safe .logo-svg .glyph { opacity: 1 !important; }

.js.motion .hero__copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js.motion .hero__copy > :nth-child(1) { animation-delay: .15s; }
.js.motion .hero__copy > :nth-child(2) { animation-delay: .3s; }
.js.motion .hero__copy > :nth-child(3) { animation-delay: .5s; }
.js.motion .hero__copy > :nth-child(4) { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__kpis { position: relative; display: flex; align-items: flex-end; gap: 32px; padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(20px, 3.5vh, 36px); }
.kpis { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--blue-line); }
.kpi { padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.kpi + .kpi { padding-left: 20px; border-left: 1px solid var(--blue-line); }
.kpi__value { font-size: clamp(1.9rem, 2.9vw, 2.6rem); font-weight: 600; line-height: 1; color: var(--white); }
.kpi__label { font: 400 .75rem/1.35 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.hero__scroll { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); text-decoration: none; font: 400 .6875rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--orange), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Partners ---------- */
.partners { background: var(--white); border-bottom: 1px solid var(--rule); }
.partners__inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: 34px; }
.partners__label { flex: none; font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); max-width: 12ch; }
.partners__list { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.partners__list img { height: var(--h); width: auto; filter: grayscale(1) contrast(.9); opacity: .62; transition: filter .35s, opacity .35s; }
.partners__list li:hover img { filter: none; opacity: 1; }

/* ---------- Por qué ---------- */
.why__head { max-width: 900px; }
.why .lead { font-size: clamp(1.125rem, 1.5vw, 1.375rem); color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); }
.pillar { position: relative; padding-top: 28px; border-top: 1px solid var(--rule); }
.pillar::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--blue); transform: skewX(calc(-1 * var(--slant))); transform-origin: bottom left; }
.pillar:nth-child(2)::before { background: var(--red); }
.pillar:nth-child(3)::before { background: var(--orange); }
.pillar__n { font: 400 .8125rem/1 var(--f-mono); color: var(--ink-soft); letter-spacing: .1em; }
.pillar h3 { margin: 14px 0 12px; font-size: clamp(1.4rem, 1.9vw, 1.75rem); }
.pillar p { color: var(--ink-soft); }

/* ---------- Casos ---------- */
.cases { background: radial-gradient(900px 600px at 0% 0%, rgba(26, 92, 135, .45), transparent 60%), var(--blue); }
.cases__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cases__stage { position: sticky; top: calc(var(--nav-h) + 6vh); height: min(62vh, 520px); }
.stage { position: relative; height: 100%; border-left: 1px solid var(--blue-line); padding-left: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.stage__count { position: absolute; top: 0; font: 400 .8125rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.stage__i { color: var(--orange); }
.stage__item { position: absolute; left: clamp(24px, 3vw, 40px); right: 0; top: 50%; translate: 0 -50%; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stage__item.is-active { opacity: 1; transform: none; }
.stage__metric { display: block; font: 600 clamp(4.5rem, 9vw, 8.5rem)/.9 var(--f-head); letter-spacing: -.03em; color: var(--white); }
.stage__label { display: block; margin-top: 18px; max-width: 22ch; font: 600 clamp(1.1rem, 1.5vw, 1.375rem)/1.3 var(--f-head); color: var(--orange); }
.stage__bar { position: absolute; bottom: 0; left: clamp(24px, 3vw, 40px); right: 0; height: 3px; background: var(--blue-line); }
.stage__bar i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--orange); transform: skewX(calc(-1 * var(--slant))); transition: left .5s var(--ease); }
.cases__list { display: flex; flex-direction: column; }
.case { min-height: min(68vh, 560px); display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-block: 40px; border-top: 1px solid var(--blue-line); transition: opacity .5s; }
.case:last-child { border-bottom: 1px solid var(--blue-line); }
.case__sector { font: 400 .8125rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.case__sector span { color: var(--orange); margin-right: 8px; }
/* En escritorio la cifra se ve en el escenario fijo (aria-hidden): aquí queda sólo para lectores de pantalla */
.case__metric { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.case h3 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
.case p:not([class]) { font-size: 1.125rem; max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags li { padding: 6px 12px; border: 1px solid var(--blue-line); border-radius: 100px; font: 400 .8125rem/1 var(--f-mono); color: rgba(255, 255, 255, .78); }

/* ---------- Método ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: step; }
.step { position: relative; padding: 30px 0 0; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: -28px; height: 1px; background: var(--rule); }
.step:last-child::before { right: 0; }
.step::after { content: ""; position: absolute; top: -8px; left: 0; width: 26px; height: 17px; clip-path: var(--bit); background: var(--blue); }
.step:nth-child(1)::after { background: var(--red); }
.step:nth-child(4)::after { background: var(--orange); }
.step__n { display: block; font: 600 clamp(3.5rem, 5.5vw, 5rem)/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.5px var(--blue); letter-spacing: -.02em; margin-bottom: 14px; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }

/* ---------- Industrias ---------- */
.industries { background: var(--blue-deep); color: var(--white); padding-block: clamp(72px, 8vw, 112px); overflow: hidden; }
.industries .h2 { color: var(--white); }
.industries .h2 .num { color: var(--orange); }
.industries__head { margin-bottom: 40px; }
.marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); font: 600 clamp(2.4rem, 5.5vw, 5rem)/1.1 var(--f-head); letter-spacing: -.02em; white-space: nowrap; }
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); }
.marquee li::after { content: ""; width: .5em; height: .32em; clip-path: var(--bit); background: var(--orange); }
.marquee li:nth-child(3n+2)::after { background: var(--red); }
.marquee li:nth-child(3n)::after { background: var(--white); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Equipos ---------- */

/* ---------- Oficinas ---------- */
.office-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.office { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.office h3 { font-size: 1.75rem; }
.office address { font-style: normal; color: var(--ink-soft); line-height: 1.5; flex: 1; }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(900px 600px at 100% 100%, rgba(26, 92, 135, .5), transparent 60%), var(--blue); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__mail { margin-top: 32px; color: rgba(255, 255, 255, .7); }
.contact__mail a { color: var(--white); font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.form { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); background: var(--white); border-radius: 8px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 600 .875rem/1.2 var(--f-body); color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C5CED6; border-radius: 4px; background: var(--white);
  font: 400 1rem/1.4 var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select { appearance: none; -webkit-appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23003352' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(241, 132, 53, .45); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.hp { display: none; }   /* trampa para bots (botcheck de Web3Forms): oculta como pide su documentación */
/* v24: hCaptcha, encima del botón (303 × 78, o 164 × 144 en compacto); el lugar se reserva sólo si el formulario envía
   por Web3Forms */
.form__captcha { display: none; }
.form__captcha.is-on { display: block; min-height: 78px; margin-top: 2px; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form__foot .btn--accent:hover { --bg: var(--blue); --fg: var(--white); }
.form__privacy { flex: 1; min-width: 180px; font-size: .875rem; color: var(--ink-soft); }
.form__status { font-weight: 600; color: var(--blue); }
.form__status:empty { display: none; }
.form__status.is-error { color: #B42318; }
.form__status a { color: inherit; }

/* ---------- Pie ---------- */
.footer { background: var(--blue-deep); color: rgba(255, 255, 255, .7); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 220px; height: auto; margin-bottom: 18px; }
.footer__nav { display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-auto-columns: max-content; gap: 10px 40px; align-content: start; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.footer__meta { display: flex; flex-direction: column; gap: 16px; }
.footer__lang { display: flex; gap: 16px; font-family: var(--f-mono); font-size: .875rem; }
.footer__lang a[aria-current] { color: var(--orange); }
.footer__base { position: relative; display: flex; align-items: center; gap: 20px; padding-block: 24px; font-size: .875rem; }
.footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--blue-line); }
.footer__base p { flex: 1; }
.footer__base .link { color: rgba(255, 255, 255, .85); }
.footer__sym { width: 64px; height: auto; }

/* ---------- Escritorio: casos con escenario fijo ---------- */
@media (min-width: 1025px) {
  .js .cases__list .case.reveal { opacity: .38; transform: none; }
  .js .cases__list .case.reveal.is-active { opacity: 1; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .cases__grid { grid-template-columns: 1fr; }
  .cases__stage { display: none; }
  .case { min-height: 0; padding-block: 36px; }
  .case__metric { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .case__metric strong { font: 600 clamp(3rem, 10vw, 4.5rem)/1 var(--f-head); color: var(--white); letter-spacing: -.02em; }
  .case__metric span { font: 600 1.0625rem/1.3 var(--f-head); color: var(--orange); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .step::before { right: 0; }
  .office-list { grid-template-columns: 1fr; max-width: 640px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .lang, .nav__cta { display: none; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 28px); }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__logo { order: -1; justify-content: flex-start; }
  .logo-svg { width: min(56vw, 220px); }
  .nav__brand img { height: 38px; }
  .hero__title { font-size: clamp(2.15rem, 9.6vw, 2.9rem); }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; }
  .hero__copy { min-width: 0; }
  .hero__kpis { padding-top: 40px; }
  .hero__scroll { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 18px 12px 18px 0; }
  .kpi + .kpi { padding-left: 0; border-left: 0; }
  .kpi:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--blue-line); }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--blue-line); }
  .partners__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .partners__label { max-width: none; }
  .partners__list { justify-content: flex-start; gap: 22px 32px; }
  .partners__list img { height: calc(var(--h) * .82); }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
    .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__nav { grid-auto-columns: minmax(0, 1fr); column-gap: 24px; }
  .footer__base { flex-wrap: wrap; }
  .footer__base p { flex-basis: 100%; order: 3; }
}

@media (max-width: 400px) {
  .eyebrow { font-size: .75rem; letter-spacing: .08em; gap: 10px; }
}

/* =====================================================================
   v02 · Simulador de impacto: consola del agente + brief ejecutivo
   ===================================================================== */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Hero: el CTA principal lleva al simulador, con un brillo que lo recorre */
.btn--glow { position: relative; overflow: hidden; isolation: isolate; }
.btn--glow::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); }
.motion .btn--glow::after { animation: shine 4.5s 2.2s var(--ease) infinite; }
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }

/* Menú: el simulador lleva una señal "en vivo" */

.sim {
  position: relative; overflow: hidden; isolation: isolate; color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(1000px 520px at 85% 0%, rgba(26, 92, 135, .55), transparent 65%),
    linear-gradient(180deg, var(--blue-deep), #001a2c 70%, var(--blue-deep));
}
.sim::before { /* grilla técnica que se desvanece */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.sim.section { padding-block: clamp(72px, 7vw, 104px); }
.sim__glow { position: absolute; z-index: -1; width: 620px; height: 620px; left: -180px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 132, 53, .16), transparent 65%); pointer-events: none; }
.sim h2 { color: var(--white); }
.sim .h2 em { color: var(--orange); }
.sim__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.sim__head .lead { margin-top: 0; color: rgba(255, 255, 255, .74); font-size: 1.0625rem; }

/* ---------- Consola ---------- */
.console {
  position: relative; display: flow-root; border-radius: 14px;
  background: rgba(0, 22, 38, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.console::before { /* borde vivo que gira mientras el agente trabaja */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 70%, rgba(241, 132, 53, .9) 82%, rgba(229, 50, 44, .9) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .6s;
}
.console.is-running::before { opacity: 1; animation: spin 2.4s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }

.console__bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--blue-line); }
.console__bits { display: inline-flex; gap: 3px; }
.console__bits i { width: 14px; height: 9px; clip-path: var(--bit); background: var(--red); }
.console__bits i:nth-child(2) { background: var(--white); }
.console__bits i:nth-child(3) { background: var(--orange); }
.console__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 .8125rem/1 var(--f-mono); color: rgba(255, 255, 255, .55); letter-spacing: .04em; }

.console__body { display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); }

/* Controles */
.sim__controls { display: flex; flex-direction: column; gap: 20px; padding: 22px 24px 24px; border-right: 1px solid var(--blue-line); }
.sim__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sim__group legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font: 400 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.sim__group legend span { color: var(--orange); }
.sim input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip span { display: inline-block; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; font: 500 .875rem/1.1 var(--f-head); color: rgba(255, 255, 255, .85); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.chip input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--blue); }
.chip input:focus-visible + span, .pick input:focus-visible ~ .pick__txt { outline: 2px solid var(--orange); outline-offset: 2px; }

.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .2s, background .2s; }
.pick:hover { border-color: rgba(255, 255, 255, .4); }
.pick:has(input:checked) { border-color: var(--orange); background: rgba(241, 132, 53, .12); }
.pick__txt { display: flex; flex-direction: column; min-width: 0; border-radius: 2px; }
.pick__txt b { font: 600 .875rem/1.15 var(--f-head); color: var(--white); }
.pick__txt small { margin-top: 2px; font-size: .75rem; line-height: 1.25; color: rgba(255, 255, 255, .55); }

.sim__run { width: 100%; justify-content: center; margin-top: auto; }

/* Visualización */
.sim__viz { display: flex; flex-direction: column; min-width: 0; }
.graph-wrap { flex: 1; min-height: 300px; display: grid; place-items: center; padding: 18px 18px 0; }
.graph { width: 100%; height: 100%; max-height: 430px; overflow: visible; }
.graph text { font-family: var(--f-head); font-weight: 500; font-size: 13px; fill: rgba(255, 255, 255, .78); transition: fill .4s; }
.g-orbit { fill: none; stroke: rgba(255, 255, 255, .1); stroke-dasharray: 2 7; transform-origin: 320px 170px; }
.motion .g-orbit { animation: orbit 60s linear infinite; }
.motion .g-orbit--2 { animation-duration: 90s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.g-edge { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.25; transition: stroke .5s; }
.g-edge.is-on { stroke: rgba(241, 132, 53, .55); stroke-dasharray: 5 6; }
.motion .g-edge.is-on { animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -11; } }
.g-node rect { fill: rgba(0, 36, 59, .9); stroke: rgba(255, 255, 255, .18); transition: stroke .4s, fill .4s; }
.g-node circle { fill: #607585; transition: fill .4s; }
.g-node.is-on rect { stroke: var(--orange); fill: rgba(60, 40, 30, .55); }
.g-node.is-on circle { fill: var(--orange); }
.g-node.is-on text { fill: var(--white); }
.g-halo { fill: none; stroke: rgba(241, 132, 53, .5); opacity: 0; transform-origin: 320px 170px; }
.is-running .g-halo { animation: halo 1.8s var(--ease) infinite; }
.is-running .g-halo--2 { animation-delay: .9s; }
@keyframes halo { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.6); } }
.g-core { fill: var(--blue); stroke: rgba(255, 255, 255, .35); transition: fill .5s, stroke .5s; }
.is-done .g-core, .is-running .g-core { stroke: var(--orange); }
.g-label { font-family: var(--f-mono) !important; font-size: 10.5px !important; letter-spacing: .14em; fill: rgba(255, 255, 255, .55) !important; }
.g-packet { fill: var(--orange); }
.g-packet--w { fill: var(--white); }
.g-packet--r { fill: var(--red); }

.log { height: 168px; margin: 0 18px 18px; padding: 12px 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; border: 1px solid var(--blue-line); border-radius: 8px; background: rgba(0, 10, 18, .55); font: 400 .8125rem/1.45 var(--f-mono); color: rgba(255, 255, 255, .78); }
.log li { display: flex; gap: 12px; animation: logIn .35s var(--ease) both; }
.log li time { flex: none; color: rgba(255, 255, 255, .38); }
.log li .ok { flex: none; align-self: center; width: 11px; height: 7px; clip-path: var(--bit); background: rgba(255, 255, 255, .28); }
.log li.is-done .ok { background: var(--orange); }
.log li.is-final .ok { background: var(--red); }
.log li span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log li.is-live span:last-child::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 4px; vertical-align: -2px; background: var(--orange); animation: caret 1s steps(1) infinite; }
.log li.is-final { color: var(--white); }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Brief ejecutivo: el "documento" que entrega el asistente ---------- */
.brief { margin: 0 18px 18px; padding: clamp(22px, 3vw, 40px); background: var(--white); color: var(--ink); border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.brief[hidden] { display: none; }
.brief__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.brief__kicker { display: flex; align-items: center; gap: 10px; font: 400 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.brief__title { margin-top: 12px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.brief__by { margin-top: 8px; font-size: .875rem; color: var(--ink-soft); }
.brief__logo { flex: none; width: 132px; height: auto; }
.brief__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--rule); }
.brief h4 { margin: 0 0 14px; font: 600 1.0625rem/1.2 var(--f-head); color: var(--blue); }
.brief__opps { display: flex; flex-direction: column; gap: 10px; }
.brief__opps li { display: flex; gap: 12px; align-items: baseline; line-height: 1.4; }
.brief__opps li::before { content: ""; flex: none; width: 13px; height: 8.4px; clip-path: var(--bit); background: var(--orange); }
.brief__opps li:nth-child(2)::before { background: var(--red); }
.brief__opps li:nth-child(3)::before { background: var(--blue); }
.btn--line { --bg: transparent; --fg: var(--blue); border-color: rgba(0, 51, 82, .35); }
.btn--line:hover { border-color: var(--blue); --bg: var(--paper); }

/* ---------- Sb. Hunting Dog: tablet y teléfono ---------- */
@media (max-width: 1180px) {
  .console__body { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sim__head { grid-template-columns: 1fr; }
  .console__body { grid-template-columns: 1fr; }
  .sim__controls { border-right: 0; border-bottom: 1px solid var(--blue-line); }
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .graph-wrap { min-height: 0; }
}
@media (max-width: 760px) {
  .console { border-radius: 10px; margin-inline: calc(var(--gutter) * -.5); }
  .console__bar { padding: 0 12px; gap: 10px; }
  .sim__controls { padding: 18px 16px 20px; }
  .picks { grid-template-columns: 1fr 1fr; }
  .pick__txt small { display: none; }
  .graph-wrap { padding: 8px 4px 0; }
  .log { margin: 0 12px 12px; height: 150px; font-size: .75rem; }
  .log li { gap: 8px; }
  .log li time { display: none; }
  .brief { margin: 0 10px 10px; }
  .brief__head { flex-direction: column-reverse; gap: 16px; }
  .brief__logo { width: 112px; }
  .brief__cols { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .chip span { padding: 7px 10px; font-size: .8125rem; }
  .pick { padding: 8px; gap: 8px; }
}
:lang(zh-CN) .log, :lang(zh-CN) .console__title { letter-spacing: .02em; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul + ul { display: none; }
  .marquee ul { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; row-gap: 12px; }
}


/* =====================================================================
   v06 · Ajustes de la dirección
   ===================================================================== */

/* ---------- Títulos de sección: +50 % (13 → 19,5 px; 12 → 18 px en ≤400) ---------- */
.eyebrow { font-size: 1.21875rem; letter-spacing: .12em; gap: 14px; margin-bottom: 22px; }
.eyebrow__bits { gap: 3px; }
.eyebrow__bits i { width: 18px; height: 11.6px; }
.partners__label { margin: 0; font-size: 1.21875rem; letter-spacing: .12em; max-width: none; color: var(--ink-soft); }
.partners__label .eyebrow__bits { flex: none; }
.partners__t { display: block; max-width: 11ch; }
:lang(zh-CN) .eyebrow { letter-spacing: .06em; }
@media (max-width: 400px) {
  .eyebrow { font-size: 1.125rem; letter-spacing: .08em; gap: 12px; }
  .eyebrow__bits i { width: 15px; height: 9.7px; }
}

/* ---------- Hero: un solo botón, al formulario ---------- */
.hero__copy > .eyebrow { margin-bottom: 26px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.0625rem; }
@media (max-width: 760px) { .hero__ctas { margin-top: 28px; } }

/* ---------- Sb. Hunting Dog ---------- */
.hunt .pick { padding: 10px 12px; }
.hunt .pick__txt b { font-size: .9375rem; }
.qs { display: flex; flex-direction: column; gap: 6px; }
.q { position: relative; display: block; cursor: pointer; }
.q span { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: rgba(255, 255, 255, .025); font: 500 .9375rem/1.3 var(--f-head); color: rgba(255, 255, 255, .85); transition: border-color .2s, background .2s, color .2s; }
.q span::before { content: ""; flex: none; width: 11px; height: 7px; clip-path: var(--bit); background: rgba(255, 255, 255, .3); transition: background .2s; }
.q:hover span { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.q input:checked + span { border-color: var(--orange); background: rgba(241, 132, 53, .12); color: var(--white); }
.q input:checked + span::before { background: var(--orange); }
.q input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 18px 18px 0; padding: 14px 16px 16px; border: 1px solid var(--blue-line); border-radius: 8px; background: rgba(255, 255, 255, .03); }
.focus.is-swap { animation: focusIn .45s var(--ease) both; }
@keyframes focusIn { from { opacity: .2; transform: translateY(6px); } }
.focus__k { margin-bottom: 8px; font: 400 .6875rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.focus ul { display: flex; flex-direction: column; gap: 5px; }
.focus li { display: flex; gap: 10px; align-items: baseline; font-size: .9063rem; line-height: 1.35; color: rgba(255, 255, 255, .66); transition: color .3s; }
.focus li::before { content: ""; flex: none; width: 10px; height: 6.5px; clip-path: var(--bit); background: rgba(255, 255, 255, .28); transition: background .3s; }
.focus li.is-on { color: var(--white); }
.focus li.is-on::before { background: var(--red); }
.focus__col--goals li { color: rgba(255, 255, 255, .85); }
.focus__col--goals li::before { background: var(--orange); }
.hunt .graph-wrap { min-height: 260px; }
.hunt .log { height: 186px; }
.hunt .log li span:last-child { white-space: normal; overflow: visible; }
.hunt .sim__run { margin-top: 6px; }

.hbrief .brief__title { max-width: 32ch; }
.brief__watch { display: flex; flex-direction: column; gap: 10px; }
.brief__watch li { display: flex; gap: 12px; align-items: baseline; line-height: 1.4; }
.brief__watch li::before { content: ""; flex: none; width: 13px; height: 8.4px; clip-path: var(--bit); background: #9DB0BF; }
.brief__h4b { margin-top: 24px !important; }
.brief__src { display: flex; flex-wrap: wrap; gap: 6px; }
.brief__src li { padding: 5px 11px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); font: 400 .8125rem/1.2 var(--f-mono); color: var(--blue); }
.hunt__note { margin-top: 18px; max-width: 90ch; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.hunt__note span { color: var(--orange); }
@media (max-width: 760px) {
  .hunt .pick__txt small { display: block; }
  .focus { grid-template-columns: 1fr; margin: 12px 12px 0; }
  .hunt .log { height: auto; min-height: 150px; }
}

/* ---------- Modalidades de contratación ---------- */
.engage__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.engage__item { position: relative; padding: 34px 30px 36px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.engage__item::before { content: ""; position: absolute; top: -1px; left: 30px; width: 56px; height: 4px; background: var(--red); transform: skewX(calc(-1 * var(--slant))); }
.engage__item:nth-child(2)::before { background: var(--blue); }
.engage__item:nth-child(3)::before { background: var(--orange); }
.engage__n { display: block; font: 600 clamp(2.6rem, 4vw, 3.4rem)/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.5px var(--blue); letter-spacing: -.02em; margin-bottom: 18px; }
.engage__item h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); margin-bottom: 10px; }
.engage__item p { font-size: 1.0625rem; color: var(--ink-soft); }
.engage__item:nth-child(4)::before { background: var(--red); }
@media (max-width: 1180px) { .engage__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .engage__list { grid-template-columns: 1fr; } }

/* ---------- Casos: escenario y caso a la misma altura y con el mismo centro ---------- */
.cases { --stage-h: min(58vh, 500px); }
.case__metric { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.case__metric strong { font: 600 1.25rem/1 var(--f-head); color: var(--white); }
.case__metric span { font: 600 1rem/1.3 var(--f-head); color: var(--orange); }
.stage__nav { position: absolute; left: clamp(24px, 3vw, 40px); right: 0; bottom: 22px; display: flex; gap: 6px; }
.stage__dot { min-width: 44px; height: 32px; padding: 0 8px; border: 1px solid var(--blue-line); border-radius: 3px; background: transparent; color: rgba(255, 255, 255, .6); font: 600 .875rem/1 var(--f-head); cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.stage__dot:hover { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.stage__dot.is-active { background: var(--orange); border-color: var(--orange); color: var(--blue); }
@media (min-width: 1025px) {
  .cases__stage { top: calc(var(--nav-h) + (100vh - var(--nav-h) - var(--stage-h)) / 2); height: var(--stage-h); }
  .stage { padding-bottom: 70px; }
  .stage__items { position: relative; flex: 1; }
  .stage__item { left: 0; }
  .case { position: relative; min-height: var(--stage-h); padding: 40px 0 40px 32px; cursor: pointer; }
  .case.is-active { cursor: auto; }
  .case::before { content: ""; position: absolute; left: 0; top: 40px; bottom: 40px; width: 3px; background: var(--blue-line); transition: background .4s; }
  .case.is-active::before { background: var(--orange); }
  .js .cases__list .case.reveal:not(.is-active):hover { opacity: .6; }
}
@media (max-width: 1024px) {
  .case__metric strong { font: 600 clamp(3rem, 10vw, 4.5rem)/1 var(--f-head); }
  .case__metric span { font-size: 1.0625rem; }
}

/* ---------- Industrias: el carrusel al tamaño del título ("proyectos", "países") ---------- */
.marquee li { font-size: clamp(2rem, 3.4vw, 3.1rem); }

/* ---------- Contacto: sólo el mensaje ---------- */
@media (max-width: 1024px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Oficinas: sólo la ubicación ---------- */
.offices .section__head { margin-bottom: clamp(28px, 3vw, 40px); }
.office__country { font: 400 .75rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.office h3 { margin-bottom: 4px; }


/* =====================================================================
   v07 · Ajustes de la dirección
   ===================================================================== */

/* ---------- Sb. Hunting Dog: cargos con el texto centrado ---------- */
.hunt .pick { justify-content: center; text-align: center; }
.hunt .pick__txt { align-items: center; }

/* ---------- Servicios (v20): sala de control de las 7 áreas, en una sola pantalla ----------
   v19 hizo del anillo la navegación (pestañas WAI-ARIA, hilos de integración, panel con «Hablemos de esta área»).
   v20 cambia la puesta en escena: la sección pasa a azul profundo con una grilla de plano, el título se sube a la
   columna del mapa y todo (título, mapa y panel) entra en una pantalla de 1366 × 768 al tocar «Servicios» en el
   menú. El panel es de vidrio sobre el fondo. v24: sin los hilos ni los bits entre el área elegida y las otras, ni
   «Se integra con» en el panel. */
.svl { overflow: hidden; isolation: isolate; background: linear-gradient(165deg, var(--blue-deep) 0%, #002b47 48%, var(--blue-deep) 100%); }
.svl__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.svl__bg::before {   /* grilla de plano, más visible detrás del mapa */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center;
  -webkit-mask-image: radial-gradient(60% 75% at 26% 62%, #000 0%, transparent 72%); mask-image: radial-gradient(60% 75% at 26% 62%, #000 0%, transparent 72%);
}
.svl__bg::after {    /* luz detrás del anillo y un brillo cálido detrás del panel */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(32% 46% at 26% 64%, rgba(14, 92, 140, .55), transparent 70%),
              radial-gradient(30% 40% at 82% 22%, rgba(241, 132, 53, .1), transparent 70%);
}
.svl { scroll-margin-top: -8px; }   /* el menú la deja justo debajo de la barra, sin la franja de la sección anterior */
.svl .lead { color: rgba(255, 255, 255, .74); }

.svx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-rows: auto 1fr; column-gap: clamp(32px, 4.5vw, 72px); row-gap: 8px; align-items: center; }
.svx__head { grid-column: 1; grid-row: 1; margin: 0; max-width: 34rem; }
.svx__head .lead { margin-top: 14px; font-size: clamp(1rem, 1.15vw, 1.125rem); }
.svx__viz { grid-column: 1; grid-row: 2; --lab: clamp(84px, 7.4vw, 104px); --ring: clamp(280px, calc(100svh - 400px), 420px); padding: 34px var(--lab) 4px; }
.svx__panels { grid-column: 2; grid-row: 1 / span 2; }

.svx__ring { position: relative; width: 100%; max-width: var(--ring); margin-inline: auto; aspect-ratio: 1; container-type: inline-size; }
.svx__ring svg { width: 100%; height: 100%; overflow: visible; }
.svx__glow { fill: rgba(9, 76, 118, .32); }
.svx__ticks { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 5; stroke-dasharray: 1 10.3; transform-origin: 200px 200px; }
.svx__orbit { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 200px 200px; }
.motion .svx__orbit { animation: orbit 80s linear infinite; }
.motion .svx__ticks { animation: orbit 140s linear infinite reverse; }
.svx__hept { fill: rgba(255, 255, 255, .025); stroke: rgba(255, 255, 255, .16); stroke-width: 1.25; stroke-linejoin: round; }
.svx__spoke { stroke: rgba(255, 255, 255, .1); stroke-width: 1.25; transition: stroke .3s; }
.svx__spoke.is-active { stroke: var(--red); stroke-width: 2; stroke-dasharray: 3 6; }
.motion .svx__spoke.is-active { animation: svxFlow .9s linear infinite; }
@keyframes svxFlow { to { stroke-dashoffset: -9; } }
.svx__core { fill: url(#svx-core); stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.svx__core-rim { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; stroke-dasharray: 1 4; transform-origin: 200px 200px; }
.motion .svx__core-rim { animation: orbit 60s linear infinite reverse; }
.svx__halo { fill: none; stroke: var(--orange); stroke-width: 1.5; opacity: 0; transform-origin: 200px 200px; }
.motion .svx__halo { animation: svxHalo 3.2s var(--ease) infinite; }
@keyframes svxHalo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.32); } }

.svx__nodes { position: absolute; inset: 0; }
.svx__node {
  position: absolute; left: var(--x); top: var(--y); width: 13.5%; aspect-ratio: 1; transform: translate(-50%, -50%);
  padding: 0; border: 0; border-radius: 50%; background: none; color: var(--white); font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.svx__dot {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #0b4a72, var(--blue-deep) 75%); border: 1.5px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .88); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8);
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease), color .3s;
}
.svx__dot svg { width: 44%; height: 44%; }
.svx__node:hover .svx__dot { border-color: var(--white); color: var(--white); transform: scale(1.08); }
.svx__node.is-active .svx__dot { background: var(--red); border-color: #ff5a4f; color: var(--white); box-shadow: 0 0 0 7px rgba(229, 50, 44, .18), 0 0 36px rgba(229, 50, 44, .65); }
.motion .svx__node.is-active .svx__dot { animation: svxPop .45s var(--ease); }
@keyframes svxPop { 50% { transform: scale(1.14); } }
.svx__node:focus-visible { outline-offset: 5px; border-radius: 50%; }
.svx__label {
  position: absolute; top: 50%; width: max-content; max-width: var(--lab);
  font: 600 .875rem/1.22 var(--f-body); color: rgba(255, 255, 255, .62); transition: color .3s;
}
.svx__node--r .svx__label { left: calc(100% + 12px); transform: translateY(-50%); text-align: left; }
.svx__node--l .svx__label { right: calc(100% + 12px); transform: translateY(-50%); text-align: right; }
.svx__node--t .svx__label { top: auto; bottom: calc(100% + 10px); left: 50%; max-width: none; transform: translateX(-50%); white-space: nowrap; }
.svx__label::after { content: ""; display: block; width: 0; height: 3px; margin-top: 5px; background: var(--red); transition: width .35s var(--ease); }
.svx__node--l .svx__label::after { margin-left: auto; }
.svx__node--t .svx__label::after { margin-inline: auto; }
.svx__node:hover .svx__label { color: rgba(255, 255, 255, .92); }
.svx__node.is-active .svx__label { color: var(--white); }
.svx__node.is-active .svx__label::after { width: 18px; }

.svx__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.svx__id { display: flex; align-items: baseline; gap: 1.2cqw; }
.svx__center.is-swap { animation: focusIn .45s var(--ease) both; }
.svx__num { font: 600 11cqw/1 var(--f-head); color: var(--white); letter-spacing: -.02em; }
.svx__of { font: 400 3cqw/1 var(--f-mono); color: rgba(255, 255, 255, .55); }
.svx__short { max-width: 28cqw; margin-top: 1.6cqw; font: 400 2.9cqw/1.25 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
:lang(zh-CN) .svx__short { letter-spacing: .02em; font-size: 3.2cqw; }

/* Panel de vidrio: los siete en la misma celda, así la sección no cambia de alto al cambiar de área */
.svx__panels { display: grid; }
.js .svx__panels > .svp { grid-area: 1 / 1; }
.js .svp:not(.is-active) { visibility: hidden; opacity: 0; pointer-events: none; }
.no-js .svp + .svp { margin-top: 20px; }
.motion .svp.is-active { animation: svpIn .5s var(--ease) both; }
@keyframes svpIn { from { opacity: 0; transform: translateY(10px); } }
.motion .svp.is-active :is(.svp__title, .svp__line, .svp__pts li, .svp__foot) { animation: svpUp .55s var(--ease) both; }
.motion .svp.is-active .svp__line { animation-delay: 50ms; }
.motion .svp.is-active .svp__pts li:nth-child(1) { animation-delay: 100ms; }
.motion .svp.is-active .svp__pts li:nth-child(2) { animation-delay: 150ms; }
.motion .svp.is-active .svp__pts li:nth-child(3) { animation-delay: 200ms; }
.motion .svp.is-active .svp__pts li:nth-child(4) { animation-delay: 250ms; }   /* v24: hasta seis puntos */
.motion .svp.is-active .svp__pts li:nth-child(n+5) { animation-delay: 300ms; }
.motion .svp.is-active .svp__foot { animation-delay: 300ms; }
@keyframes svpUp { from { opacity: 0; transform: translateY(8px); } }
.svp {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: clamp(24px, 2.4vw, 34px) clamp(24px, 2.8vw, 40px); border-radius: 12px; color: rgba(255, 255, 255, .82);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .04) 100%), rgba(0, 36, 59, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.svp::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(170deg, #000 0%, transparent 55%); mask-image: linear-gradient(170deg, #000 0%, transparent 55%);
}
.svp::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--red), var(--orange) 45%, transparent 90%); }
.svp > * { position: relative; }
.svp:focus-visible { outline-offset: 4px; border-radius: 12px; }
.svp__top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.svp__icon { flex: none; width: 58px; height: 43px; display: grid; place-items: center; color: var(--white); background: var(--red); clip-path: var(--bit); }
.svp__icon svg { width: 22px; height: 22px; }
.svp__n { font-size: 1.375rem; font-weight: 600; color: var(--white); }
.svp__n span { margin-left: 8px; font: 400 .8125rem/1 var(--f-mono); color: rgba(255, 255, 255, .5); }
.svp__step { display: flex; gap: 8px; margin-left: auto; }
.no-js .svp__step { display: none; }
.svp__arrow {
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: transparent; color: var(--white);
  transition: border-color .25s, color .25s, background .25s;
}
.svp__arrow:hover { border-color: var(--orange); color: var(--orange); background: rgba(241, 132, 53, .1); }
.svp__title { color: var(--white); font-size: clamp(1.4rem, 1.75vw, 1.65rem); line-height: 1.15; }
.svp__line { margin-top: 10px; font-size: clamp(1.0625rem, 1.2vw, 1.15rem); line-height: 1.48; color: rgba(255, 255, 255, .92); }
.svp__pts { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--blue-line); }
.svp__pts li { display: flex; gap: 12px; align-items: baseline; font-size: 1rem; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.svp__pts li::before { content: ""; flex: none; width: 13px; height: 8.4px; clip-path: var(--bit); background: var(--orange); transform: translateY(-1px); }
.svp__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: auto; padding-top: 22px; }
.svp__cta { flex: none; }

/* Escritorio: título, mapa y panel en una sola pantalla debajo de la barra fija */
@media (min-width: 1181px) {
  .svl { min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding-block: clamp(32px, 5vh, 72px); }
  .svl > .wrap { position: relative; }
  .no-js .svx { align-items: start; }   /* sin JavaScript se ven las 7 áreas: el mapa acompaña la lectura */
  .no-js .svx__viz { position: sticky; top: calc(var(--nav-h) + 24px); }
}
@media (max-width: 1180px) {
  .svx { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 24px; }
  .svx__head, .svx__viz, .svx__panels { grid-column: 1; grid-row: auto; }
  .svx__head { max-width: 760px; margin-bottom: 8px; }
  .svx__viz { --ring: 420px; --lab: 112px; width: 100%; max-width: 680px; margin-inline: auto; }
  .svl__bg::before { -webkit-mask-image: radial-gradient(70% 45% at 50% 38%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 45% at 50% 38%, #000 0%, transparent 75%); }
  .svl__bg::after { background: radial-gradient(50% 30% at 50% 36%, rgba(14, 92, 140, .55), transparent 70%); }
}
@media (max-width: 760px) {
  .svx__viz { padding: 8px 0 0; }
  .svx__ring { max-width: min(84vw, 340px); }
  .svx__node { width: 14.5%; }
  .svx__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .svp:not(.is-active) { display: none; }
  .svp { padding: 24px 20px 26px; border-radius: 10px; }
  .svp__top { margin-bottom: 18px; }
  .svp__icon { width: 48px; height: 36px; }
  .svp__icon svg { width: 19px; height: 19px; }
  .svp__foot { align-items: stretch; padding-top: 24px; }
  .svp__cta { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; }
}

/* ---------- Método: tubería animada (un bit recorre los cuatro pasos) ---------- */
.flow { position: relative; }
.flow__track { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); }
.flow__fill { position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--orange)); transition: width 1.2s var(--ease); }
.flow__bit { position: absolute; left: -26px; top: -8px; width: 26px; height: 17px; clip-path: var(--bit); background: var(--orange); transition: transform 1.2s var(--ease), opacity .4s; }
.flow.is-rewind .flow__fill, .flow.is-rewind .flow__bit { transition: none; }
.flow.is-rewind .flow__bit { opacity: 0; }
.flow.is-rewind * { transition: none !important; }
.flow__step { padding-top: 40px; }
.flow__step::before, .flow__step::after { display: none; }
.flow__viz { width: 100%; max-width: 160px; height: 96px; margin-bottom: 22px; transition: opacity .5s; }
.flow__viz svg { width: 100%; height: 100%; overflow: visible; }
.flow .step__n { font-size: clamp(2.25rem, 3vw, 2.75rem); margin-bottom: 10px; transition: color .4s; }
.flow__step.is-cur .step__n { color: var(--blue); }
.fv-l { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fv-thin { stroke: #9DB0BF; stroke-width: 1.25; }
.fv-grow { stroke-width: 2.5; }
.fv-ok { stroke: var(--white); stroke-width: 2.5; }
.fv-bit { fill: var(--orange); }
.fv-bar { fill: #C9D4DD; }
.fv-bar--hi { fill: var(--blue); }
.fv-dash { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linecap: round; }
.fv-box { fill: var(--white); stroke: var(--blue); stroke-width: 1.5; }
.fv-hub { fill: var(--blue); }
.fv-pk { fill: var(--orange); }
.fv-n { fill: var(--white); stroke: var(--red); stroke-width: 2; }
.fv-bar, .fv-box, .fv-hub, .fv-n, .fv-bit { transform-box: fill-box; }
.fv-bar { transform-origin: bottom; }
.fv-box, .fv-hub, .fv-n, .fv-bit { transform-origin: center; }
/* Con movimiento: cada paso arranca sin dibujar y se dibuja cuando el bit llega (clase is-on) */
.motion:not(.sb-safe) .flow:not(.is-static) .flow__step:not(.is-on) .flow__viz { opacity: .3; }
.motion:not(.sb-safe) .flow:not(.is-static) .fv-l { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) var(--o, 0s); }
.motion:not(.sb-safe) .flow:not(.is-static) .fv-bar { transform: scaleY(0); transition: transform .7s var(--ease) var(--o, 0s); }
.motion:not(.sb-safe) .flow:not(.is-static) .fv-box,
.motion:not(.sb-safe) .flow:not(.is-static) .fv-hub,
.motion:not(.sb-safe) .flow:not(.is-static) .fv-n { opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease) var(--o, .2s), transform .5s var(--ease) var(--o, .2s); }
.motion:not(.sb-safe) .flow:not(.is-static) .fv-bit { opacity: 0; transform: translateY(-16px); transition: opacity .5s var(--ease) var(--o, .6s), transform .6s var(--ease) var(--o, .6s); }
.motion:not(.sb-safe) .flow:not(.is-static) .fv-dash,
.motion:not(.sb-safe) .flow:not(.is-static) .fv-pk { opacity: 0; transition: opacity .6s var(--ease) .7s; }
.motion:not(.sb-safe) .flow:not(.is-static) .is-on .fv-l { stroke-dashoffset: 0; }
.motion:not(.sb-safe) .flow:not(.is-static) .is-on .fv-bar,
.motion:not(.sb-safe) .flow:not(.is-static) .is-on .fv-box,
.motion:not(.sb-safe) .flow:not(.is-static) .is-on .fv-hub,
.motion:not(.sb-safe) .flow:not(.is-static) .is-on .fv-n,
.motion:not(.sb-safe) .flow:not(.is-static) .is-on .fv-bit { opacity: 1; transform: none; }
.motion:not(.sb-safe) .flow:not(.is-static) .is-on .fv-dash,
.motion:not(.sb-safe) .flow:not(.is-static) .is-on .fv-pk { opacity: 1; }
@media (max-width: 1024px) {
  .flow__track { display: none; }
  .flow__step { padding-top: 30px; }
  .flow__step::before, .flow__step::after { display: block; }
  .flow__step::before { transition: background .4s, height .4s; }
  .flow__step::after { background: #C9D4DD !important; transition: background .4s; }
  .flow__step.is-on::before { height: 2px; background: linear-gradient(90deg, var(--red), var(--orange)); }
  .flow__step.is-on::after { background: var(--orange) !important; }
}
@media (max-width: 760px) {
  .flow__viz { max-width: 150px; height: 90px; }
}

/* ---------- Pie: sitio hecho con asistencia de IA ---------- */
.footer__ai { display: block; margin-top: 4px; font-size: .8125rem; color: rgba(255, 255, 255, .55); }

/* ---------- Menú: siete entradas en una línea; con menos de 1280 px, menú hamburguesa ---------- */
.nav__links a, .lang a { white-space: nowrap; }
@media (max-width: 1400px) {
  .nav__links { gap: 2px; }
  .nav__links a { padding-inline: 11px; }
  .nav__links a::after { left: 11px; right: 11px; }
}
@media (max-width: 1280px) {
  .nav__links { display: none; }
  .nav__links + .nav__end { margin-left: auto; }
  .nav__burger { display: block; }
}

/* v09 (se conserva): las secciones con decoración que desborda (brillo de Hunting Dog, hero, marquesina) recortan sin
   volverse desplazables: con overflow:hidden, enfocar o llevar a la vista un botón interno podía correr
   la sección unos px hacia el costado en el teléfono. */
.hero, .sim, .industries { overflow: clip; }

/* =====================================================================
   v15 · Arquitectura de la IA en producción («Por qué SnappyBits»)
   La tesis de la sección como una pila isométrica (30°, manual R093) de cinco capas: de sus sistemas a sus
   indicadores, con «Confianza digital» como envoltorio. Cada capa abre sus áreas y su resultado comprobado.
   ===================================================================== */
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "head fig" "panel fig"; column-gap: clamp(40px, 5vw, 80px); row-gap: 36px; align-items: start; }
.why__grid .why__head { grid-area: head; max-width: none; }
.why .display { font-size: clamp(2.3rem, 3.9vw, 3.75rem); }
.why__grid + .pillars { margin-top: clamp(56px, 6vw, 88px); }

.stk { grid-area: fig; margin: 0; min-width: 0; width: 100%; max-width: 600px; justify-self: end; }
.stk__cap { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .08em; color: var(--ink-soft); }
.stk__cap .console__bits i:nth-child(2) { background: var(--blue); }
.stk__fig { position: relative; aspect-ratio: 600 / 520; margin-top: 18px; }
.stk__svg { width: 100%; height: 100%; overflow: visible; }

/* Capas: vidrio azul translúcido; la elegida, sólida, con borde naranja y levantada */
.stk__layer { cursor: pointer; }
.stk__slab { transition: transform .55s var(--ease), opacity .55s var(--ease); }
.stk__top, .stk__side { stroke: rgba(0, 51, 82, .42); stroke-width: 1; stroke-linejoin: round; transition: fill .4s, stroke .4s; }
.stk__top { fill: rgba(0, 51, 82, .035); }
.stk__side--l { fill: rgba(0, 51, 82, .09); }
.stk__side--r { fill: rgba(0, 51, 82, .15); }
.stk__plane path { fill: none; stroke: rgba(0, 51, 82, .11); vector-effect: non-scaling-stroke; transition: stroke .4s; }
.stk__ico { fill: none; stroke: rgba(0, 51, 82, .6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.stk__ico * { vector-effect: non-scaling-stroke; }
.stk__lead { stroke: var(--rule); stroke-width: 1; pointer-events: none; transition: stroke .4s; }
.stk__layer:hover .stk__slab { transform: translateY(-6px); }
.stk__layer:hover .stk__top { fill: rgba(0, 51, 82, .08); }
.stk__layer.is-on .stk__slab { transform: translateY(-10px); }
.stk__layer.is-on .stk__top { fill: var(--blue); stroke: var(--orange); stroke-width: 1.5; }
.stk__layer.is-on .stk__side--l { fill: #002a44; stroke: #002a44; }
.stk__layer.is-on .stk__side--r { fill: var(--blue-deep); stroke: var(--blue-deep); }
.stk__layer.is-on .stk__plane path { stroke: rgba(255, 255, 255, .13); }
.stk__layer.is-on .stk__ico { stroke: var(--orange); }
.stk__layer.is-on .stk__lead { stroke: var(--orange); }

/* Confianza digital: el prisma punteado que envuelve la pila */
.stk__trust polygon, .stk__trust line { fill: none; stroke: rgba(0, 51, 82, .3); stroke-width: 1; stroke-dasharray: 3 5; transition: stroke .4s; }
.stk.is-trust .stk__trust polygon, .stk.is-trust .stk__trust line { stroke: var(--orange); stroke-width: 1.5; }
.stk.is-trust .stk__top { stroke: rgba(0, 51, 82, .6); }

/* Los datos suben por la pila */
.stk__pipe { stroke: rgba(0, 51, 82, .28); stroke-width: 1; stroke-dasharray: 2 5; }
.stk__bit { fill: var(--orange); opacity: 0; }
.js.motion .stk__bit { animation: stk-rise 4.2s linear infinite; animation-delay: calc(var(--k) * -1.4s); }
.js.motion .stk.is-paused .stk__bit { animation-play-state: paused; }
@keyframes stk-rise {
  0% { transform: translateY(0); opacity: 0; }
  8%, 88% { opacity: 1; }
  100% { transform: translateY(calc(-1 * var(--d))); opacity: 0; }
}

/* Etiquetas (HTML sobre el lienzo, alineadas con el borde derecho de cada capa) */
.stk__labels li { position: absolute; left: var(--lx); right: 0; top: var(--y); transform: translateY(-50%); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.stk__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 4px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--blue); font: inherit; border-radius: 4px; }
.stk__n { flex: none; display: grid; place-items: center; width: 30px; height: 22px; font: 400 .75rem/1 var(--f-mono); color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 3px; transition: background .3s, color .3s, border-color .3s; }
.stk__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stk__t b { font: 600 1.0625rem/1.15 var(--f-head); }
.stk__t small { font-size: .8125rem; line-height: 1.3; color: var(--ink-soft); }
.stk__btn:hover .stk__n { border-color: var(--blue); color: var(--blue); }
.stk__btn.is-on .stk__n { background: var(--blue); border-color: var(--blue); color: var(--white); }
.stk__btn.is-on .stk__t b { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.stk__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 6px 0 0 3%; }
.stk__trust-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border: 1px dashed rgba(0, 51, 82, .4); border-radius: 999px; background: var(--white); color: var(--blue); font: inherit; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.stk__trust-btn b { font: 600 .9375rem/1.2 var(--f-head); }
.stk__trust-btn small { font: 400 .75rem/1.2 var(--f-mono); letter-spacing: .04em; color: var(--ink-soft); transition: color .3s; }
.stk__shield { display: grid; place-items: center; color: var(--blue); }
.stk__trust-btn:hover { border-color: var(--blue); }
.stk__trust-btn.is-on { background: var(--blue); border: 1px solid var(--blue); color: var(--white); }
.stk__trust-btn.is-on small { color: rgba(255, 255, 255, .72); }
.stk__trust-btn.is-on .stk__shield { color: var(--orange); }
@media (max-width: 400px) { .stk__trust-btn { flex: 0 1 auto; flex-wrap: wrap; row-gap: 2px; max-width: 100%; text-align: left; } }   /* v19: no desborda en 320 px */

/* Panel de la capa elegida: todos en la misma celda (la columna no salta al cambiar de capa) */
.stk__panels { grid-area: panel; display: grid; min-width: 0; }
.stk__panel { grid-area: 1 / 1; padding-top: 22px; border-top: 1px solid var(--rule); position: relative; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.stk__panel::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--orange); transform: skewX(calc(-1 * var(--slant))); transform-origin: bottom left; }
.stk__panel.is-on { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.stk__pk { font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.stk__panel h3 { margin: 10px 0 8px; font-size: clamp(1.5rem, 2vw, 1.875rem); }
.stk__txt { color: var(--ink-soft); max-width: 52ch; }

/* Se arma al entrar en pantalla: las capas suben desde la base, de a una */
.stk.is-pre .stk__slab { transform: translateY(calc(var(--i) * 70px)); opacity: 0; }
.stk.is-pre .stk__labels li { opacity: 0; transform: translate(-10px, -50%); }
.stk.is-building .stk__slab { transition-delay: calc(var(--i) * 140ms); }
.stk.is-building .stk__labels li { transition-delay: calc(var(--i) * 140ms + 200ms); }

@media (max-width: 1024px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "fig" "panel"; row-gap: 40px; }
  .stk, .stk__panels { width: 100%; max-width: 640px; justify-self: start; }
  .stk__panel:not(.is-on) { display: none; }   /* en columna el panel va debajo: que mida lo suyo */
}
@media (max-width: 760px) {
  .why__grid { row-gap: 28px; }
  .stk__cap { font-size: .6875rem; letter-spacing: .04em; }
  .stk__btn { gap: 8px; padding: 4px 0; }
  .stk__n { display: none; }
  .stk__t b { font-size: .875rem; line-height: 1.15; }
  .stk__t small { display: none; }
  .stk__foot { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stk__slab, .stk__panel, .stk__labels li { transition: none; }
  .stk__flow { display: none; }
}

/* =====================================================================
   v18 · Correcciones de la dirección
   ===================================================================== */

/* ---------- Sb. Hunting Dog: demo grabada (sin intervención del visitante) ---------- */
.hunt__demo { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 4px 9px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; font: 400 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.hunt__demo i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.js.motion .is-demo:not(.is-held) .hunt__demo i { animation: demoRec 1.6s steps(1) infinite; }
@keyframes demoRec { 50% { opacity: .25; } }
.hunt__pp { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-right: -8px; border: 0; border-radius: 4px; background: transparent; color: rgba(255, 255, 255, .8); cursor: pointer; transition: background .2s, color .2s; }
.hunt__pp[hidden] { display: none; }
.hunt__pp:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.hunt__pp svg { fill: currentColor; }
.hunt__pp .ico-play, .is-paused .hunt__pp .ico-pause { display: none; }
.is-paused .hunt__pp .ico-play { display: inline; }

/* Los controles se ven como siempre, pero no responden: los mueve el guion */
.hunt .sim__controls { pointer-events: none; }
.hunt .chip span, .hunt .pick, .hunt .q { cursor: default; }
.hunt .sim__run:disabled { opacity: 1; cursor: default; }
.hunt .is-press { transform: scale(.97); transition: transform .12s; }
.hunt .chip.is-press span, .hunt .pick.is-press, .hunt .q.is-press span, .hunt .q--custom.is-press textarea { border-color: var(--orange); }

/* 01 · Industrias: grilla de columnas iguales (las siete se alinean) */
.hunt .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 6px; }
.hunt .chip { display: block; min-width: 0; }
.hunt .chip span { display: block; padding: 8px 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 03 · La pregunta escrita */
.q--custom { position: relative; margin-top: 6px; }
.q--custom textarea {
  width: 100%; min-height: 40px; padding: 9px 12px 9px 33px; border: 1px dashed rgba(255, 255, 255, .26); border-radius: 6px; opacity: 1;
  background: rgba(255, 255, 255, .025); font: 500 .9375rem/1.3 var(--f-head); color: var(--white); -webkit-text-fill-color: var(--white);
  display: block; resize: none; overflow: hidden; transition: border-color .2s, background-color .2s;
}
.q--custom textarea::placeholder { color: rgba(255, 255, 255, .5); -webkit-text-fill-color: rgba(255, 255, 255, .5); opacity: 1; }
.q--custom::before { content: ""; position: absolute; left: 12px; top: 16px; width: 11px; height: 7px; clip-path: var(--bit); background: rgba(255, 255, 255, .3); pointer-events: none; transition: background .2s; }
.q--custom.is-on textarea { border-style: solid; border-color: var(--orange); background-color: rgba(241, 132, 53, .12); }
.q--custom.is-on::before { background: var(--orange); }

/* El cursor simulado */
.hunt__cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 26px; height: 26px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; transform: translate(60%, 40vh); transition: transform .7s cubic-bezier(.5, 0, .2, 1), opacity .35s; }
html:not(.motion) .hunt__cursor { display: none; }
.hunt__cursor svg { display: block; fill: var(--white); stroke: var(--blue-deep); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.hunt__cursor::after { content: ""; position: absolute; left: 3px; top: 1px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid var(--orange); border-radius: 50%; opacity: 0; }
.hunt__cursor.is-on { opacity: 1; }
.hunt__cursor.is-click::after { animation: cursorClick .45s var(--ease); }
@keyframes cursorClick { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }

/* En pausa (botón, fuera de pantalla o pestaña oculta) se detiene todo lo que se mueve en la consola */
.is-held.console::before, .is-held .g-orbit, .is-held .g-edge, .is-held .g-halo, .is-held .log li, .is-held .log li span:last-child::after,
.is-held .hunt__cursor::after, .is-held .focus.is-swap { animation-play-state: paused; }

/* Escritorio: la consola entera (de la industria a «Cazar») entra en 1366 × 768 para seguir la demo sin desplazarse */
@media (min-width: 1181px) {
  .hunt .sim__controls { gap: 16px; padding-top: 18px; padding-bottom: 20px; }
  .hunt .sim__group legend { margin-bottom: 8px; }
  .hunt .chip span { padding: 6px 10px; }
  .hunt .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hunt .pick { padding: 7px 6px; }
  .hunt .q span { padding: 8px 12px; }
  .hunt .q--custom textarea { min-height: 38px; padding-block: 8px; }
  .hunt .graph-wrap { min-height: 0; padding-top: 10px; }
  .hunt .graph { max-height: 330px; }
  .hunt .log { height: 160px; }
}
@media (max-width: 760px) {
  .hunt .chip span { padding: 8px 6px; }
  .hunt__demo { padding: 3px 7px; letter-spacing: .1em; }
}

/* =====================================================================
   v24 · El brief de Sb. Hunting Dog encima de la consola
   ===================================================================== */
/* Con JavaScript el brief aparece sobre la consola (debajo de la barra, así «Pausar» sigue a mano) cuando termina la
   búsqueda, y se va antes del escenario siguiente. En el teléfono la consola es más alta que la pantalla: el brief se
   queda a la vista mientras se recorre la consola (sticky) y, si no entra, se desplaza adentro. Sin JavaScript queda
   debajo de la consola, como antes. */
.js .hunt__over {
  position: absolute; z-index: 4; left: 0; right: 0; top: 46px; bottom: 0;
  display: flex; justify-content: center; align-items: center; padding: clamp(14px, 2.2vw, 28px);
  border-radius: 0 0 14px 14px; background: rgba(0, 16, 28, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.js .hunt__over.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.js .hunt__over .brief {
  position: sticky; top: calc(var(--nav-h) + 16px); bottom: 16px; width: min(100%, 900px); margin: 0;
  max-height: min(100%, calc(100vh - var(--nav-h) - 32px)); max-height: min(100%, calc(100svh - var(--nav-h) - 32px));
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translateY(14px) scale(.985); transition: transform .55s var(--ease);
}
.js .hunt__over.is-open .brief { transform: none; }
.js .hunt__over .brief::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, var(--red), var(--orange) 45%, transparent 90%); }
.hunt__cta { display: flex; margin-top: 22px; }
.no-js .q--custom textarea { field-sizing: content; }   /* la pregunta escrita del primer escenario, entera (con JS la ajusta fit) */
@media (max-width: 760px) {
  .js .hunt__over { border-radius: 0 0 10px 10px; padding: 10px; }
  .js .hunt__over .brief { padding: 22px 18px 24px; }
  .hunt__cta .btn { flex: 1 1 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; }
}

/* ---------- Impresión (v18): la página tal como se ve, con sus fondos y sin la barra fija ---------- */
@media print {
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nav, .sheet, .skip, .hero__canvas, .hero__scroll, .hunt__cursor, .hunt__pp, .hunt__cta { display: none !important; }
  .js .hunt__over { position: static; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; visibility: visible; transition: none; }
  .js .hunt__over .brief { position: static; width: auto; max-height: none; overflow: visible; margin: 0 18px 18px; transform: none; box-shadow: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .stk.is-pre .stk__slab { opacity: 1; transform: none; }
  .stk.is-pre .stk__labels li { opacity: 1; transform: translateY(-50%); }
  .flow .flow__viz, .flow .fv-bar, .flow .fv-box, .flow .fv-hub, .flow .fv-n, .flow .fv-bit, .flow .fv-dash, .flow .fv-pk { opacity: 1 !important; transform: none !important; }
  .flow .fv-l { stroke-dashoffset: 0 !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; transform: none !important; }
  .marquee ul + ul { display: none; }
  .marquee ul { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; row-gap: 12px; }
  /* v19: Servicios imprime las siete áreas, una debajo de la otra */
  .svx { grid-template-columns: 1fr; }
  .js .svx__panels > .svp { grid-area: auto; }
  .js .svp:not(.is-active) { display: flex; visibility: visible; opacity: 1; }
  .svp { animation: none !important; break-inside: avoid; }
  .svp + .svp { margin-top: 16px; }
  .svp__step, .svp__cta { display: none !important; }
  .svl { min-height: 0; display: block; }
  .svx { grid-template-columns: 1fr; grid-template-rows: none; }
  .svx__head, .svx__viz, .svx__panels { grid-column: 1; grid-row: auto; }
  .svp { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--blue); }
}
