/* Mödul · rediseño dirigido por Anime.js
   Un solo mundo navy. El movimiento vive en app.js; aquí solo hay estados
   iniciales, layout y tokens. Todo lo animado usa transform y opacity. */

/* ------------------------------------------------------------------ tokens */
:root {
  --navy: #133B60; --navy-deep: #0D2A46; --navy-soft: #1C4C78;
  --claro: #F8F9FB; --claro-2: #EEF1F5;
  --ink: #F8F9FB; --ink-soft: #B8C4D0; --line: rgba(248, 249, 251, 0.14);
  --acento: #E87D2F; --acento-texto: #9A3412;
  --paper: #FFFFFF; --paper-line: #DFE4EA; --gris-texto: #5B6B7C;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-text: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 1240px;
  --nav-h: 72px;
  --pad: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  --r-sm: 8px; --r-md: 12px; --r-lg: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy-deep); color: var(--ink);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
::selection { background: var(--acento); color: var(--navy-deep); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* -------------------------------------------------------------- typography */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.display--xl { font-size: clamp(2.3rem, 0.9rem + 3.7vw, 4.3rem); }
.display--lg { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem); }
.display--md { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem); }
.lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: var(--ink-soft); max-width: 44ch; text-wrap: pretty; }
.eyebrow {
  font: 500 0.78rem/1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); display: flex; align-items: center; gap: 0.8rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--acento); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: var(--r-sm); border: 0;
  font: 700 1rem/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 180ms, box-shadow 180ms;
  will-change: transform;
}
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.05rem; }
.btn--primary { background: var(--acento); color: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(5, 18, 34, 0.7); }
.btn--primary:hover { background: #EB8940; box-shadow: 0 14px 30px -12px rgba(5, 18, 34, 0.8); }
.btn--navy { background: var(--claro); color: var(--navy-deep); }
.btn--navy:hover { background: #fff; }
.link {
  color: inherit; font-weight: 500; background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--acento); text-decoration-thickness: 1.5px; text-underline-offset: 0.26em;
}
.link:hover { text-decoration-thickness: 2.5px; }

/* --------------------------------------------------------------- progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--acento); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* --------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-inline: var(--gutter);
  background: rgba(13, 42, 70, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 var(--line);
  will-change: transform, opacity;
}
.js .nav:not([data-ready]) { opacity: 0; }
.nav__brand { display: block; line-height: 0; border-radius: var(--r-sm); }
.nav__brand img { height: 40px; width: auto; }
.nav__links ul { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav__link {
  position: relative; display: inline-block; padding: 0.5rem 0; text-decoration: none;
  font: 500 0.875rem/1 var(--font-text); letter-spacing: 0.02em; opacity: 0.86;
  transition: opacity 200ms var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible { opacity: 1; }
.nav__link--cta { color: var(--acento); font-weight: 700; opacity: 1; }
.nav__line { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; overflow: visible; pointer-events: none; }
.nav__line line { stroke: currentColor; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.nav__cta, .nav__burger { display: none; }

.sheet {
  position: fixed; inset: 0; z-index: 70; background: rgba(13, 42, 70, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: grid; align-content: center; gap: 2rem; padding: 6rem var(--gutter) 3rem;
}
.sheet[hidden] { display: none; }
.sheet ul { display: grid; gap: 0.5rem; }
.sheet a { display: inline-block; text-decoration: none; padding: 0.2rem 0; font: 700 clamp(1.8rem, 1.2rem + 3vw, 3rem)/1.1 var(--font-display); letter-spacing: -0.025em; }
.sheet .sheet__cta { color: var(--acento); }
.sheet p a { font: 500 0.95rem/1.4 var(--font-text); color: var(--ink-soft); text-decoration: underline; }
body.sheet-open { overflow: hidden; }

/* ---------------------------------------------------------- reveal states */
.js [data-reveal], .js [data-reveal-row] .pain__hoy, .js [data-reveal-row] .svc__hoy { opacity: 0; }
.js [data-reveal-group] > * { opacity: 0; }
.js [data-split] { visibility: hidden; }
.js .pain__mod, .js .svc__mod { opacity: 0; }
.js .pain__arrow path { stroke-dashoffset: 1; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 5rem; overflow: clip; background: rgba(19, 59, 96, 0.55); }
.hero__grid {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 70% at 72% 50%, #000 15%, transparent 100%);
          mask-image: radial-gradient(60% 70% at 72% 50%, #000 15%, transparent 100%);
}
.hero__grid path { fill: none; stroke: var(--claro); stroke-opacity: 0.2; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: clamp(1.1rem, 2.2vh, 1.7rem); justify-items: start; }
.chips-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips-row li { padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0.9rem; color: var(--ink); }
.hero__actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.hero__stack { position: relative; height: clamp(24rem, 52vw, 34rem); }
.hero__plane { position: absolute; inset: 0; will-change: transform; }
.hero__laptop { position: absolute; left: 0; top: 6%; width: 74%; }
.hero__phone { position: absolute; right: 0; top: 30%; width: 44%; }
.hero__pos { position: absolute; left: 22%; bottom: 0; width: 46%; }
.hero__cue {
  position: absolute; left: var(--gutter); bottom: 1.6rem; display: flex; align-items: center; gap: 0.8rem;
  font: 500 0.72rem/1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
}
.hero__cue i { width: 1px; height: 2.4rem; background: linear-gradient(var(--acento), transparent); transform-origin: 50% 0; }

/* --------------------------------------------------------------- devices */
.device {
  background: #0B2340; color: var(--claro); border-radius: var(--r-lg); padding: 10px;
  box-shadow: 0 30px 60px -24px rgba(5, 18, 34, 0.85), 0 2px 6px rgba(5, 18, 34, 0.5), inset 0 1px 0 rgba(248, 249, 251, 0.1);
}
.screen { background: var(--claro); color: var(--navy); border-radius: 14px; overflow: hidden; font-size: 0.8rem; line-height: 1.35; }
.screen__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.9rem; background: var(--navy); color: var(--claro); font-weight: 700; font-size: 0.78rem; }
.screen__bar small { font-weight: 500; opacity: 0.75; }
.screen__body { padding: 0.75rem 0.85rem; display: grid; gap: 0.5rem; }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
.prod { background: #E6EEF6; border-radius: 8px; padding: 0.5rem; display: grid; gap: 0.15rem; }
.prod i { display: block; aspect-ratio: 16 / 9; border-radius: 6px; background: #CBD8E6; margin-bottom: 0.25rem; }
.prod small { font-size: 0.66rem; color: var(--gris-texto); }
.orow { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--paper-line); font-variant-numeric: tabular-nums; }
.orow:last-child { border-bottom: 0; }
.orow b { font-weight: 700; text-align: right; }
.orow--tot { font-weight: 700; border-top: 1px solid var(--navy); border-bottom: 0; margin-top: 0.2rem; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { padding: 0.25rem 0.6rem; border-radius: 999px; background: #E6EEF6; font-size: 0.7rem; font-weight: 500; }
.chip--on { background: var(--navy); color: var(--claro); }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.pay span { padding: 0.55rem 0.3rem; border: 1px solid var(--paper-line); border-radius: 8px; text-align: center; font-size: 0.7rem; font-weight: 500; }
.pay span.is-on { border-color: var(--navy); background: var(--navy); color: var(--claro); }
.screen .cta { padding: 0.6rem; border-radius: 8px; background: var(--acento); color: var(--navy-deep); font-weight: 700; text-align: center; font-size: 0.8rem; }
.mesas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.mesa { padding: 0.4rem; aspect-ratio: 1 / 0.82; border-radius: 8px; display: grid; align-content: center; justify-items: center; gap: 2px; background: #E6EEF6; font-weight: 700; font-size: 0.9rem; }
.mesa small { font-weight: 500; font-size: 0.64rem; color: var(--gris-texto); }
.mesa--busy { background: var(--navy); color: var(--claro); }
.mesa--busy small { color: #FFD3B0; }
.mesa--pay { background: #FDE7D4; color: var(--navy-deep); }
.mesa--pay small { color: var(--acento-texto); }
.device__caption { margin-top: 0.8rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* --------------------------------------------------------- paper pieces */
.piece {
  position: absolute; left: var(--x); top: var(--y); width: max-content; max-width: min(19rem, 60%);
  padding: 0.7rem 0.9rem; background: var(--paper); color: var(--navy); border-radius: var(--r-sm);
  font: 400 0.92rem/1.4 var(--font-text); rotate: var(--rot, 0deg);
  box-shadow: 0 12px 26px -10px rgba(5, 18, 34, 0.6), 0 1px 2px rgba(5, 18, 34, 0.2);
  will-change: transform, opacity;
}
.piece--static { position: relative; left: auto; top: auto; rotate: -1.5deg; margin-top: 0.9rem; will-change: auto; }
.piece--in { border-top-left-radius: 2px; }
.piece--out { background: #E3F6D4; border-top-right-radius: 2px; }
.piece time { display: block; margin-top: 0.25rem; font-size: 0.72rem; color: var(--gris-texto); text-align: right; }
.piece--note { background: #FFF1A8; border-radius: 2px; font-weight: 500; font-style: italic; padding: 1rem 1rem 1.2rem; }
.piece--scrap { background: repeating-linear-gradient(180deg, var(--paper) 0 23px, #D7E3F0 23px 24px); background-color: var(--paper); border-radius: 2px; border-left: 1px solid #F4B7B7; padding: 0.5rem 0.8rem 0.5rem 1.1rem; line-height: 24px; font-weight: 500; }

/* ------------------------------------------------------------------ story */
.story { position: relative; height: 420svh; }
.story__stage {
  position: sticky; top: 0; height: 100svh; padding: calc(var(--nav-h) + 1rem) var(--pad) 2rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  overflow: clip;
}
.story__chaos { position: relative; height: min(54svh, 30rem); align-self: start; margin-top: 1rem; grid-column: 1; grid-row: 1; }
.story__device { grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 26rem); }
.story__copy {
  position: absolute; left: var(--pad); bottom: clamp(1.5rem, 6vh, 4rem); max-width: min(34rem, 46vw);
  display: grid; gap: 1rem; will-change: transform, opacity; pointer-events: none;
}
.js .story__copy--b { opacity: 0; }
.js .story .orow { opacity: 0; }
.reduced .story { height: auto; }
.reduced .story__stage { position: relative; height: auto; min-height: 100svh; }
.reduced .story__chaos, .reduced #copyA { display: none; }
.reduced .story__copy--b { position: relative; opacity: 1; left: auto; bottom: auto; grid-column: 1; grid-row: 1; }
.reduced .story .orow { opacity: 1; }

/* ------------------------------------------------------------------ pains */
.pains { padding-block: clamp(6rem, 14vh, 11rem); max-width: none; padding-inline: var(--pad); }
.pains__list { margin-top: 3rem; display: grid; gap: clamp(3rem, 8vh, 6rem); }
.pain { display: grid; grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.pain__q { font: 600 clamp(1.3rem, 1rem + 1.2vw, 2rem)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink-soft); }
.pain__arrow { width: 5rem; fill: none; stroke: var(--acento); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pain__arrow path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pain__mod { display: grid; gap: 1rem; }
.pain__mod > p { font-size: 1.1rem; max-width: 38ch; }
.pain__mod .screen { max-width: 22rem; box-shadow: 0 24px 48px -20px rgba(5, 18, 34, 0.8); }

/* --------------------------------------------------------------- services */
.services { padding-block: clamp(5rem, 12vh, 9rem); background: linear-gradient(rgba(19, 59, 96, 0), rgba(19, 59, 96, 0.6) 14%, rgba(19, 59, 96, 0.6) 86%, rgba(19, 59, 96, 0)); max-width: none; padding-inline: var(--pad); }
.services__head { display: grid; gap: 1.4rem; justify-items: start; margin-bottom: clamp(3rem, 8vh, 5rem); }
.services__head .display { max-width: 18ch; }
.svc-list { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1rem, 4vw, 4rem); padding-block: clamp(1.6rem, 4vh, 2.6rem); border-bottom: 1px solid var(--line); align-items: start; }
.svc__hoy { font: 500 1.1rem/1.4 var(--font-text); color: var(--ink-soft); text-wrap: pretty; }
.svc__mod { display: grid; gap: 0.6rem; }
.svc__mod h3 { font: 700 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.svc__mod p { color: var(--ink-soft); max-width: 52ch; }
.svc__mod small { font-size: 0.85rem; color: var(--ink-soft); }
.svc__mod small b { color: var(--ink); }

/* --------------------------------------------------------------- products */
.prods { position: relative; }
.prods__stage { position: sticky; top: 0; height: 100svh; overflow: clip; display: flex; align-items: center; }
.prods__rail { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.rail__lead { flex: none; width: min(30rem, 78vw); display: grid; gap: 1.4rem; }
.rail__end { flex: none; width: min(22rem, 78vw); display: grid; gap: 1rem; justify-items: start; }
.rail__end h3 { font: 700 1.6rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.rail__end p { color: var(--ink-soft); }
.pcard {
  flex: none; width: clamp(20rem, 30vw, 27rem); max-height: calc(100svh - var(--nav-h) - 3rem); overflow: auto;
  background: var(--paper); color: var(--navy); border-radius: var(--r-md); padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: 0 30px 60px -26px rgba(5, 18, 34, 0.8), 0 2px 6px rgba(5, 18, 34, 0.18);
}
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: 0.78rem; color: var(--gris-texto); }
.pcard__status { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; padding: 0.3rem 0.55rem; border-radius: 4px; background: #E6EEF6; color: var(--navy); }
.pcard__status.is-live { background: #DFF3E4; color: #1B5E3A; }
.pcard__status.is-soon { background: #FDE7D4; color: var(--acento-texto); }
.pcard h3 { font: 700 1.55rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.pcard__aud { margin-top: 0.25rem; font-size: 0.88rem; color: var(--gris-texto); }
.pcard__desc { margin-top: 0.9rem; font-size: 0.95rem; line-height: 1.55; text-wrap: pretty; }
.pcard__meta { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.82rem; color: var(--gris-texto); }
.pcard__meta li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--acento); margin-right: 0.4rem; vertical-align: 2px; }
.pcard__feats { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--paper-line); display: grid; gap: 0.35rem; font-size: 0.88rem; }
.pcard__feats[hidden] { display: none; }
.pcard__actions { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.6rem 1.2rem; flex-wrap: wrap; }
.pcard .btn--navy { background: var(--navy); color: var(--claro); }
.pcard .link { color: var(--navy); }

/* ------------------------------------------------------------------- demo */
.demo { position: relative; height: 380svh; background: linear-gradient(rgba(19, 59, 96, 0), rgba(19, 59, 96, 0.6) 8%, rgba(19, 59, 96, 0.6) 92%, rgba(19, 59, 96, 0)); }
.demo__stage {
  position: sticky; top: 0; height: 100svh; padding: calc(var(--nav-h) + 1rem) var(--gutter) 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center;
  max-width: var(--maxw); margin-inline: auto; overflow: clip;
}
.demo__text { display: grid; gap: 1.1rem; justify-items: start; }
.facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.facts li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--acento); margin-right: 0.5rem; vertical-align: 2px; }
.steps--demo { display: grid; gap: 0.2rem; width: 100%; position: relative; padding-left: 1.4rem; }
.steps--demo::before { content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--line); }
.steps--demo::after { content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--acento); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.steps--demo li { padding: 0.5rem 0; opacity: 0.4; transition: opacity 300ms; }
.steps--demo li.is-on { opacity: 1; }
.steps--demo h3 { font: 700 1.2rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.steps--demo p { display: none; margin-top: 0.3rem; color: var(--ink-soft); max-width: 46ch; }
.steps--demo li.is-on p { display: block; }
.demo__actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.demo__phone { justify-self: center; width: min(100%, 20rem); }
.phone { border-radius: 34px; padding: 12px; }
.phone__screens { display: grid; }
.phone__screens > .screen { grid-area: 1 / 1; opacity: 0; min-height: 26rem; align-content: start; display: block; }
.phone__screens > .screen.is-on { opacity: 1; }
.phone__screens .screen__body { padding: 1rem; gap: 0.7rem; }
.phone__screens .cta { margin-top: 0.4rem; }

/* ---------------------------------------------------------------- process */
.process { padding-block: clamp(6rem, 14vh, 11rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(3rem, 8vw, 8rem); max-width: none; padding-inline: var(--pad); }
.process__col { display: grid; gap: 1.4rem; align-content: start; justify-items: start; }
.steps--flow { position: relative; display: grid; gap: 0; margin-top: 1.5rem; padding-left: 2rem; counter-reset: s; width: 100%; }
.steps--flow::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--line); }
.steps--flow::after { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--acento); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.steps--flow li { position: relative; display: grid; gap: 0.2rem; padding-block: 1.1rem; opacity: 0.45; transition: opacity 300ms; }
.steps--flow li.is-on { opacity: 1; }
.steps--flow li::before { content: ""; position: absolute; left: -2rem; top: 1.55rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--navy-deep); border: 1px solid var(--ink-soft); transition: background-color 300ms, border-color 300ms; }
.steps--flow li.is-on::before { background: var(--acento); border-color: var(--acento); }
.steps--flow b { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.steps--flow span { color: var(--ink-soft); max-width: 42ch; }
.who { display: grid; width: 100%; }
.who li { display: grid; gap: 0.2rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.who li:last-child { border-bottom: 1px solid var(--line); }
.who b { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.who span { color: var(--ink-soft); }
.pro { margin-top: 1rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(28, 76, 120, 0.35); color: var(--ink-soft); }
.pro b { color: var(--ink); }
.pro ul { margin-top: 0.7rem; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.pro li::before { content: "—"; color: var(--acento); margin-right: 0.5rem; }

/* ------------------------------------------------------------------ close */
.close { background: linear-gradient(rgba(19, 59, 96, 0), rgba(19, 59, 96, 0.6) 20%); padding-top: clamp(6rem, 14vh, 11rem); }
.close__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.close__grid > div { display: grid; gap: 1.4rem; justify-items: start; }
.contact { display: grid; gap: 0.5rem; color: var(--ink-soft); }
.contact a { color: var(--ink); text-underline-offset: 0.22em; }
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-lg); background: var(--navy-deep); border: 1px solid var(--line); }
.form label { display: grid; gap: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.form small { color: var(--ink-soft); font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: rgba(248, 249, 251, 0.06); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0.85rem 0.9rem; min-height: 48px; width: 100%;
  transition: border-color 180ms, background-color 180ms;
}
.form select option { color: var(--navy-deep); }
.form textarea { min-height: 6rem; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(184, 196, 208, 0.7); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--acento); background: rgba(248, 249, 251, 0.1); }
.form__foot { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form__note { font-size: 0.85rem; color: var(--ink-soft); max-width: 24ch; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(4rem, 10vh, 7rem); padding-block: 2rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); }
.foot img { height: 34px; width: auto; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav__links ul { gap: 1.25rem; }
}

@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__brand img { height: 34px; }
  .nav__links { display: none; }
  .nav__cta { display: inline-flex; min-height: 40px; padding: 0 1.1rem; font-size: 0.92rem; margin-left: auto; }
  .nav__burger { display: inline-grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px; background: none; border: 0; cursor: pointer; }
  .nav__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transform-origin: 50% 50%; }

  .hero { padding-bottom: 4rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stack { height: 22rem; }
  .hero__cue { display: none; }

  .story { height: 380svh; }
  .story__stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding-bottom: 1rem; gap: 0.5rem; }
  .story__chaos { grid-column: 1; grid-row: 1; height: 100%; align-self: stretch; margin-top: 3.4rem; }
  .story__device { grid-column: 1; grid-row: 2; width: min(100%, 21rem); }
  .story .screen__body { padding: 0.5rem 0.75rem; gap: 0; }
  .story .orow { padding: 0.28rem 0; font-size: 0.74rem; }
  .story__copy { left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 0.6rem); bottom: auto; max-width: none; }
  .story__copy .display { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .story__copy .lede { font-size: 0.95rem; }
  .piece { max-width: 68%; font-size: 0.85rem; padding: 0.55rem 0.7rem; }
  .story__chaos .piece { left: calc(var(--x) * 0.55); }

  .pain { grid-template-columns: 1fr; gap: 1.2rem; }
  .pain__arrow { transform: rotate(90deg); width: 3rem; margin-left: 1rem; }
  .svc { grid-template-columns: 1fr; gap: 0.7rem; }

  .prods__stage { position: static; height: auto; display: block; padding-block: 5rem 4rem; }
  .prods__rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; -webkit-overflow-scrolling: touch; }
  .prods__rail > * { scroll-snap-align: start; }
  .pcard { max-height: none; width: min(20rem, 82vw); }

  .demo { height: 360svh; }
  .demo__stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 0.6rem; padding-top: calc(var(--nav-h) + 0.6rem); align-content: start; }
  .demo__text { gap: 0.5rem; }
  .demo__text .display { font-size: 1.35rem; }
  .demo__text .lede, .demo__text .facts, .demo__actions { display: none; }
  .demo__phone { grid-row: 2; width: min(100%, 15rem); align-self: start; }
  .phone__screens > .screen { min-height: 18rem; }
  .phone__screens .screen__body { padding: 0.7rem; gap: 0.45rem; }
  .steps--demo li { padding: 0.3rem 0; }
  .steps--demo h3 { font-size: 1.05rem; }
  .steps--demo p { font-size: 0.9rem; }

  .process { grid-template-columns: 1fr; }
  .close__grid { grid-template-columns: 1fr; }
}

@media (max-height: 640px) and (min-width: 861px) {
  .hero__stack { height: 26rem; }
  .story__copy .lede { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- estados extra */
html { scroll-behavior: smooth; }
.display :has(> .w) { padding-block: 0.12em; margin-block: -0.12em; }
.js .hero__stack .device { opacity: 0; }
.js .hero__cue i { transform: scaleY(0); }

/* Movimiento reducido: todo estático y visible, sin secciones ancladas. */
.reduced { scroll-behavior: auto; }
.reduced .demo { height: auto; }
.reduced .demo__stage { position: relative; height: auto; padding-block: 6rem 3rem; }
.reduced .steps--demo li { opacity: 1; }
.reduced .steps--demo p { display: block; }
.reduced .phone__screens > .screen { opacity: 1; grid-area: auto; margin-bottom: 0.8rem; }
.reduced .phone__screens { display: grid; gap: 0.8rem; }
.reduced .prods__stage { position: static; height: auto; display: block; padding-block: 5rem 4rem; }
.reduced .prods__rail { width: auto; overflow-x: auto; }
.reduced .steps--flow li { opacity: 1; }
.reduced .pain__arrow path { stroke-dashoffset: 0; }

/* ------------------------------------------------- formulario de descarga -- */
body.gate-open { overflow: hidden; }
.gate { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--navy-deep); }
.gate[open] { display: grid; place-items: center; }
.gate::backdrop { background: transparent; }
.gate__scrim { position: absolute; inset: 0; background: rgba(6, 20, 36, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gate__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  width: min(58rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); overflow: auto;
  background: var(--claro); border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(3, 12, 24, 0.9), 0 2px 8px rgba(3, 12, 24, 0.4);
  will-change: transform, opacity;
}
.gate__panel:focus { outline: none; }
.gate__x { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--navy); cursor: pointer; transition: background-color 180ms; }
.gate__x:hover { background: rgba(19, 59, 96, 0.08); }
.gate__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gate__aside { display: grid; align-content: start; gap: 1.2rem; padding: clamp(1.6rem, 4vw, 2.8rem); background: var(--navy); color: var(--ink); }
.gate__tag { font: 500 0.78rem/1 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.gate__aside .display { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); }
.gate__lede { color: var(--ink-soft); max-width: 34ch; }
.gate__trust { display: grid; gap: 0.8rem; margin-top: 0.6rem; }
.gate__trust li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; }
.gate__trust svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--acento); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gate__trust circle, .gate__trust path { stroke-dasharray: 1; }
.gate__main { padding: clamp(1.6rem, 4vw, 2.8rem); align-self: center; }
.gate form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font: 700 0.9rem/1.2 var(--font-text); color: var(--navy); }
.field input {
  font: 400 1rem/1.4 var(--font-text); color: var(--navy-deep); background: #fff; border: 1px solid #C9D3DE;
  border-radius: var(--r-sm); padding: 0.85rem 0.95rem; min-height: 52px; width: 100%;
  transition: border-color 180ms, box-shadow 180ms;
}
.field input::placeholder { color: #7A8896; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 59, 96, 0.16); }
.field.is-invalid input { border-color: #B42318; }
.field__err { min-height: 1.1em; font-size: 0.85rem; line-height: 1.3; color: #B42318; }
.gate__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate__error { padding: 0.8rem 0.95rem; border-radius: var(--r-sm); background: #FDECEA; color: #8A1C12; font-size: 0.92rem; }
.gate__error[hidden] { display: none; }
.gate__submit { width: 100%; gap: 0.6rem; }
.gate__submit:disabled { cursor: progress; opacity: 0.9; }
.gate__spinner { width: 20px; height: 20px; fill: none; stroke: var(--navy-deep); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 34 60; }
.gate__spinner[hidden] { display: none; }
.gate__fine { font-size: 0.82rem; line-height: 1.45; color: var(--gris-texto); }
.gate__done { display: grid; gap: 0.9rem; justify-items: start; }
.gate__done[hidden], .gate form[hidden] { display: none; }
.gate__check { width: 64px; height: 64px; fill: none; stroke: #1B7A47; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gate__check circle, .gate__check path { stroke-dasharray: 1; }
.gate__done h3 { font: 700 1.7rem/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--navy); }
.gate__done p { color: var(--navy-deep); }
.gate__done a, .gate__done .link { color: var(--navy); }

@media (max-width: 860px) {
  .gate[open] { place-items: end center; }
  .gate__panel { grid-template-columns: 1fr; width: 100%; max-height: 94svh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .gate__aside { padding: 1.4rem 1.25rem 1.2rem; gap: 0.7rem; }
  .gate__tag, .gate__trust { display: none; }
  .gate__aside .display { font-size: 1.5rem; padding-right: 2.2rem; }
  .gate__main { padding: 1.25rem 1.25rem 1.5rem; }
  .gate__x { color: var(--ink); }
}

/* ================================================================ efectos == */
main { position: relative; z-index: 1; }

/* Fondo vivo: aurora + constelación fijas detrás de todo. */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg__aurora { position: absolute; inset: -20%; will-change: transform; }
.bg__aurora i { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; will-change: transform; }
.bg__aurora i:nth-child(1) { left: -10%; top: -10%; background: radial-gradient(closest-side, rgba(60, 130, 200, 0.34), transparent); }
.bg__aurora i:nth-child(2) { right: -15%; top: 20%; background: radial-gradient(closest-side, rgba(28, 76, 120, 0.7), transparent); }
.bg__aurora i:nth-child(3) { left: 15%; bottom: -20%; background: radial-gradient(closest-side, rgba(232, 125, 47, 0.1), transparent); }

/* Titular: se descifra y luego se arma para glitch. */
.js [data-scramble] { visibility: hidden; }
.glitch { position: relative; }
.glitch__layer {
  position: absolute; inset: 0; display: block; pointer-events: none; opacity: 0;
  clip-path: inset(0 0 100% 0); font: inherit; letter-spacing: inherit; line-height: inherit; text-wrap: inherit;
  mix-blend-mode: screen; will-change: transform, opacity, clip-path;
}
.glitch__layer { padding: 0 !important; margin: 0 !important; }
.glitch__layer--a { color: #E87D2F; }
.glitch__layer--b { color: #6FB8FF; }

/* Máquina de escribir del hero. */
.tw { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.6rem; min-height: 1.6em; font: 500 clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem)/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.tw__prompt { color: var(--acento); font-weight: 700; }
.tw__lead { color: var(--ink-soft); }
.tw__text { color: var(--ink); }
.tw__caret { display: inline-block; width: 0.55ch; height: 1.15em; margin-left: -0.3rem; background: var(--acento); }

/* Forma que muta y órbitas detrás de las pantallas del hero. */
.hero__morph { position: absolute; left: 50%; top: 50%; width: min(46rem, 118%); aspect-ratio: 1; translate: -50% -50%; overflow: visible; pointer-events: none; }
#morphSpin { transform-origin: 200px 200px; }
#morphPath { fill: none; stroke: url(#morphGrad); stroke-width: 1.6; stroke-linejoin: round; opacity: 0.7; }
#orbitPath { fill: none; stroke: rgba(248, 249, 251, 0.16); stroke-width: 1; stroke-dasharray: 2 7; }
.orbit__dot circle { fill: var(--claro); }
.orbit__dot--hot circle { fill: var(--acento); }

/* Banda tipográfica que viaja con el scroll. */
.marquee { position: relative; overflow: clip; display: grid; gap: 0.3rem; padding-block: clamp(2.5rem, 8vh, 5rem); }
.marquee__row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__row span { padding-right: 1.5rem; font: 800 clamp(3rem, 1.4rem + 7vw, 8rem)/1 var(--font-display); letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px rgba(248, 249, 251, 0.34); }
.marquee__row--solid span { color: rgba(248, 249, 251, 0.07); -webkit-text-stroke: 0; }

/* Anillo que sigue al cursor. */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; width: 36px; height: 36px; border: 1px solid rgba(232, 125, 47, 0.75); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 200ms; will-change: transform; }
.cursor.is-on { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }
.reduced .glitch__layer, .reduced .cursor { display: none; }

@media (max-width: 860px) {
  .hero__morph { width: 130%; }
  .marquee__row span { -webkit-text-stroke-width: 0.8px; }
}

/* Modo ligero (se activa solo si el equipo no da los cuadros). */
.lite .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13, 42, 70, 0.94); }
.lite .sheet, .lite .gate__scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .bg__aurora { display: none; }
.lite2 .cursor { display: none; }

/* ------------------------------------------------------------ versiones ---- */
.demo__version { font-size: 0.88rem; color: var(--ink-soft); }
.demo__version[hidden] { display: none; }
.pcard__ver { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; margin-top: 0.9rem; padding: 0.6rem 0.8rem; border-radius: var(--r-sm); background: #EEF2F7; font-size: 0.85rem; }
.pcard__ver b { color: var(--navy); }
.pcard__ver span { color: var(--gris-texto); }
.pcard__hist { margin-top: 0.9rem; border-top: 1px solid var(--paper-line); padding-top: 0.8rem; font-size: 0.88rem; }
.pcard__hist summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.pcard__hist ol { display: grid; gap: 0.9rem; margin-top: 0.8rem; }
.hist__head { display: flex; align-items: baseline; gap: 0.6rem; }
.hist__head span { color: var(--gris-texto); font-size: 0.82rem; }
.hist__head em { font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 4px; background: #DFF3E4; color: #1B5E3A; }
.hist__notes { margin-top: 0.3rem; white-space: pre-line; color: var(--navy-deep); line-height: 1.5; }
.hist__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin-top: 0.4rem; }
.hist__foot small { color: var(--gris-texto); font-size: 0.74rem; }
