/* Inteltrack — sitio web
   Tipografías: Archivo Variable (títulos en ancho expandido) y JetBrains Mono (etiquetas y cifras). */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("../fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/jetbrains-mono-600.woff2") format("woff2"); }

:root {
  --navy-950: #050a15;
  --navy-900: #07142e;
  --navy-800: #0a2150;
  --navy: #0b2e66;
  --blue: #1546b8;
  --blue-600: #1b55d6;
  --blue-400: #4f8cff;
  --blue-100: #dbe6fb;
  --red: #e1252d;
  --red-400: #ff4d55;
  --green: #0e9a61;
  --paper: #edf1f7;
  --paper-2: #e2e8f1;
  --surface: #ffffff;
  --ink: #0a1730;
  --ink-2: #46526b;
  --ink-3: #7d879c;
  --line: rgba(10, 23, 48, .1);
  --line-2: rgba(10, 23, 48, .16);
  --d-bg: #060a13;
  --d-surface: #0c1322;
  --d-surface-2: #111a2e;
  --d-ink: #e9eef9;
  --d-ink-2: #9ba8c1;
  --d-ink-3: #6f7c95;
  --d-line: rgba(255, 255, 255, .09);
  --d-line-2: rgba(255, 255, 255, .16);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --gutter: clamp(18px, 4vw, 40px);
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;
  --r-xl: clamp(28px, 4vw, 48px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--paper); }
/* con JS, el scroll a las secciones lo anima site.js; el fondo del rebote sigue al color del borde de la página */
html.js { scroll-behavior: auto; }
html.is-lower { background: var(--navy-950); }
html.is-locked { overflow: hidden; }
[tabindex="-1"]:focus { outline: none; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--wide { width: min(var(--wrap-wide), 100% - var(--gutter) * 2); }

/* ---------- type ---------- */
.display { font-weight: 800; font-stretch: 125%; letter-spacing: -.025em; line-height: 1; font-size: clamp(2.1rem, 4.6vw, 3.75rem); text-wrap: balance; }
.display--md { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.04; }
.display--sm { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.05; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.lead--dark { color: var(--d-ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); flex: none; }
.eyebrow--dark { color: var(--d-ink-2); }
.hero__eyebrow::before { display: none; }
.signal { color: var(--red); }
.pill-new { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--mono); font-weight: 600; font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1; vertical-align: middle; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--red); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- buttons ---------- */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap; transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease), color .2s; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: .95rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(21, 70, 184, .7); }
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 14px 30px -10px rgba(21, 70, 184, .8); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: var(--ink); background: #fff; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--blue-100); }
.btn--ghost-dark { border-color: var(--d-line-2); color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--blue); }
.link .icon { transition: transform .3s var(--ease); }
.link:hover .icon { transform: translateX(4px); }
.link--dark { color: #fff; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.ticks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--blue); stroke-width: 2.4; }
.ticks--dark li { color: var(--d-ink-2); }
.ticks--dark .icon { color: var(--blue-400); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 900; padding: 14px var(--gutter) 0; pointer-events: none; }
.nav__bar { pointer-events: auto; position: relative; width: min(var(--wrap-wide), 100%); margin-inline: auto; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 10px 0 20px; border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 1px 0 rgba(10, 23, 48, .04), 0 12px 32px -18px rgba(10, 23, 48, .35); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); transition: background-color .3s, box-shadow .3s; }
.nav.is-scrolled .nav__bar { background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(10, 23, 48, .05), 0 18px 40px -18px rgba(10, 23, 48, .45); }
.nav__brand { display: flex; align-items: center; flex: none; }
.nav__brand img { height: 36px; width: auto; }
.nav__links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__links a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .25s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: rgba(10, 23, 48, .05); }
.nav__links a.is-active { color: var(--ink); background: rgba(10, 23, 48, .07); }
/* la píldora activa se desliza entre secciones en lugar de saltar */
.nav__links.has-glider a.is-active, .nav__links.has-glider a.is-active:hover { background: transparent; }
.nav__glider { position: absolute; left: 0; top: 0; width: var(--gw, 0); height: var(--gh, 0); transform: translate3d(var(--gx, 0), var(--gy, 0), 0); border-radius: 999px; background: rgba(10, 23, 48, .07); pointer-events: none; opacity: 0; }
.nav__glider.is-ready { opacity: 1; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: rgba(10, 23, 48, .06); }
.nav__toggle .i-close { display: none; }
.nav__toggle[aria-expanded="true"] .i-open { display: none; }
.nav__toggle[aria-expanded="true"] .i-close { display: block; }
.access { position: relative; }
.access > .btn .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.access > .btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.access__menu { position: absolute; right: 0; top: calc(100% + 12px); width: min(330px, calc(100vw - 2 * var(--gutter))); padding: 8px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(10, 23, 48, .4); transform-origin: top right; animation: pop .28s var(--ease); }
.access__menu[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.access__menu a { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 13px 14px; border-radius: 14px; transition: background-color .2s; }
.access__menu a:hover { background: var(--paper); }
.access__menu a .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-3); width: 18px; height: 18px; }
.access__name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.access__hint { font-size: .85rem; color: var(--ink-3); }
.access__menu a.access__help { display: flex; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.access__menu a.access__help .icon { color: #1fa855; width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(44px, 7vw, 92px)) 0 clamp(56px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; background: url("../assets/topo-oscuro.svg") center top / 1700px auto no-repeat; opacity: .07; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); pointer-events: none; }
.hero__head { position: relative; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero__eyebrow { grid-column: 1 / -1; margin-bottom: clamp(18px, 2.4vw, 30px); color: var(--ink-2); }
.hero__title { font-size: clamp(2.6rem, 6.6vw, 5.75rem); line-height: .94; letter-spacing: -.035em; color: var(--navy-900); }
.hero__side { display: grid; gap: 28px; padding-bottom: 10px; }

/* La tarjeta llega inclinada hacia atrás y se endereza con el scroll (--t: 1 inclinada → 0 plana). */
.stage-wrap { margin-top: clamp(40px, 6vw, 80px); perspective: 1600px; perspective-origin: 50% 0%; }
.stage { --p: 0; --t: 0; --tilt: 32deg; position: relative; transform-origin: 50% 0%; transform: translate3d(0, calc(var(--t) * 6%), 0) rotateX(calc(var(--t) * var(--tilt))) scale(calc(1 - var(--t) * .07)); box-shadow: 0 30px 60px -30px rgba(5, 10, 21, .35); padding: clamp(64px, 6.5vw, 96px) clamp(16px, 5vw, 72px) clamp(20px, 5vw, 72px); border-radius: var(--r-xl); background: radial-gradient(90% 120% at 85% -10%, #1d5be0 0%, rgba(21, 70, 184, .55) 30%, transparent 62%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 62%, var(--navy-950) 100%); isolation: isolate; }
/* la sombra profunda de la tarjeta inclinada se desvanece con opacidad (compositor), no se repinta en cada frame */
.stage::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; box-shadow: 0 80px 120px -40px rgba(5, 10, 21, .6); opacity: var(--t); pointer-events: none; will-change: opacity; }
.stage__topo { position: absolute; inset: 0; border-radius: inherit; background: url("../assets/topo-claro.svg") center / cover no-repeat; opacity: .1; z-index: -1; }
.stage__tag { position: absolute; left: clamp(18px, 5vw, 72px); top: clamp(22px, 2.6vw, 36px); display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: .95rem; }
.stage__coords { position: absolute; right: clamp(18px, 5vw, 72px); top: clamp(24px, 2.7vw, 38px); font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: rgba(255, 255, 255, .55); }
.stage__desk { width: min(100%, 1060px); transform: translate3d(0, calc(var(--p) * 18px), 0); }
.stage__phone { position: absolute; right: clamp(10px, 4.6vw, 72px); bottom: clamp(-34px, -2.6vw, -14px); width: clamp(118px, 21%, 268px); transform: translate3d(0, calc(var(--p) * -46px), 0); z-index: 2; }
.js .stage { --t: 1; }
.js .stage__desk, .js .stage__phone { opacity: 0; }
.js .is-ready .stage__desk { animation: rise 1.1s var(--ease) .1s both; }
.js .is-ready .stage__phone { animation: rise 1.2s var(--ease) .32s both; }
@keyframes rise { from { opacity: 0; translate: 0 44px; } to { opacity: 1; translate: 0 0; } }

.browser { border-radius: clamp(10px, 1.4vw, 18px); background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 90px -30px rgba(2, 6, 16, .75), 0 18px 36px -18px rgba(2, 6, 16, .5); }
.browser__bar { height: clamp(26px, 3.2vw, 40px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(10px, 1.2vw, 16px); background: #f4f6fa; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: clamp(7px, .8vw, 10px); height: clamp(7px, .8vw, 10px); border-radius: 50%; background: #d3dae6; }
.browser__url { font-family: var(--mono); font-weight: 500; font-size: clamp(.58rem, .9vw, .72rem); color: var(--ink-3); padding: 3px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.browser__zoom { justify-self: end; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--ink-3); transition: background-color .2s, color .2s; }
.browser__zoom:hover { background: var(--paper-2); color: var(--ink); }
.browser__zoom .icon { width: 16px; height: 16px; }
/* isolation: el orden de apilado de las capturas (z-index del fundido) queda dentro de cada pantalla
   y nunca tapa el marco del teléfono que se superpone a la ventana */
.browser__screen { position: relative; aspect-ratio: 1440 / 900; background: var(--paper); isolation: isolate; }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; }

.phone { position: relative; aspect-ratio: 414 / 868; border-radius: 14.5% / 6.9%; background: linear-gradient(145deg, #2b3550, #0b101c 45%, #05080f); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 70px -24px rgba(2, 6, 16, .8), 0 14px 30px -14px rgba(2, 6, 16, .6); }
.phone__screen { position: absolute; inset: 1.38% 2.9%; border-radius: 12.3% / 5.7%; overflow: hidden; background: var(--paper); isolation: isolate; }
.phone__screen picture, .browser__screen picture { position: absolute; inset: 0; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-2); }
.fact { padding: 26px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { font-weight: 800; font-stretch: 125%; font-size: clamp(1.35rem, 2.3vw, 2rem); letter-spacing: -.02em; line-height: 1.1; color: var(--navy-900); }
.fact dd { margin-top: 8px; color: var(--ink-2); font-size: .98rem; line-height: 1.4; max-width: 24ch; }

/* ---------- Itrack ---------- */
.itrack { position: relative; padding: clamp(72px, 9vw, 128px) 0 clamp(72px, 9vw, 120px); border-radius: var(--r-xl); background: var(--d-bg); color: var(--d-ink); overflow: clip; isolation: isolate; }
.itrack::before { content: ""; position: absolute; inset: 0; background: url("../assets/topo-claro.svg") center top / 1900px auto repeat-y; opacity: .035; z-index: -1; }
.itrack__glow { position: absolute; left: 50%; top: -260px; width: min(1200px, 130vw); aspect-ratio: 1; translate: -50% 0; background: radial-gradient(closest-side, rgba(33, 92, 224, .5), rgba(21, 70, 184, .16) 55%, transparent); z-index: -1; pointer-events: none; }
.itrack__intro { display: grid; justify-items: center; text-align: center; gap: 22px; }
.itrack__title { font-size: clamp(2.3rem, 5.6vw, 4.6rem); color: #fff; }
.itrack__intro .lead { max-width: 58ch; }
.itrack__intro .actions { margin-top: 10px; }
.logo-stage { display: grid; justify-items: center; gap: 6px; margin-bottom: clamp(8px, 2vw, 24px); }
.itlogo { width: min(560px, 84vw); aspect-ratio: 1358 / 693; }
.itlogo .boot-logo { position: relative; width: 100%; aspect-ratio: 1358 / 693; }
.itlogo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.itlogo noscript img { width: 100%; }
.itlogo.waiting .lp-arc { animation: arc-wave 1.6s ease-in-out infinite; }
.itlogo.waiting .lp-arc-2 { animation-delay: .15s; }
@keyframes arc-wave { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.replay { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--d-ink-3); transition: color .2s, background-color .2s; }
.replay:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.replay .icon { width: 14px; height: 14px; }

.explorer { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); grid-template-areas: "tabs visual" "panels visual"; grid-template-rows: auto 1fr; column-gap: clamp(28px, 4vw, 64px); row-gap: 22px; align-items: start; }
.explorer__tabs { grid-area: tabs; position: relative; display: grid; gap: 4px; }
.xtab { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; text-align: left; font-weight: 650; font-size: 1.05rem; color: var(--d-ink-2); transition: color .25s, background-color .25s, transform .25s var(--ease); overflow: hidden; }
.xtab .icon { width: 20px; height: 20px; color: var(--d-ink-3); transition: color .25s; }
.xtab:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.xtab:active { transform: scale(.985); }
.xtab.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.xtab.is-active .icon { color: var(--blue-400); }
.explorer__tabs.has-glider .xtab.is-active { background: transparent; }
.xtab__glider { position: absolute; left: 0; top: 0; z-index: 0; width: var(--gw, 0); height: var(--gh, 0); transform: translate3d(var(--gx, 0), var(--gy, 0), 0); border-radius: 14px; background: rgba(255, 255, 255, .07); pointer-events: none; opacity: 0; }
.xtab__glider.is-ready { opacity: 1; transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease), opacity .3s; }
.xtab__bar { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue-400); transform: scaleX(0); transform-origin: left; opacity: 0; }
.explorer.is-auto .xtab.is-active .xtab__bar { opacity: 1; animation: fill var(--dur, 7s) linear forwards; }
.explorer.is-paused .xtab.is-active .xtab__bar { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.explorer__panels { grid-area: panels; display: grid; padding: 4px 16px 0; }
/* los seis textos comparten una celda: el alto lo fija el más largo, así cambiar de pestaña no mueve la sección */
.xpanel { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; }
.xpanel[hidden] { display: none; }
.js .xpanel[hidden] { display: grid; }
.js .xpanel { visibility: hidden; opacity: 0; transition: opacity .18s var(--ease-io), visibility 0s linear .18s; }
.js .xpanel.is-active { visibility: visible; opacity: 1; transition: opacity .45s var(--ease) .1s, visibility 0s; }
.js .xpanel > * { transform: translate3d(0, 10px, 0); transition: transform 0s linear .2s; }
.js .xpanel.is-active > * { transform: none; transition: transform .7s var(--ease) .1s; }
.js .xpanel.is-active > :nth-child(2) { transition-delay: .16s; }
.js .xpanel.is-active > :nth-child(3) { transition-delay: .22s; }
.xpanel h3 { font-weight: 800; font-stretch: 118%; font-size: 1.45rem; line-height: 1.12; letter-spacing: -.015em; color: #fff; }
.xpanel p { color: var(--d-ink-2); font-size: 1rem; }
.xpanel .ticks li { color: var(--d-ink-2); font-size: .95rem; }
.xpanel .ticks .icon { color: var(--blue-400); }
.explorer__visual { grid-area: visual; position: relative; padding-right: clamp(0px, 5vw, 70px); padding-bottom: 40px; touch-action: pan-y pinch-zoom; }
.explorer__visual .browser { box-shadow: 0 0 0 1px var(--d-line-2), 0 60px 120px -40px rgba(0, 0, 0, .9); }
.explorer__phone { position: absolute; right: 0; bottom: 0; width: clamp(110px, 24%, 214px); }
/* fundido sobre la captura anterior (que sigue opaca debajo): nunca asoma el fondo claro de la pantalla */
.xshot { position: absolute; inset: 0; opacity: 0; }
.xshot.is-active, .xshot.is-prev { opacity: 1; transition: opacity .55s var(--ease-io); }
.xshot.is-active, .xshot.is-prev, .xshot.is-next { will-change: opacity; }





/* ---------- sections (light) ---------- */
.section { padding: clamp(80px, 10vw, 144px) 0 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section__head > div { display: grid; gap: 18px; }
.section__head .display { color: var(--navy-900); }

.specs { --gap: clamp(8px, 1vw, 14px); display: flex; gap: var(--gap); height: clamp(440px, 44vw, 580px); }
.spec { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; background: var(--navy-900); color: #fff; transition: flex-grow .75s var(--ease); isolation: isolate; }
/* la foto mide lo que la tarjeta abierta: al abrirse se descubre, no se reescala en cada frame */
.spec img { position: absolute; top: 0; left: 50%; width: max(100%, var(--open-w, 0px)); max-width: none; height: 100%; translate: -50% 0; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.spec::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 21, .38) 0%, transparent 22%, transparent 46%, rgba(5, 10, 21, .86) 100%); z-index: -1; }
.spec__num { position: absolute; left: 22px; top: 20px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: rgba(255, 255, 255, .8); }
.spec__body { position: absolute; inset: auto 0 0 0; padding: 24px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.spec h3 { font-weight: 800; font-stretch: 118%; font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.08; letter-spacing: -.015em; }
.spec__reveal > div { display: grid; gap: 6px; justify-items: start; }
.spec p { font-size: .95rem; line-height: 1.4; color: rgba(255, 255, 255, .82); max-width: 34ch; }
.spec__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 650; font-size: .92rem; }
.spec__more .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.spec:hover .spec__more .icon { transform: translateX(4px); }
@media (hover: hover) and (min-width: 901px) {
  .specs { --open-w: calc((min(var(--wrap-wide), 100vw - var(--gutter) * 2) - 4 * var(--gap)) * 2.5 / 6.5); }
  .spec.is-open { flex-grow: 2.5; }
  /* el texto se despliega con alto animado y ancho fijo: no se re-acomoda mientras la tarjeta crece */
  .spec__reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .75s var(--ease); }
  .spec__reveal > div { min-height: 0; overflow: hidden; width: calc(var(--open-w) - 44px); opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .2s, transform .5s var(--ease); }
  .spec.is-open .spec__reveal { grid-template-rows: 1fr; }
  .spec.is-open .spec__reveal > div { opacity: 1; transform: none; transition: opacity .45s .18s, transform .7s var(--ease) .14s; }
  .spec:hover img { transform: scale(1.04); }
}

.core { margin-top: clamp(88px, 11vw, 150px); }
.core__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.tile { padding: clamp(24px, 3vw, 36px) clamp(18px, 2.4vw, 32px) clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.tile:not(:nth-child(3n + 1)) { padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; background: #fff; color: var(--blue); box-shadow: 0 1px 0 var(--line), 0 8px 18px -10px rgba(10, 23, 48, .25); }
.tile h3 { font-weight: 750; font-stretch: 112%; font-size: 1.2rem; letter-spacing: -.01em; }
.tile p { color: var(--ink-2); font-size: 1rem; max-width: 36ch; }

.sols { margin-top: clamp(88px, 11vw, 150px); }
.sols__stack { display: grid; gap: 22px; }
.sol { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 470px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 -18px 40px -30px rgba(10, 23, 48, .35), 0 30px 60px -40px rgba(10, 23, 48, .35); }
.sol__copy { padding: clamp(26px, 4vw, 56px); display: grid; gap: 16px; align-content: center; }
.sol__label { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.sol__label span { padding: 6px 12px; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 600; }
.sol__label em { display: inline-flex; align-items: center; gap: 8px; font-style: normal; color: var(--ink-3); }
.sol__label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(14, 154, 97, .16); }
.sol h3 { font-weight: 800; font-stretch: 118%; font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.08; letter-spacing: -.02em; color: var(--navy-900); text-wrap: balance; }
.sol__copy > p:not(.sol__label) { color: var(--ink-2); max-width: 54ch; }
.sol .link { margin-top: 6px; }
.sol__visual { position: relative; min-height: 300px; background: var(--navy-900); }
.sol__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) and (min-height: 700px) {
  /* mazo: la tarjeta que queda debajo retrocede (--depth lo calcula site.js con el scroll) */
  .sol { position: sticky; top: calc(var(--nav-h) + 22px + var(--i) * 16px); transform-origin: 50% 0; transform: scale(calc(1 - var(--depth, 0) * .032)); }
}

/* ---------- contact ---------- */
.section--contact { padding-bottom: clamp(56px, 7vw, 96px); }
.contact { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: clamp(28px, 5.5vw, 80px); border-radius: var(--r-xl); background: radial-gradient(70% 90% at 0% 0%, rgba(29, 91, 224, .55), transparent 60%), linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 60%, var(--navy-950) 100%); color: #fff; isolation: isolate; overflow: hidden; }
.contact__topo { position: absolute; inset: 0; background: url("../assets/topo-claro.svg") center / cover no-repeat; opacity: .09; z-index: -1; }
.contact__copy { display: grid; gap: 22px; align-content: start; }
.contact__copy .display { color: #fff; }
.quote { margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--d-line-2); display: grid; gap: 14px; }
.quote p { color: var(--d-ink-2); max-width: 52ch; }
.quote strong { color: #fff; font-weight: 700; }
.contact__list { display: grid; gap: 10px; align-content: center; }
.contact__list a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .25s, border-color .25s, transform .35s var(--ease); }
.contact__list a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); transform: translateX(4px); }
.c-icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; }
.contact__list span { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.contact__list strong { display: block; margin-top: 2px; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); overflow-wrap: anywhere; }
.contact__list em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 600; font-size: .9rem; color: rgba(255, 255, 255, .75); white-space: nowrap; }
.contact__list em .icon { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: var(--d-ink-2); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.footer__brand img { width: 190px; margin-bottom: 20px; }
.footer__brand p { max-width: 38ch; font-size: .95rem; }
.footer h3 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink-3); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; font-size: .98rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__base { margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--d-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .82rem; color: var(--d-ink-3); }

.wa-float { position: fixed; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); z-index: 800; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgba(18, 140, 70, .6), 0 0 0 1px rgba(255, 255, 255, .25) inset; transition: transform .3s var(--ease), box-shadow .3s; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 36px -8px rgba(18, 140, 70, .7); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- lightbox ---------- */
.lightbox { width: min(1240px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .7); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: lb-in .35s var(--ease); }
.lightbox::backdrop { background: rgba(5, 10, 21, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open]::backdrop { animation: fade-in .35s var(--ease); }
.lightbox.is-closing { animation: lb-out .2s var(--ease-io) forwards; }
.lightbox.is-closing::backdrop { animation: fade-out .2s var(--ease-io) forwards; }
@keyframes lb-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes lb-out { to { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.lightbox__media { min-height: 0; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.lightbox__media img { width: 100%; max-height: calc(100dvh - 24px - var(--copy-h, 150px)); object-fit: contain; }
.lightbox__copy { padding: clamp(18px, 2.6vw, 30px) clamp(20px, 3vw, 36px); display: grid; gap: 8px; }
.lightbox__copy h3 { font-weight: 800; font-stretch: 118%; font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -.015em; color: var(--navy-900); }
.lightbox__copy p:not(.eyebrow) { color: var(--ink-2); max-width: 90ch; }
.lightbox__copy p:empty { display: none; }
.lightbox.is-shot .lightbox__copy { padding-block: 14px; display: flex; align-items: center; gap: 14px; }
.lightbox.is-shot .lightbox__copy h3 { font-size: 1.05rem; }
.lightbox__close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(10, 23, 48, .82); color: #fff; transition: background-color .2s, transform .3s var(--ease); }
.lightbox__close:hover { background: var(--ink); transform: rotate(90deg); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .explorer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "visual" "panels"; }
  .explorer__tabs { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
  .explorer__tabs::-webkit-scrollbar { display: none; }
  .xtab { width: auto; flex: none; padding: 11px 16px; font-size: .95rem; gap: 10px; border: 1px solid var(--d-line); border-radius: 999px; scroll-snap-align: center; }
  .xtab__glider { border-radius: 999px; box-shadow: inset 0 0 0 1px var(--d-line-2); }
  .xtab__bar { left: 18px; right: 18px; bottom: 3px; }
  .explorer__panels { padding: 0; max-width: 640px; }
  .explorer__visual { padding-right: clamp(0px, 4vw, 40px); }
}
@media (max-width: 900px) {
  :root { --nav-h: 70px; }
  .nav { padding-top: 10px; }
  .nav__bar { height: 58px; padding: 0 8px 0 16px; }
  .nav__brand img { height: 30px; }
  .nav__toggle { display: grid; }
  .nav__links { position: absolute; left: 0; right: 0; top: calc(100% + 10px); display: grid; gap: 2px; padding: 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(10, 23, 48, .45); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 15px 16px; font-size: 1.05rem; border-radius: 14px; }
  .nav__glider { display: none; }
  .nav__links.has-glider a.is-active { background: rgba(10, 23, 48, .07); }
  .hero__head { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .hero__title { font-size: clamp(2rem, 10.6vw, 4.6rem); }
  .stage__coords { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 22px 16px 22px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .section__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .specs { height: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .specs::-webkit-scrollbar { display: none; }
  .spec { flex: 0 0 min(76vw, 340px); aspect-ratio: 3 / 4; scroll-snap-align: center; }
  .core__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .tile:nth-child(even) { padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
  .sol { grid-template-columns: minmax(0, 1fr); }
  .sol__visual { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .sol__visual img { object-position: center 30%; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .btn { --h: 52px; padding: 0 20px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .stage { --tilt: 20deg; padding-top: 60px; padding-bottom: 28px; }
  .stage-wrap { perspective: 900px; }
  .stage__tag { font-size: .82rem; }
  .stage__desk { width: 88%; }
  .stage__phone { width: 30%; right: 10px; bottom: -18px; }
  .fact dt { font-size: 1.12rem; font-stretch: 112%; }
  .fact dd { font-size: .92rem; }
  .contact { padding: 26px 18px; }
  .contact__list strong { font-size: .9rem; }
  .c-icon { width: 40px; height: 40px; padding: 10px; }
  .core__grid { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile:nth-child(even) { padding-left: 0; border-left: 0; }
  .contact__list a { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .contact__list em { display: none; }
  .itrack .actions .btn, .contact .actions .btn { flex: 1 1 100%; }
  .wa-float { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .stage__desk, .js .stage__phone { opacity: 1; transform: none; }
  .stage, .stage__desk, .stage__phone, .sol { transform: none; }
  .stage::before { opacity: 0; }
}
