/* SafeTrack v2: paleta de marca azul/blanco. Hero azul marino con dashboard 3D y tarjetas flotantes;
   contenido en blanco con tarjetas redondeadas tipo bento; botones píldora; animación al hacer scroll. */
:root {
  --bg: #ffffff;
  --soft: #f3f7fc;
  --soft-2: #e8f0fa;
  --line: #e1e9f3;
  --ink: #0b1b2e;
  --muted: #5a6e86;
  --blue: #1565c0;
  --blue-2: #1e88e5;
  --sky: #00a3e0;
  --navy: #061a33;
  --navy-2: #0c2b52;
  --on-navy: #e9f2fc;
  --on-navy-dim: #9fb6d1;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --grad: linear-gradient(135deg, #1565c0 0%, #1e88e5 55%, #00a3e0 100%);
  --grad-text: linear-gradient(90deg, #5cc6ff 0%, #9fdcff 50%, #ffffff 100%);

  --f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-body: "Geist", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: 1.875rem;
  --t-2xl: clamp(2rem, 4vw, 3rem);
  --t-hero: clamp(2.6rem, 6vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 27, 46, .04), 0 12px 32px rgba(11, 27, 46, .07);
  --shadow-lg: 0 30px 80px rgba(6, 26, 51, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-hero); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.2; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.dim { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.alt { background: var(--soft); }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 40rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: var(--t-sm); font-weight: 600; color: var(--blue); background: var(--soft-2); border-radius: 999px; padding: 6px 14px; }
.section-head.center .kicker { justify-self: center; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 36rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 27, 46, .06); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.brand-name span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav-drop > button { font: 500 var(--t-sm)/1 var(--f-body); color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; transition: background-color .2s; }
.nav a:hover, .nav-drop > button:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.drop-panel { position: absolute; top: calc(100% + 10px); left: -16px; width: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 2px; box-shadow: 0 24px 60px rgba(11, 27, 46, .14); }
.drop-panel a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px; border-radius: 14px; line-height: 1.3; }
.drop-panel .ico { grid-row: span 2; }
.drop-panel strong { font-family: var(--f-display); font-size: 1.02rem; font-weight: 600; }
.drop-panel small { color: var(--muted); font-size: var(--t-xs); }
.header-cta { margin-left: 8px; }
.menu-btn { display: none; background: var(--soft); border: 0; color: var(--ink); border-radius: 999px; padding: 10px 16px; font: 600 var(--t-sm)/1 var(--f-body); cursor: pointer; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .header-row .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(11, 27, 46, .1); padding: 8px var(--gutter) 20px; }
  .nav[data-open="false"] { display: none; }
  .nav a, .nav-drop > button { padding: 14px 6px; text-align: left; width: 100%; font-size: var(--t-md); border-radius: 10px; }
  .nav-drop > button { display: none; }
  .drop-panel { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 8px; }
  .nav .drop-panel[hidden] { display: grid !important; }
  .nav .nav-wa { display: flex; margin-top: 10px; text-align: center; }
}
@media (min-width: 981px) { .nav .nav-wa { display: none; } }

/* ---------- Icons ---------- */
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-2); color: var(--blue); flex: none; }
.ico svg { width: 22px; height: 22px; }
.ico.lg { width: 52px; height: 52px; border-radius: 16px; }
.ico.lg svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 var(--t-md)/1 var(--f-body); text-decoration: none; padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 12px 18px; font-size: var(--t-sm); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(21, 101, 192, .3); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(21, 101, 192, .4); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-white { background: #fff; color: var(--blue); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more { color: var(--blue); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-more:hover svg, a:hover .link-more svg { transform: translateX(4px); }

/* ---------- Navy shells (hero, CTA) ---------- */
.shell { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); background: radial-gradient(120% 120% at 100% 0%, #10407a 0%, var(--navy-2) 35%, var(--navy) 75%); color: var(--on-navy); }
.shell::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(90% 80% at 70% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(90% 80% at 70% 30%, #000 30%, transparent 75%); }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.glow.a { width: 520px; height: 520px; background: #1e88e5; right: -120px; top: -160px; animation: drift 16s ease-in-out infinite alternate; }
.glow.b { width: 380px; height: 380px; background: #00a3e0; left: -140px; bottom: -180px; opacity: .35; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }
.shell h1, .shell h2 { color: #fff; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: var(--t-sm); color: var(--on-navy); }
.pill-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* ---------- Home hero ---------- */
.hero { padding-block: 16px 0; }
.hero .shell { padding: clamp(36px, 6vw, 80px) clamp(22px, 5vw, 64px) clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy .lede { color: var(--on-navy-dim); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--on-navy-dim); font-size: var(--t-sm); }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--sky); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* 3D dashboard stage */
.stage { position: relative; perspective: 1600px; min-width: 0; padding-block: 28px; }
.device { position: relative; transform-style: preserve-3d; transform: rotateY(-14deg) rotateX(8deg) rotateZ(1deg); transition: transform .6s var(--ease); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255, 255, 255, .18); padding: 10px; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.2); }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.device-bar span { margin-left: 10px; font-size: 11px; color: var(--on-navy-dim); }
.device-screen { border-radius: 14px; overflow: hidden; background: #0a2240; border: 1px solid rgba(255,255,255,.08); }
.device-screen canvas { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.device-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; background: #0a2240; border-top: 1px solid rgba(255,255,255,.07); }
.device-strip div { background: rgba(255,255,255,.05); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.device-strip small { font-size: 10.5px; color: var(--on-navy-dim); }
.device-strip b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 18px 40px rgba(6, 26, 51, .35); font-size: 12.5px; line-height: 1.3; max-width: 250px; backdrop-filter: blur(10px); animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 13px; }
.float small { color: var(--muted); }
.float .ico { width: 34px; height: 34px; border-radius: 10px; }
.float .ico svg { width: 18px; height: 18px; }
.float.f1 { top: 0; left: -18px; }
.float.f2 { top: 42%; right: -22px; animation-delay: -2s; }
.float.f3 { bottom: 0; left: 12%; animation-delay: -4s; }
.ico.red { background: #fde8e8; color: var(--bad); }
.ico.amber { background: #fef3dc; color: #b45309; }
.ico.green { background: #dcf7ec; color: #047857; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 980px) { .device { transform: rotateX(6deg); } .float.f1 { left: 0; } .float.f2 { right: 0; } }
@media (max-width: 560px) { .float { font-size: 11.5px; max-width: 210px; padding: 8px 10px 8px 8px; } .float.f2 { display: none; } .float.f3 { left: 4%; } .device-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .device-strip b { font-size: 1rem; } }

/* ---------- Brand marquee ---------- */
.marquee { padding-block: 34px; overflow: hidden; }
.marquee p { text-align: center; color: var(--muted); font-size: var(--t-sm); margin-bottom: 18px; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: st-marquee 32s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-mask { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { mask-image: none; }
.marquee .marquee-track > span { padding-right: 64px; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: #687c93; letter-spacing: -0.02em; white-space: nowrap; }
@keyframes st-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.marquee-mask:hover .marquee-track { animation-play-state: paused; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--soft); border-radius: var(--r); padding: 26px 24px; display: grid; gap: 4px; }
.stat b { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; overflow: hidden; display: grid; gap: 14px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); text-decoration: none; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); min-width: 0; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(11,27,46,.04), 0 28px 60px rgba(11, 27, 46, .12); }
.tile h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.tile p { color: var(--muted); font-size: var(--t-sm); max-width: 36rem; }
.tile .pain { color: var(--blue); font-weight: 600; font-size: var(--t-sm); }
.tile .viz { margin-top: 8px; border-radius: 16px; background: var(--soft); padding: 16px; min-width: 0; }
.tile.t-a { grid-column: span 3; grid-row: span 2; }
.tile.t-b { grid-column: span 3; }
.tile.t-c { grid-column: span 3; }
.tile.t-d { grid-column: span 6; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.tile.t-d h3 { color: #fff; }
.tile.t-d p { color: var(--on-navy-dim); }
.tile.t-d .pain { color: #7cd3ff; }
.tile.t-d .ico { background: rgba(255,255,255,.1); color: #7cd3ff; }
.tile.t-d .link-more { color: #7cd3ff; }
@media (max-width: 900px) { .tile.t-a, .tile.t-b, .tile.t-c { grid-column: span 6; grid-row: auto; } .tile.t-d { grid-template-columns: 1fr; } }

/* chat bubbles (a la medida) */
.chat { display: grid; gap: 10px; background: #0b2a4e; border-radius: 18px; padding: 16px; }
.bubble { justify-self: start; max-width: 92%; background: #fff; color: var(--ink); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.bubble b { display: block; font-size: 12px; color: var(--blue); margin-bottom: 2px; }
.bubble .ph { height: 64px; border-radius: 10px; margin-block: 6px; background: linear-gradient(135deg, #2c4f78, #6c8fb5 60%, #a9c3df); position: relative; overflow: hidden; }
.bubble .ph::after { content: ""; position: absolute; inset: auto 12px 10px auto; width: 58px; height: 22px; border: 2px solid #ffcf3f; border-radius: 4px; }
.bubble small { color: var(--muted); font-size: 11px; }
.bubble.me { justify-self: end; background: #d9fdd3; border-radius: 14px 14px 4px 14px; }

/* mini lists inside tiles */
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-list li { display: grid; grid-template-columns: 8px 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13px; box-shadow: 0 1px 2px rgba(11,27,46,.05); }
.mini-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); }
.mini-list li[data-k="alert"] i { background: var(--bad); }
.mini-list li[data-k="warn"] i { background: var(--warn); }
.mini-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-list em { font-style: normal; color: var(--blue); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mini-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Picker ---------- */
.picker { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.picker-q { padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 26px; min-width: 0; }
.picker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--soft); border: 1.5px solid transparent; color: var(--ink); font-size: var(--t-sm); font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip span:hover { border-color: #bcd3ee; }
.chip input:checked + span { background: var(--soft-2); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.picker-out { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 100% at 100% 0%, #10407a 0%, var(--navy-2) 45%, var(--navy) 100%); color: var(--on-navy); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.picker-out .rec-label { color: var(--on-navy-dim); font-size: var(--t-sm); }
.picker-out h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); color: #fff; }
.picker-out .why { color: var(--on-navy-dim); font-size: var(--t-sm); }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.totals div { display: grid; gap: 4px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; }
.totals small { color: var(--on-navy-dim); font-size: var(--t-xs); line-height: 1.3; }
.totals strong { font-family: var(--f-display); font-size: 1.65rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; color: #fff; }
.picker-out .note { font-size: var(--t-xs); color: var(--on-navy-dim); }
@media (max-width: 900px) { .picker { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 12%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--sky) 60%, transparent); opacity: .35; }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before { content: counter(step); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; box-shadow: 0 10px 24px rgba(21, 101, 192, .3), 0 0 0 6px #fff; margin-bottom: 8px; }
.section.alt .steps li::before { box-shadow: 0 10px 24px rgba(21, 101, 192, .3), 0 0 0 6px var(--soft); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cards grid (industries / features) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 12px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease); min-width: 0; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: var(--t-sm); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quotes figure { margin: 0; display: grid; gap: 18px; align-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.quotes blockquote { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; line-height: 1.4; letter-spacing: -0.01em; }
.quotes blockquote::before { content: "“"; display: block; font-size: 3.4rem; line-height: .7; color: var(--blue-2); margin-bottom: 8px; }
.quotes figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--t-sm); }
.quotes figcaption b { display: block; color: var(--ink); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--f-display); font-weight: 600; flex: none; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Coverage ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.towns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.towns li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-sm); font-weight: 500; }
.towns li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 54rem; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--soft-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 24px 22px; max-width: 46rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-lines { display: grid; gap: 12px; }
.contact-lines > div { display: flex; align-items: center; gap: 14px; }
.contact-lines small { display: block; color: var(--muted); font-size: var(--t-xs); }
.contact-lines a, .contact-lines span { font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field input, .field select, .field textarea { font: 400 var(--t-md)/1.4 var(--f-body); color: var(--ink); background: var(--soft); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color .2s, background-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form .hint { color: var(--muted); font-size: var(--t-xs); }
.form-error { color: var(--bad); font-size: var(--t-sm); font-weight: 500; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Internal page hero ---------- */
.page-hero { padding-block: 16px 0; }
.page-hero .shell { padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 64px) clamp(36px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-sm); color: var(--on-navy-dim); margin: 0 0 26px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.page-hero .lede { color: var(--on-navy-dim); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
.tilt { perspective: 1400px; min-width: 0; }
.tilt > .exhibit { transform: rotateY(-10deg) rotateX(6deg); transition: transform .6s var(--ease); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .tilt > .exhibit { transform: none; } }

/* Exhibit panels */
.exhibit { border-radius: var(--r); background: #fff; color: var(--ink); padding: 22px; display: grid; gap: 14px; min-width: 0; border: 1px solid var(--line); }
.exhibit-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.exhibit-head strong { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; }
.tag { font-size: var(--t-xs); color: var(--blue); background: var(--soft-2); border-radius: 999px; padding: 4px 10px; white-space: nowrap; font-weight: 600; }
.exhibit-foot { font-size: var(--t-xs); color: var(--muted); }
.incidents { display: grid; margin: 0; padding: 0; list-style: none; }
.incidents li { display: grid; grid-template-columns: 4px 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.incidents li:last-child { border-bottom: 0; }
.incidents li::before { content: ""; width: 4px; height: 100%; min-height: 32px; border-radius: 2px; background: var(--blue-2); }
.incidents li[data-k="alert"]::before { background: var(--bad); }
.incidents li[data-k="warn"]::before { background: var(--warn); }
.incidents li[data-k="ok"]::before { background: var(--ok); }
.incidents time { color: var(--muted); font-variant-numeric: tabular-nums; }
.incidents small { display: block; color: var(--muted); font-size: var(--t-xs); }
.incidents .clip { font-size: var(--t-xs); color: var(--blue); font-weight: 600; white-space: nowrap; }

/* Example charts */
.ex-axis { stroke: #c9d6e6; stroke-width: 1; }
.ex-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.ex-bar { fill: var(--blue-2); }
.ex-bar.flag { fill: var(--bad); }
.ex-bar.warn { fill: var(--warn); }
.ex-ref { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ex-label { fill: var(--muted); font-size: 12px; font-family: var(--f-body); }
.ex-val { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--f-body); }
.ex-ref-label { fill: var(--blue); font-size: 12px; font-weight: 600; font-family: var(--f-body); }
.ex-chart { overflow-x: auto; }
.ex-chart svg { width: 100%; height: auto; min-width: 340px; }

/* brand chips */
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.brands span { padding: 8px 16px; border-radius: 999px; background: var(--soft); font-family: var(--f-display); font-weight: 600; color: var(--muted); }

/* ---------- Packages ---------- */
.pkg-group + .pkg-group { margin-top: 64px; }
.pkg-group > h3 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin-bottom: 20px; }
.pkg-group > h3 a { text-decoration: none; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 20px; }
.pkg { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; min-width: 0; box-shadow: var(--shadow); scroll-margin-top: 100px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pkg:hover { transform: translateY(-4px); }
.pkg[data-featured="true"] { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.pkg-top { display: grid; gap: 6px; }
.pkg-top .for { color: var(--muted); font-size: var(--t-sm); }
.pkg h3 { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; }
.pkg .badge { position: absolute; top: 24px; right: 24px; background: var(--grad); color: #fff; font-size: var(--t-xs); font-weight: 600; border-radius: 999px; padding: 5px 12px; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price div { display: grid; gap: 4px; background: var(--soft); border-radius: 14px; padding: 14px; }
.price small { color: var(--muted); font-size: var(--t-xs); line-height: 1.3; }
.price strong { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price .per { font-family: var(--f-body); font-weight: 500; font-size: var(--t-sm); color: var(--muted); letter-spacing: 0; }
.pkg .gear { font-size: var(--t-sm); color: var(--muted); }
.pkg .gear b { color: var(--ink); font-weight: 600; }
.pkg ul { align-content: start; list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: var(--t-sm); }
.pkg li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.pkg li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--soft-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; margin-top: 1px; }
.pkg .extras { font-size: var(--t-xs); color: var(--muted); }
.pkg .btn { width: 100%; }

.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.calc-in { padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.calc-out { padding: clamp(22px, 3vw, 36px); background: radial-gradient(120% 100% at 100% 0%, #10407a 0%, var(--navy-2) 45%, var(--navy) 100%); color: var(--on-navy); display: grid; gap: 18px; align-content: start; }
.calc-lines { display: grid; margin: 0; }
.calc-lines div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: var(--t-sm); }
.calc-lines dt { color: var(--on-navy-dim); }
.calc-lines dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; }
.calc-lines .total dt, .calc-lines .total dd { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; color: #fff; }
.calc-out .small { font-size: var(--t-xs); color: var(--on-navy-dim); }
.stepper { display: flex; align-items: center; background: var(--soft); border-radius: 999px; width: max-content; padding: 4px; }
.stepper button { background: #fff; border: 0; color: var(--blue); width: 42px; height: 42px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; box-shadow: 0 1px 3px rgba(11,27,46,.1); }
.stepper input { width: 70px; height: 42px; text-align: center; border: 0; background: transparent; color: var(--ink); font: 600 1.15rem var(--f-body); -moz-appearance: textfield; }
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
table.compare { border-collapse: collapse; width: 100%; min-width: 820px; font-size: var(--t-sm); }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; background: var(--soft); }
.compare tbody th { font-weight: 500; color: var(--muted); }
.compare td { font-variant-numeric: tabular-nums; }
.yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dcf7ec; color: #047857; font-weight: 700; font-size: 13px; }
.no { color: #b9c6d6; }

/* ---------- A la medida ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); }
.case .who { color: var(--blue); font-size: var(--t-sm); font-weight: 600; }
.case h3 { font-size: 1.25rem; }
.case .result { display: flex; gap: 10px; color: var(--ink); font-size: var(--t-sm); background: var(--soft); border-radius: 14px; padding: 14px; }
.case .result svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { padding-block: 0 clamp(64px, 9vw, 120px); }
.cta .shell { padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 20ch; }
.cta p { color: var(--on-navy-dim); margin-top: 12px; max-width: 34rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-dim); padding-block: 64px 32px; font-size: var(--t-sm); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: #7cd3ff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.foot-grid h4 { font-family: var(--f-display); color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-xs); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, .4); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .glow, .float, .pill-badge i { animation: none !important; }
  .marquee-track { animation: none !important; }
  .marquee-mask { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .marquee-track > * { scroll-snap-align: start; }
}

.tile.t-a { grid-template-rows: auto auto auto auto 1fr auto auto; }
.tile.t-a .viz { display: grid; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis div { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kpis b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--blue); letter-spacing: -0.02em; }
.kpis small { color: var(--muted); font-size: var(--t-xs); line-height: 1.3; }
.foot-word { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.05em; line-height: .8; font-size: clamp(4rem, 17vw, 15rem); margin-top: 48px; background: linear-gradient(180deg, rgba(124, 211, 255, .35), rgba(124, 211, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; overflow: hidden; }

/* =====================================================================
   v3: hero tipo plataforma (claro), navbar flotante y animaciones de scroll
   ===================================================================== */
:root { --hero-bg: #f4f8fd; }

/* Navbar flotante en píldora */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; padding-top: 12px; }
.site-header[data-scrolled="true"] { border-bottom: 0; box-shadow: none; }
.site-header .header-row { min-height: 62px; padding-inline: 14px 10px; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border: 1px solid rgba(225, 233, 243, .9); border-radius: 22px; transition: box-shadow .35s var(--ease), background-color .35s; }
.site-header[data-scrolled="true"] .header-row { background: rgba(255, 255, 255, .9); box-shadow: 0 12px 34px rgba(11, 27, 46, .1); }
.site-header > .wrap { max-width: 1180px; }
@media (max-width: 980px) { .nav { top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); border-radius: 20px; border: 1px solid var(--line); } }

/* Botón con círculo de flecha */
.btn-arrow { padding: 7px 7px 7px 22px; gap: 14px; }
.btn-arrow .arr { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); transition: transform .35s var(--ease); }
.btn-arrow .arr svg { width: 16px; height: 16px; }
.btn-arrow:hover .arr { transform: rotate(45deg); }
.btn-soft { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(11, 27, 46, .05); }
.btn-soft .arr { background: var(--grad); color: #fff; }
.btn-soft:hover { border-color: #c9d8eb; }

/* Hero */
.hero2 { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); margin-top: -74px; padding-top: 74px; }
.hero2-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero2-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(21, 101, 192, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 101, 192, .06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 80%); }
.hero2-bg i { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero2-bg i:nth-child(1) { width: 560px; height: 420px; left: 50%; top: 80px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(30, 136, 229, .22), transparent); }
.hero2-bg i:nth-child(2) { width: 420px; height: 420px; left: -120px; top: 460px; background: radial-gradient(closest-side, rgba(0, 163, 224, .18), transparent); }
.hero2-bg i:nth-child(3) { width: 460px; height: 460px; right: -140px; top: 300px; background: radial-gradient(closest-side, rgba(21, 101, 192, .16), transparent); }
.hero2-top { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: clamp(48px, 7vw, 74px) clamp(36px, 5vw, 56px); }
.trust { display: inline-flex; align-items: center; gap: 12px; padding: 5px 16px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); text-decoration: none; font-size: var(--t-sm); font-weight: 500; box-shadow: 0 1px 2px rgba(11, 27, 46, .04); }
.faces { display: flex; }
.faces span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--f-body); color: #fff; border: 2px solid #fff; margin-left: -8px; }
.faces span:first-child { margin-left: 0; }
.faces span:nth-child(1) { background: #1565c0; } .faces span:nth-child(2) { background: #0e7ab8; } .faces span:nth-child(3) { background: #0277b8; } .faces span:nth-child(4) { background: #0b1b2e; }
.hero2-title { font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; max-width: 15ch; }
.hero2-title .ln { display: block; padding-bottom: .06em; background: linear-gradient(90deg, #0b1b2e 0%, #0b1b2e 35%, #1565c0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2-title .l2 { background: linear-gradient(90deg, #1565c0 0%, #1e88e5 50%, #00a3e0 100%); -webkit-background-clip: text; background-clip: text; }
.hero2-lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 44rem; }
.hero2-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); font-size: var(--t-sm); }
.hero2-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero2-note svg { width: 17px; height: 17px; color: #fff; background: var(--blue-2); border-radius: 50%; padding: 3px; }

/* Entrada orquestada del hero */
.js .intro { opacity: 0; transform: translateY(26px); filter: blur(10px); animation: intro 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes intro { to { opacity: 1; transform: none; filter: blur(0); } }

/* Íconos flotantes laterales */
.ft { position: absolute; z-index: 1; will-change: transform; }
.ft-in { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(11, 27, 46, .1), 0 0 0 8px rgba(255, 255, 255, .5); animation: bob 7s ease-in-out infinite; animation-delay: var(--b, 0s); }
.ft-in svg { width: 34px; height: 34px; }
.ft.f-a { left: 2%; top: 40px; } .ft.f-a .ft-in { color: #1565c0; transform: rotate(-8deg); }
.ft.f-b { left: 5%; top: 210px; } .ft.f-b .ft-in { color: #00a3e0; --b: -2s; }
.ft.f-c { right: 3%; top: 30px; } .ft.f-c .ft-in { color: #f59e0b; --b: -4s; }
.ft.f-d { right: 1%; top: 220px; } .ft.f-d .ft-in { color: #1e88e5; --b: -1s; }
@media (max-width: 1100px) { .ft { display: none; } }

/* Dashboard 3D que se aplana con el scroll */
.dash-stage { perspective: 1700px; perspective-origin: 50% 0%; padding-bottom: clamp(32px, 5vw, 64px); }
.dash { position: relative; transform-origin: 50% 0; transform: rotateX(var(--rx, 22deg)) scale(var(--sc, .94)); will-change: transform; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; padding: 12px; border-radius: 30px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(225, 233, 243, .9); box-shadow: 0 40px 100px rgba(11, 27, 46, .14), 0 0 0 1px rgba(255,255,255,.6) inset; backdrop-filter: blur(6px); }
.dash-in { display: contents; }
.dash-side { background: #fff; border-radius: 22px 0 0 22px; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.dash-logo { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; margin: 0 4px 14px; }
.dash-logo .brand-mark { width: 28px; height: 28px; }
.dash-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.dash-search svg { width: 14px; height: 14px; }
.dash-nav { display: grid; gap: 2px; }
.dash-nav span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; color: #3b4d63; }
.dash-nav span svg { width: 16px; height: 16px; color: #7b8ea6; }
.dash-nav span.on { background: var(--soft-2); color: var(--blue); font-weight: 600; }
.dash-nav span.on svg { color: var(--blue); }
.dash-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; font-size: 12.5px; }
.dash-user .avatar { width: 32px; height: 32px; font-size: 12px; }
.dash-user small { display: block; color: var(--blue); font-size: 11px; font-weight: 600; }
.dash-main { position: relative; background: #fbfdff; border-radius: 0 22px 22px 0; padding: 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-content: start; min-width: 0; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.dcard h4 { font-family: var(--f-display); font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dcard h4 small { font-family: var(--f-body); font-weight: 500; font-size: 11.5px; color: var(--muted); }
.dcard .big { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; gap: 8px; }
.dcard .big svg { width: 20px; height: 20px; margin-top: 6px; color: var(--ink); }
.dcard .sub { font-size: 12px; color: var(--muted); }
.dcard .sub b { color: var(--ok); font-weight: 600; }
.dcard .lnk { font-size: 12.5px; color: var(--blue); font-weight: 500; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.dcard .lnk svg { width: 13px; height: 13px; }
.d-kpi { grid-column: span 2; }
.d-map { grid-column: span 4; padding: 14px; }
.d-diesel { grid-column: span 2; }
.d-drivers { grid-column: span 3; }
.d-video { grid-column: span 3; }
.gauge { display: grid; place-items: center; position: relative; margin-top: 2px; }
.gauge svg { width: 150px; height: auto; }
.gauge b { position: absolute; bottom: 4px; font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.g-track { stroke: #e3edf9; } .g-val { stroke: url(#gGrad); }
.map-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #eef3f9; }
.map-wrap canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.map-chip { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(11,27,46,.08); }
.map-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.area svg { width: 100%; height: auto; }
.area .a-line { fill: none; stroke: var(--blue-2); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: var(--draw, 0); transition: stroke-dashoffset 1.6s var(--ease); }
.area .a-fill { fill: url(#aGrad); }
.area text { fill: var(--muted); font-size: 10px; font-family: var(--f-body); }
.drivers { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.drivers li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; font-size: 13px; line-height: 1.25; }
.drivers li.on { background: var(--soft-2); }
.drivers small { display: block; color: var(--muted); font-size: 11.5px; }
.drivers .avatar { width: 32px; height: 32px; font-size: 11.5px; }
.score { font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #dcf7ec; color: #047857; }
.score.mid { background: #fef3dc; color: #b45309; }
.score.low { background: #fde8e8; color: #b91c1c; }
.dash .mini-list li { box-shadow: none; border: 1px solid var(--line); }
.toast { position: absolute; right: -30px; top: 150px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(11, 27, 46, .16); font-size: 12.5px; line-height: 1.3; max-width: 290px; animation: bob 6s ease-in-out infinite; }
.toast b { display: block; font-size: 13px; }
.toast small { color: var(--muted); }
.toast .ico { width: 34px; height: 34px; border-radius: 10px; }
.toast .ico svg { width: 18px; height: 18px; }
@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; padding: 8px; border-radius: 24px; }
  .dash-side { display: none; }
  .dash-main { border-radius: 18px; padding: 12px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-kpi { grid-column: span 1; } .d-kpi.g { display: none; }
  .d-map, .d-diesel, .d-drivers, .d-video { grid-column: span 2; }
  .d-drivers, .d-video { display: none; }
  .toast { right: 8px; top: -18px; max-width: 250px; }
}

/* Banda de íconos debajo del dashboard */
.tiles-row { padding-block: 8px clamp(48px, 7vw, 80px); }
.tiles-row .marquee-track { gap: 0; animation-duration: 40s; }
.tiles-row .marquee-track > .tile-ico { margin-right: 18px; padding-right: 18px; }
.tile-ico { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(11,27,46,.05); white-space: nowrap; font-family: var(--f-display); font-weight: 600; color: #3b4d63; }
.tile-ico .ico { width: 34px; height: 34px; border-radius: 50%; }
.tile-ico .ico svg { width: 17px; height: 17px; }

/* Texto que se ilumina con el scroll */
.statement { padding-block: clamp(72px, 11vw, 150px); }
.statement p { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.15; letter-spacing: -0.03em; max-width: 22ch; margin-inline: auto; text-align: center; text-wrap: balance; }
.statement .sw { color: #c3d0e0; transition: color .25s linear; }
.statement .sw.on { color: var(--ink); }
.statement .sw.hl.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Línea de pasos que se llena con el scroll */
.steps::before { transform-origin: 0 50%; transform: scaleX(var(--p, 1)); opacity: .9; background: linear-gradient(90deg, var(--blue), var(--sky)); right: 14%; }
.steps::after { content: ""; position: absolute; top: 26px; left: 26px; right: 14%; height: 2px; background: var(--line); z-index: -1; }
.steps { isolation: isolate; }

/* Subpáginas: hero claro con panel que se aplana */
.page-hero.light { padding-block: 0; }
.page-hero.light .shell { background: var(--hero-bg); color: var(--ink); border-radius: 0; padding-inline: 0; margin-top: -74px; padding-top: calc(74px + clamp(28px, 4vw, 48px)); padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero.light .shell::before { background-image: linear-gradient(rgba(21, 101, 192, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 101, 192, .06) 1px, transparent 1px); background-size: 56px 56px; }
.page-hero.light .glow.a { background: #90c8ff; opacity: .35; }
.page-hero.light .glow.b { background: #8fe0ff; opacity: .3; }
.page-hero.light h1 { color: transparent; background: linear-gradient(90deg, #0b1b2e 0%, #0b1b2e 45%, #1565c0 100%); -webkit-background-clip: text; background-clip: text; padding-bottom: .06em; }
.page-hero.light .lede { color: var(--muted); }
.page-hero.light .crumbs { color: var(--muted); }
.page-hero.light .crumbs a:hover { color: var(--blue); }
.page-hero.light .tilt { perspective: 1500px; }
.page-hero.light .tilt .exhibit { transform: none; box-shadow: 0 40px 90px rgba(11, 27, 46, .14); border-radius: 24px; padding: 24px; }
.page-hero.light [data-flatten] { transform-origin: 50% 0; transform: rotateX(var(--rx, 16deg)) rotateY(var(--ry, -12deg)) scale(var(--sc, .96)); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .js .intro { opacity: 1; transform: none; filter: none; animation: none; }
  .dash, .page-hero.light [data-flatten] { transform: none !important; }
  .ft-in, .toast { animation: none; }
  .statement .sw { color: var(--ink); }
}
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.brand-logo { height: 44px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 38px; } }

/* v4: ajustes de Taste Skill + Web Interface Guidelines */
a, button, .chip span, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px) scale(.98); }
section[id], .pkg, [id="calculadora"] { scroll-margin-top: 104px; }
.marquee-mask:focus-within .marquee-track { animation-play-state: paused; }
.yes { width: 26px; height: 26px; }
.yes svg { width: 15px; height: 15px; }
.no { color: #5a6e86; font-size: var(--t-sm); }

/* Beneficios: lista de 2 columnas sin tarjetas (las tarjetas solo donde hay jerarquía) */
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.card { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; background: none; border: 0; padding: 0; border-radius: 0; }
.card > .ico { grid-row: span 3; }
.card:hover { transform: none; box-shadow: none; }
a.card { padding: 18px; margin: -18px; border-radius: var(--r); transition: background-color .25s; }
a.card:hover { background: var(--soft-2); }
.section.alt a.card:hover { background: #fff; }
.cards.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards.five .card { grid-column: span 2; }
.cards.five .card:nth-child(-n+2) { grid-column: span 3; }
.cards .card { min-width: 0; }
@media (max-width: 900px) { .cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.five .card, .cards.five .card:nth-child(-n+2) { grid-column: auto; } }
@media (max-width: 760px) { .cards, .cards.five { grid-template-columns: minmax(0, 1fr); } .cards .card, .cards.five .card, .cards.five .card:nth-child(n) { grid-column: 1 / -1; } }

/* Testimonios: uno destacado + dos */
.quotes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.quotes figure:first-child { grid-row: span 2; background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.quotes figure:first-child blockquote { font-size: clamp(1.45rem, 2.4vw, 1.9rem); color: #fff; }
.quotes figure:first-child figcaption { color: var(--on-navy-dim); }
.quotes figure:first-child figcaption b { color: #fff; }
.quotes figure:first-child blockquote::before { color: #7cd3ff; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quotes figure:first-child { grid-row: auto; } }
.cards.rows { grid-template-columns: 1fr; gap: 0; max-width: 56rem; }
.cards.rows a.card { margin: 0; padding: 22px 12px; border-radius: 0; border-bottom: 1px solid var(--line); grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; }
.cards.rows a.card > .ico { grid-row: span 2; }
.cards.rows a.card .link-more { grid-column: 3; grid-row: 1 / span 2; }
.cards.rows a.card:first-child { border-top: 1px solid var(--line); }
@media (max-width: 560px) { .cards.rows a.card { grid-template-columns: 52px minmax(0, 1fr); } .cards.rows a.card .link-more { grid-column: 2; grid-row: auto; } }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.foot-grid .fh { font-family: var(--f-display); color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; }
.marquee-mask:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 12px; }

.legal .wrap { max-width: 50rem; display: grid; gap: 34px; }
.legal-sec { display: grid; gap: 10px; }
.legal-sec h2 { font-size: 1.35rem; }
.legal-sec p { color: var(--muted); }
.foot-base a { text-decoration: underline; text-underline-offset: 3px; margin-right: 18px; }
.form .hint a { color: var(--blue); }
.marquee .brand-logo-item { display: inline-flex; align-items: center; padding-right: 64px; }
.marquee .brand-logo-item img { height: 34px; width: auto; filter: grayscale(1) opacity(.7); transition: filter .25s; }
.marquee .brand-logo-item img:hover { filter: none; }
.table-wrap, .ex-chart { contain: paint; max-width: 100%; }

.price .plan-alt { font-size: var(--t-xs); color: var(--muted); line-height: 1.3; margin-top: 2px; }
.pkg .badge { top: 22px; left: 28px; right: auto; }
.pkg-top { padding-top: 30px; }
