/* ==========================================================================
   Bits4.0 — estilos del sitio
   Depende de tokens.css (colores, tipografía, radios, sombras, efectos).
   ========================================================================== */

/* ---------- Marca ---------- */
:root {
  --teal: #0ee5c6;
  --yellow: #fee600;
  --violet: #7c8cff;
  --ink: #eef1f8;
  --ink-dim: #aab3c8;
  --navy: #182647;
  --navy-deep: #0b1220;
  --blue-muted: #416180;
  --on-accent: #060b16;
  --wrap: 1200px;
  --gutter: 24px;
  --section-gap: clamp(72px, 10vw, 120px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--fg-body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--fg-link); text-decoration: none; transition: color var(--duration-fast) var(--ease-standard); }
a:hover { color: var(--fg-strong); }
::selection { background: rgba(14, 229, 198, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ---------- Pantalla de carga: logo centrado que vuela a su lugar ---------- */
.boot { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background-color: #05060f; transition: background-color .7s cubic-bezier(.2,0,0,1); }
html.is-booting .boot { display: grid; }
html.is-booting .site-header__logo img { opacity: 0; }
.boot__logo { width: min(56vw, 520px); transform-origin: 0 0; will-change: transform; }
.boot__logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.boot .bits-letters path { opacity: 0; animation: boot-in .5s cubic-bezier(.2,0,0,1) forwards; }
.boot .bits-letters path:nth-child(2) { animation-delay: 80ms; }
.boot .bits-letters path:nth-child(3) { animation-delay: 160ms; }
.boot .bits-letters path:nth-child(4) { animation-delay: 240ms; }
.boot .bits-dot { transform-box: fill-box; transform-origin: center; animation: boot-dot 1.1s ease-in-out infinite; }
.boot .bits-bars path { transform-box: fill-box; transform-origin: 50% 100%; animation: boot-bar .9s cubic-bezier(.45,0,.55,1) infinite alternate both; }
.boot .bits-bars path:nth-child(1) { animation-delay: 0ms; }
.boot .bits-bars path:nth-child(2) { animation-delay: 110ms; }
.boot .bits-bars path:nth-child(3) { animation-delay: 220ms; }
.boot .bits-bars path:nth-child(4) { animation-delay: 330ms; }
.boot .bits-bars path:nth-child(5) { animation-delay: 440ms; }
.boot.is-done { background-color: rgba(5,6,15,0); pointer-events: none; }
.boot.is-done .boot__logo { transition: transform .72s cubic-bezier(.65,0,.35,1), opacity .4s; }
.boot.is-done .boot__logo * { animation: none; opacity: 1; }
/* Secuencia de entrada: 1) ondas, 2) info, 3) tableros */
html.boot-seq .hero__ribbons { opacity: 0; transition: opacity .9s cubic-bezier(.2,0,0,1); }
html.boot-seq.boot-s1 .hero__ribbons { opacity: .35; }
html.boot-seq :is(.nav, .header-actions, .hero__copy > *) { opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.2,0,0,1), transform .5s cubic-bezier(.2,0,0,1); }
html.boot-seq .hero__copy > :nth-child(2) { transition-delay: 80ms; }
html.boot-seq .hero__copy > :nth-child(3) { transition-delay: 160ms; }
html.boot-seq .hero__copy > :nth-child(4) { transition-delay: 240ms; }
html.boot-seq.boot-s2 :is(.nav, .header-actions, .hero__copy > *) { opacity: 1; transform: none; }
html.boot-seq :is(.hero__fig, .stats-wrap) { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,0,0,1), transform .6s cubic-bezier(.2,0,0,1); }
html.boot-seq .stats-wrap { transition-delay: 160ms; }
html.boot-seq.boot-s3 :is(.hero__fig, .stats-wrap) { opacity: 1; transform: none; }
@keyframes boot-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes boot-dot { 50% { transform: scale(1.35); filter: drop-shadow(0 0 14px #0ee5c6); } }
@keyframes boot-bar { from { transform: scaleY(.35); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 9999px; background: var(--yellow); color: var(--on-accent); font-weight: 500; }
.skip-link:focus { top: 16px; color: var(--on-accent); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { max-width: var(--wrap); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 56px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.stack-col { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hairline { height: 1px; background: var(--gradient-hairline); }
.hairline--r { background: var(--gradient-hairline-right); }

/* ---------- Fondo cuadriculado (Midnight Glass) ---------- */
.grid-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--surface-page); pointer-events: none; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern-grid); background-size: 80px 80px; background-position: center top;
  -webkit-mask-image: var(--mask-grid-fade); mask-image: var(--mask-grid-fade);
}
.grid-bg::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90%;
  background: var(--gradient-spotlight); filter: blur(24px); opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent);
}

/* ---------- Tipografía ---------- */
.eyebrow { display: flex; align-items: center; gap: 16px; width: 100%; justify-content: center; font-weight: 400; }
.eyebrow--left { justify-content: flex-start; }
.eyebrow__text {
  font-family: var(--font-eyebrow); font-size: 20px; line-height: var(--leading-eyebrow);
  letter-spacing: var(--tracking-eyebrow); font-feature-settings: 'tnum' on; text-transform: uppercase;
  color: var(--teal); white-space: nowrap;
}
.eyebrow--sm .eyebrow__text { font-size: var(--text-eyebrow); white-space: normal; }
.eyebrow--xl .eyebrow__text { font-size: 30px; color: var(--yellow); }
.eyebrow__line { flex: 1 1 0; max-width: 120px; min-width: 24px; height: 1px; background: var(--gradient-hairline-right); }
.eyebrow__line--l { background: var(--gradient-hairline-left); }

.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(52px, 7vw, 104px); line-height: .95; letter-spacing: -.02em; color: var(--ink); }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.16; color: var(--ink); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.14; color: var(--ink); text-wrap: balance; }
.title { font-size: 18px; line-height: 1.33; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink-dim); text-wrap: pretty; max-width: 640px; }
.body { font-size: 16px; line-height: 1.5; color: var(--ink-dim); text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.43; color: var(--fg-muted); text-wrap: pretty; }
.helper { font-size: 14px; line-height: 1.43; color: var(--fg-helper); }
.caption { font-size: 12px; line-height: 1.33; color: var(--ink-dim); }
.mono { font-family: var(--font-eyebrow); font-size: 15px; line-height: 1.2; letter-spacing: .1em; font-feature-settings: 'tnum' on; color: var(--fg-helper); }
.mono--teal { color: var(--teal); }
.dot-teal { color: var(--teal); }
.dot-yellow { color: var(--yellow); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 0; border-radius: var(--radius-buttons);
  font: 500 var(--text-body-sm)/20px var(--font-body); letter-spacing: var(--tracking-ui);
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), filter var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: scale(.98); }
.btn--md { padding: 8px 16px; gap: 6px; }
.btn--yellow, .btn--yellow:hover { background: var(--yellow); color: var(--on-accent); }
.btn--teal, .btn--teal:hover { background: var(--teal); color: var(--on-accent); }
.btn--yellow:hover, .btn--teal:hover { filter: brightness(1.1); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: var(--border-inset); }
.btn--outline:hover { background: var(--frost-06); color: var(--ink); }
.btn--block { display: flex; width: 100%; }

/* Contorno neón animado */
@property --neon-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes neonSpin { to { --neon-a: 360deg; } }
@keyframes neonPulse { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
.neon { position: relative; display: inline-flex; border-radius: 9999px; isolation: isolate; }
.neon::before, .neon::after {
  content: ""; position: absolute; inset: -3px; padding: 2px; border-radius: 9999px; pointer-events: none;
  background: conic-gradient(from var(--neon-a), transparent 0deg, transparent 200deg, rgba(14,229,198,0) 220deg, var(--teal) 285deg, #fff 320deg, var(--yellow) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: neonSpin 2.6s linear infinite;
}
.neon::before { z-index: -1; filter: blur(7px); animation: neonSpin 2.6s linear infinite, neonPulse 2.6s ease-in-out infinite; }
.neon::after { z-index: 1; }

/* ---------- Superficies ---------- */
.card { position: relative; padding: 24px; border-radius: var(--radius-cards); background: var(--surface-card); box-shadow: var(--elevation-card); color: var(--fg-muted); height: 100%; }
.card--flush { padding: 0; }
.card--solid { background: var(--navy-deep); }
.badge {
  display: inline-flex; align-items: center; padding: 4px 8px; border-radius: var(--radius-badges);
  background: var(--surface-badge); box-shadow: var(--shadow-subtle-2); color: var(--fg-body);
  font: 500 var(--text-caption)/16px var(--font-body); white-space: nowrap;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--radius-badges); background: var(--c, var(--teal)); color: var(--on-accent); font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag--yellow { --c: var(--yellow); }
.tag--violet { --c: var(--violet); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg-body); }
.link-arrow svg { width: 16px; height: 16px; }
.icon-tile { flex-shrink: 0; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.icon-tile--ring { width: 48px; height: 48px; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.icon-tile--solid { width: 40px; height: 40px; color: var(--on-accent); background: var(--teal); }
.icon-tile--solid svg { width: 20px; height: 20px; }

/* ---------- Encabezado + intro ---------- */
.site-header { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; }
.site-header__logo { margin-right: auto; }
.site-header__logo img { height: 28px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav a { font-size: 14px; line-height: 20px; color: var(--fg-muted); }
.nav a:hover { color: var(--fg-strong); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.phone { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--fg-helper); }
.phone svg { width: 16px; height: 16px; }

.hero { position: relative; z-index: 1; isolation: isolate; cursor: grab; }
.grid-bg--hero { top: calc(-1 * var(--hdr, 76px)); }
.hero__ribbons { position: absolute; inset: 0; pointer-events: none; opacity: .35; -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 78%); }
.hero__ribbons canvas { display: block; width: 100%; height: 100%; }
.hero__inner { position: relative; padding-top: clamp(48px, 8vw, 100px); padding-bottom: clamp(72px, 10vw, 120px); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__copy .lead { max-width: 520px; line-height: 1.33; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; pointer-events: auto; }
.hero__fig { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__fig::before { content: ""; position: absolute; inset: 8% -12%; border-radius: 999px; background: radial-gradient(closest-side, rgba(124,145,182,.18), transparent); filter: blur(20px); pointer-events: none; }
.fig-meta { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-eyebrow); font-size: 13px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; font-feature-settings: 'tnum' on; color: var(--fg-helper); }
.fig-meta--end { align-self: flex-end; }
.hero__canvas { position: relative; width: 100%; height: clamp(300px, 34vw, 440px); pointer-events: auto; }
.hero__canvas canvas { position: absolute; left: 0; top: -28px; display: block; width: 100%; height: calc(100% + 56px); }
.stats-wrap { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.14; color: var(--teal); }

/* ---------- Nosotros (transición cuadriculada) ---------- */
.about { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about .card { padding: 16px; height: auto; }
.mock { position: relative; display: flex; flex-direction: column; align-items: center; padding: 7% 6% 9%; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #16223a 0%, #0b1220 55%, #070b16 100%); }
.mock__src { display: flex; gap: 8px; margin: 0 8% 0 0; padding: 0; list-style: none; }
.mock__src li { padding: 5px 12px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--fg-strong); background: rgba(186,215,247,.08); box-shadow: inset 0 0 0 1px rgba(186,215,247,.16); }
.mock__link { width: 1px; height: 26px; margin-right: 8%; background: linear-gradient(180deg, rgba(14,229,198,0), var(--teal)); }
.mock__laptop { width: 80%; margin-right: 8%; filter: drop-shadow(0 26px 30px rgba(0,0,0,.55)); }
.mock__lid { position: relative; padding: 3% 2.4% 3.2%; border-radius: 14px 14px 0 0; background: #04060c; box-shadow: inset 0 0 0 1.5px #56627b, inset 0 0 0 3px #0c111c; }
.mock__lid::before { content: ""; position: absolute; top: 1.6%; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #2a3550; }
.mock__lid img { display: block; width: 100%; height: auto; border-radius: 3px; background: #fff; }
.mock__base { position: relative; width: 114%; height: 13px; margin-left: -7%; border-radius: 3px 3px 16px 16px; background: linear-gradient(180deg, #c3ccdc 0%, #8792a8 22%, #4b566d 60%, #1f2738 100%); }
.mock__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 5px; margin-left: -8%; border-radius: 0 0 8px 8px; background: #2a3348; }
.mock__phone { position: absolute; right: 6%; bottom: 7%; width: 21%; aspect-ratio: 9 / 18.5; padding: 4px; border-radius: 20px; background: #04060c; box-shadow: 0 0 0 1.5px #6f7f9c, 0 0 0 3px #1d2536, 0 22px 36px rgba(0,0,0,.6); }
.mock__phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 30%; height: 7px; margin-left: -15%; border-radius: 999px; background: #000; z-index: 1; }
.mock__screen { height: 100%; padding-top: 20%; overflow: hidden; border-radius: 16px; background: #f4f6fb; }
.mock__phone img { display: block; width: 294%; max-width: none; height: auto; -webkit-mask-image: linear-gradient(90deg, #000 27%, transparent 34%); mask-image: linear-gradient(90deg, #000 27%, transparent 34%); }
.about__mask { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: grid; }
.about__mask > div { background: var(--surface-page); box-shadow: inset 0 0 0 .5px rgba(186,215,247,.08); will-change: opacity, transform; }

/* ---------- Declaración ---------- */
.statement { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 48px; }
.reveal { max-width: 860px; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.reveal .w { display: inline-block; white-space: nowrap; margin: 0 .13em; }
.reveal .ch { position: relative; display: inline-block; }
.reveal .ch::before { content: attr(data-c); position: absolute; left: 0; top: 0; color: rgba(238,241,248,.14); pointer-events: none; }
.reveal .ch i { position: relative; display: inline-block; font-style: normal; color: var(--ink); }
.js .reveal .ch i { opacity: 0; transform: translateY(.18em); will-change: opacity, transform; }
.reveal .hl i { color: var(--teal); }
.pains-wrap { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; text-align: left; }
.pains .card { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Servicios (encabezado fijo + tarjetas apiladas) ---------- */
.svc-head { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin: 0 calc(var(--gutter) * -1) 32px; padding: 20px var(--gutter) 24px; background: linear-gradient(180deg, var(--surface-page) 0%, var(--surface-page) 78%, rgba(5,6,15,0) 100%); }
.stack { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }
.stack__item { position: sticky; top: 96px; }
.stack__inner { transform-origin: 50% 0; will-change: transform, filter; }
.svc-card { overflow: hidden; background: var(--navy-deep); box-shadow: inset 0 1px 0 rgba(216,236,248,.12), inset 0 0 0 1px rgba(186,215,247,.12), 0 -12px 40px -12px rgba(0,0,0,.7); }
.svc-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); min-height: 340px; }
.svc-card__visual { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 20px; background-color: var(--navy); background-image: var(--pattern-grid), linear-gradient(135deg, rgba(14,229,198,.22), transparent 60%); background-size: 34px 34px, 34px 34px, auto; background-position: center; box-shadow: inset -1px 0 0 var(--hairline); }
.svc-card__visual { padding: 28px 20px; }
.viz { position: relative; width: min(100%, 400px); font-size: 11.5px; line-height: 1.3; color: var(--ink-dim); }
.viz em, .viz i { font-style: normal; }
.win { border-radius: 10px; overflow: hidden; background: #0b1220; box-shadow: inset 0 0 0 1px rgba(186,215,247,.18), 0 18px 36px -12px rgba(0,0,0,.75); }
.win__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; box-shadow: inset 0 -1px 0 rgba(186,215,247,.1); }
.win__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(186,215,247,.28); }
.win__bar b { margin-left: 6px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.win img { display: block; width: 100%; height: auto; background: #fff; }
.trow { display: grid; grid-template-columns: var(--cols); gap: 8px; align-items: center; padding: 6px 10px; color: var(--ink); box-shadow: inset 0 -1px 0 rgba(186,215,247,.07); }
.trow > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow--h { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: rgba(14,229,198,.06); }
.trow--dim { color: var(--ink-dim); }
.vtag { display: inline-block; height: auto; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; line-height: 1.3; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.vtag--ok { color: var(--teal); background: rgba(14,229,198,.12); }
.vtag--warn { color: var(--yellow); background: rgba(254,230,0,.12); }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(14,229,198,.18); }
.dot--warn { background: var(--yellow); box-shadow: 0 0 0 3px rgba(254,230,0,.18); }
.meter { display: block; height: 6px; border-radius: 999px; background: rgba(186,215,247,.12); }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.meter--warn i { background: var(--yellow); }
.viz--unify { display: grid; grid-template-columns: auto 48px minmax(0, 1fr); align-items: center; }
.viz__srcs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.viz__srcs li { height: 24px; padding: 0 10px; display: flex; align-items: center; border-radius: 999px; color: var(--ink); background: rgba(6,11,22,.6); box-shadow: inset 0 0 0 1px rgba(238,241,248,.22); }
.viz__wires { width: 48px; height: 120px; color: var(--teal); }
.viz--model { height: auto; }
.viz--dash { width: min(92%, 380px); margin-right: 5%; }
.viz--dash .mock__phone { right: -7%; bottom: -9%; width: 25%; border-radius: 16px; padding: 3px; }
.viz--dash .mock__phone::before { top: 7px; height: 5px; }
.viz--dash .mock__screen { border-radius: 13px; }
.viz--auto { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.steps { margin: 0; padding: 10px 12px; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.steps li { position: relative; padding-left: 20px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(14,229,198,.18); }
.steps li + li::after { content: ""; position: absolute; left: 4.5px; top: -11px; width: 1px; height: 11px; background: rgba(14,229,198,.5); }
.mail { padding-bottom: 12px; }
.mail p { margin: 10px 12px 8px; }
.mail strong { display: block; margin-bottom: 2px; font-weight: 500; color: var(--ink); }
.mail .vtag { margin: 0 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.svc-card__aux { display: flex; flex-direction: column; gap: 8px; }
.svc-card__aux span { width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: var(--ink-dim); background: rgba(6,11,22,.45); box-shadow: inset 0 0 0 1px rgba(238,241,248,.22); }
.svc-card__aux svg { width: 16px; height: 16px; }
.svc-card__flow { width: 64px; height: 16px; color: var(--teal); }
.svc-card__main { width: 80px; height: 80px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: var(--teal); background: rgba(6,11,22,.55); box-shadow: inset 0 0 0 1px var(--teal), 0 0 32px -6px rgba(14,229,198,.5); }
.svc-card__main svg { width: 26px; height: 26px; }
.svc-card__body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.svc-card__body h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 500; color: var(--ink); text-wrap: balance; }
.svc-card__body p { max-width: 520px; white-space: pre-line; }

.extras { margin-top: 72px; display: flex; flex-direction: column; gap: 24px; overflow-x: clip; }
.extras__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.extras__head p { max-width: 480px; }
.extras__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.extra { display: flex; flex-direction: column; gap: 16px; }
.extra__top { display: flex; justify-content: space-between; align-items: center; }
.extra .small { flex: 1; }

/* ---------- PyMEs y Corporativos ---------- */
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.seg { display: flex; flex-direction: column; }
.seg__viz { margin: 20px 20px 0; padding: 24px 20px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; background: radial-gradient(120% 80% at 50% 0%, #16223a 0%, #0b1220 55%, #070b16 100%); }
.weeks { width: min(100%, 400px); margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.weeks li { padding-top: 8px; text-align: center; font-size: 11.5px; line-height: 16px; color: var(--ink-dim); box-shadow: inset 0 3px 0 rgba(186,215,247,.16); }
.weeks li.on { color: var(--teal); box-shadow: inset 0 3px 0 var(--teal); }
.weeks__cap { margin: 0; font-size: 12px; line-height: 16px; color: var(--teal); }
.arch { width: min(100%, 420px); }
.tier-row { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.tier-row li { padding: 5px 0; text-align: center; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--fg-strong); background: rgba(186,215,247,.08); box-shadow: inset 0 0 0 1px rgba(186,215,247,.16); }
.tier { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); background: #0b1220; box-shadow: inset 0 0 0 1px rgba(14,229,198,.45), 0 12px 24px -12px rgba(0,0,0,.7); }
.tier > span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; }
.tier__link { display: block; width: 1px; height: 14px; margin: 0 auto; background: var(--teal); }
.seg__head { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.seg__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg__head .h3 { margin-top: 4px; }
.seg__list { flex: 1; }
.seg__list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 28px; box-shadow: inset 0 -1px 0 var(--hairline-faint); }
.seg__list svg { width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
.seg__list strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.seg__foot { padding: 20px 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Power BI ---------- */
.pbi-title { display: flex; align-items: center; gap: 16px; }
.pbi-title img { width: 44px; height: 44px; flex-shrink: 0; }
.features { width: 100%; margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.feature { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
.feature h3 { font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.showcase { padding: 20px; display: flex; flex-direction: column; gap: 20px; height: auto; }
.plat { display: flex; flex-direction: column; align-items: center; padding: 6% 5% 5%; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #16223a 0%, #0b1220 55%, #070b16 100%); }
.plat__srcs { width: 100%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.plat__srcs li { padding: 5px 0; text-align: center; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--fg-strong); background: rgba(186,215,247,.08); box-shadow: inset 0 0 0 1px rgba(186,215,247,.16); }
.plat__wires { width: 100%; height: 34px; color: var(--teal); stroke-width: 1.5; }
.plat__model { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--fg-strong); background: rgba(14,229,198,.1); box-shadow: inset 0 0 0 1px var(--teal), 0 0 28px -6px rgba(14,229,198,.5); }
.plat .viz--dash { width: 80%; margin: 0 6% 0 0; }
.plat__scale { align-self: flex-start; margin: 5% 0 0; padding: 4px 10px; border-radius: 6px; font-size: 12px; line-height: 16px; color: var(--teal); box-shadow: inset 0 0 0 1px rgba(14,229,198,.45); }
.showcase__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.showcase__title { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.17; color: var(--ink); }

/* ---------- IA ---------- */
.points { width: 100%; margin-top: 8px; display: flex; flex-direction: column; }
.points li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 16px 0; box-shadow: inset 0 -1px 0 var(--hairline-faint); }
.points .num { font-family: var(--font-eyebrow); font-size: 15px; line-height: 1.5; letter-spacing: .1em; font-feature-settings: 'tnum' on; color: var(--color-deep-teal); }
.points strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.chat { height: auto; display: flex; flex-direction: column; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.chat__brand { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.chat__brand .icon-tile { width: 32px; height: 32px; color: var(--on-accent); background: var(--violet); }
.chat__brand svg { width: 16px; height: 16px; }
.chat__rule { height: 1px; background: rgba(255,255,255,.12); }
.chat__body { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; min-height: 360px; }
.bubble-q { align-self: flex-end; max-width: 85%; padding: 12px 16px; border-radius: 16px; background: var(--navy); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-size: 16px; line-height: 1.5; color: var(--ink); }
.bubble-a { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 16px; background: rgba(124,140,255,.06); box-shadow: inset 0 0 0 1px rgba(124,140,255,.45); }
.bubble-a > p { font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.tok-off { visibility: hidden; }
.tok-on::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -0.15em; border-radius: 1px; background: var(--teal); animation: caret .8s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.bars, [data-ai-src] { transition: opacity .24s cubic-bezier(.2,0,0,1); }
.is-wait { opacity: 0; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 12px; font-size: 14px; line-height: 1.43; }
.bar__label { color: var(--ink-dim); }
.bar__track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--teal); transition: width .24s cubic-bezier(.2,0,0,1); }
.bar__fill.is-hi { background: var(--yellow); }
.bar__val { text-align: right; font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink); font-feature-settings: 'tnum' on; }
.chat__foot { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.chat__foot .label { font-family: var(--font-eyebrow); font-size: 13px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestions .btn { white-space: normal; text-align: left; min-height: 44px; padding: 8px 16px; }
.suggestions .btn[aria-pressed="true"] { background: var(--teal); color: var(--on-accent); box-shadow: none; }

/* ---------- Portafolio ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pf { display: flex; flex-direction: column; }
.pf__thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 16px 16px 0 0; overflow: hidden; background-color: var(--navy); background-image: var(--pattern-grid), linear-gradient(135deg, var(--tint, rgba(14,229,198,.35)), transparent 60%); background-size: 40px 40px, 40px 40px, auto; box-shadow: inset 0 -1px 0 var(--hairline); }
.pf__thumb > a { position: absolute; inset: 0; display: block; }
.pf__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s cubic-bezier(.2,0,0,1); }
.pf__thumb:hover img { transform: scale(1.03); }
.pf__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; padding: 14px; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(5,6,15,.7) 100%); }
.pf__live { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 9999px; background: rgba(5,6,15,.75); box-shadow: inset 0 0 0 1px rgba(238,241,248,.22); color: var(--ink); font-size: 12px; font-weight: 500; }
.pf__live:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(238,241,248,.45); }
.pf__live svg { width: 14px; height: 14px; }
.pf__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pf__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pf__body .badges { flex: 1; align-content: flex-start; }
.pf--yellow { --tint: rgba(254,230,0,.35); }
.pf--violet { --tint: rgba(124,140,255,.35); }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section-gap); }
.cta::before, .cta::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--gradient-hairline); z-index: 1; }
.cta::before { top: 0; } .cta::after { bottom: 0; }
.cta__orb { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta__orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cta__inner { position: relative; z-index: 1; padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.cta__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6.5vw, 88px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section-gap); }
.contact .lead { max-width: 460px; }
.contact-list { width: 100%; margin-top: 16px; display: flex; flex-direction: column; }
.contact-list a { display: flex; align-items: center; gap: 12px; padding: 16px 0; box-shadow: inset 0 -1px 0 var(--hairline-faint); font-size: 16px; line-height: 1.5; color: var(--fg-body); }
.contact-list a:hover { color: var(--fg-strong); }
.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-card { width: 100%; padding: 32px; border-radius: var(--radius-modals); background: var(--surface-modal); box-shadow: var(--elevation-modal); color: var(--fg-body); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-body-sm); line-height: var(--leading-body-sm); font-weight: 500; color: var(--fg-body); }
.input {
  width: 100%; height: 40px; padding: 0 10px; margin: 0; border: 0; outline: 0; border-radius: var(--radius-inputs);
  background: var(--surface-input); box-shadow: var(--border-inset); color: var(--fg-strong);
  font: var(--text-body-sm)/1.43 var(--font-body); letter-spacing: var(--tracking-ui);
  transition: box-shadow var(--duration-fast) var(--ease-standard);
}
.input:focus { box-shadow: var(--border-inset-focus); }
.input::placeholder { color: var(--fg-placeholder); opacity: 1; }
textarea.input { height: auto; min-height: 104px; padding: 10px; resize: vertical; }
select.input option { background: var(--surface-page); color: #fff; }
.form__note { font-size: 12px; line-height: 1.33; color: var(--fg-helper); text-align: center; }

/* ---------- Pie ---------- */
.site-footer { padding-bottom: 48px; }
.site-footer > .hairline { margin-bottom: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer-brand img { height: 26px; width: auto; align-self: flex-start; }
.footer-brand p { max-width: 460px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col__title { font-size: 14px; line-height: 1.43; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-muted); }
.footer-col a { font-size: 14px; line-height: 1.43; color: var(--fg-helper); }
.footer-col a:hover { color: var(--fg-strong); }
.copy { margin-top: 48px; font-size: 12px; line-height: 1.33; color: var(--fg-helper); }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: #25d366; color: #062b17; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); transition: filter var(--duration-fast) var(--ease-standard); }
.wa-float:hover { color: #062b17; filter: brightness(1.08); }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- Estados iniciales de animación (solo con JS activo) ---------- */
.js [data-rv] { opacity: 0; transform: translateY(48px) scale(.96); will-change: opacity, transform; }
.js [data-slide] { opacity: 0; transform: translateX(160px); will-change: opacity, transform; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav { order: 3; width: 100%; gap: 8px 20px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .bar { grid-template-columns: 80px 1fr 56px; }
  .form-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .neon::before, .neon::after { animation: none; }
  .js [data-rv], .js [data-slide] { opacity: 1; transform: none; }
}
