/* Camioneros home. Concept: "ruta de noche". The page is a road at night:
   asphalt ground, lane paint, one electric-blue route line (the app's #2F6BFF)
   that runs through the page and draws itself as you scroll.
   Type: Barlow Condensed (highway-sign lettering) + Barlow, self-hosted (OFL).
   Shapes: buttons and chips are pills; cards 20px; phones 40px. Motion: transform
   and opacity only (plus SVG stroke drawing), all of it off under reduced motion.
   CSP: no inline styles; JS only writes CSSOM properties. */

@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  --accent: #2c66f7;
  --accent-press: #1f55e6;
  --accent-ink: #1a4fe0;
  --accent-soft: rgba(47, 107, 255, 0.12);
  --bg: #f3f5f9;
  --bg-2: #e9edf4;
  --surface: #ffffff;
  --ink: #0d1530;
  --ink-2: #3a4663;
  --ink-3: #56617c;
  --line: rgba(13, 21, 48, 0.12);
  --line-2: rgba(13, 21, 48, 0.2);
  --night: #070b16;
  --night-2: #0e1528;
  --night-3: #16203a;
  --on-night: #eef2fb;
  --on-night-2: #b4bed6;
  --paint: rgba(238, 242, 251, 0.85);
  --signal: #f5b400;
  --live: #ff5a5f;
  --ok: #1f9d63;
  --shadow: 0 1px 2px rgba(13, 21, 48, 0.06), 0 18px 40px -18px rgba(13, 21, 48, 0.3);
  --shadow-phone: 0 2px 8px rgba(13, 21, 48, 0.14), 0 40px 70px -30px rgba(13, 21, 48, 0.55);
  --r-card: 20px;
  --r-phone: 40px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --f-display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: min(1200px, 100% - 32px);
  --top-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-ink: #8fb0ff;
    --accent-soft: rgba(79, 124, 255, 0.16);
    --bg: #070b16;
    --bg-2: #0b1120;
    --surface: #0f1629;
    --ink: #e9eef9;
    --ink-2: #b4bed6;
    --ink-3: #96a1bc;
    --line: rgba(233, 238, 249, 0.1);
    --line-2: rgba(233, 238, 249, 0.18);
    --ok: #3ccf8e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.75);
    --shadow-phone: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 70px -30px rgba(0, 0, 0, 0.9);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--line-2) var(--bg);
  scroll-padding-top: calc(var(--top-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; -webkit-user-drag: none; }
a { color: var(--accent-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); line-height: 0.98; }
h3 { font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: var(--wrap); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic--flip { transform: scaleX(-1); }
.lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 54ch; margin-top: 18px; }
.fine { font-size: 0.875rem; color: var(--ink-3); margin-top: 12px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
a, button, summary, .btn { touch-action: manipulation; }
button, .btn, summary, .lang a, .top__nav a { -webkit-user-select: none; user-select: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -10px rgba(47, 107, 255, 0.7); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 1.1rem; }
.btn .ic { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-press); }
  .btn:hover .ic { transform: translateX(3px); }
}
.round {
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 200ms ease;
}
.round:active { transform: scale(0.94); }
.round:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:not(:disabled):hover { background: var(--accent-soft); } }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40; color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
}
.top__in { width: min(1280px, 100% - 24px); margin-inline: auto; height: var(--top-h); display: flex; align-items: center; gap: 20px; }
.top.is-solid {
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 1px 0 var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 600 1.4rem/1 var(--f-display); letter-spacing: 0.01em; min-height: 44px; }
.logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.45); }
.top__nav { display: none; gap: 4px; margin-left: 12px; }
.top__nav a, .lang a {
  color: inherit; text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center; transition: background-color 200ms ease, opacity 200ms ease;
}
.top__nav a { opacity: 0.86; }
@media (hover: hover) and (pointer: fine) {
  .top__nav a:hover, .lang a:hover { background: color-mix(in srgb, currentColor 12%, transparent); opacity: 1; }
}
.top__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.lang a { padding: 0 12px; font-size: 0.9rem; font-weight: 600; min-width: 44px; justify-content: center; }
.lang a[aria-current="page"] { background: color-mix(in srgb, currentColor 22%, transparent); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 960px) { .top__nav { display: flex; } }
@media (max-width: 380px) { .logo span { display: none; } }

/* route rail: wide screens only */
.rail { display: none; }
@media (min-width: 1400px) {
  .rail { display: block; position: fixed; z-index: 30; left: 28px; top: calc(var(--top-h) + 40px); bottom: 40px; width: 4px; border-radius: 4px; background: var(--line); }
  .rail__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: 50% 0; transform: scaleY(0); }
  .rail__puck {
    position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 999px;
    background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg), 0 6px 14px -4px rgba(47, 107, 255, 0.8);
  }
  .rail__puck .ic { width: 16px; height: 16px; transform: rotate(90deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: flex; align-items: stretch;
  background: #0a1022; color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__media picture { display: block; height: 100%; animation: hero-zoom 1.8s var(--ease-out) both; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.04); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 22, 0.7) 0%, rgba(7, 11, 22, 0.1) 34%, rgba(7, 11, 22, 0) 60%, rgba(7, 11, 22, 0.55) 100%),
    linear-gradient(90deg, rgba(7, 11, 22, 0.78) 0%, rgba(7, 11, 22, 0.35) 42%, rgba(7, 11, 22, 0) 62%);
}
.hero__in { position: relative; display: grid; align-content: start; padding-top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + clamp(24px, 6vh, 72px)); padding-bottom: 48px; }
.hero__copy { max-width: 640px; }
.hero__title { font-size: clamp(3rem, 1.6rem + 6.2vw, 6rem); line-height: 0.92; letter-spacing: -0.01em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; animation: line-up 0.8s var(--ease-out) both; }
.hero__title .line + .line > span { animation-delay: 70ms; }
.hero__title em { font-style: normal; color: #8fb0ff; }
.hero__lead { margin-top: 20px; font-size: clamp(1.08rem, 1rem + 0.45vw, 1.35rem); line-height: 1.45; color: #d4dbee; max-width: 34ch; animation: fade-up 0.9s var(--ease-out) 220ms both; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; animation: fade-up 0.9s var(--ease-out) 320ms both; }
.soon { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; color: inherit; opacity: 0.92; }
.soon__dot { width: 9px; height: 9px; border-radius: 99px; background: var(--signal); box-shadow: 0 0 0 4px rgba(245, 180, 0, 0.22); }

/* HUD: a live mini version of the app's turn card */
.hud { position: absolute; right: max(16px, calc((100% - 1200px) / 2)); bottom: clamp(28px, 9vh, 90px); width: min(340px, calc(100% - 32px)); will-change: transform; }
.hud__in { display: grid; gap: 10px; animation: hud-in 1s var(--ease-drawer) 520ms both; }
.hud__turn {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px;
  background: rgba(47, 107, 255, 0.92); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 24px 50px -20px rgba(0, 0, 0, 0.7);
}
.hud__arrow { width: 44px; height: 44px; }
.hud__turn div { display: grid; line-height: 1.15; }
.hud__turn b { font: 600 2.1rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.hud__turn div > span { font-weight: 600; font-size: 1.05rem; margin-top: 4px; }
.hud__turn small { font-size: 0.85rem; opacity: 0.85; }
.hud__alert {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(14, 21, 40, 0.72); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 500; color: #fff;
}
.hud__alert img { width: 36px; height: 36px; border-radius: 99px; background: #fff; padding: 3px; }
@media (max-width: 700px) {
  .hero__in { padding-bottom: 210px; }
  .hero__media img { object-position: 50% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(7, 11, 22, 0.82) 0%, rgba(7, 11, 22, 0.55) 40%, rgba(7, 11, 22, 0.05) 66%, rgba(7, 11, 22, 0.6) 100%); }
  .hud { left: 16px; right: auto; width: min(300px, calc(100% - 32px)); bottom: 22px; }
  .hud__turn { padding: 12px 14px; }
  .hud__turn b { font-size: 1.8rem; }
  .hud__arrow { width: 36px; height: 36px; }
}

/* ---------- sections ---------- */
.spec__grid, .offline__grid, .stops__grid, .faq__grid, .cab__panel, .bento, .foot__in, .reports__head { grid-template-columns: minmax(0, 1fr); }
.sec { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec h2 { max-width: 18ch; }

/* spec */
.spec__grid { display: grid; gap: 48px; align-items: start; }
.spec__media { display: flex; justify-content: center; }
.phone {
  width: min(320px, 68vw); border-radius: var(--r-phone); padding: 10px; background: #0b1020;
  box-shadow: var(--shadow-phone); will-change: transform;
}
.phone img { border-radius: calc(var(--r-phone) - 10px); width: 100%; }
.dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; }
.dim { padding: 18px 20px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.dim dt { font-size: 0.9rem; color: var(--ink-3); font-weight: 500; }
.dim dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.dim__n { font: 600 clamp(2.4rem, 2rem + 1.4vw, 3.2rem)/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.dim__u { font: 600 1.2rem/1 var(--f-display); color: var(--accent-ink); }
.verdicts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.verdict { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); }
.verdict .ic { width: 34px; height: 34px; padding: 7px; border-radius: 99px; color: #fff; }
.verdict--ok .ic { background: var(--ok); }
.verdict--warn .ic { background: var(--signal); color: #1b1300; }
.verdict--none .ic { background: var(--ink-3); }
.verdict p { color: var(--ink-2); }
.verdict b { color: var(--ink); font-weight: 600; }
.signs { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.signs li { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 500; font-size: 0.95rem; line-height: 1.2; color: var(--ink-2); }
.signs img { width: 64px; height: 64px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .signs li:hover img { transform: translateY(-4px) rotate(-4deg); } }
.clock { margin-top: 32px; display: flex; gap: 16px; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--line); }
.clock > .ic { width: 40px; height: 40px; color: var(--accent-ink); }
.clock p { color: var(--ink-2); margin-top: 6px; max-width: 46ch; }
@media (min-width: 900px) {
  .spec__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; }
  .spec__media { position: sticky; top: calc(var(--top-h) + 40px); }
  .phone--tilt { transform: rotate(-3deg); }
  .dims { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* radar road */
.radar__head { max-width: 760px; }
.road { position: relative; margin-top: 56px; height: 190px; }
.road__asphalt {
  position: absolute; left: 0; right: 0; top: 70px; height: 76px; border-radius: 18px;
  background: linear-gradient(180deg, #1a2238, #121a2e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.road__lane {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--paint) 0 34px, transparent 34px 64px);
}
.road__mark { position: absolute; top: 58px; height: 100px; width: 2px; background: rgba(245, 180, 0, 0.9); }
.road__mark span { position: absolute; top: 108px; left: 50%; transform: translateX(-50%); font: 600 1rem/1 var(--f-display); color: var(--ink-2); white-space: nowrap; }
.road__mark--500 { left: 18%; }
.road__mark--300 { left: 47%; }
.road__radar { position: absolute; right: 2%; top: 64px; width: 88px; height: 88px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.road__truck {
  position: absolute; left: 3%; top: 87px; width: 42px; height: 42px; border-radius: 99px; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(47, 107, 255, 0.25), 0 8px 18px -6px rgba(47, 107, 255, 0.9);
  will-change: transform;
}
.road__truck .ic { width: 24px; height: 24px; transform: rotate(90deg); }
.road__say {
  position: absolute; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 0.95rem; white-space: nowrap; color: var(--ink-3);
  transform: translateY(6px) scale(0.96); transform-origin: 20% 100%;
  transition: transform 420ms var(--ease-drawer), background-color 240ms ease, color 240ms ease;
}
.road__say .ic { color: inherit; }
.road__say--500 { left: calc(18% - 22px); }
.road__say--300 { left: calc(47% - 22px); }
.road__say.is-said { transform: none; background: var(--accent); color: #fff; }
@media (max-width: 700px) {
  .road { height: 250px; }
  .road__asphalt { top: 130px; }
  .road__mark { top: 118px; }
  .road__truck { top: 147px; }
  .road__radar { top: 124px; width: 72px; height: 72px; }
  .road__say--500 { left: 0; top: 0; }
  .road__say--300 { left: auto; right: 0; top: 56px; transform-origin: 80% 100%; }
}

.reports { margin-top: clamp(64px, 8vw, 110px); }
.reports__head { display: grid; gap: 14px; }
.reports__head h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); max-width: 24ch; }
.reports__head p { color: var(--ink-2); max-width: 60ch; }
.marquee {
  margin-top: 36px; display: flex; overflow: hidden; gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { list-style: none; margin: 0; padding: 0 6px; display: flex; gap: 12px; flex: none; animation: marquee 42s linear infinite; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); font: 600 1.15rem/1 var(--f-display); letter-spacing: 0.01em; white-space: nowrap;
}
.marquee__track img { width: 48px; height: 48px; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* community bento */
.bento { margin-top: 44px; display: grid; gap: 14px; }
.cell {
  position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow);
  display: grid; align-content: start;
}
.cell__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--night-2); }
.cell__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.cell__text { padding: 22px 24px 26px; display: grid; gap: 8px; }
.cell__text p { color: var(--ink-2); }
.cell[data-spot]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 107, 255, 0.14), transparent 60%);
}
@media (hover: hover) and (pointer: fine) {
  .cell:hover::after { opacity: 1; }
  .cell:hover .cell__media img { transform: scale(1.04); }
}
.cell--mate { background: var(--night-2); color: var(--on-night); }
.cell--mate .cell__text p { color: var(--on-night-2); }
.mate { width: 100%; padding: 0 20px 24px; overflow: visible; }
.mate path { fill: none; stroke-linecap: round; }
.mate__a, .mate__b { stroke: rgba(180, 190, 214, 0.55); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mate__s { stroke: var(--accent); stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mate__dot { fill: #fff; stroke: var(--accent); stroke-width: 4; }
.mate__t { fill: var(--on-night-2); font: 500 15px var(--f-body); }
.mate__t--s { fill: #fff; font: 600 18px var(--f-display); letter-spacing: 0.02em; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cell--cerca { grid-column: span 2; grid-row: span 2; }
  .cell--cerca .cell__media { aspect-ratio: auto; height: 100%; min-height: 360px; }
  .cell--cerca { grid-template-rows: 1fr auto; }
  .cell--mate { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
  .mate { padding: 24px 32px 24px 0; }
}

/* cab: radio + live, a dark instrument panel in both themes */
.cab__panel {
  border-radius: 32px; background: radial-gradient(120% 90% at 85% 0%, #17234a 0%, var(--night) 60%); color: var(--on-night);
  padding: clamp(28px, 5vw, 64px); display: grid; gap: 40px; overflow: hidden; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 80px -40px rgba(7, 11, 22, 0.8);
}
.cab__media { position: relative; display: flex; justify-content: center; }
.cab__media .phone { width: min(290px, 70vw); background: #04070f; }
.eq-tag {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(47, 107, 255, 0.9);
}
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: #fff; transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.35s; }
.eq i:nth-child(3) { animation-delay: -0.7s; }
.eq i:nth-child(4) { animation-delay: -0.2s; }
.cab__copy h2 { color: #fff; }
.stats { display: flex; gap: clamp(24px, 5vw, 56px); margin-top: 30px; }
.stat { display: grid; }
.stat__n { font: 600 clamp(3.2rem, 2.4rem + 3vw, 5rem)/0.9 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.stat__l { color: var(--on-night-2); font-weight: 500; margin-top: 6px; }
.ri { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.ri li { display: flex; gap: 16px; align-items: flex-start; }
.ri__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #b9cbff; flex: none; }
.ri__icon .ic { width: 24px; height: 24px; }
.ri__icon--live { background: rgba(255, 90, 95, 0.16); color: var(--live); }
.ri h3 { color: #fff; display: flex; align-items: center; gap: 10px; }
.ri p { color: var(--on-night-2); margin-top: 6px; max-width: 46ch; }
.live-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--live); animation: live 1.6s ease-in-out infinite; }
@media (min-width: 900px) { .cab__panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 64px; } }

/* offline */
.offline__grid { display: grid; gap: 40px; }
.big19 { margin-top: 18px; font: 600 clamp(7rem, 5rem + 9vw, 12rem)/0.8 var(--f-display); color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.deps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.deps li {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500;
}
.dep__ok { width: 18px; height: 18px; color: var(--ok); }
.dep__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: 0 50%; }
@media (min-width: 900px) { .offline__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; } }

/* stops ("Necesito parar") */
.stops__grid { display: grid; gap: 40px; align-items: center; }
.sapp { margin: 0; }
.sapp__panel {
  max-width: 460px; margin-inline: auto; padding: 20px 16px 16px; border-radius: 28px;
  background: var(--night-2); color: var(--on-night); box-shadow: var(--shadow-phone);
}
.sapp__title { display: flex; align-items: center; gap: 10px; margin: 4px 6px 16px; font: 600 1.7rem/1.1 var(--f-display); letter-spacing: 0.005em; }
.sapp__title .ic { width: 26px; height: 26px; color: var(--signal); }
.sapp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sapp__chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--night-3); color: var(--on-night-2); font: 600 0.98rem var(--f-body);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.sapp__chip:active { transform: scale(0.96); }
.sapp__chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.sapp__chip:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .sapp__chip[aria-pressed="false"]:hover { color: var(--on-night); background: #1d2948; } }
.sapp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sapp__list li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--night-3); }
.sapp__list li[hidden] { display: none; }
.sapp__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sapp__name { font-weight: 600; font-size: 1.05rem; color: #fff; min-width: 0; }
.sapp__km { flex: none; font: 600 1.15rem var(--f-display); color: var(--on-night); font-variant-numeric: tabular-nums; }
.sapp__svc { color: var(--on-night-2); font-size: 0.95rem; }
.sapp__ok { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #6fdca6; font-size: 0.9rem; font-weight: 600; }
.sapp__ok .ic { width: 16px; height: 16px; }
@media (min-width: 900px) { .stops__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; } }

/* steps */
.steps__list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 34px; position: relative; counter-reset: s; }
.steps__list::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 4px; border-radius: 4px; background: var(--accent);
  transform-origin: 50% 0;
}
.step { position: relative; padding-left: 82px; min-height: 56px; }
.step__n {
  position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 600 1.8rem/1 var(--f-display); box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.step p { color: var(--ink-2); margin-top: 6px; }
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .steps__list::before { left: 29px; right: 29px; top: 27px; bottom: auto; width: auto; height: 4px; transform-origin: 0 50%; }
  .step { padding-left: 0; padding-top: 86px; }
}

/* screenshots gallery */
.shots__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shots__nav { display: flex; gap: 10px; }
.shots__track {
  list-style: none; margin: 44px 0 0; padding: 20px max(16px, calc((100% - 1200px) / 2)) 40px; display: flex; gap: clamp(16px, 3vw, 36px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - 1200px) / 2)); overscroll-behavior-x: contain;
  scrollbar-width: none; cursor: grab;
}
.shots__track::-webkit-scrollbar { display: none; }
.shots__track.is-drag { scroll-snap-type: none; cursor: grabbing; }
.shot { flex: none; scroll-snap-align: start; }
.shot figure { margin: 0; }
.shot .phone { width: min(270px, 68vw); transition: transform 500ms var(--ease-out); }
.shot figcaption { margin-top: 16px; font: 600 1.25rem/1.1 var(--f-display); text-align: center; }

/* safety */
.safety__list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 0; }
.safety__list li { padding: 28px 0; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.claim { font: 600 clamp(1.7rem, 1.2rem + 1.9vw, 2.8rem)/1.05 var(--f-display); max-width: 26ch; }
.safety__list li p:not(.claim) { color: var(--ink-2); max-width: 60ch; }
.tlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; min-height: 44px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .tlink:hover { text-decoration: underline; } }
@media (min-width: 900px) {
  .safety__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .safety__list li { border-top-width: 3px; border-top-color: var(--accent); }
}

/* faq */
.faq__grid { display: grid; gap: 32px; }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; min-height: 64px; font: 600 1.3rem/1.15 var(--f-display); border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__ic { width: 26px; height: 26px; padding: 3px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); transform: rotate(45deg); transition: transform 240ms var(--ease-out); }
.faq details[open] .faq__ic { transform: rotate(0deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq__a { padding: 0 22px 22px; color: var(--ink-2); max-width: 64ch; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; } }

/* end */
.end { position: relative; isolation: isolate; overflow: clip; background: #0a1022; color: #fff; padding-block: clamp(96px, 14vw, 180px); }
.end__media { position: absolute; inset: 0; z-index: -2; }
.end__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.end::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 11, 22, 0.88), rgba(7, 11, 22, 0.55) 55%, rgba(7, 11, 22, 0.2)); }
.end__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.end__icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 22px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }
.end h2 { font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: 0.92; max-width: 12ch; }
.end__copy > p { margin-top: 16px; color: #d4dbee; font-size: 1.15rem; }
.qr { display: none; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); transition: transform 300ms var(--ease-out); }
.qr img { width: 148px; height: 148px; }
@media (min-width: 900px) { .qr { display: block; } }
@media (hover: hover) and (pointer: fine) { .qr:hover { transform: translateY(-4px) rotate(-1.5deg); } }

/* footer */
.foot { background: var(--bg-2); padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--ink-2); font-size: 0.95rem; }
.foot__in { display: grid; gap: 32px; }
.foot .logo { color: var(--ink); }
.foot__brand { display: grid; gap: 10px; max-width: 44ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 2px 4px; align-content: start; }
.foot__links a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { background: var(--line); } }
.foot__end { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; color: var(--ink-3); }
.foot .lang { color: var(--ink); }
@media (min-width: 900px) { .foot__in { grid-template-columns: 1fr 1.2fr; } .foot__end { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); } }

/* ---------- motion (only when the visitor allows it) ---------- */
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes line-up { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes hud-in { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translate3d(calc(-100% - 12px), 0, 0); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* reveal: the hidden state exists only after home.js marks an element below the fold */
.will-reveal { opacity: 0; transform: translate3d(0, 26px, 0); }
.will-reveal.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms); }

/* scroll-triggered drawings (data-inview gets .is-armed from JS, then .is-in) */
.is-armed .mate__a, .is-armed .mate__b, .is-armed .mate__s { stroke-dashoffset: 1; }
.is-armed.is-in .mate__a, .is-armed.is-in .mate__b { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-in-out); }
.is-armed.is-in .mate__s { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--ease-out) 0.9s; }
.is-armed.is-in .mate__a--out, .is-armed.is-in .mate__b--out { transition-delay: 1.6s; }
.is-armed .sapp__list li { opacity: 0; transform: translate3d(0, 14px, 0); }
.is-armed.is-in .sapp__list li { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out) var(--d, 0ms), transform 520ms var(--ease-drawer) var(--d, 0ms); }
.is-armed .dep__bar { transform: scaleX(0); }
.is-armed .dep__ok { opacity: 0; transform: scale(0.6); }
.is-armed.is-in .dep__bar { transform: scaleX(1); transition: transform 700ms var(--ease-in-out) var(--d, 0ms); }
.is-armed.is-in .dep__ok { opacity: 1; transform: none; transition: opacity 200ms ease calc(var(--d, 0ms) + 650ms), transform 300ms var(--ease-out) calc(var(--d, 0ms) + 650ms); }
.is-armed.steps__list::before { transform: scaleY(0); }
.is-armed.is-in.steps__list::before { transform: none; transition: transform 1.4s var(--ease-in-out); }
@media (min-width: 900px) { .is-armed.steps__list::before { transform: scaleX(0); } .is-armed.is-in.steps__list::before { transform: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
  .hero__media, .hud, .phone, .road__truck { transform: none !important; }
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; animation: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .eq i { transform: scaleY(0.7); }
  .road__say { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top.is-solid { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hud__alert { background: #0e1528; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* containment: nothing inside a section may widen the page */
.sec, .end { overflow-x: clip; }


/* Guías: bloque de enlaces internos hacia las páginas de contenido */
.guides__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guides__list > li { display: flex; }
.guide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.guide strong {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
}
.guide span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.guide:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .guide:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .guide { transition: none; }
  .guide:hover { transform: none; }
}
