/* ISPBoss — sitio nuevo, v2. Mobile first. Sobrio: blanco, grises y un azul; rojo y ámbar sólo en el logo. */

/* Mientras baja Geist se ve la letra del sistema, agrandada para que ocupe lo mismo que Geist
   (medido con el título en 600): así el título no cambia de renglones y la página no salta al cargar. */
@font-face { font-family: "Geist Fb Roboto"; src: local("Roboto"); size-adjust: 110.9%; }
@font-face { font-family: "Geist Fb Segoe"; src: local("Segoe UI"); size-adjust: 105.7%; }
@font-face { font-family: "Geist Fb Arial"; src: local("Arial"); size-adjust: 98.4%; }

:root {
  --bg: #07090e;
  --bg-2: #0b0e15;
  --tile: rgba(255, 255, 255, .025);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ededf0;
  --muted: #a3abbd;
  --soft: #8b93a6;
  --blue: #3b7ff0;     /* el azul del logo, más vivo: botón principal */
  --blue-h: #5a95f5;
  --accent: #74a8ff;   /* textos y detalles en azul */
  --wa: #25d366;
  /* sólo para las barras del logo y para lo que significa algo (corte, riesgo, advertencia) */
  --red: #e0386a;
  --amber: #f2a531;
  --font: "Geist", "Geist Fb Roboto", "Geist Fb Segoe", "Geist Fb Arial", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: 18px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* grano muy suave sobre toda la página */
.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- marca y botones ---------- */
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand img { height: 28px; width: auto; }
.tc-ico { height: 18px; width: auto; }
.bars { display: flex; align-items: flex-end; gap: 2.5px; height: 18px; }
.bars i { display: block; width: 4px; border-radius: 1.5px; }
.bars i:nth-child(1) { height: 45%; background: var(--red); }
.bars i:nth-child(2) { height: 70%; background: var(--amber); }
.bars i:nth-child(3) { height: 100%; background: var(--blue); }
.bars.sm { height: 14px; }
.bars.sm i { width: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; font-weight: 500; font-size: 15px; padding: 12px 18px; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.btn:active { transform: scale(.98); }
/* botón principal (el nombre quedó de cuando era blanco) */
.btn-light { background: var(--blue); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 10px 30px -10px rgba(59, 127, 240, .8); }
.btn-light:hover { background: var(--blue-h); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 9px; }
.btn-xl { padding: 15px 24px; font-size: 16px; }
.mono-sm { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.wa-ico { width: 18px; height: 18px; flex: none; }

/* ---------- barra superior ---------- */
.topbar { position: fixed; inset: 10px 0 auto; z-index: 30; padding: 0 10px; }
.bar-inner { max-width: 1100px; margin: 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; border-radius: 14px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.topbar.scrolled .bar-inner { background: rgba(10, 12, 18, .72); border-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.nav { display: none; gap: 26px; font-size: 14px; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ---------- textos de sección ---------- */
.sec { position: relative; padding: 76px 0; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.sec h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.06; font-size: clamp(30px, 7.4vw, 54px); max-width: 860px; text-wrap: balance; }
.soft { color: var(--soft); }
.sub { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 640px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* tarjetas que se iluminan donde pasa el mouse */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(138, 180, 255, .10), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 120px 0 0; overflow: hidden; isolation: isolate; text-align: center; }
.beam { position: absolute; left: 50%; top: -120px; width: min(1100px, 160vw); height: 760px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(120, 165, 255, .30), transparent),
    radial-gradient(40% 55% at 50% 0%, rgba(160, 195, 255, .18), transparent 70%); filter: blur(4px); }
.beam::after { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 62%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(200, 220, 255, .7), transparent); }
.dots { position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 45% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 45% at 50% 20%, #000, transparent 75%); }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 13px; color: var(--muted); transition: border-color .2s, color .2s; max-width: 100%; }
.pill:hover { border-color: rgba(138, 180, 255, .45); color: var(--text); }
.pill-tag { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(79, 143, 230, .2); color: var(--accent); }
.pill .arrow { transition: transform .2s; }
.pill:hover .arrow { transform: translateX(3px); }

.hero h1 { margin-top: 26px; font-weight: 600; letter-spacing: -.05em; line-height: 1.02; font-size: clamp(42px, 11.5vw, 96px); color: #fff; }
/* el degradé va en cada palabra: en el h1 no se pinta a través de palabras que se animan con transform */
.hero h1 .w { display: inline-block; padding-bottom: .08em;
  background: linear-gradient(180deg, #fff 35%, #a7aec0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 22px auto 0; font-size: 17px; color: var(--muted); max-width: 600px; text-wrap: balance; }
.ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; align-items: stretch; }
.trust { margin-top: 16px; font-size: 12.5px; color: var(--soft); }
.trust a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.trust a:hover { color: var(--text); }

.stage { position: relative; margin-top: 56px; perspective: 1600px; }
.screen { position: relative; border-radius: 12px; overflow: hidden; background: #0c0f16; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px -20px rgba(0, 0, 0, .8); transform-origin: 50% 0%; }
.stage .screen { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 -20px 120px -40px rgba(120, 165, 255, .45), 0 40px 100px -30px rgba(0, 0, 0, .9); }
.chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #10131b; border-bottom: 1px solid var(--line); }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #262b38; }
.chrome span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: #5c6477; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9edf3; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }

.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-align: left; font-size: 12px; line-height: 1.3;
  background: rgba(14, 17, 25, .82); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); }
.chip b { display: block; font-weight: 500; font-size: 12.5px; }
.chip small { color: var(--muted); font-size: 12px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .14); }
.dot.blue { background: var(--accent); box-shadow: 0 0 0 4px rgba(138, 180, 255, .16); }
.c1 { left: 6px; top: -24px; }
.c2 { right: 6px; top: 34%; }
.c3 { display: none; }

/* ---------- clientes y números ---------- */
.clientes { padding: 30px 0 20px; }
.clientes-title { text-align: center; font-size: 14px; color: var(--muted); }
.logos { margin-top: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; align-items: center; gap: 46px; width: max-content; animation: logos 60s linear infinite; }
.logo-track img { height: 34px; width: auto; opacity: .5; transition: opacity .3s; }
.logo-track img:hover { opacity: .95; }
.logos:hover .logo-track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-50%); } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 22px 6px; }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(26px, 7vw, 40px); font-weight: 500; letter-spacing: -.04em; }
.stats span { font-size: 13px; color: var(--muted); }

/* franja "Se integra con" para el técnico */
.stack-strip { display: grid; gap: 12px; margin-top: 30px; }
.ss-label { font-size: 13px; color: var(--muted); }
.ss-list { display: flex; flex-wrap: wrap; gap: 7px; }
.ss-list li { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text); }
.ss-more { font-size: 13px; color: var(--accent); }

/* ---------- recorrido ---------- */
.rec-pin { margin-top: 44px; }
.steps { display: grid; gap: 14px; }
.step { position: relative; display: grid; gap: 12px; padding: 20px 18px; border-radius: var(--radius); background: var(--tile); border: 1px solid var(--line); }
.step .num { font-size: 13px; color: var(--accent); }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.step-media { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.step-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9edf3; }
.rec-screen { display: none; }

/* ---------- producto (mosaico) ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
.tile { display: flex; flex-direction: column; gap: 20px; padding: 22px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); border: 1px solid var(--line); }
.tile h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.tile p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.t-copy .tag { margin-bottom: 6px; }
.tile .screen { margin-top: auto; }
.t-tec .phone-crop { margin: auto auto 0; width: min(230px, 64vw); }
.pay { padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); }
.pay-row b { font-size: 26px; font-weight: 500; color: var(--text); letter-spacing: -.03em; }
.pay-state { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--wa); }
.medios, .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.medios li, .chips li { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--muted); }
.chips li { font-size: 13.5px; padding: 7px 12px; color: var(--text); }
.mora { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 30px; }
.mora::before { content: ""; position: absolute; left: 12%; right: 12%; top: 11px; height: 1px; background: var(--line-2); }
.mora li { position: relative; text-align: center; font-size: 12.5px; color: var(--muted); transition: color .4s; }
.mora li::before { content: ""; position: absolute; left: 50%; top: -25px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); transition: background .4s, border-color .4s, box-shadow .4s; }
.mora li.on { color: var(--text); }
.mora li.on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(138, 180, 255, .16); }
.t-foot { margin-top: auto; font-size: 13.5px; color: var(--muted); }

/* tablero en vivo: se ven 4 eventos; cada tanto entra uno arriba (main.js) */
.live-head { display: grid; grid-template-columns: 1fr auto; align-items: start; }
.live-head .ejemplo { margin: 0; align-self: start; }
.live-head h3 { grid-column: 1 / -1; }
.live-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.live-kpis div { padding: 10px 12px; }
.live-kpis div + div { border-left: 1px solid var(--line); }
.live-kpis b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.03em; transition: color .4s; }
.live-kpis b.sube { color: var(--accent); }
.live-kpis span { font-size: 11.5px; color: var(--muted); }
.live-feed { display: grid; gap: 6px; }
.live-feed li { display: grid; grid-template-columns: 70px 1fr; gap: 1px 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 13px; }
.live-feed li:nth-child(n+5) { display: none; }
.live-feed .src { grid-row: span 2; font-size: 11px; color: var(--muted); }
.live-feed .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-feed .st { font-size: 12px; color: var(--accent); }
.live-feed .st.ok { color: var(--wa); }
.live-feed li.nuevo { animation: entra .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes entra { from { opacity: 0; transform: translateY(-10px); background: rgba(138, 180, 255, .12); } }

/* fila de soluciones: las 6 páginas de detalle de ispboss.com */
.soluciones { margin-top: 50px; }
.sol-title { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.sol-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sol { position: relative; display: grid; gap: 4px; padding: 16px 44px 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .25s, background .25s; }
.sol b { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.sol span { font-size: 13.5px; color: var(--muted); }
.sol i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); transition: transform .25s, color .25s; }
.sol:hover { border-color: rgba(138, 180, 255, .4); background: rgba(138, 180, 255, .04); }
.sol:hover i { transform: translate(4px, -50%); color: var(--accent); }

.netmap svg { width: 100%; height: auto; display: block; }
.netmap .net-h { display: none; }
.netmap .net-v { max-width: 300px; margin: 0 auto; }
.netmap .link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.node rect, .node circle { fill: #11151e; stroke: var(--line-2); stroke-width: 1.2; }
.node text { fill: var(--text); font: 600 15px var(--font); text-anchor: middle; }
.node .t2 { fill: var(--muted); font: 500 11px var(--mono); }
.n-isp rect { stroke: var(--accent); fill: rgba(79, 143, 230, .14); }
.n-home circle { stroke: rgba(37, 211, 102, .7); }
.n-home.off circle { stroke: var(--red); }

/* teléfono recortado del video 16:9: el celular ocupa x 228–464 / y 26–514 de 960×540 */
.phone-crop { position: relative; width: min(270px, 70vw); aspect-ratio: 236 / 488; overflow: hidden; border-radius: 32px; background: #0e1626;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(120, 165, 255, .4); }
.phone-crop video { position: absolute; max-width: none; width: 406.78%; left: -96.61%; top: -5.33%; height: auto; aspect-ratio: 16 / 9; }

.badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--wa); background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .3); vertical-align: 1px; }
.badge svg { width: 13px; height: 13px; }

/* ---------- antes / con ---------- */
.vs { margin-top: 40px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.vs-head, .vs-row { display: grid; grid-template-columns: 1fr 1fr; }
.vs-head span { padding: 12px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--line); }
.vs-head span + span { color: var(--accent); }
.vs-row span { padding: 16px; font-size: 14.5px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.vs-row:last-child span { border-bottom: 0; }
.vs-row span:first-child { color: var(--soft); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .18); }
.vs-head span + span, .vs-row span + span { border-left: 1px solid var(--line); }
.vs-row span + span { position: relative; padding-left: 38px; }
.vs-row span + span::before { content: "✓"; position: absolute; left: 14px; top: 15px; font-size: 13px; color: var(--accent); }

/* ---------- sofía ---------- */
.sofia { overflow: hidden; }
.sofia-grid { display: grid; gap: 44px; align-items: center; }
.topics { display: grid; gap: 10px; margin-top: 26px; }
.topics li { padding: 14px 16px; border-radius: 14px; background: var(--tile); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.topics b { display: block; color: var(--text); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.phone-wrap { display: flex; justify-content: center; }
.team { display: grid; gap: 30px; margin-top: 72px; }
.h3-sec { font-weight: 600; letter-spacing: -.03em; font-size: clamp(24px, 6vw, 36px); line-height: 1.12; text-wrap: balance; }
.team-list { display: grid; gap: 10px; margin-top: 20px; }
.team-list li { position: relative; padding-left: 22px; color: var(--muted); }
.team-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.team-list b { color: var(--text); font-weight: 500; }
.team-chat { padding: 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.tc-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ejemplo { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.bubble.me { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { justify-self: start; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble .ok { display: inline-block; margin-top: 8px; padding: 4px 11px; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 500; font-size: 12.5px; }
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--soft); font-size: 14px; }
.cmd .k { font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- IA en los procesos ---------- */
.ia-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
.ia { display: flex; flex-direction: column; padding: 22px 20px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); border: 1px solid var(--line); overflow: hidden; }
.ia h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ia p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.ia-viz { margin-top: auto; padding-top: 18px; font-size: 13px; }
.viz-list { display: grid; gap: 7px; }
.viz-list li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.viz-list i { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.viz-list i.ok { background: var(--wa); }
.viz-list i.warn { background: var(--amber); }
.viz-check span { color: var(--muted); }
.viz-check .meter { margin: 8px 0; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.viz-check .meter b { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--accent); }
.viz-check em { font-style: normal; font-weight: 500; color: var(--text); }
.viz-steps { display: grid; gap: 7px; counter-reset: paso; }
.viz-steps li { counter-increment: paso; display: flex; align-items: center; gap: 9px; color: var(--muted); }
.viz-steps li::before { content: counter(paso); flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 500 11px var(--mono); border: 1px solid var(--line-2); color: var(--muted); }
.viz-steps li.sim { color: var(--text); font-weight: 500; }
.viz-steps li.sim::before { content: "▶"; border-color: var(--accent); color: var(--accent); }
.viz-risk { display: grid; gap: 9px; }
.viz-risk div { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.viz-risk span { color: var(--muted); }
.viz-risk b { display: block; height: 6px; width: var(--w); border-radius: 3px; transform-origin: left; }
.viz-risk div:nth-child(1) b { background: var(--red); }
.viz-risk div:nth-child(2) b { background: var(--amber); }
.viz-risk div:nth-child(3) b { background: var(--wa); }

/* ---------- integraciones (desplegable en la franja "Se integra con") ---------- */
.ss-all { grid-column: 1 / -1; }
.ss-all summary { display: inline-block; cursor: pointer; padding: 0; font-size: 13.5px; font-weight: 400; color: var(--accent); }
.ss-all summary::after { content: none; }
.ss-all[open] summary { margin-bottom: 8px; }
.integra { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.int-col { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.int-col h3 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.int-col p { font-size: 14.5px; }
.ss-all details, .ss-all { border-bottom: 0; }

/* ---------- video en ventana ---------- */
.play-ico { width: 14px; height: 14px; }
.film-dlg { margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #000;
  width: min(1000px, calc(100vw - 32px)); aspect-ratio: 16 / 9; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
.film-dlg.vertical { width: auto; height: min(calc(100dvh - 32px), 760px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px); }
.film-dlg::backdrop { background: rgba(4, 6, 10, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film-dlg video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.film-close { z-index: 2; background: rgba(0, 0, 0, .55); color: #fff; }

/* ---------- confianza ---------- */
.confianza { padding: 30px 0 40px; }
.trust-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.trust-grid li { display: grid; grid-template-columns: 24px 1fr; gap: 2px 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trust-grid svg { grid-row: span 2; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.trust-grid b { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.trust-grid span { font-size: 14px; color: var(--muted); }

/* ---------- migración ---------- */
.mig { display: grid; gap: 12px; margin-top: 40px; counter-reset: m; }
.mig li { position: relative; display: grid; gap: 4px; padding: 22px 20px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); }
.mig-n { font-size: 12.5px; color: var(--accent); margin-bottom: 4px; }
.mig b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.mig li > span:last-child { font-size: 14.5px; color: var(--muted); }

/* ---------- precios ---------- */
.calc { display: grid; gap: 24px; margin-top: 44px; padding: 24px 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line-2); }
.calc-left { display: grid; gap: 10px; }
.calc-q { font-size: 14.5px; color: var(--muted); }
.calc-n { font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); height: 26px; }
.calc-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); }
.calc-res { display: grid; gap: 6px; justify-items: start; padding: 20px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.calc-res > span { font-size: 13px; color: var(--muted); }
.calc-res strong { font-size: clamp(42px, 13vw, 68px); font-weight: 500; line-height: 1.05; letter-spacing: -.05em; }
.calc-res em { font-style: normal; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.desglose { width: 100%; display: grid; gap: 3px; margin-bottom: 14px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.desglose li { display: flex; justify-content: space-between; gap: 12px; }
.desglose li span:last-child { color: var(--text); }
.tramos { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tramos div { background: var(--bg); padding: 12px 14px; transition: background .3s; }
.tramos span { display: block; font-size: 12.5px; color: var(--muted); }
.tramos b { font-size: 14px; font-weight: 500; }
.tramos div.on { background: #111622; }
.tramos div.on b { color: var(--accent); }
.fine { margin-top: 16px; font-size: 13px; color: var(--soft); max-width: 760px; }
.fine a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- preguntas ---------- */
.faq h2 { margin-bottom: 30px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 16.5px; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 24px var(--mono); color: var(--muted); transition: transform .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- cierre ---------- */
.cierre { text-align: center; overflow: hidden; padding: 100px 0 90px; }
.beam-low { top: auto; bottom: -200px; transform: translateX(-50%) rotate(180deg); opacity: .8; }
.cierre-logo { display: block; width: 52px; height: auto; margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(91, 140, 207, .45)); }
.cierre h2 { margin-inline: auto; font-size: clamp(32px, 8vw, 60px); }
.cierre .sub { margin: 18px auto 0; }
.ctas.center { align-items: center; }
.contact-line { margin-top: 24px; font-size: 14px; color: var(--muted); }
.contact-line a { color: var(--text); }

.footer { border-top: 1px solid var(--line); padding: 40px 0 100px; }
.foot-top { display: grid; gap: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.legal { margin-top: 26px; font-size: 12px; color: var(--soft); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .6); transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.fab svg { width: 28px; height: 28px; }
.fab.show { transform: scale(1); }

/* ---------- formulario de demo ---------- */
.demo { margin: auto; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: #0d1018; color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
.demo::backdrop { background: rgba(4, 6, 10, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo[open] { animation: demo-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes demo-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.demo-form { position: relative; display: grid; gap: 14px; padding: 26px 22px 22px; }
.demo-form .kicker { margin-bottom: 0; }
.demo-form h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.demo-sub { font-size: 14px; color: var(--muted); }
.demo-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 10px; font-size: 24px; line-height: 1; color: var(--muted); }
.demo-close:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.f { display: grid; gap: 6px; border: 0; }
.f > span, .f legend { font-size: 13px; color: var(--muted); }
.f legend { margin-bottom: 6px; }
.f legend small { color: var(--soft); }
.f input[type=text], .f select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.f select option { background: #0d1018; }
.f input:focus, .f select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(116, 168, 255, .2); }
.opts { display: flex; flex-wrap: wrap; gap: 7px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); transition: background .2s, border-color .2s, color .2s; }
.opts input:checked + span { background: rgba(59, 127, 240, .18); border-color: var(--blue); color: var(--text); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-err { font-size: 13px; color: #ff8a8a; }
.demo-send { width: 100%; margin-top: 4px; }
.demo-alt { text-align: center; font-size: 13px; color: var(--soft); }
.demo-alt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- celular: las listas largas pasan a carrusel que se desliza de costado ---------- */
@media (max-width: 899px) {
  .steps, .ia-cards, .sol-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .steps::-webkit-scrollbar, .ia-cards::-webkit-scrollbar, .sol-grid::-webkit-scrollbar { display: none; }
  .steps > *, .ia-cards > *, .sol-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .sol-grid > * { flex-basis: 72%; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .ctas { flex-direction: row; justify-content: center; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats div { padding: 26px 20px; border-bottom: 0 !important; }
  .stats div:nth-child(odd) { border-right: 0; padding-left: 20px; }
  .stats div + div { border-left: 1px solid var(--line); }
  .stats div:first-child { padding-left: 0; }
  .c3 { display: flex; left: 10%; bottom: 18%; }
  .ia-cards { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .mig { grid-template-columns: repeat(3, 1fr); }
  .stack-strip { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
  .integra { grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .tramos { grid-template-columns: repeat(4, 1fr); }
  .chip { font-size: 12.5px; }
}

/* ---------- escritorio ---------- */
@media (min-width: 900px) {
  :root { --gutter: 28px; }
  .nav { display: flex; }
  .sec { padding: 100px 0; }
  .hero { padding-top: 150px; }
  .lead { font-size: 19px; }
  .stage { margin-top: 70px; }
  .c1 { left: -30px; top: 18%; }
  .c2 { right: -34px; top: 42%; }
  .c3 { left: 14%; bottom: 22%; }
  .chip { padding: 11px 14px; }
  .logo-track img { height: 40px; }
  .reveal { filter: blur(6px); }
  .reveal.in { filter: none; }

  /* recorrido fijado (sólo si main.js armó el pin) */
  .rec-pin.pinned { height: 100vh; display: flex; align-items: center; margin-top: 10px; }
  .pinned .rec-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 50px; align-items: center; }
  .pinned .steps { gap: 2px; }
  .pinned .step { grid-template-columns: 34px 1fr; gap: 0 12px; padding: 14px 16px; background: transparent; border-color: transparent; transition: background .4s, border-color .4s, opacity .4s; opacity: .4; }
  .pinned .step .num { padding-top: 3px; }
  .pinned .step h3 { font-size: 17px; }
  .pinned .step p, .pinned .step-media { display: none; }
  .pinned .step.active { opacity: 1; background: var(--tile); border-color: var(--line); }
  .pinned .step.active p { display: block; }
  .pinned .rec-screen { display: block; }
  .rec-pin:not(.pinned) .steps { grid-template-columns: 1fr 1fr; }
  .rec-videos { position: relative; aspect-ratio: 16 / 9; background: #e9edf3; }
  .rec-videos video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
  .rec-videos video.on { opacity: 1; }
  .rec-bar { margin-top: 16px; height: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
  .rec-bar span { display: block; height: 100%; width: 0; background: var(--accent); }

  /* mosaico: 3 columnas */
  .bento { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tile { padding: 28px; }
  .t-fact { grid-column: span 2; }
  .t-tec { grid-row: span 2; }
  .t-red { grid-column: span 2; }
  .t-live { grid-column: span 2; }
  .live-feed li { grid-template-columns: 90px 1fr auto; gap: 0 14px; }
  .live-feed .src { grid-row: auto; }
  .sol-grid { grid-template-columns: repeat(3, 1fr); }
  .netmap .net-h { display: block; }
  .netmap .net-v { display: none; }
  .t-tec .phone-crop { width: 250px; }

  .vs-row span, .vs-head span { padding-inline: 22px; }
  .vs-row span + span { padding-left: 46px; }
  .vs-row span + span::before { left: 22px; }
  .sofia-grid { grid-template-columns: 1.1fr .9fr; }
  .phone-crop { width: 290px; }
  .team { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .ia-cards { grid-template-columns: repeat(4, 1fr); }
  .integra { grid-template-columns: repeat(3, 1fr); column-gap: 30px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .calc { grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; align-items: center; }
  .foot-top { grid-template-columns: auto 1fr; align-items: center; }
  .foot-links { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
