/* ═══════════════════════════════════════════════════════════
   Catamarca Software · estilos
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #0b1020;
  --ink-2: #3a4358;
  --ink-3: #586178;
  --line: #e5e9f0;
  --line-2: #d4dae5;

  --brand: #2152ff;
  --brand-hover: #1a43e0;
  --brand-ink: #1938c4;
  --brand-soft: #eef2ff;
  --cyan: #00b3d6;
  --amber: #ffb020;

  --dark: #070a14;
  --dark-2: #0d1222;
  --dark-3: #141a2e;
  --dark-line: rgba(255, 255, 255, .09);
  --dark-ink: #eef1f8;
  --dark-ink-2: #a3acc2;

  --wa: #25d366;
  --wa-ink: #052e16;

  --ok: #067647;   --ok-bg: #ecfdf3;
  --warn: #a8440a; --warn-bg: #fff6e5;
  --danger: #b42318; --danger-bg: #fef1f0;
  --info: #1938c4; --info-bg: #eef2ff;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --sh-1: 0 1px 2px rgba(11, 16, 32, .06), 0 1px 1px rgba(11, 16, 32, .03);
  --sh-2: 0 14px 30px -14px rgba(11, 16, 32, .22), 0 3px 8px -2px rgba(11, 16, 32, .06);
  --sh-3: 0 50px 100px -24px rgba(30, 40, 90, .30), 0 30px 60px -30px rgba(0, 0, 0, .32);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

::selection { background: #c9d5ff; color: var(--ink); }
.sec--dark ::selection, .close ::selection { background: #2a46c9; color: #fff; }
input, textarea { caret-color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sec--dark :focus-visible, .close :focus-visible { outline-color: #8aa2ff; }

html { scrollbar-color: #c3cad8 transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #c9d0dc; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
.noscript { position: fixed; inset: auto 12px 12px; z-index: 60; padding: 14px 16px; background: var(--ink); color: #fff; border-radius: 12px; }

/* ───────── botones ───────── */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: .97rem; line-height: 1; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 1.1em; height: 1.1em; }
.btn .ic--arrow { transition: transform .2s var(--ease-out); }
.btn:hover .ic--arrow { transform: translateX(3px); }
.btn--sm { --h: 38px; padding: 0 15px; font-size: .9rem; }
.btn--lg { --h: 50px; padding: 0 24px; font-size: 1rem; }
.btn--xl { --h: 58px; padding: 0 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -8px rgba(33, 82, 255, .65); }
.btn--brand:hover { background: var(--brand-hover); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #222a40; }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: #fff; border-color: #b9c2d3; }
.btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 8px 22px -10px rgba(37, 211, 102, .8); }
.btn--wa:hover { background: #1fc05b; }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 16px 40px -14px rgba(0,0,0,.55); }
.btn--white:hover { background: #eef2ff; }

/* ───────── navegación ───────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), backdrop-filter .25s;
}
.nav.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* Emblema chico: la versión apagada abajo y la encendida arriba; la de arriba se prende al cargar y respira. */
.logo__emb {
  position: relative; width: 38px; height: 38px; flex: none; border-radius: 11px; overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #0f2d37, #060a12 72%);
  box-shadow: inset 0 0 0 1px rgba(140,230,255,.12), 0 1px 2px rgba(7,10,20,.25);
}
.logo__emb img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); display: block; }
.logo__luz { animation: emb-prende 1.5s var(--ease-out) .35s both, emb-respira 4.2s ease-in-out 1.85s infinite alternate; }
@keyframes emb-prende {
  0% { opacity: 0; } 8% { opacity: .75; } 14% { opacity: .08; } 26% { opacity: .1; } 32% { opacity: 1; }
  38% { opacity: .3; } 50% { opacity: .35; } 58% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes emb-respira { from { opacity: 1; } to { opacity: .58; } }
.logo:hover .logo__luz { animation-play-state: paused; opacity: 1; }
.logo__word { font-weight: 650; font-size: 1.02rem; letter-spacing: -.02em; line-height: 1; }
.logo__word span { font-weight: 450; color: var(--ink-3); margin-left: .28em; }
.nav__links { display: none; gap: 4px; margin-left: 8px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: .93rem; font-weight: 500; text-decoration: none; transition: color .15s, background-color .15s; }
.nav__links a:hover { color: var(--ink); background: rgba(11,16,32,.05); }
.nav__cta { margin-left: auto; display: none; }
.nav__burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.8); }
.nav__burger .ic { width: 22px; height: 22px; }

.menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 24px;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
.menu.is-open { opacity: 1; transform: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.35rem; font-weight: 550; letter-spacing: -.02em; text-decoration: none; }
.menu[hidden] { display: none; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: #fff; box-shadow: 0 1px 0 var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (min-width: 960px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger { display: none; }
  .menu { display: none !important; }
}

/* ───────── portada: la marca a pantalla completa ───────── */
.portada {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--nav-h) + 24px) 0 96px;
  background: radial-gradient(80% 60% at 50% 42%, #0a1a22 0%, #05090f 55%, #03050a 100%);
}
.portada__grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(120,230,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(120,230,255,.055) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  -webkit-mask-image: radial-gradient(55% 60% at 50% 42%, #000, transparent 78%); mask-image: radial-gradient(55% 60% at 50% 42%, #000, transparent 78%);
}
.portada__luz {
  position: absolute; z-index: -1; left: 50%; top: 40%; width: min(1100px, 150vw); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(40,220,255,.22), rgba(0,150,190,.08) 50%, transparent 74%);
  opacity: 0; pointer-events: none;
}
.portada__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.emblema.portada__emblema { width: min(80vw, 54svh, 500px); }
.portada__texto { position: relative; margin-top: clamp(14px, 2.4vh, 26px); width: min(86vw, 62svh, 580px); }
.portada__texto img { width: 100%; height: auto; display: block; filter: brightness(1.45) contrast(1.06); }
/* destello que recorre la palabra, recortado a sus letras */
.portada__texto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(200,250,255,.85) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  -webkit-mask: url(../img/marca/marca-texto.webp) center / 100% 100% no-repeat; mask: url(../img/marca/marca-texto.webp) center / 100% 100% no-repeat;
  mix-blend-mode: screen; animation: palabra-brillo 7.5s var(--ease-out) 2.6s infinite;
}
@keyframes palabra-brillo { 0% { background-position: 160% 0; } 22%, 100% { background-position: -60% 0; } }
.portada__lema {
  margin-top: clamp(14px, 2.2vh, 22px); font-size: clamp(1rem, .35vw + .95rem, 1.18rem); color: rgba(214,228,238,.72); letter-spacing: -.005em;
}
.portada__lema span { color: #9fefff; white-space: nowrap; }
.portada__texto, .portada__lema { animation: portada-sube .9s var(--ease-out) both; }
.portada__texto { animation-delay: 1.5s; }
.portada__texto::after { animation-delay: 2.6s; }
.portada__lema { animation-delay: 1.8s; }
@keyframes portada-sube { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.portada__bajar {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 12px;
  color: rgba(214,228,238,.6); font-size: .86rem; font-weight: 500; text-decoration: none;
  animation: portada-sube .9s var(--ease-out) 2.2s both; transition: color .2s;
}
.portada__bajar:hover { color: #fff; }
.portada__bajar i { width: 1px; height: 34px; background: linear-gradient(rgba(159,239,255,0), rgba(159,239,255,.8)); position: relative; overflow: hidden; }
.portada__bajar i::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; top: -12px; background: #dffaff; animation: bajar 2.2s ease-in-out infinite; }
@keyframes bajar { 0% { top: -12px; } 70%, 100% { top: 34px; } }
@media (max-height: 640px) { .portada__bajar { display: none; } }

/* el emblema de la portada no muestra la foto fija mientras arranca el WebGL (evita "prendido → apagado → prendido") */
.js .emblema--intro:not(.is-gl):not(.is-fallback) .emblema__img { opacity: 0; }
.emblema.is-fallback .emblema__img { opacity: 1; transition: opacity .6s var(--ease-out); }

/* el salto desde la portada termina justo donde empieza el héroe (sin franja oscura bajo la barra) */
.portada + .hero { padding-top: 88px; scroll-margin-top: calc(-1 * (var(--nav-h) + 16px)); }

/* barra sobre la portada */
body:not(.menu-open) .nav--dark { color: #fff; }
body:not(.menu-open) .nav--dark.is-scrolled { background: rgba(4,7,12,.72); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
body:not(.menu-open) .nav--dark .logo { color: #fff; }
body:not(.menu-open) .nav--dark .logo__word span { color: rgba(214,228,238,.66); }
body:not(.menu-open) .nav--dark .logo__emb { box-shadow: inset 0 0 0 1px rgba(140,230,255,.2); }
body:not(.menu-open) .nav--dark .nav__links a { color: rgba(214,228,238,.74); }
body:not(.menu-open) .nav--dark .nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
body:not(.menu-open) .nav--dark .nav__cta { background: #fff; color: var(--ink); }
body:not(.menu-open) .nav--dark .nav__cta:hover { background: #e6fbff; }
body:not(.menu-open) .nav--dark .nav__burger { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.nav .logo__word span, .nav .nav__links a, .nav__burger { transition: color .25s var(--ease-out), background-color .25s var(--ease-out), border-color .25s var(--ease-out); }

/* ───────── héroe ───────── */
.hero { position: relative; padding: calc(var(--nav-h) + 36px) 0 72px; isolation: isolate; }
.hero__bg {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 40%;
  clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(60% 70% at 20% 30%, rgba(0, 179, 214, .9), transparent 70%),
    radial-gradient(60% 80% at 80% 20%, rgba(33, 82, 255, .95), transparent 70%),
    radial-gradient(50% 60% at 60% 90%, rgba(255, 92, 168, .75), transparent 70%),
    #6f86ff;
}
.hero__mesh { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__in { display: grid; gap: 44px; }
.hero__copy { position: relative; max-width: 620px; }
.hero h1 {
  font-size: clamp(2.45rem, 4.6vw + 1rem, 4.6rem);
  line-height: 1.02; letter-spacing: -.04em; font-weight: 640;
}
.hero__lead { margin-top: 20px; font-size: clamp(1.07rem, .4vw + 1rem, 1.25rem); color: var(--ink-2); max-width: 34em; line-height: 1.55; }

.picker { margin-top: 28px; }
.picker legend { font-size: .9rem; font-weight: 550; color: var(--ink); margin-bottom: 10px; }
.picker__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 15px 0 13px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.85);
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.chip .ic { width: 17px; height: 17px; }
.chip:hover { border-color: #aeb8cb; color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,.55); transform-origin: left; transform: scaleX(0); }
.chip[aria-checked="true"] .chip__bar.is-run { animation: chipbar var(--cycle, 5200ms) linear forwards; }
.picker__chips.is-paused .chip__bar { animation-play-state: paused !important; }
@keyframes chipbar { to { transform: scaleX(1); } }
.chip--more { border-style: dashed; text-decoration: none; }

.hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* escena de producto */
.stage { position: relative; padding: 0 0 40px 0; }
/* video del héroe: reemplaza a las pantallas cuando puede reproducirse */
.reel { display: none; margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: #070a14; box-shadow: var(--sh-3), 0 0 0 1px rgba(255,255,255,.06); }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.stage.has-reel .reel { display: block; }
.stage.has-reel .win, .stage.has-reel .phone { display: none; }
.stage__note { position: absolute; left: 4px; bottom: 4px; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .78rem; font-weight: 500; box-shadow: var(--sh-1); }
.win {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid rgba(11,16,32,.08);
  box-shadow: var(--sh-3);
  font-size: 12px; line-height: 1.35;
}
.win__bar { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dce6; }
.win__url { display: inline-flex; align-items: center; gap: 6px; margin-inline: auto; padding: 3px 12px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--ink-3); font-size: 11px; max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win__url .ic { width: 11px; height: 11px; color: var(--ok); }
.win__body { display: grid; grid-template-columns: 1fr; min-height: 300px; }
.win__side { display: none; padding: 14px 10px; background: #f8f9fc; border-right: 1px solid var(--line); }
.win__brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 12px; font-size: 12.5px; }
.win__logo { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.win__logo .ic { width: 13px; height: 13px; }
.win__side li { padding: 7px 8px; border-radius: 7px; color: var(--ink-3); font-weight: 500; }
.win__side li.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.win__main { padding: 16px; min-width: 0; }
.win__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.win__head b { font-size: 15px; letter-spacing: -.01em; }
.win__btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 7px; background: var(--brand); color: #fff; font-weight: 550; font-size: 11px; }
.win__btn .ic { width: 12px; height: 12px; }
.win__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpi { padding: 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.kpi span { display: block; color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; margin-top: 3px; font-size: 15px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 11px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { grid-column: 1; color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .badge { grid-row: 1 / span 2; grid-column: 2; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { color: var(--ok); background: var(--ok-bg); }
.badge--warn { color: var(--warn); background: var(--warn-bg); }
.badge--danger { color: var(--danger); background: var(--danger-bg); }
.badge--info { color: var(--info); background: var(--info-bg); }

.phone {
  position: absolute; right: 10px; bottom: 0; width: 46%; max-width: 200px; aspect-ratio: 9 / 18.5;
  border-radius: 30px; padding: 7px; background: #0b1020;
  box-shadow: 0 40px 70px -20px rgba(11,16,32,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone__notch { position: absolute; top: 13px; left: 50%; width: 30%; height: 16px; border-radius: 99px; background: #0b1020; transform: translateX(-50%); z-index: 2; }
.phone__screen { height: 100%; border-radius: 24px; background: #fff; padding: 34px 12px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; font-size: 11px; }
.phone__status { position: absolute; top: 15px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
.phone__sig { display: flex; gap: 2px; align-items: end; }
.phone__sig i { width: 3px; background: var(--ink); border-radius: 1px; }
.phone__sig i:nth-child(1) { height: 4px; } .phone__sig i:nth-child(2) { height: 6px; } .phone__sig i:nth-child(3) { height: 8px; }
.phone__title { font-size: 14px; letter-spacing: -.02em; line-height: 1.2; }
.phone__lines { display: flex; flex-direction: column; gap: 6px; }
.phone__lines li { display: flex; flex-direction: column; padding: 8px 9px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.phone__lines span { color: var(--ink-3); font-size: 11px; }
.phone__lines b { font-weight: 550; font-variant-numeric: tabular-nums; }
.phone__btn { margin-top: auto; display: block; text-align: center; padding: 10px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 600; }
.phone__note { text-align: center; color: var(--ink-3); font-size: 11px; line-height: 1.3; }

[data-swap] { transition: opacity .16s var(--ease-out), filter .16s var(--ease-out), transform .16s var(--ease-out); }
.is-swapping [data-swap] { opacity: 0; filter: blur(3px); transform: translateY(3px); }

@media (min-width: 640px) {
  .win__body { grid-template-columns: 150px 1fr; }
  .win__side { display: block; }
  .phone { right: -6px; width: 34%; }
}

@media (min-width: 1000px) {
  .hero { padding: calc(var(--nav-h) + 64px) 0 96px; }
  .hero__bg {
    top: 0; height: auto;
    clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%);
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 62%);
            mask-image: linear-gradient(100deg, transparent 30%, #000 62%);
  }
  .hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .hero h1 { font-size: clamp(3.2rem, 3.6vw + 1rem, 4.3rem); }
  .hero__copy { max-width: 540px; }
  .hero__lead { max-width: 30em; }
  .stage { margin-right: calc(var(--gutter) * -1 - 40px); padding: 30px 0 60px; }
  .win { transform: perspective(1800px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
  .reel { transform: perspective(2200px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; border-radius: 20px; }
  .phone { left: -28px; right: auto; bottom: -6px; width: 178px; }
  .stage__note { left: auto; right: 60px; bottom: 18px; }
}

/* ───────── tecnologías ───────── */
.stack { border-block: 1px solid var(--line); background: #fff; }
.stack__in { display: flex; flex-direction: column; gap: 10px; padding-block: 22px; }
.stack__label { font-size: .85rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 40px; animation: marquee 38s linear infinite; }
.marquee__track li { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; color: #8b93a7; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 860px) { .stack__in { flex-direction: row; align-items: center; gap: 32px; } }

/* ───────── secciones ───────── */
.sec { padding-block: clamp(76px, 9vw, 128px); }
.sec--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec__head h2, .glossary__intro h2, .faq__intro h2 { font-size: clamp(2rem, 2.6vw + 1.1rem, 3.15rem); line-height: 1.06; letter-spacing: -.035em; }
.sec__head p, .glossary__intro p, .faq__intro p { margin-top: 18px; font-size: clamp(1.05rem, .3vw + 1rem, 1.2rem); color: var(--ink-2); max-width: 38em; }

/* ───────── bento ───────── */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--sh-1);
  transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.tile:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.tile__txt { padding: 26px 26px 0; position: relative; z-index: 1; }
.tile h3 { font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.2; }
.tile p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; max-width: 30em; }
.tile__more { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--brand-ink); font-weight: 550; font-size: .95rem; min-height: 32px; }
.tile__more .ic { transition: transform .2s var(--ease-out); }
.tile__more:hover .ic { transform: translateX(3px); }
.tile__os { display: flex; gap: 14px; }
.tile__os span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 550; font-size: .92rem; }
.tile__os .ic { width: 17px; height: 17px; }
.tile__art { margin-top: 22px; flex: 1; position: relative; min-height: 200px; }

/* arte: tablero */
.art-dash { margin: 22px 0 -1px 26px; border: 1px solid var(--line); border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; background: linear-gradient(180deg, #fafbff, #fff); overflow: hidden; }
.art-dash__top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.art-dash__top span { margin-left: auto; margin-right: 8px; font-size: .75rem; color: var(--ink-3); }
.art-dash__body { padding: 16px; font-size: 13px; line-height: 1.35; }
.art-dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.art-dash__head b { font-size: 1rem; letter-spacing: -.015em; }
.art-dash__chip { padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: .75rem; font-weight: 550; }
.art-dash__rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.art-dash__rows .row { padding: 11px 14px; }
.art-dash__rows .row small { font-size: 12px; }
.art-dash__rows .badge { font-size: 11.5px; }
.art-dash__top i { width: 9px; height: 9px; border-radius: 50%; background: #dfe3eb; }
.art-dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.art-dash__kpi { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.art-dash__kpi span { display: block; font-size: .8rem; color: var(--ink-3); }
.art-dash__kpi b { display: block; margin-top: 2px; font-size: 1.45rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.art-dash__kpi em { font-style: normal; font-size: .78rem; color: var(--ok); font-weight: 550; }
.art-dash__chart { grid-column: 1 / -1; height: 120px; padding: 6px 0 0; }
.art-dash__chart svg { width: 100%; height: 100%; overflow: visible; }
.art-dash__line { stroke-dasharray: 420; stroke-dashoffset: 420; }
.tile.is-in .art-dash__line { animation: draw 1.6s var(--ease-out) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* arte: celulares */
.art-phones { min-height: 300px; }
.mini-phone { position: absolute; width: 168px; height: 300px; border-radius: 28px; background: #0b1020; padding: 6px; box-shadow: var(--sh-3); }
.mini-phone::before { content: ""; position: absolute; inset: 6px; border-radius: 22px; background: #fff; }
.mini-phone > * { position: relative; }
.mini-phone--back { left: calc(50% - 150px); top: 40px; transform: rotate(-8deg); background: #1c2236; }
.mini-phone--front { left: calc(50% - 40px); top: 6px; transform: rotate(5deg); }
.mini-phone__card { margin: 34px 12px 10px; padding: 12px; border-radius: 14px; background: var(--ink); color: #fff; }
.mini-phone__card--blue { background: linear-gradient(135deg, var(--brand), #4f7bff); }
.mini-phone__card span { display: block; font-size: 11px; opacity: .8; }
.mini-phone__card b { font-size: 16px; letter-spacing: -.02em; }
.mini-phone__row { display: flex; flex-direction: column; margin: 8px 12px 0; padding: 7px 10px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 11px; line-height: 1.3; }
.mini-phone__row span { color: var(--ink-3); }
.mini-phone__row b { font-weight: 600; }
.mini-phone__tab { position: absolute !important; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: space-around; padding: 9px; border-radius: 14px; background: var(--bg-soft); }
.mini-phone__tab i { width: 16px; height: 16px; border-radius: 5px; background: #cfd5e1; }
.mini-phone__tab i:first-child { background: var(--brand); }
.mini-phone__push { position: absolute !important; left: -38px; right: 18px; top: 58px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: var(--sh-2); border: 1px solid var(--line); font-size: 11px; line-height: 1.25; }
.mini-phone__push .ic { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--ok-bg); color: var(--ok); stroke-width: 2.4; }
.mini-phone__push b { display: block; font-size: 11.5px; }
.tile.is-in .mini-phone__push { animation: pushin .6s var(--ease-out) .5s both; }
@keyframes pushin { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* arte: web */
.art-web { margin: 22px 26px -1px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; background: #fff; }
.art-web__bar { display: flex; align-items: center; gap: 5px; padding: 9px 11px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.art-web__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d7dce6; }
.art-web__bar span { margin-left: 8px; font-size: 11px; color: var(--ink-3); }
.art-web img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.art-web__hero { padding: 20px 18px; background: radial-gradient(120% 120% at 100% 0, #e6ecff, #fff 60%); }
.art-web__hero b { display: block; height: 14px; width: 80%; border-radius: 5px; background: var(--ink); }
.art-web__hero b.short { width: 52%; margin-top: 8px; }
.art-web__cta { display: inline-block; margin-top: 16px; width: 92px; height: 26px; border-radius: 99px; background: var(--wa); }
.art-web__prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px 20px; }
.art-web__prods i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #f1f4fa, #e3e8f2); }

/* arte: flujo */
.art-flow { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 26px 26px; }
.art-flow__node { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-1); font-size: .86rem; font-weight: 550; white-space: nowrap; }
.art-flow__node .ic { width: 16px; height: 16px; color: var(--brand); }
.art-flow__node--hub { background: var(--ink); color: #fff; border-color: var(--ink); }
.art-flow__node--hub .ic { color: #9fb3ff; }
.art-flow__link { width: 2px; height: 22px; margin-left: 22px; background: repeating-linear-gradient(180deg, var(--line-2) 0 4px, transparent 4px 8px); }
.art-flow__out { display: flex; flex-wrap: wrap; gap: 8px; }
.tile.is-in .art-flow__link { background: repeating-linear-gradient(180deg, var(--brand) 0 4px, transparent 4px 8px); background-size: 2px 8px; animation: flow 0.8s linear infinite; }
@keyframes flow { to { background-position: 0 8px; } }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile--gestion { grid-column: span 4; }
  .tile--apps { grid-column: span 2; grid-row: span 2; }
  .tile--web, .tile--integra { grid-column: span 2; }
  .art-phones { min-height: 360px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .tile--gestion { grid-column: span 6; }
  .tile--apps { grid-column: span 3; grid-row: span 2; }
  .tile--web, .tile--integra { grid-column: span 3; }
}

/* ───────── explorador de servicios ───────── */
.explorer { display: grid; gap: 20px; }
.explorer__list { display: flex; flex-direction: column; gap: 4px; }
.svc {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; text-align: left;
  border: 1px solid transparent; border-radius: 14px; background: transparent;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.svc:hover { background: rgba(255,255,255,.7); }
.svc[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--sh-1); }
.svc__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.svc__ic .ic { width: 20px; height: 20px; }
.svc[aria-selected="true"] .svc__ic { background: var(--brand); border-color: var(--brand); color: #fff; }
.svc__t { display: block; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.svc__d { display: block; margin-top: 2px; font-size: .88rem; color: var(--ink-3); line-height: 1.4; }
.svc__chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .25s var(--ease-out); }
.svc[aria-selected="true"] .svc__chev { transform: rotate(90deg); color: var(--brand); }

.explorer__panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-2);
  padding: clamp(22px, 3vw, 40px);
}
.panel__top { display: flex; align-items: center; gap: 14px; }
.panel__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.panel__ic .ic { width: 26px; height: 26px; }
.explorer__panel h3 { font-size: clamp(1.45rem, 1vw + 1.1rem, 1.9rem); letter-spacing: -.03em; line-height: 1.15; }
.panel__que { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); line-height: 1.6; }
.panel__cols { margin-top: 26px; display: grid; gap: 24px; }
.panel__h { font-size: .95rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: 12px; }
.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); line-height: 1.45; }
.checks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); stroke-width: 2.6; margin-top: 1px; }
.panel__side { display: grid; gap: 16px; align-content: start; }
.panel__box { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.panel__box p { color: var(--ink-2); line-height: 1.5; font-size: .98rem; }
.panel__box .panel__h { margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.panel__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel__cta p { color: var(--ink-3); font-size: .95rem; }
.panel-in { animation: panelin .32s var(--ease-out); }
@keyframes panelin { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }

@media (max-width: 899px) {
  .explorer__panel { margin: 4px 0 12px; box-shadow: var(--sh-1); }
  .explorer__panel .panel__top { display: none; }
  .panel__que { margin-top: 0; }
}
@media (min-width: 900px) {
  .explorer { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .explorer__panel { position: sticky; top: calc(var(--nav-h) + 24px); }
  .panel__cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* ───────── rubros (banda oscura) ───────── */
.sec--dark { position: relative; background: var(--dark); color: var(--dark-ink); overflow: hidden; isolation: isolate; }
.sec--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(33, 82, 255, .28), transparent 70%),
    radial-gradient(40% 35% at 0% 100%, rgba(0, 179, 214, .14), transparent 70%);
}
.sec__head--dark p { color: var(--dark-ink-2); }

.rubros { display: grid; gap: 18px; }
.rubros__tabs {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
}
.rubros__tabs::-webkit-scrollbar { display: none; }
.rtab {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 14px 0 12px; border-radius: 12px;
  border: 1px solid var(--dark-line); background: rgba(255,255,255,.03);
  color: var(--dark-ink-2); font-size: .93rem; font-weight: 500; text-align: left;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.rtab .ic { width: 18px; height: 18px; }
.rtab:hover { color: var(--dark-ink); background: rgba(255,255,255,.06); }
.rtab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }

.rubros__panel {
  position: relative; border-radius: var(--r-lg); padding: clamp(22px, 3.2vw, 44px);
  background: linear-gradient(180deg, var(--dark-3), var(--dark-2));
  border: 1px solid var(--dark-line);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset, 0 30px 60px -30px rgba(0,0,0,.8);
}
.rp__top { display: flex; align-items: center; gap: 14px; }
.rp__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(33, 82, 255, .18); color: #a9bbff; border: 1px solid rgba(124, 150, 255, .3); flex: none; }
.rp__ic .ic { width: 25px; height: 25px; }
.rubros__panel h3 { font-size: clamp(1.45rem, 1vw + 1.1rem, 2rem); letter-spacing: -.03em; color: #fff; line-height: 1.15; }
.rp__lines { margin-top: 26px; display: grid; gap: 20px 32px; }
.rp__line { display: grid; gap: 6px; padding: 18px 0 0; border-top: 1px solid var(--dark-line); }
.rp__line dt { font-size: .84rem; font-weight: 600; color: var(--dark-ink-2); }
.rp__line dd { margin: 0; color: var(--dark-ink); font-size: 1.05rem; line-height: 1.5; }
.rp__line--hoy dt { color: #ffb4a8; }
.rp__line--cambia dd { font-weight: 550; color: #fff; }
.rp__line--cambia dt { color: #7ee2a8; }
.rp__mods { display: grid; gap: 8px; margin-top: 4px; }
.rp__mods li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--dark-ink); line-height: 1.45; }
.rp__mods .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(124, 150, 255, .18); color: #b7c5ff; stroke-width: 2.6; margin-top: 2px; }
.rp__extra { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp__extra span:first-child { color: var(--dark-ink-2); font-size: .9rem; margin-right: 4px; }
.rp__pill { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--dark-line); color: var(--dark-ink); font-size: .85rem; background: rgba(255,255,255,.04); }
.rp__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--dark-ghost { color: var(--dark-ink); border-color: rgba(255,255,255,.18); background: transparent; }
.btn--dark-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }

@media (min-width: 980px) {
  .rubros { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
  .rubros__tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 6px; }
  .rtab { min-height: 46px; font-size: .9rem; white-space: normal; line-height: 1.2; padding-block: 8px; }
  .rp__lines { grid-template-columns: 1fr 1fr; }
  .rp__line--hoy { order: 1; }
  .rp__line--cambia { order: 2; }
  .rp__line--sistema { order: 3; grid-column: 1 / -1; }
  .rp__mods { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* ───────── trabajos ───────── */
.cases { display: grid; gap: clamp(56px, 7vw, 96px); }
.case { display: grid; gap: 28px; align-items: center; }
.case__media { position: relative; padding: 0 0 36px; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-3); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dce6; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case__phone { position: absolute; right: 4%; bottom: 0; width: 24%; min-width: 104px; max-width: 170px; border-radius: 22px; padding: 5px; background: #0b1020; box-shadow: 0 30px 50px -18px rgba(11,16,32,.55); }
.case__phone img { border-radius: 18px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.browser video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #1a1f3d; }
.case__phone video { display: block; width: 100%; height: auto; border-radius: 18px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; background: #fbf4ea; }
.case__note { position: absolute; left: 10px; bottom: 6px; font-size: .78rem; color: var(--ink-3); }
.case__meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .9rem; color: var(--ink-3); }
.case__meta .ic { width: 15px; height: 15px; }
.case__meta span { display: inline-flex; align-items: center; gap: 5px; }
.case h3 { font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.25rem); letter-spacing: -.035em; line-height: 1.1; }
.case__badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.case__badges .badge { font-size: .8rem; padding: 4px 10px; }
.case__sum { margin-top: 14px; font-size: 1.08rem; color: var(--ink-2); max-width: 32em; }
.case .checks { margin-top: 18px; }
.case .tags { margin-top: 20px; }
.case .tag { background: var(--bg-soft); }
.case__link { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 550; text-decoration: none; }
.case__link:hover { text-decoration: underline; }
.case__link .ic { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.case__link:hover .ic { transform: translate(2px, -2px); }

.ejemplos-head { margin: clamp(80px, 9vw, 128px) 0 clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); max-width: 720px; }
.ejemplos-head h3 { font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.25rem); letter-spacing: -.035em; line-height: 1.1; }
.ejemplos-head p { margin-top: 14px; font-size: 1.08rem; color: var(--ink-2); }
.case-dev { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 18px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); border: 1px dashed var(--line-2); background: var(--bg-soft); }
.case-dev h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.case-dev p { margin-top: 6px; color: var(--ink-2); }
.case-dev .badge { font-size: .8rem; padding: 4px 10px; }

@media (min-width: 900px) {
  .case { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .case:nth-child(even) .case__media { order: 2; }
  .case:nth-child(even) .case__phone { right: auto; left: 4%; }
  .case:nth-child(even) .case__note { left: auto; right: 10px; }
  .case-dev { grid-template-columns: auto 1fr auto; gap: 24px; }
}

/* ───────── proceso ───────── */
.steps { display: grid; gap: 0; counter-reset: s; position: relative; }
.step { position: relative; padding: 0 0 34px 64px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line-2); }
.step::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--brand); transform-origin: top; transform: scaleY(0); transition: transform .7s var(--ease-out); }
.step:last-child::before, .step:last-child::after { display: none; }
.steps.is-in .step::after { transform: scaleY(1); }
.steps.is-in .step:nth-child(2)::after { transition-delay: .12s; }
.steps.is-in .step:nth-child(3)::after { transition-delay: .24s; }
.steps.is-in .step:nth-child(4)::after { transition-delay: .36s; }
.steps.is-in .step:nth-child(5)::after { transition-delay: .48s; }
.step__n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); font-weight: 650; font-variant-numeric: tabular-nums; box-shadow: var(--sh-1); transition: background-color .3s, color .3s, border-color .3s; }
.steps.is-in .step__n { background: var(--ink); color: #fff; border-color: var(--ink); }
.step__ic { display: none; }
.step h3 { font-size: 1.2rem; letter-spacing: -.02em; padding-top: 9px; }
.step p { margin-top: 6px; color: var(--ink-2); max-width: 30em; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .step { padding: 64px 0 0; }
  .step::before, .step::after { left: 52px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .step::after { transform: scaleX(0); transform-origin: left; }
  .steps.is-in .step::after { transform: scaleX(1); }
  .step h3 { padding-top: 0; font-size: 1.1rem; }
  .step p { font-size: .96rem; }
}

.promises { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line-2); }
.promises__t { font-size: clamp(1.4rem, 1vw + 1.05rem, 1.75rem); letter-spacing: -.03em; margin-bottom: 28px; }
.promises ul { display: grid; gap: 22px 40px; }
.promises li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: var(--ink-2); line-height: 1.5; }
.promises li b { color: var(--ink); font-weight: 600; }
.promises .ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--brand); }
@media (min-width: 760px) { .promises ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .promises ul { grid-template-columns: repeat(3, 1fr); } }

/* ───────── armá tu pedido ───────── */
.builder { display: grid; gap: 28px; }
.builder__form { display: grid; gap: 28px; }
.field legend, .field__label { display: block; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.field__label span { color: var(--ink-3); font-weight: 400; }
.field--2 { display: grid; gap: 20px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  font-size: .94rem; font-weight: 500; color: var(--ink-2); user-select: none;
  transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out), transform .14s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.opt span::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid #b4bdcd; background: #fff center / 11px no-repeat;
  transition: background-color .16s, border-color .16s;
}
.opts--radio .opt span::before { border-radius: 50%; }
.opt span:hover { border-color: #a8b2c6; color: var(--ink); }
.opt span:active { transform: scale(.97); }
.opt input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.opt input:checked + span::before { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.input, .select select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  font-size: 1rem; line-height: 1.4;
  transition: border-color .16s, box-shadow .16s;
}
textarea.input { resize: vertical; min-height: 96px; }
.input::placeholder { color: #646d82; }
.input:hover, .select select:hover { border-color: #aab4c6; }
.input:focus, .select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(33, 82, 255, .14); }
.select { position: relative; }
.select select { appearance: none; padding-right: 42px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.builder__preview { display: grid; gap: 14px; align-content: start; }
.chat { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-2); background: #efeae2; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f0f2f5; border-bottom: 1px solid #e2e5ea; }
.chat__head div { display: flex; flex-direction: column; line-height: 1.25; }
.chat__head b { font-size: .95rem; }
.chat__head span { font-size: .8rem; color: var(--ink-3); }
.chat__avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #0e2a33, #060a12 70%); }
.chat__avatar img { width: 30px; height: 30px; display: block; }
.chat__body {
  min-height: 240px; padding: 18px 14px; display: flex; flex-direction: column; justify-content: flex-end;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.chat__bubble {
  position: relative; align-self: flex-end; max-width: 92%;
  padding: 9px 12px 20px; border-radius: 12px 4px 12px 12px; background: #d9fdd3;
  color: #111b21; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 1px .5px rgba(11,20,26,.13);
}
.chat__bubble::after { content: attr(data-time) "  ✓✓"; position: absolute; right: 9px; bottom: 4px; font-size: .68rem; color: #53bdeb; letter-spacing: -.02em; }
.chat__bubble.is-tick { animation: tick .3s var(--ease-out); }
@keyframes tick { from { transform: scale(.985); } }
.builder__hint { font-size: .86rem; color: var(--ink-3); text-align: center; }

@media (min-width: 640px) { .field--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .builder { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 48px; align-items: start; }
  .builder__preview { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* ───────── glosario ───────── */
.glossary { display: grid; gap: 32px; }
.glossary__box { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); overflow: hidden; }
.glossary__terms { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px; border-bottom: 1px solid var(--line); }
.gterm { min-height: 44px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background-color .16s, color .16s, border-color .16s; -webkit-tap-highlight-color: transparent; }
.gterm:hover { border-color: var(--line-2); color: var(--ink); }
.gterm[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.glossary__def { padding: clamp(22px, 3vw, 34px); min-height: 170px; }
.glossary__def b { display: block; font-size: clamp(1.4rem, 1vw + 1.1rem, 1.8rem); letter-spacing: -.03em; line-height: 1.15; }
.glossary__def p { margin-top: 12px; font-size: 1.12rem; color: var(--ink-2); max-width: 36em; line-height: 1.6; }
@media (min-width: 960px) { .glossary { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; } }

/* ───────── preguntas ───────── */
.faq { display: grid; gap: 32px; }
.faq__intro .btn { margin-top: 24px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em;
  -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); transition: transform .3s var(--ease-out), background-color .2s, color .2s, border-color .2s; }
.qa summary:hover .ic { border-color: #aab4c6; color: var(--ink); }
.qa[open] summary .ic { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 48px 22px 2px; color: var(--ink-2); line-height: 1.65; max-width: 44em; }
.qa[open] .qa__a { animation: qa .32s var(--ease-out); }
@keyframes qa { from { opacity: 0; transform: translateY(-4px); } }
@media (min-width: 960px) { .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } .faq__intro { position: sticky; top: calc(var(--nav-h) + 32px); } }

/* ───────── cierre ───────── */
/* Cierre: el sello de la marca. Fondo casi negro, halo cian que sigue el latido de la C (JS escribe su opacidad). */
.close { position: relative; overflow: hidden; isolation: isolate; background: #04070c; color: #fff; padding-block: clamp(72px, 9vw, 128px); }
.close::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 90% at 50% 0%, rgba(0,140,170,.16), transparent 70%), linear-gradient(180deg, #060b12, #03060a); }
.close__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(120,230,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(120,230,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 75%);
}
.close__in { display: grid; justify-items: center; text-align: center; gap: 40px; }
.close__copy { display: flex; flex-direction: column; align-items: center; }
.close h2 { font-size: clamp(2.1rem, 3.4vw + 1rem, 3.9rem); line-height: 1.04; letter-spacing: -.04em; max-width: 15em; text-wrap: balance; }
.close p { margin-top: 18px; font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem); color: rgba(226,236,245,.78); }
.close .btn { margin-top: 34px; }

.sello { position: relative; margin: 0; width: min(78vw, 330px); display: grid; justify-items: center; gap: 18px; }
.sello__luz {
  position: absolute; z-index: -1; left: 50%; top: 46%; width: 150%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(40,220,255,.30), rgba(0,150,190,.12) 45%, transparent 72%);
  opacity: .8; pointer-events: none;
}
.emblema { position: relative; width: 100%; aspect-ratio: 1000 / 996; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.emblema__img, .emblema__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.emblema__gl { opacity: 0; transition: opacity .4s var(--ease-out); }
.emblema.is-gl .emblema__gl { opacity: 1; }
.emblema.is-gl .emblema__img { opacity: 0; transition: opacity .4s var(--ease-out); }
.sello__texto { width: 100%; height: auto; display: block; }

@media (min-width: 900px) {
  .close__in { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); justify-items: start; text-align: left; gap: clamp(48px, 6vw, 96px); align-items: center; }
  .close__copy { align-items: flex-start; }
  .close h2 { max-width: 12em; }
  .sello { width: 100%; justify-self: center; }
}

/* ───────── pie ───────── */
.foot { background: #fff; border-top: 1px solid var(--line); padding-top: 56px; }
.foot__in { display: grid; gap: 36px; }
.foot__brand p { margin-top: 14px; color: var(--ink-3); max-width: 26em; font-size: .97rem; }
.foot__col { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.foot__col b { font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.foot__col a, .foot__col span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); text-decoration: none; min-height: 28px; }
.foot__col a:hover { color: var(--ink); }
.foot__col .ic { width: 16px; height: 16px; }
.foot__base { margin-top: 48px; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .86rem; color: var(--ink-3); }
@media (min-width: 760px) { .foot__in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ───────── botón flotante ───────── */
.fab {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(5, 46, 22, .55), 0 2px 6px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.fab .ic { width: 30px; height: 30px; }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab:active { transform: scale(.94); }

/* ───────── aparición ───────── */
.js [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ───────── movimiento reducido ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; row-gap: 8px; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .art-dash__line { stroke-dashoffset: 0; }
  .logo__luz { animation: none; }
  .portada__texto::after, .portada__bajar i::after { display: none; }
}

@media (hover: none) {
  .tile:hover { box-shadow: var(--sh-1); }
}
