/* =============================================================
   AVANZA — Consultoría en Transporte y Logística
   Arquetipo: grilla logística (Brutalist Grid adaptado a marca)
   Firma: "la ruta" — la flecha naranja del logo dibujada con el scroll
   ============================================================= */

/* =============================================================
   1. Tokens — manual de marca AVANZA
   ============================================================= */
:root {
  /* Color de marca (extraído del logo y del dosier ejecutivo) */
  --navy:        #0D2B4F;
  --navy-2:      #1A4270;
  --navy-3:      #0A2240;
  --slate:       #3E4A5A;
  --mute:        #5F6B7A;
  --line:        #D8E1EC;
  --line-2:      #C3CFDE;
  --steel:       #AEBDD0;
  --mist:        #F2F4F7;
  --paper:       #FFFFFF;
  --orange:      #F07A21;
  --orange-2:    #C25A0B;   /* naranja para texto pequeño sobre blanco (AA) */
  --orange-soft: #FDEEE1;

  /* Tipografía de marca */
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Medidas */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1320px;
  --nav-h: 72px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
::selection { background: var(--orange); color: var(--navy); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1rem; background: var(--navy); color: var(--paper); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
}
.tag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate);
}
.tag::before {
  content: ""; width: 18px; height: 2px; background: var(--orange);
}
.on-dark .tag { color: var(--steel); }

/* =============================================================
   4. Typography
   ============================================================= */
.display {
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.035em;
}
.display .accent { color: var(--orange); }
.h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--slate); max-width: 52ch; font-weight: 500; }
.body { color: var(--slate); max-width: 60ch; }
.on-dark .lede, .on-dark .body { color: #C9D4E3; }
.hl { box-shadow: inset 0 -.32em 0 var(--orange-soft); }
.on-dark .hl { box-shadow: inset 0 -.3em 0 rgba(240,122,33,.35); }

/* =============================================================
   5. Components
   ============================================================= */

/* Botones — rectos, sin sombra */
.btn {
  --bg: var(--navy); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: .8rem;
  padding: 1rem 1.35rem; min-height: 52px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .95rem; letter-spacing: .005em;
  border: 2px solid var(--bg);
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.btn .arrow { width: 22px; height: 12px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--navy); border-color: var(--orange); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--orange { --bg: var(--orange); --fg: var(--navy); }
.btn--orange::before { background: var(--paper); }
.btn--orange:hover { border-color: var(--paper); }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.on-dark .btn--ghost { --fg: var(--paper); border-color: rgba(255,255,255,.5); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 600;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px;
  transition: background-size .45s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .arrow { width: 20px; height: 11px; transition: transform .45s var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* Grilla con líneas visibles (lenguaje gráfico central) */
.grid {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid > * { background: var(--paper); }
.on-dark .grid { background: rgba(174,189,208,.22); border-color: rgba(174,189,208,.22); }
.on-dark .grid > * { background: var(--navy); }

/* Celdas con hover invertido */
.cell { position: relative; padding: clamp(1.4rem, 2.4vw, 2.2rem); transition: background-color .35s var(--ease-out), color .35s var(--ease-out); }
.cell .num { font-family: var(--mono); font-size: .75rem; color: var(--orange-2); letter-spacing: .08em; }
.cell p { color: var(--slate); transition: color .35s var(--ease-out); }
@media (hover: hover) {
  .cell--invert:hover { background: var(--navy); color: var(--paper); }
  .cell--invert:hover p, .cell--invert:hover li { color: #C9D4E3; }
  .cell--invert:hover .num { color: var(--orange); }
  .cell--invert:hover .cell-icon { stroke: var(--orange); }
}
.cell-icon { width: 34px; height: 34px; stroke: var(--navy); fill: none; stroke-width: 1.6; margin-bottom: 1.4rem; transition: stroke .35s; }

/* Imagen tratada en duotono azul (color al hover) */
.duo { position: relative; background: var(--navy); overflow: hidden; }
.duo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(1.08);
  mix-blend-mode: luminosity;
  opacity: .9;
  transition: filter .8s var(--ease-out), opacity .8s var(--ease-out), transform 1.2s var(--ease-out), mix-blend-mode .1s;
}
.duo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(13,43,79,.55));
}
@media (hover: hover) {
  .duo:hover img { filter: none; mix-blend-mode: normal; opacity: 1; transform: scale(1.04); }
}
.duo--color img { filter: none; mix-blend-mode: normal; opacity: 1; }
.duo--color::after { background: linear-gradient(180deg, transparent 70%, rgba(13,43,79,.35)); }
.duo figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: .55rem .8rem; background: var(--paper); color: var(--navy);
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) {
  .nav { background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: none; gap: 2rem; font-weight: 600; font-size: .9rem; }
.nav-links a { position: relative; padding-block: .4rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-cta.btn { min-height: 44px; padding: .65rem 1rem; font-size: .85rem; }

.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--navy);
  transition: transform .35s var(--ease-out);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--navy); color: var(--paper);
  padding: 2rem var(--gutter);
  display: flex; flex-direction: column; gap: .2rem;
  transform: translateY(-105%); visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s .5s;
}
.nav-open .mobile-menu { transform: none; visibility: visible; transition: transform .5s var(--ease-out); }
.mobile-menu a {
  font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em;
  padding: .9rem 0; border-bottom: 1px solid rgba(174,189,208,.2);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a span { font-family: var(--mono); font-size: .75rem; color: var(--orange); font-weight: 500; }
.mobile-menu .btn { margin-top: 2rem; justify-content: center; }

/* Barra de progreso (móvil) y riel de ruta (escritorio) */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%;
  background: var(--orange); transform-origin: left; transform: scaleX(var(--scroll, 0));
}
.rail {
  position: fixed; left: max(14px, calc((100vw - var(--max)) / 2 - 46px)); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: 0;
}
.rail-line {
  position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; margin-left: -1px;
  background: var(--line-2);
}
.rail-line::after {
  content: ""; position: absolute; inset: 0; background: var(--orange);
  transform-origin: top; transform: scaleY(var(--scroll, 0));
}
.rail a {
  position: relative; z-index: 1; width: 14px; height: 14px; margin: 15px 0;
  background: var(--paper); border: 2px solid var(--line-2);
  transition: border-color .3s, background-color .3s, transform .3s var(--ease-out);
}
.rail a.is-passed { border-color: var(--orange); background: var(--orange); }
.rail a.is-current { border-color: var(--orange); background: var(--paper); transform: scale(1.35); }
.rail a .rail-label {
  position: absolute; left: 24px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--navy); color: var(--paper); padding: .25rem .5rem;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out);
}
.rail a:hover .rail-label, .rail a:focus-visible .rail-label { opacity: 1; transform: translate(0, -50%); }

/* =============================================================
   7. Sections — comunes
   ============================================================= */
main { padding-top: var(--nav-h); }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--paper); }
.section-head {
  display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem; border-top: 2px solid var(--navy);
}
.on-dark .section-head { border-top-color: var(--orange); }
.section-head .idx {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--orange-2); font-weight: 500;
}
.on-dark .section-head .idx { color: var(--orange); }

/* ---------- HERO ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 0; }
.hero-copy { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.8rem; }
.hero-title { max-width: none; font-size: clamp(2.5rem, 5.6vw, 5rem); }
.hero-title .line { display: block; white-space: nowrap; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .check {
  display: inline-block; width: .78em; height: .78em; vertical-align: -.04em; margin-left: .1em;
}
.hero-title .check path { fill: none; stroke: var(--orange); stroke-width: 11; stroke-linecap: square; stroke-dasharray: 100; stroke-dashoffset: 0; }
.js .hero-title .check path { stroke-dashoffset: 100; animation: drawCheck .9s 1.1s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--mute); }

.hero-figure { position: relative; min-height: 420px; }
.hero-figure .duo { position: absolute; inset: 0; }
.hero-figure img { object-position: 50% 30%; }
.hero-figure .badge {
  position: absolute; z-index: 3; right: 0; top: 0;
  background: var(--orange); color: var(--navy); padding: .9rem 1rem; max-width: 230px;
  font-weight: 700; font-size: .95rem; line-height: 1.25;
}
.hero-figure .badge .mono { display: block; margin-bottom: .35rem; font-size: .66rem; }

/* Ruta del hero: la flecha del logo */
.hero-route { position: relative; height: 26px; margin-top: .6rem; }
.hero-route svg { width: 100%; height: 26px; overflow: visible; }
.hero-route .route-path { stroke: var(--orange); stroke-width: 3; fill: none; }
.hero-route .route-head { fill: var(--orange); }
.js .hero-route .route-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawRoute 1.6s .4s var(--ease-out) forwards; }
.js .hero-route .route-head { opacity: 0; animation: fadeIn .3s 1.7s forwards; }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* Stats */
.stats { grid-template-columns: repeat(2, 1fr); }
.stat { padding: clamp(1.2rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .35rem; }
.stat-value { font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .45em; letter-spacing: 0; font-weight: 700; margin-left: .1em; }
.stat-value .pre { font-size: .45em; letter-spacing: 0; font-weight: 700; margin-right: .15em; vertical-align: .55em; }
.stat-label { color: var(--slate); font-weight: 500; font-size: .92rem; line-height: 1.35; }
.on-dark .stat-label { color: #C9D4E3; }
.on-dark .stat-value { color: var(--paper); }
.stat-value .o { color: var(--orange); }

/* ---------- SPLIT DE CAMINOS ---------- */
.paths { grid-template-columns: 1fr; }
.path {
  padding: clamp(1.8rem, 3.5vw, 3rem); display: flex; flex-direction: column; gap: 1.1rem; min-height: 280px;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.path h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); max-width: 18ch; }
.path p { color: var(--slate); max-width: 44ch; transition: color .4s; }
.path .link-arrow { margin-top: auto; }
@media (hover: hover) {
  .path:hover { background: var(--navy); color: var(--paper); }
  .path:hover p { color: #C9D4E3; }
  .path:hover .tag { color: var(--steel); }
}

/* ---------- CADENA (FIRMA: LA RUTA) ---------- */
.chain { position: relative; }
.chain-route { position: relative; height: 34px; margin-bottom: 0; display: none; }
.chain-route svg { width: 100%; height: 34px; overflow: visible; }
.chain-route .route-base { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 6; fill: none; }
.chain-route .route-path {
  stroke: var(--orange); stroke-width: 3; fill: none;
  stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - 1000 * var(--p, 1));
}
.chain-route .stop, .flow-route .stop {
  position: absolute; top: 17px; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: var(--paper); border: 2px solid var(--line-2);
  transition: background-color .35s, border-color .35s, transform .45s var(--ease-out);
}
.chain-route .stop.is-reached, .flow-route .stop.is-reached { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.chain-route .route-head, .flow-route .route-head {
  position: absolute; right: -2px; top: 17px; margin-top: -8px; width: 0; height: 0;
  border-left: 16px solid var(--orange); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  opacity: calc(var(--p, 1) * 6 - 5);
}

.links { grid-template-columns: 1fr; }
.link-cell { padding: 1.6rem clamp(1.2rem, 2vw, 1.6rem) 1.8rem; position: relative; }
.link-cell::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--orange);
  transform-origin: left; transition: transform .7s var(--ease-out);
}
.js .link-cell::before { transform: scaleX(0); }
.js .link-cell.is-reached::before { transform: scaleX(1); }
.link-cell .mono { color: var(--orange-2); }
.link-cell h3 { margin: .5rem 0 1rem; font-size: 1.15rem; }
.link-cell li {
  color: var(--slate); font-size: .9rem; line-height: 1.4; padding: .55rem 0; border-top: 1px dashed var(--line-2);
}
.chain-quote {
  margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.2rem; align-items: start;
}
.chain-quote blockquote {
  font-size: clamp(1.25rem, 2.3vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; max-width: 34ch;
}
.chain-quote blockquote::before { content: "“"; color: var(--orange); }
.chain-quote blockquote::after { content: "”"; color: var(--orange); }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--navy); background: var(--paper);
  padding-block: 1.1rem; white-space: nowrap; user-select: none;
}
.marquee-track { display: inline-flex; gap: 0; animation: marquee 38s linear infinite; will-change: transform; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
}
.marquee-track span::after { content: ""; width: 14px; height: 14px; background: var(--orange); transform: rotate(45deg); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.4px var(--navy); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- MÉTODO ---------- */
.steps { grid-template-columns: 1fr; counter-reset: step; }
.step { padding: clamp(1.5rem, 2.6vw, 2.3rem); display: flex; flex-direction: column; gap: 1rem; }
.step-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.step-n { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--navy); }
.step-n::after { content: "."; color: var(--orange); }
.step .dur { color: var(--mute); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--slate); font-size: .95rem; }
.step .deliv {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  display: grid; gap: .25rem;
}
.step .deliv .mono { color: var(--orange-2); font-size: .66rem; }
.step .deliv strong { font-size: .92rem; font-weight: 600; }

/* ---------- SOLUCIONES ---------- */
.solutions { grid-template-columns: 1fr; }
.sol { display: flex; flex-direction: column; gap: .6rem; min-height: 250px; }
.sol .kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.sol h3 { font-size: 1.6rem; letter-spacing: -.03em; }
.sol p { font-size: .94rem; }
.sol .resuelve { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--orange-2); margin-top: auto; padding-top: .8rem; }
.sol--wise { background: var(--orange-soft) !important; }
.sol--wise .pill {
  align-self: flex-start; background: var(--navy); color: var(--paper);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; padding: .3rem .5rem; text-transform: uppercase;
}
@media (hover: hover) { .sol--wise:hover { background: var(--navy) !important; } .sol--wise:hover .pill { background: var(--orange); color: var(--navy); } }

/* ---------- BANDA WISE ---------- */
.wise-band .wb-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.wise-band .wb-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.wise-band .wb-logo { font-size: clamp(3.2rem, 8vw, 6.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .85; }
.wise-band .wb-logo span { display: block; font-size: .2em; letter-spacing: .14em; font-weight: 600; color: var(--orange); margin-top: .6rem; font-family: var(--mono); }
.wb-media { display: grid; gap: 1px; grid-template-columns: 1fr 1fr; background: rgba(174,189,208,.22); }
.wb-media .duo { aspect-ratio: 16/10; }
.wb-media .duo:first-child { grid-column: 1 / -1; aspect-ratio: 16/8; }
.wb-case {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(174,189,208,.22); margin-top: 1px;
}
.wb-case > div { background: var(--navy-3); padding: 1.2rem 1.3rem; }
.wb-case .v { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; color: var(--orange); line-height: 1; }
.wb-case .l { color: #C9D4E3; font-size: .86rem; margin-top: .35rem; }

/* ---------- TRAYECTORIA ---------- */
.about-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.about-photo { position: relative; aspect-ratio: 4/5; max-width: 520px; }
.about-photo .duo { position: absolute; inset: 0; }
.about-copy { display: flex; flex-direction: column; gap: 1.3rem; }
.about-copy .name { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.about-copy .role { color: var(--orange-2); font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.edu li { padding: .7rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; font-size: .93rem; }
.edu li .mono { color: var(--mute); padding-top: .15rem; }
.edu li strong { font-weight: 600; }

.timeline { margin-top: clamp(3rem, 6vw, 5rem); position: relative; }
.tl-scroll {
  overflow-x: auto; overflow-y: visible; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--orange) var(--line);
}
.tl-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); position: relative; min-width: 100%; }
.tl-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line-2);
}
.tl-track::after {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--orange);
  transform-origin: left; transform: scaleX(var(--p, 1));
}
.tl-item { position: relative; padding: 2.2rem 1.4rem 0 0; scroll-snap-align: start; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; z-index: 1;
  background: var(--paper); border: 2px solid var(--navy);
}
.tl-item:last-child::before { background: var(--orange); border-color: var(--orange); }
.tl-item .yr { font-family: var(--mono); font-size: .74rem; color: var(--mute); letter-spacing: .04em; }
.tl-item .co { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; margin-top: .3rem; text-transform: uppercase; }
.tl-item .ro { color: var(--slate); font-size: .88rem; line-height: 1.35; margin-top: .25rem; }

.wins { margin-top: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; }
.win { padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .6rem; }
.win .v { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--navy); }
.win .v .o { color: var(--orange); }
.win h3 { font-size: 1.02rem; }
.win p { font-size: .9rem; color: var(--slate); }

/* ---------- ALCANCE ---------- */
.scope { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scope > div { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.6rem); }
.scope h3 { font-size: 1.05rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.scope li { padding: .75rem 0 .75rem 2rem; border-top: 1px solid var(--line); position: relative; color: var(--slate); }
.scope .yes li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 8px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
.scope .no li::before { content: ""; position: absolute; left: 2px; top: 1.3rem; width: 12px; height: 2.5px; background: var(--navy); }

.plans { margin-top: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; }
.plan { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .9rem; min-height: 240px; }
.plan .dur { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--orange-2); text-transform: uppercase; }
.plan h3 { font-size: 1.5rem; letter-spacing: -.03em; }
.plan p { color: var(--slate); }
.plan--feat { background: var(--navy) !important; color: var(--paper); }
.plan--feat p { color: #C9D4E3; }
.plan--feat .dur { color: var(--orange); }

/* ---------- CONTACTO ---------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.contact-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-list { display: grid; gap: 0; border-top: 1px solid rgba(174,189,208,.25); }
.contact-list a, .contact-list div {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(174,189,208,.25); font-weight: 600;
  word-break: break-word;
}
.contact-list .mono { color: var(--steel); flex: none; }
.contact-list a:hover { color: var(--orange); }

.form { display: grid; gap: 1px; background: rgba(174,189,208,.25); border: 1px solid rgba(174,189,208,.25); }
.field { background: var(--navy-3); padding: .9rem 1.1rem .7rem; display: flex; flex-direction: column; gap: .3rem; transition: background-color .3s; }
.field:focus-within { background: #12345c; }
.field label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  background: transparent; border: 0; outline: 0; color: var(--paper); font-weight: 500; font-size: 1rem; padding: .2rem 0; width: 100%;
}
.field select option { color: var(--navy); }
.field textarea { resize: vertical; min-height: 110px; }
.field.is-invalid { box-shadow: inset 3px 0 0 var(--orange); }
.form-row { display: grid; gap: 1px; background: rgba(174,189,208,.25); }
.form-foot { background: var(--navy-3); padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-foot .note { color: var(--steel); font-size: .82rem; max-width: 34ch; }
.form-status { color: var(--orange); font-weight: 600; font-size: .9rem; min-height: 1.2em; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-3); color: #C9D4E3; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(174,189,208,.2); }
.footer-logo img { width: min(320px, 80%); }
.footer h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); font-weight: 500; margin-bottom: 1rem; }
.footer li { padding: .3rem 0; }
.footer a:hover { color: var(--paper); }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; font-size: .8rem; color: var(--steel); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   6b. Página WISE
   ============================================================= */
.w-hero { border-bottom: 1px solid var(--line); }
.w-hero-grid > *, .hero-grid > *, .case-grid > *, .contact-grid > *, .wb-grid > * { min-width: 0; }
.w-hero .stat-value { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }
.w-hero .stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 540px) { .w-hero .stats { grid-template-columns: repeat(4, 1fr); } }
.w-hero-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.w-hero-copy { display: flex; flex-direction: column; gap: 1.6rem; }
.w-brand { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.w-brand .wise-word { font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.w-brand .x { color: var(--orange); font-weight: 700; }
.w-brand img { height: 20px; width: auto; }

.video-frame { position: relative; background: var(--navy); aspect-ratio: 16/9; border: 1px solid var(--navy); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: var(--navy); }
.video-frame .vf-label {
  position: absolute; left: 0; top: 0; z-index: 2; background: var(--orange); color: var(--navy);
  padding: .4rem .6rem; pointer-events: none;
}
.video-frame .vf-play {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(13,43,79,.05), rgba(13,43,79,.55));
  color: var(--paper); transition: background .3s;
}
.video-frame .vf-play span {
  display: inline-flex; align-items: center; gap: .8rem; background: var(--paper); color: var(--navy);
  padding: .9rem 1.2rem; font-weight: 700; transition: background-color .3s, transform .4s var(--ease-out);
}
.video-frame .vf-play span::before {
  content: ""; width: 0; height: 0; border-left: 12px solid var(--orange); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.video-frame .vf-play:hover span { background: var(--orange); transform: scale(1.04); }
.video-frame .vf-play:hover span::before { border-left-color: var(--navy); }
.video-frame.is-playing .vf-play { display: none; }

.why { grid-template-columns: 1fr; }
.why .cell h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.why .cell p { font-size: .94rem; }

.flow { position: relative; }
.flow-route { display: none; height: 34px; }
.flow-route svg { width: 100%; height: 34px; overflow: visible; }
.flow-route .route-base { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 6; fill: none; }
.flow-route .route-path { stroke: var(--orange); stroke-width: 3; fill: none; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - 1000 * var(--p, 1)); }
.flow-route { position: relative; }
.flow-steps { grid-template-columns: 1fr; }
.flow-steps .link-cell h3 { margin: .45rem 0 .6rem; }
.flow-steps .link-cell p { color: var(--slate); font-size: .9rem; line-height: 1.5; }

.modules { grid-template-columns: 1fr; margin-top: 1px; border-top: 0; }
.module { padding: 1.2rem 1.4rem; display: grid; gap: .3rem; }
.module strong { font-weight: 700; }
.module span { color: var(--slate); font-size: .88rem; line-height: 1.45; }

.case-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.case-people { display: grid; gap: 0; border-top: 1px solid rgba(174,189,208,.25); }
.case-people li { padding: .9rem 0; border-bottom: 1px solid rgba(174,189,208,.25); display: grid; gap: .1rem; }
.case-people strong { color: var(--paper); font-weight: 700; }
.case-people span { color: var(--steel); font-size: .88rem; }
.case-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(174,189,208,.22); margin-top: clamp(2rem, 4vw, 3rem); }
.case-strip .duo { aspect-ratio: 16/10; }

.fit { grid-template-columns: 1fr; }
.fit .cell h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.fit .cell p { font-size: .93rem; }

.quotes { grid-template-columns: 1fr; }
.quote { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.2rem; }
.quote blockquote { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.quote blockquote::before { content: "“"; display: block; font-size: 3.6rem; line-height: .7; color: var(--orange); font-weight: 800; margin-bottom: .4rem; }
.quote cite { font-style: normal; margin-top: auto; }
.quote cite strong { display: block; font-weight: 700; }
.quote cite span { color: var(--mute); font-size: .85rem; }

.integr { display: flex; flex-wrap: wrap; gap: .5rem; }
.integr li { border: 1px solid var(--navy); padding: .55rem .8rem; font-weight: 600; font-size: .88rem; transition: background-color .3s, color .3s; }
@media (hover: hover) { .integr li:hover { background: var(--navy); color: var(--paper); } }
.ind-list { columns: 1; column-gap: 2rem; }
.ind-list li { padding: .7rem 0; border-top: 1px solid var(--line); font-weight: 600; break-inside: avoid; display: flex; gap: .8rem; align-items: baseline; }
.ind-list li .mono { color: var(--orange-2); }
.fineprint { color: var(--mute); font-size: .78rem; margin-top: 1rem; }
.on-dark .fineprint { color: var(--steel); }

/* ---------- CRÉDITOS ---------- */
.credits-list li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--slate); font-size: .92rem; }
.credits-list a { text-decoration: underline; text-underline-offset: 3px; color: var(--navy); }

/* =============================================================
   7. Effects — reveals
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

.js .hero-title .line { overflow: hidden; }
.js .hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease-out) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .links, .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .solutions, .why, .fit { grid-template-columns: repeat(2, 1fr); }
  .wins { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .case-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .paths { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .scope { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .chain-quote { grid-template-columns: auto 1fr; }
  .ind-list { columns: 2; }
  .section-head { grid-template-columns: 9rem 1fr; align-items: start; }
  .section-head .h2 { grid-column: 2; }
  .section-head .lede { grid-column: 2; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }

  .hero-grid { grid-template-columns: 7fr 5fr; min-height: clamp(560px, calc(100svh - var(--nav-h) - 132px), 820px); }
  .hero-copy { padding-right: clamp(2rem, 4vw, 4rem); justify-content: center; }
  .hero-figure { min-height: 0; border-left: 1px solid var(--line); }

  .links { grid-template-columns: repeat(5, 1fr); }
  .chain-route, .flow-route { display: block; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .solutions, .why { grid-template-columns: repeat(3, 1fr); }
  .fit { grid-template-columns: repeat(3, 1fr); }
  .flow-steps { grid-template-columns: repeat(4, 1fr); }
  .modules { grid-template-columns: repeat(4, 1fr); }

  .wise-band .wb-grid { grid-template-columns: 5fr 7fr; align-items: center; }
  .about-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .about-photo { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .contact-grid { grid-template-columns: 5fr 7fr; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .w-hero-grid { grid-template-columns: 5fr 6fr; align-items: center; min-height: clamp(560px, calc(100svh - var(--nav-h) - 60px), 860px); }
  .case-grid { grid-template-columns: 7fr 5fr; align-items: start; }
}
@media (min-width: 1280px) {
  .rail { display: flex; }
  .progress { display: none; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 80s; }
}
