/* ==========================================================================
   Axioma IA Tech — hoja de estilos
   Paleta tomada del logo oficial (azul noche + plata) sobre una base estilo Apple.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --gray: #86868b;
  --gray-2: #6e6e73;
  --gray-dark: #a1a1a6;
  --light: #f5f5f7;
  --white: #fff;
  --line: #d2d2d7;
  --navy: #1e2530;
  --navy-deep: #121821;
  --silver: #a3a8b2;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link-dark: #2997ff;
  --link-light: #0066cc;
  --slate: #5a6b85;

  --radius: 28px;
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-brand: "Montserrat", var(--font);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 700; }
::selection { background: rgba(0, 113, 227, .25); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 12px; top: -48px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 10px; }

/* Marca reutilizable (<use href="#mark">) */
.m-a { fill: var(--mark-a, #fff); }
.m-b { fill: var(--mark-b, url(#g-silver)); }
.m-c { fill: var(--mark-c, #b3b7bf); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 880px; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  padding: 11px 22px; border-radius: 980px; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost { color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .32); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn--lg { padding: 15px 28px; }
.btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ph { fill: currentColor; stroke: none !important; }

.link-chevron {
  color: var(--link-light); font-size: 17px; text-decoration: none; white-space: nowrap;
}
.link-chevron::after {
  content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .32em;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-.1em) rotate(-45deg);
}
.link-chevron:hover { text-decoration: underline; }
.link-chevron--dark { color: var(--link-dark); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(22, 22, 23, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav.is-open { background: rgba(0, 0, 0, .96); }
.nav__inner {
  max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; color: #f5f5f7; text-decoration: none; }
.nav__mark { width: 25px; height: 20px; }
.wordmark { font-family: var(--font-brand); font-weight: 600; font-size: 12.5px; letter-spacing: .16em; }
.wordmark span { color: var(--silver); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: #e8e8ed; opacity: .82; font-size: 12.5px; text-decoration: none; letter-spacing: -.005em;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__links .nav__cta {
  opacity: 1; background: var(--blue); color: #fff; padding: 5px 13px; border-radius: 980px;
}
.nav__links .nav__cta:hover { background: var(--blue-hover); }
.nav__toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -12px;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 14px; width: 17px; height: 1.5px; background: #e8e8ed; border-radius: 1px;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: var(--black); color: #f5f5f7;
  padding: calc(var(--nav-h) + 48px) 22px 96px;
}
.hero__glow {
  position: absolute; left: 50%; top: 40%; width: min(1100px, 160vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(84, 108, 150, .42), rgba(30, 37, 48, .32) 45%, transparent 72%);
  animation: glow 9s ease-in-out infinite alternate;
}
.hero__content { position: relative; max-width: 980px; will-change: transform, opacity; }
.hero__mark { width: clamp(96px, min(17vw, 19vh), 196px); height: auto; margin: 0 auto clamp(22px, 4vh, 40px); overflow: visible; }
.draw {
  fill-opacity: 0; stroke: #e8e8ed; stroke-width: 1.4; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease-out) .15s forwards, fill-in .8s ease 1s forwards;
}
.draw--late { animation-delay: .55s, 1.15s; }
.hero__eyebrow {
  font-family: var(--font-brand); font-weight: 500; font-size: 13px; letter-spacing: .34em;
  color: var(--silver); margin: 0 0 16px; padding-left: .34em;
}
.hero__title {
  margin: 0; font-size: clamp(46px, min(9.2vw, 12.5vh), 108px); line-height: 1.02; letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 35%, #a9afba 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.hero__lead {
  max-width: 640px; margin: 24px auto 0; color: var(--gray-dark);
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; font-weight: 500; letter-spacing: -.005em;
}
.hero__actions { margin-top: 36px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; width: 24px; height: 38px; transform: translateX(-50%);
  border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 14px;
  opacity: 0; animation: fade 1s ease 2s forwards;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scroll-dot 1.8s ease-in-out infinite;
}
.fade-in { opacity: 0; transform: translateY(16px); animation: fade-up 1s var(--ease-out) var(--d, 0s) forwards; }

/* ---------- Manifiesto ---------- */
.manifesto { position: relative; height: 230vh; background: var(--black); }
.manifesto__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center; padding: 0 22px;
}
.manifesto__text {
  max-width: 980px; margin: 0; color: #f5f5f7;
  font-size: clamp(32px, 5.4vw, 66px); line-height: 1.12; font-weight: 700; letter-spacing: -.03em;
}
.js .manifesto .w { opacity: .16; transition: opacity .35s linear; }
.js .manifesto .w.on { opacity: 1; }

/* ---------- Secciones ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section--light { background: var(--light); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--dark { background: var(--black); color: #f5f5f7; }
.section--navy { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%); color: #f5f5f7; }

.section__head { max-width: 860px; margin-bottom: clamp(44px, 6vw, 76px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--slate); }
.eyebrow--silver { color: var(--silver); }
.section__title { margin: 0; font-size: clamp(38px, 6vw, 66px); line-height: 1.06; letter-spacing: -.032em; }
.section__title--xl { font-size: clamp(46px, 8.4vw, 96px); line-height: 1.02; }
.section__lead {
  max-width: 700px; margin: 22px auto 0; color: var(--gray-dark);
  font-size: clamp(19px, 2.1vw, 24px); line-height: 1.4; font-weight: 500;
}
.muted { color: var(--gray); }

.titanium {
  background: linear-gradient(100deg, #f5f5f7 0%, #a3a8b2 30%, #eef0f4 52%, #8a93a3 78%, #f5f5f7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}

/* Aparición al hacer scroll (solo con JS activo) */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Bento de soluciones ---------- */
.bento {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "soft soft agent auto"
    "integ cons agent cloud"
    "data data hw hw";
}
.tile {
  position: relative; overflow: hidden; min-height: 270px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; border-radius: var(--radius); background: var(--white);
  transition: box-shadow .5s var(--ease-out);
}
.tile:hover { box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .22); }
.tile h3 { margin: 16px 0 8px; font-size: 26px; line-height: 1.12; letter-spacing: -.022em; }
.tile p { margin: 0; color: var(--gray-2); font-size: 17px; line-height: 1.45; }
.tile__icon {
  width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.tags li { padding: 5px 12px; border-radius: 980px; background: var(--light); color: var(--ink-2); font-size: 13px; }

.tile--soft { grid-area: soft; }
.tile--agent { grid-area: agent; }
.tile--auto { grid-area: auto; }
.tile--integ { grid-area: integ; }
.tile--cons { grid-area: cons; }
.tile--cloud { grid-area: cloud; }
.tile--data { grid-area: data; }
.tile--hw { grid-area: hw; }

.tile--soft, .tile--data, .tile--hw {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
}
.tile--soft .tile__text, .tile--data .tile__text, .tile--hw .tile__text { align-self: end; }

.code {
  align-self: center; background: var(--ink); color: #f5f5f7; border-radius: 16px;
  padding: 14px 18px 20px; box-shadow: 0 24px 48px -22px rgba(0, 0, 0, .5);
  transform: rotate(-1.2deg); transition: transform .8s var(--ease-out);
}
.tile--soft:hover .code { transform: rotate(0) translateY(-4px); }
.code__bar i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #3a3a3c; }
.code pre { margin: 12px 0 0; font: 12.5px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
.code .k { color: #ff7ab2; }
.code .f { color: #6bdfff; }
.code .b { color: #d9c97c; }

.tile--dark { background: #000; color: #f5f5f7; }
.tile--dark p { color: var(--gray-dark); }
.tile--dark .tile__icon { stroke: #f5f5f7; }
.tile--agent { min-height: 560px; background: radial-gradient(120% 80% at 50% 0%, #1b2433 0%, #000 60%); }
.orb { position: absolute; top: 76px; left: 50%; width: 150px; height: 150px; margin-left: -75px; }
.orb i { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.orb i:nth-child(1) {
  inset: 0;
  background: radial-gradient(circle at 34% 28%, #eef1f7 0%, #a9bbdf 14%, #4b6fc0 40%, #182a55 72%, #060b17 100%);
  box-shadow: 0 0 70px 6px rgba(75, 111, 192, .38);
  animation: breathe 5s ease-in-out infinite;
}
.orb i:nth-child(2), .orb i:nth-child(3) {
  inset: -26px; border: 1px solid rgba(169, 187, 223, .35);
  animation: ring 4.4s ease-out infinite;
}
.orb i:nth-child(3) { animation-delay: 2.2s; }

.dots {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 0; align-content: center;
  min-height: 170px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.dots i { justify-self: center; width: 6px; height: 6px; border-radius: 50%; background: #d2d2d7; }
.dots i.hot { position: relative; background: var(--blue); }
.dots i.hot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; background: rgba(0, 113, 227, .28);
  animation: ping 2.6s ease-out var(--dl, 0s) infinite;
}

.hw { width: 86%; justify-self: center; align-self: center; }
.hw__screen {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(160deg, #2a3342 0%, var(--navy-deep) 100%);
  border: 7px solid var(--ink); border-bottom-width: 9px; border-radius: 12px 12px 0 0;
}
.hw__screen svg { width: 34%; height: 34%; }
.hw__base {
  height: 11px; margin: 0 -9%;
  background: linear-gradient(180deg, #e3e3e8 0%, #a1a1a6 100%);
  border-radius: 0 0 14px 14px;
}

/* ---------- Agentes ---------- */
.agents { overflow: hidden; }
.window {
  position: relative; max-width: 780px; margin: 0 auto; overflow: hidden;
  background: linear-gradient(180deg, #1c1c1e 0%, #111113 100%);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px;
  box-shadow: 0 50px 140px -50px rgba(84, 116, 180, .55);
}
.window__bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3c; }
.window__title { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--gray-dark); }
.window__badge {
  margin-left: auto; padding: 3px 10px; border-radius: 980px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .14); color: var(--gray-dark); font-size: 11px;
}
.chat { display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 76px; }
.msg { max-width: 78%; padding: 12px 17px; border-radius: 20px; font-size: 16px; line-height: 1.42; }
.msg strong { font-weight: 600; }
.msg--user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg--agent { align-self: flex-start; background: #2c2c2e; color: #f5f5f7; border-bottom-left-radius: 6px; }
.tool { align-self: flex-start; display: flex; align-items: center; gap: 9px; padding-left: 6px; font-size: 13px; color: #8e8e93; }
.tool__dot { position: relative; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #636366; flex: none; }
.tool__dot::after {
  content: ""; position: absolute; left: 4.2px; top: 1.6px; width: 3.5px; height: 7px;
  border: solid #000; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: 0;
}
.js .tool.show:not(.done) .tool__dot { border-top-color: #f5f5f7; animation: spin .8s linear infinite; }
.tool.done .tool__dot { background: #30d158; border-color: #30d158; }
.tool.done .tool__dot::after { opacity: 1; }
.js .chat [data-seq] { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .chat [data-seq].show { opacity: 1; transform: none; }
.window__replay {
  position: absolute; right: 18px; bottom: 18px; padding: 7px 15px; border: 0; border-radius: 980px;
  background: rgba(255, 255, 255, .1); color: #f5f5f7; font: inherit; font-size: 13px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .4s, background-color .2s;
}
.window__replay:hover { background: rgba(255, 255, 255, .18); }
.window.is-done .window__replay { opacity: 1; pointer-events: auto; }

.trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  max-width: 1000px; margin: 88px auto 0;
}
.trio__item { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.trio__item h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.015em; }
.trio__item p { margin: 0; color: var(--gray-dark); }

/* ---------- Datos (escena con scroll fijo) ---------- */
.pipeline__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pipeline__visual { position: sticky; top: calc(50vh - 240px); height: 480px; order: 2; }
.pipeline__steps { order: 1; list-style: none; margin: 0; padding: 0; }
.pstep {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  transition: opacity .5s;
}
.pstep:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 80px; }
.js .pstep { opacity: .25; }
.js .pstep.is-active { opacity: 1; }
.pstep__num { font-family: var(--font-brand); font-size: 15px; font-weight: 600; color: var(--gray); letter-spacing: .08em; }
.pstep h3 { margin: 8px 0 12px; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; }
.pstep p { margin: 0; max-width: 430px; color: var(--gray-2); font-size: 19px; line-height: 1.45; }

.stage {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: grid; place-items: center; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--light) 60%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.doc {
  position: relative; width: 56%; aspect-ratio: .76; padding: 22px 20px; overflow: hidden;
  background: #fff; border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04);
  transform: rotate(-3deg); transition: transform .9s var(--ease-out), opacity .9s var(--ease-out);
}
.doc__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: 12px; }
.doc__head span { color: var(--gray); }
.doc__line {
  display: block; height: 8px; margin: 10px 0; border-radius: 4px; background: #e8e8ed;
  transition: background-color .6s, box-shadow .6s;
}
.w25 { width: 25%; } .w30 { width: 30%; } .w60 { width: 60%; } .w70 { width: 70%; }
.w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.doc__table { margin: 18px 0; padding: 8px 0; border-top: 1px solid #e8e8ed; border-bottom: 1px solid #e8e8ed; }
.doc__total { display: flex; justify-content: space-between; gap: 24px; }
.doc__total .doc__line { flex: none; }
.doc__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 70px; opacity: 0; transform: translateY(-80px);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 113, 227, .14) 70%, rgba(0, 113, 227, .75) 100%);
}
.card {
  position: absolute; opacity: 0; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .35);
  transition: transform .9s var(--ease-out), opacity .9s var(--ease-out);
}
.json { right: 5%; top: 50%; width: 60%; background: var(--ink); color: #f5f5f7; transform: translate(40px, -50%) scale(.96); }
.json pre { margin: 0; font: 12.5px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.json .k { color: #6bdfff; }
.json .s { color: #ff8170; }
.json .n { color: #d9c97c; }
.answer { left: 7%; right: 7%; bottom: 7%; background: #fff; transform: translateY(30px); }
.answer__q { margin: 0 0 10px; padding: 9px 14px; display: inline-block; border-radius: 16px 16px 16px 4px; background: var(--light); font-size: 14px; color: var(--ink-2); }
.answer__a { margin: 0; font-size: 16px; line-height: 1.45; }
.answer__src { margin: 10px 0 0; font-size: 12px; color: var(--gray); }
.answer__src span { margin-right: 6px; padding: 2px 8px; border-radius: 980px; background: #e8f1fd; color: var(--link-light); font-weight: 600; }

/* Estados de la escena */
[data-step="1"] .doc { transform: rotate(0); }
[data-step="1"] .doc__scan { opacity: 1; animation: scan 2.2s ease-in-out infinite; }
[data-step="1"] .hl, [data-step="2"] .hl { background: #cfe2fb; box-shadow: 0 0 0 3px rgba(0, 113, 227, .28); }
[data-step="2"] .doc { transform: translateX(-30%) scale(.84); }
[data-step="2"] .json { opacity: 1; transform: translate(0, -50%); }
[data-step="3"] .doc { transform: translate(-34%, -16%) scale(.72); opacity: .3; }
[data-step="3"] .json { opacity: .45; transform: translate(4%, -88%) scale(.84); }
[data-step="3"] .answer { opacity: 1; transform: none; }

/* ---------- Sector público ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 840px; margin: 0 auto 72px; padding: 0; list-style: none; }
.chips li {
  padding: 10px 18px; border-radius: 980px; font-size: 15px; color: #e8e8ed;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16);
}
.gov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gov__item { padding: 32px 30px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.gov__k {
  display: block; margin-bottom: 10px; font-size: 30px; font-weight: 700; letter-spacing: -.025em;
  background: linear-gradient(180deg, #fff 0%, var(--silver) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gov__item p { margin: 0; color: var(--gray-dark); }
.gov__note { margin: 72px 0 0; text-align: center; font-size: clamp(21px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.018em; }

/* ---------- Cómo trabajamos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { padding: 32px 28px 36px; border-radius: 24px; background: var(--white); }
.step__num {
  display: block; margin-bottom: 28px; font-family: var(--font-brand); font-size: 46px; font-weight: 600; line-height: 1;
  background: linear-gradient(180deg, var(--navy) 0%, #8a93a3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.018em; }
.step p { margin: 0; color: var(--gray-2); font-size: 16px; line-height: 1.45; }

/* ---------- Empresa ---------- */
.empresa__mark { width: 66px; height: 52px; margin: 0 auto 28px; --mark-a: var(--ink); --mark-b: #8a8f99; --mark-c: #6e737d; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--gray-2); }

/* ---------- Contacto ---------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(110px, 14vw, 190px) 0; background: var(--black); color: #f5f5f7;
}
.contact::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: min(1200px, 180vw); aspect-ratio: 1;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(84, 108, 150, .35), transparent 70%);
}
.contact .container { position: relative; }
.contact__title { margin: 0; font-size: clamp(68px, 13vw, 168px); line-height: 1; letter-spacing: -.05em; padding-bottom: .06em; }
.contact__title {
  background: linear-gradient(180deg, #fff 30%, #9aa1ad 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__lead { max-width: 560px; margin: 22px auto 44px; color: var(--gray-dark); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; font-weight: 500; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.contact__info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 880px; margin: 80px auto 0; padding: 32px 0 0; list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.contact__info li { font-size: 17px; }
.contact__info span { display: block; margin-bottom: 6px; color: var(--gray); font-size: 13px; }
.contact__info a { color: var(--link-dark); text-decoration: none; }
.contact__info a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { padding: 20px 0 26px; background: var(--light); color: var(--gray-2); font-size: 12px; line-height: 1.45; letter-spacing: -.005em; }
.footer .container { max-width: 1024px; }
.footer__note { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.footer__cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.footer h4 { margin: 0 0 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 16px; }
.footer__bottom p { margin: 0; }
.sep { margin: 0 9px; color: var(--line); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- Animaciones ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes glow { from { opacity: .75; transform: translate(-50%, -50%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes ring { from { transform: scale(.82); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

/* Animaciones en pausa mientras su sección no está en pantalla (ahorra batería) */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
@keyframes scan { 0% { transform: translateY(-80px); } 100% { transform: translateY(420px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "soft soft"
      "agent auto"
      "agent integ"
      "cons cloud"
      "data data"
      "hw hw";
  }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 833px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: flex-start; gap: 0; padding: 18px 44px 40px;
    background: #000;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a { display: block; padding: 9px 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; opacity: 1; }
  .nav__links .nav__cta-item { margin-top: 18px; }
  .nav__links .nav__cta { display: inline-block; padding: 10px 22px; font-size: 17px; font-weight: 500; }

  .pipeline__grid { grid-template-columns: 1fr; gap: 0; }
  .pipeline__visual { order: 1; top: var(--nav-h); height: 384px; padding: 12px 0 12px; background: var(--white); z-index: 2; }
  .pipeline__steps { order: 2; }
  .pstep, .pstep:first-child { min-height: 62vh; justify-content: center; padding-top: 0; }
  .pstep p { font-size: 17px; }
  .gov { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
}

@media (max-width: 734px) {
  body { font-size: 17px; }
  .wordmark { font-size: 11.5px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "soft" "agent" "auto" "integ" "cons" "cloud" "data" "hw"; }
  .tile { min-height: 0; padding: 28px 24px; }
  .tile--soft, .tile--data, .tile--hw { grid-template-columns: 1fr; }
  .tile--soft .code { order: -1; }
  .tile--agent { min-height: 460px; }
  .hw { width: 74%; order: -1; }
  .dots { order: -1; min-height: 130px; }
  .steps { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
  .contact__info { grid-template-columns: 1fr; text-align: center; }
  .contact__actions .btn { width: 100%; max-width: 360px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 88%; font-size: 15px; }
  .chat { padding: 22px 16px 70px; }
  .window__badge { display: none; }
  .doc { width: 62%; padding: 16px 14px; }
  .json { width: 72%; }
  .json pre { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .manifesto { height: auto; }
  .manifesto__sticky { position: static; height: auto; padding: 120px 22px; }
  .js .manifesto .w { opacity: 1; }
}

/* ---------- Páginas secundarias ---------- */
.page-legal { background: var(--white); }
.legal__back { font-size: 14px; }
.legal { padding: calc(var(--nav-h) + 72px) 0 120px; background: var(--white); color: var(--ink); }
.legal h1 { margin: 0; font-size: clamp(36px, 5.4vw, 56px); line-height: 1.07; letter-spacing: -.03em; }
.legal__meta { margin: 14px 0 56px; color: var(--gray); }
.legal h2 { margin: 48px 0 12px; font-size: 24px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--link-light); }

.notfound {
  min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center;
  gap: 4px; padding: 40px 22px; text-align: center; background: var(--black); color: #f5f5f7;
}
.notfound img { width: 96px; height: auto; margin-bottom: 28px; }
.notfound h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); letter-spacing: -.03em; }
.notfound p { margin: 10px 0 30px; color: var(--gray-dark); font-size: 19px; }
