/* Numb3rlytics: tokens y estilos. Fuente: DESIGN.md */
:root {
  --navy: #0C2D70;
  --cobalt: #2A7EC7;
  --cobalt-ink: #246FB3;
  --sky: #49AEE4;
  --pale: #96CCEE;
  --mist: #EAF4FB;
  --slate: #4E5E78;
  --line: #D6E3EF;
  --white: #FFFFFF;

  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.8rem;
  --t-sm: 1rem;
  --t-md: 1.25rem;
  --t-lg: 1.5625rem;
  --t-xl: 1.953rem;
  --t-2xl: 2.441rem;
  --t-3xl: clamp(2.2rem, 4.6vw, 3.815rem);

  --wrap: 1180px;
  --gutter: 24px;
  --section: 120px;
  --r-bar: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p, li { margin: 0; text-wrap: pretty; }
/* Pedido del cliente (oct 2026): texto justificado y sin palabras sueltas en la última línea.
   Párrafos: justificados + "pretty" (evita la última línea corta). Títulos, etiquetas y textos
   cortos: "balance" (líneas parejas); los títulos no se justifican para no abrir huecos entre palabras. */
main p, .about__quote { text-align: justify; hyphens: manual; }
.stats { margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); }
.stats > div { padding: 30px 32px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--cobalt-ink); }
.stats dd { margin: 10px 0 0; color: var(--slate); }
/* Párrafo cuyo justificado abriría huecos grandes (main.js lo marca): izquierda, líneas parejas. */
main .no-justify { text-align: left; text-wrap: pretty; }
h1, h2, h3, h4, th, td, dd, .ticks li, .viz-cap, .section-head p, .step-panel__lead, .hero__sub, .contact p { text-wrap: balance; }
/* Textos cortos (1 a 3 líneas): con líneas parejas no hace falta justificar, y justificados abren huecos. */
main :is(.section-head p, .step-panel__lead, .hero__sub, .contact p) { text-align: left; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Foco: cobalto-texto sobre fondos claros (5.25:1); celeste solo sobre navy (5.2:1). El celeste sobre blanco da 2.5:1 y no cumple WCAG 1.4.11. */
:focus-visible { outline: 3px solid var(--cobalt-ink); outline-offset: 3px; border-radius: 2px; }
.contact :focus-visible, .footer :focus-visible, .skip:focus-visible { outline-color: var(--sky); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy); color: var(--white); padding: 8px 14px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
section[id] { scroll-margin-top: 72px; }
.section--mist { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: 56px; }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { margin-top: 18px; color: var(--slate); font-size: var(--t-md); line-height: 1.5; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .15s cubic-bezier(.2,.7,.2,1);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--cobalt-ink); color: var(--white); }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--pale); }
.btn--outline-light { border-color: var(--pale); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--mist); color: var(--navy); font-size: var(--t-xs); font-weight: 600; padding: 5px 10px; border-radius: var(--r-bar); }
.section--mist .chip { background: var(--white); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.header__logo img { height: 22px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .94rem; }
.nav a:hover { color: var(--cobalt-ink); }
/* Sección visible: misma marca que la pestaña activa (barra cobalto de 3px) */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 3px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.nav a[aria-current="true"] { color: var(--cobalt-ink); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font: 600 .8rem/1 var(--font); color: var(--slate); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.header .btn { min-height: 40px; padding: 0 18px; font-size: .94rem; }
.nav .m-only { display: none; }

/* Botón de menú (solo móvil) */
.menu-btn { display: none; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn span { top: 50%; margin-top: -1px; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; margin-left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { background: var(--white); transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { background: var(--white); transform: translateY(-6px) rotate(-45deg); }

/* Barras (motivo de marca) */
.bars { display: flex; align-items: flex-end; gap: 14px; }
.bar { flex: 1; border-radius: var(--r-bar) var(--r-bar) 0 0; }
.bar--1 { background: var(--pale); }
.bar--2 { background: var(--sky); }
.bar--3 { background: var(--cobalt); }
.bar--4 { background: var(--navy); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; overflow: hidden; }
/* El gráfico se centra verticalmente con el bloque de texto (pedido del cliente). */
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
/* Titular: una frase por línea (cada <span> es una línea), en escritorio y en celular. */
.hero h1 { font-size: var(--t-3xl); line-height: 1.04; letter-spacing: -0.03em; text-wrap: initial; }
.hero h1 span { display: block; white-space: nowrap; }
/* Subtítulo en 2 líneas en escritorio (pedido del cliente, diap. 1) */
.hero__sub { margin-top: 26px; font-size: clamp(.95rem, 1.42vw, 1.2rem); color: var(--slate); line-height: 1.5; }
/* Escritorio: la portada completa (titular, botón y base del gráfico) cabe en la pantalla al cargar,
   también en laptops de poca altura: titular, gráfico y márgenes dependen además del alto de la ventana. */
@media (min-width: 961px) {
  .hero { padding: clamp(28px, 6vh, 88px) 0 clamp(28px, 6vh, 96px); }
  .hero h1 { font-size: min(var(--t-3xl), 7.4vh); }
  .hero .hero__sub { margin-top: clamp(14px, 2.6vh, 26px); }
  .hero .hero__cta { margin-top: clamp(18px, 3.6vh, 36px); }
  .hero .hero-chart { height: clamp(200px, 40vh, 440px); }
  .hero .viz-bar { margin-top: clamp(14px, 2.8vh, 28px); }
  /* La portada ocupa el alto visible bajo la cabecera (72px): la sección siguiente no asoma al cargar. */
  .hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
}
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-chart { position: relative; height: 440px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.hero-chart__col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-chart__label { transition: color .5s; font-weight: 800; font-size: var(--t-md); letter-spacing: -0.01em; margin-bottom: 12px; white-space: nowrap; }
.hero-chart .bar { flex: none; position: relative; overflow: hidden; height: var(--h); transform-origin: bottom; animation: grow .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 110ms + 850ms); transition: background-color .5s, height .8s cubic-bezier(.6,0,.2,1) calc(var(--i) * 60ms); }

/* Selector "Sin datos / Con datos" */
.viz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; }
.viz-toggle { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.viz-toggle button { border: 0; background: none; font: 600 .9rem/1 var(--font); color: var(--slate); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.viz-toggle button:hover { color: var(--navy); }
.viz-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
/* Selector y leyenda centrados bajo el gráfico (pedido del cliente) */
.viz-bar { justify-content: center; text-align: center; }
main .viz-cap { text-align: center; }
.viz-cap { flex: 1 1 100%; color: var(--slate); font-size: .94rem; line-height: 1.4; }
.hero-visual:not(.is-off) .viz-cap--off, .hero-visual.is-off .viz-cap--on { display: none; }
/* Estado "sin datos": barras planas y desordenadas, sin tendencia */
.hero-chart.is-off .hero-chart__col:nth-child(1) { --h: 15%; }
.hero-chart.is-off .hero-chart__col:nth-child(2) { --h: 8%; }
.hero-chart.is-off .hero-chart__col:nth-child(3) { --h: 18%; }
.hero-chart.is-off .hero-chart__col:nth-child(4) { --h: 6%; }
.hero-chart.is-off .bar { background: var(--line); }
.hero-chart.is-off .hero-chart__label { color: var(--slate); }
.hero-chart.is-off .hero-chart__tip { display: none; }
.hero-chart.is-off .hero-viz :is(.trend, .trend-halo, .node, .pulse) { opacity: 0; transition: opacity .3s; }
.hero-chart.is-off .hero-viz .pulse { animation: none; }
.hero-chart__tip { position: absolute; inset: 0 0 auto 0; padding: 22px 12px 12px; font-size: .8rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
.bar--1 .hero-chart__tip, .bar--2 .hero-chart__tip { color: var(--navy); }
.bar--3 .hero-chart__tip, .bar--4 .hero-chart__tip { color: var(--white); }
@media (hover: hover) {
  .hero-chart__col:hover .hero-chart__tip { opacity: 1; transform: none; }
  .hero-chart__col:hover .bar--3 { background: var(--cobalt-ink); }
}
/* Capa animada del hero: puntos de datos + línea de tendencia (la genera main.js) */
.hero-viz { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-viz .dot { fill: var(--cobalt); }
.hero-chart.is-off .hero-viz .dot { fill: var(--slate); }
.hero-viz .trend-halo { fill: none; stroke: var(--white); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hero-viz .trend { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-viz .node { fill: var(--white); stroke: var(--navy); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.hero-viz .pulse { fill: none; stroke: var(--cobalt); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out 2.8s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.hero-chart__col:nth-child(1) { --h: 34%; --i: 0; }
.hero-chart__col:nth-child(2) { --h: 52%; --i: 1; }
.hero-chart__col:nth-child(3) { --h: 70%; --i: 2; }
.hero-chart__col:nth-child(4) { --h: 88%; --i: 3; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero-chart__label { animation: fade-up .5s ease-out both; animation-delay: calc(var(--i) * 110ms + 1150ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Con JS, la secuencia del hero espera a que el gráfico esté a la vista (.play). */
.js .hero-chart:not(.play) .bar, .js .hero-chart:not(.play) .hero-chart__label { animation: none; }
.js .hero-chart:not(.play) .bar { transform: scaleY(0); }
.js .hero-chart:not(.play) .hero-chart__label { opacity: 0; }
.hero-viz { transition: opacity .2s; }
@media (hover: hover) { .hero-chart:hover .hero-viz { opacity: .12; } }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.about h2 { font-size: var(--t-2xl); }
/* 1.12rem: con este tamaño el justificado no abre huecos en la columna de escritorio (medido). */
.about__body { font-size: 1.12rem; line-height: 1.55; color: var(--navy); max-width: 38rem; }
.about__text { display: grid; gap: 22px; max-width: 38rem; }
.about__text > p:not(.about__body) { color: var(--slate); font-size: 1.06rem; line-height: 1.65; }
.about__quote { margin: 0; padding-left: 22px; border-left: 3px solid var(--cobalt); color: var(--navy); font-size: 1.06rem; line-height: 1.6; font-weight: 600; }

/* Estado inicial de lo que crece al entrar en pantalla (solo con JS) */
.js .steps[data-reveal]:not(.in-view) .step__bar, .js .contact .bars:not(.in-view) .bar { transform: scaleY(0); }

/* ---------- Preguntas ---------- */
.questions { border-bottom: 1px solid var(--line); }
.q { border-top: 1px solid var(--line); }
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 26px 0; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--cobalt-ink); }
.q__n { flex: none; width: 2rem; font-size: var(--t-xs); font-weight: 600; color: var(--slate); }
.q__t { flex: 1; }
.q__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color .2s, border-color .2s; }
.q__icon::before, .q__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s; }
.q__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.q[open] .q__icon { background: var(--navy); border-color: var(--navy); color: var(--white); }
.q[open] .q__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.q__body { padding: 0 0 30px calc(2rem + 20px); max-width: calc(46rem + 2rem + 20px); color: var(--slate); font-size: 1.06rem; }
.q__body strong { color: var(--navy); font-weight: 600; }
.q__body .chips { margin-top: 18px; }

/* ---------- Metodología ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; height: 260px; border-bottom: 1px solid var(--navy); }
.step { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--font); color: var(--navy); text-align: left; }
.step__top { display: flex; flex-direction: column; margin-bottom: 12px; }
.step__n { font-size: var(--t-xs); font-weight: 600; color: var(--slate); }
.step__name { font-size: var(--t-md); font-weight: 800; letter-spacing: -0.01em; }
.step__bar { height: var(--h); background: var(--pale); border-radius: var(--r-bar) var(--r-bar) 0 0; transform-origin: bottom; transition: background-color .3s, transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--k) * 90ms); }
.step:nth-child(1) { --h: 22%; --k: 0; } .step:nth-child(2) { --h: 34%; --k: 1; } .step:nth-child(3) { --h: 46%; --k: 2; }
.step:nth-child(4) { --h: 58%; --k: 3; } .step:nth-child(5) { --h: 70%; --k: 4; } .step:nth-child(6) { --h: 82%; --k: 5; }
.step.is-done .step__bar { background: var(--sky); }
.step.is-done .step__n { color: var(--navy); }
.step:hover .step__bar { background: var(--sky); }
.step[aria-selected="true"] .step__bar { background: var(--navy); }
.step[aria-selected="true"] .step__n { color: var(--navy); }
.step-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 40px; }
.step-panel[hidden] { display: none; }
.step-panel h3 { font-size: var(--t-xl); }
.step-panel__lead { margin-top: 14px; font-size: 1.1rem; color: var(--slate); max-width: 30rem; }
.ticks li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 6px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }

/* ---------- Diferenciadores ---------- */
/* Misma división asimétrica que "Quiénes somos" y "Proyectos": titular fijo a la izquierda, lista numerada a la derecha. */
.diff-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.diff-layout__head { position: sticky; top: 112px; margin-bottom: 0; }
.diff { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
.diff__item { border-top: 2px solid var(--navy); padding-top: 18px; }
.diff__n { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--slate); margin-bottom: 8px; }
.diff__item h3 { font-size: var(--t-md); letter-spacing: -0.01em; }
.diff__item p { margin-top: 10px; color: var(--slate); }

/* ---------- Proyectos: experiencia por área e industria ---------- */
.xp { width: 100%; border-collapse: collapse; border-bottom: 1px solid var(--line); }
.xp th, .xp td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-top: 1px solid var(--line); }
.xp thead th { padding-top: 0; border-top: 0; border-bottom: 2px solid var(--navy); font-size: var(--t-xs); font-weight: 600; color: var(--slate); letter-spacing: 0; }
.xp tbody th { width: 40%; font-size: var(--t-md); font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.xp td { color: var(--slate); font-size: 1.06rem; }

/* ---------- Ecosistema ---------- */
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.eco h3 { font-size: var(--t-sm); font-weight: 800; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); letter-spacing: 0; }
.eco li { padding: 5px 0; color: var(--slate); }
.industries { margin-top: 96px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.industries h2 { font-size: var(--t-xl); }
.industries ul { display: flex; flex-wrap: wrap; gap: 10px 10px; align-content: flex-start; }
.industries li { border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; background: var(--white); }

/* ---------- Fundadora ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.monogram { background: #122960; }
.monogram img { display: block; width: 100%; height: auto; }
.founder h2 { font-size: var(--t-2xl); }
.founder__role { margin-top: 6px; color: var(--slate); font-weight: 600; }
.founder__photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.founder__bio { margin-top: 24px; font-size: 1.1rem; line-height: 1.65; max-width: 42rem; }
.founder__bio p + p { margin-top: 16px; }
.edu { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; max-width: 52rem; }
.edu h3 { font-size: var(--t-sm); letter-spacing: 0; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--navy); }
.edu li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--slate); font-size: .94rem; line-height: 1.45; }
.edu li b { display: block; color: var(--navy); font-size: 1rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--navy); color: var(--white); padding: 120px 0 0; overflow: hidden; }
.contact .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.contact h2 { font-size: var(--t-3xl); line-height: 1.05; letter-spacing: -0.03em; }
.contact p { margin-top: 22px; font-size: var(--t-md); color: var(--pale); max-width: 32rem; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-bottom: 120px; }
.contact .bars { height: 300px; align-self: end; }
.contact .bar { height: var(--h); transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.contact .bar:nth-child(2) { transition-delay: 90ms; } .contact .bar:nth-child(3) { transition-delay: 180ms; } .contact .bar:nth-child(4) { transition-delay: 270ms; }
.contact .bar--1 { --h: 30%; } .contact .bar--2 { --h: 50%; } .contact .bar--3 { --h: 72%; }
.contact .bar--4 { --h: 100%; background: var(--white); }

.footer { background: var(--navy); color: var(--pale); border-top: 1px solid rgba(150, 204, 238, .25); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: .9rem; }
.footer a { color: var(--white); }

/* ---------- 404: las barras "fallan" (la tercera no llegó) ---------- */
.notfound .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.notfound__code { font-size: var(--t-xs); font-weight: 600; color: var(--slate); margin-bottom: 18px; }
.notfound h1 { font-size: var(--t-3xl); line-height: 1.05; letter-spacing: -0.03em; }
.notfound__sub { margin-top: 22px; font-size: var(--t-md); color: var(--slate); max-width: 32rem; }
.notfound .hero__cta { padding-bottom: 0; }
.notfound__bars { height: 260px; }
.notfound__bars .bar--1 { height: 34%; } .notfound__bars .bar--2 { height: 58%; }
.notfound__bars .bar--3 { height: 6%; background: var(--line); } .notfound__bars .bar--4 { height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --section: 80px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gutter) 24px; background: var(--white); border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .m-only { display: block; }
  .header .nav a.btn { display: inline-flex; margin-top: 20px; padding: 0 26px; min-height: 48px; border-bottom: 0; font-size: 1rem; }
  .nav a.btn--primary, .nav a.btn--primary:hover { color: var(--white); }
  .header__tools { margin-left: auto; }
  .hero__sub { font-size: var(--t-md); }
    .hero .wrap, .about, .step-panel, .industries, .founder, .contact .wrap, .notfound .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-bottom: 56px; }
  .hero-chart { height: 260px; }
  .hero-chart__label { font-size: .9rem; }
  .diff-layout { grid-template-columns: 1fr; gap: 0; }
  .diff-layout__head { position: static; margin-bottom: 40px; }
  .diff { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn)::after { display: none; }
  .eco { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; }
  .monogram { max-width: 220px; }
  .contact .bars { height: 160px; }
  .contact__cta { padding-bottom: 0; }
  .contact { padding-bottom: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 72px; }
  html { font-size: 16px; }
  .header .wrap { gap: 12px; }
  .header .btn { display: none; }
  .hero { padding-top: 56px; }
  .hero-chart { gap: 8px; }
  .hero-chart__label { font-size: .78rem; }
  .hero-chart__tip { display: none; }
  .diff, .eco, .edu { grid-template-columns: 1fr; gap: 32px; }
  .section-head h2, .about h2, .industries h2 { font-size: 1.95rem; }
  .about__body { font-size: 1.18rem; }
  .stats { grid-template-columns: 1fr; margin-top: 48px; }
  .stats > div { padding: 24px 20px; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
      .xp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .xp, .xp tbody, .xp tr, .xp th, .xp td { display: block; width: auto; }
  .xp tbody th { width: auto; padding: 18px 0 4px; }
  .xp td { border-top: 0; padding: 0 0 18px; }
  .steps { height: 200px; gap: 6px; }
  .step__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step__n { font-size: .8rem; }
  .q summary { font-size: 1.2rem; gap: 14px; }
  .q__n { width: auto; }
  .q__body { padding-left: 0; }
  .btn { width: 100%; }
  .hero__cta .btn, .contact__cta .btn { width: 100%; }
}
/* Pantallas táctiles: objetivos de al menos 44px (idioma y selector del hero) */
@media (pointer: coarse) {
  .lang button { min-width: 44px; min-height: 40px; }
  .viz-toggle button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
