/* Lion GPS — sitio web v2
   Sistema de diseño: DESIGN.md (estilo Apple) adaptado a la marca:
   blanco + azul oscuro en lugar de blanco + negro, un solo azul de acción,
   Inter como sustituto libre de SF Pro, una sola sombra (solo para los "productos"). */

:root {
  /* Superficies */
  --canvas: #ffffff;
  --parchment: #f4f6fa;
  --pearl: #fafbfd;
  --navy: #0b2350;          /* tile oscuro principal (azul B de la marca, más profundo) */
  --navy-2: #0e2a5e;        /* micro-paso más claro */
  --navy-3: #091d44;        /* micro-paso más oscuro */
  --nav: #06132d;           /* barra global (el "negro" del sistema) */

  /* Texto */
  --ink: #0f1a2e;
  --ink-80: #2b3447;
  --ink-48: #687186;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c6de;

  /* Acción (un solo azul) */
  --primary: #1a5fd0;
  --primary-focus: #2f74e6;
  --primary-on-dark: #7fb2ff;

  /* Líneas */
  --hairline: #e3e7ef;
  --divider: #eef1f6;

  /* Estados de la plataforma */
  --st-move: #1f9d55;
  --st-park: #1a5fd0;
  --st-idle: #d98a04;
  --st-off: #8a93a6;
  --wa: #25d366;

  --shadow-product: 3px 5px 30px rgba(3, 12, 32, .26);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --text-max: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: inherit; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--text-max); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.hero-display { font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.display-lg { font-size: 48px; line-height: 1.08; letter-spacing: -0.025em; }
.display-md { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: 24px; line-height: 1.3; font-weight: 400; letter-spacing: -0.012em; }
.lead-airy { font-size: 21px; line-height: 1.5; font-weight: 300; }
.tagline { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--primary); margin-bottom: 10px; }
.caption { font-size: 14px; line-height: 1.43; }
.fine { font-size: 12px; line-height: 1.4; color: var(--ink-48); }
.muted { color: var(--ink-48); }
.tile-dark .muted, .tile-dark .eyebrow { color: var(--primary-on-dark); }
.tile-dark .muted { color: var(--on-dark-muted); }
.grad-text {
  background: linear-gradient(92deg, #7fb2ff 0%, #b7d3ff 45%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 9999px; border: 1px solid transparent;
  font-size: 17px; font-weight: 400; line-height: 1.1; cursor: pointer;
  transition: transform .12s ease, background-color .2s ease, color .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: scale(.95); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #1653b8; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: rgba(26, 95, 208, .06); }
.tile-dark .btn-ghost, .hero .btn-ghost { color: var(--primary-on-dark); border-color: var(--primary-on-dark); }
.tile-dark .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(127, 178, 255, .1); }
.btn-wa { background: var(--wa); color: #06331a; font-weight: 600; }
.btn-wa:hover { background: #1fc05c; }
.btn-lg { padding: 14px 28px; font-size: 18px; }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-utility { background: rgba(255,255,255,.1); color: #fff; border-radius: 8px; padding: 7px 14px; font-size: 13px; }
.btn-utility:hover { background: rgba(255,255,255,.18); }
.link-arrow { font-size: 17px; font-weight: 400; }
.link-arrow::after { content: " ›"; }
.tile-dark .link-arrow { color: var(--primary-on-dark); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.center .actions, .actions.center { justify-content: center; }

/* ---------- Navegación global ---------- */
.global-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 19, 45, .92);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
}
.global-nav .container { display: flex; align-items: center; height: 52px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 0; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-decoration: none !important; }
.brand img { width: 30px; height: 30px; margin-right: 9px; }
.brand b { font-weight: 700; color: var(--primary-on-dark); margin-left: .28em; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { color: rgba(255,255,255,.82); font-size: 13px; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
/* Menú "Rastreo": las tres plataformas (Lion GPS + las dos de Navixy) hasta terminar la mudanza */
.acceso { position: relative; }
.acceso summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.acceso summary::-webkit-details-marker { display: none; }
.acceso summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.acceso[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.acceso-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 264px; background: #fff; color: #1d1d1f; border-radius: 14px; padding: 8px; box-shadow: 0 12px 40px rgba(6,19,45,.28); z-index: 60; }
.acceso-menu a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: inherit; }
.acceso-menu a:hover, .acceso-menu a:focus-visible { background: #eef4ff; }
.acceso-menu b { display: block; font-size: 14px; font-weight: 600; }
.acceso-menu span { display: block; font-size: 12px; color: #6e6e73; margin-top: 2px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; margin-left: auto; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; margin: 5px auto; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Sub-nav esmerilada (páginas internas) */
.sub-nav {
  position: sticky; top: 52px; z-index: 40;
  background: rgba(244, 246, 250, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 26, 46, .08);
}
.sub-nav .container { display: flex; align-items: center; height: 52px; gap: 22px; }
.sub-nav .title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-right: auto; color: var(--ink); }
.sub-nav a:not(.btn) { font-size: 13px; color: var(--ink-80); }
.sub-nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }

/* ---------- Tiles (secciones a sangre completa) ---------- */
.tile { padding: 104px 0; position: relative; overflow: hidden; }
.tile-sm { padding: 64px 0; }
.tile-light { background: var(--canvas); color: var(--ink); }
.tile-parchment { background: var(--parchment); color: var(--ink); }
.tile-dark { background: var(--navy); color: var(--on-dark); }
.tile-dark-2 { background: var(--navy-2); color: var(--on-dark); }
.tile-dark-3 { background: var(--navy-3); color: var(--on-dark); }
.tile-dark a:not(.btn), .tile-dark-2 a:not(.btn), .tile-dark-3 a:not(.btn) { color: var(--primary-on-dark); }
.tile-head { text-align: center; max-width: 860px; margin: 0 auto 56px; }
.tile-head .lead { margin-top: 14px; }
.tile-head .actions { margin-top: 26px; justify-content: center; }

/* Hero */
.hero { padding: 88px 0 0; background: radial-gradient(1200px 600px at 50% -10%, #17408a 0%, rgba(11,35,80,0) 60%), var(--navy); color: #fff; overflow: hidden; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary-on-dark); margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 0 rgba(57,217,138,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(57,217,138,.55); } 70% { box-shadow: 0 0 0 10px rgba(57,217,138,0); } 100% { box-shadow: 0 0 0 0 rgba(57,217,138,0); } }
.hero .lead { color: var(--on-dark-muted); max-width: 720px; margin: 20px auto 0; }
.hero .actions { justify-content: center; margin-top: 32px; }
.hero-stage { position: relative; margin: 64px auto 0; max-width: 1120px; padding: 0 24px; }
.hero-stage .browser { margin-left: 214px; }
.hero-stage .phone { position: absolute; left: 24px; bottom: -70px; width: 236px; z-index: 2; }

/* ---------- Dispositivos (los "productos" del sistema: llevan la única sombra) ---------- */
.browser {
  background: #fff; border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: var(--shadow-product), 0 0 0 1px rgba(255,255,255,.06);
}
.browser.rounded { border-radius: 14px; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #eef1f6; border-bottom: 1px solid #e2e6ee; }
.browser-bar .dots { display: flex; gap: 7px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar .dots i:nth-child(2) { background: #febc2e; }
.browser-bar .dots i:nth-child(3) { background: #28c840; }
.browser-bar .url { flex: 1; max-width: 360px; margin: 0 auto; height: 24px; border-radius: 7px; background: #fff; border: 1px solid #e2e6ee; font-size: 12px; color: var(--ink-48); display: flex; align-items: center; justify-content: center; gap: 6px; }
.browser-bar .url svg { width: 11px; height: 11px; }

.phone {
  position: relative; border-radius: 46px; padding: 11px; background: #0a0f1c;
  box-shadow: var(--shadow-product), inset 0 0 0 2px #2a3245;
}
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 14px; background: #0a0f1c; z-index: 2; }
.phone img { width: 100%; border-radius: 36px; aspect-ratio: 685 / 1530; object-fit: cover; object-position: top; background: #dfe5ee; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 36px; }
.phones .phone { width: 260px; }
.phones .phone.mid { width: 300px; }

/* ---------- Mockup del portal (lo arma script.js) ----------
   Misma distribución que la plataforma real (cliente beta): menú angosto a la izquierda,
   mapa a lo ancho y, flotando encima, la lista de Rastreo (izquierda) y la ficha (derecha)
   con el mismo cristal: blanco al 68 %, desenfoque 20 px y saturación 170 %. */
.portal { display: grid; grid-template-columns: 64px 1fr; height: 560px; font-family: "Nunito Sans", var(--font); color: #1d2536; letter-spacing: 0; font-size: 13px; line-height: 1.35; background: #f3f5f9; text-align: left; }
.p-side { background: #fff; border-right: 1px solid #e4e9f2; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.p-side .p-logo { width: 34px; height: 34px; margin-bottom: 8px; }
.p-side .it { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #5b6579; }
.p-side .it svg { width: 18px; height: 18px; }
.p-side .it.on { background: #e8eef9; color: #1b4f9c; }
.p-side .p-sep { width: 26px; height: 1px; background: #e4e9f2; margin: 4px 0; }
.p-side .av { margin-top: auto; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #1b4f9c, #3b7be0); color: #fff; font-weight: 800; font-size: 11px; display: grid; place-items: center; }
.p-map { position: relative; overflow: hidden; background: #f2efe9; container-type: inline-size; }
.p-map svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.glass {
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.65); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 32, 70, .12);
}

/* Lista de Rastreo: cristal flotando a la izquierda, como en la plataforma */
.p-list { position: absolute; top: 14px; left: 14px; bottom: 14px; width: 262px; border-radius: 20px; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; z-index: 3; }
.p-list h6 { margin: 0; font-size: 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.p-list h6 small { font-size: 11px; color: #6b7487; font-weight: 700; }
.p-search { height: 32px; border-radius: 10px; border: 1px solid rgba(29,37,54,.1); background: rgba(255,255,255,.55); color: #8a94a8; display: flex; align-items: center; padding: 0 10px; gap: 8px; font-size: 12px; }
.p-chips { display: flex; gap: 6px; }
.p-chips span { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.6); color: #4a5468; font-weight: 700; font-size: 11px; }
.p-chips span.on { background: #1b4f9c; color: #fff; }
.vlist { display: flex; flex-direction: column; gap: 8px; }
.veh { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid rgba(29,37,54,.09); background: rgba(255,255,255,.5); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.veh:hover { border-color: #b9c9e6; background: rgba(255,255,255,.75); }
.veh.sel { border-color: #1b4f9c; background: rgba(232,238,249,.85); box-shadow: inset 0 0 0 1px #1b4f9c; }
.ring { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid currentColor; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 12px; }
.ring svg { width: 13px; height: 13px; }
.veh .info { flex: 1; min-width: 0; }
.veh .info b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veh .info span { font-size: 11px; color: #6b7487; }
.chip { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.chip.move { background: #e3f5ea; color: #157a41; }
.chip.park { background: #e3edfb; color: #1b4f9c; }
.chip.idle { background: #fdf1dc; color: #9a6203; }
.chip.off { background: #eef0f4; color: #5f687b; }
.c-move { color: var(--st-move); } .c-park { color: var(--st-park); } .c-idle { color: var(--st-idle); } .c-off { color: var(--st-off); }

/* Saludo y cifras arriba, a la derecha de la lista */
.p-map .hello { position: absolute; top: 14px; left: 290px; right: 64px; display: flex; gap: 10px; align-items: center; z-index: 2; }
.p-map .hello .glass { padding: 9px 14px; }
.p-map .hello h5 { margin: 0; font-size: 15px; font-weight: 800; }
.p-map .hello small { color: #6b7487; font-size: 11px; }
.p-map .hello h5, .p-map .hello small, .kpi span { white-space: nowrap; }
.kpi { display: flex; flex-direction: column; padding: 8px 12px !important; min-width: 88px; }
.kpi b { font-size: 17px; font-weight: 800; }
.kpi span { font-size: 10px; color: #6b7487; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi.k-move b { color: var(--st-move); }
.kpi.k-park b { color: var(--st-park); }
.kpi.k-off b { color: var(--st-off); }
.p-map .maptools { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.p-map .maptools span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #3b4558; font-weight: 700; font-size: 16px; }

/* Ficha del vehículo: cristal abajo a la derecha */
.p-insp { position: absolute; right: 14px; bottom: 14px; width: 236px; border-radius: 20px; padding: 14px; z-index: 3; }
.p-insp .ih { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.p-insp .ih b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.p-insp .row { display: flex; justify-content: space-between; font-size: 11.5px; padding: 3px 0; color: #4a5468; }
.p-insp .row b { color: #1d2536; }
.p-insp .bar12 { display: flex; gap: 2px; margin-top: 8px; }
.p-insp .bar12 i { flex: 1; height: 8px; border-radius: 2px; background: #1f9d55; }
.p-insp .bar12 i.r { opacity: .55; }
.p-insp .bar12 i.n { background: #e58a2a; opacity: .5; }

/* Notificación que entra sola */
.p-map .toast { position: absolute; left: 290px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; max-width: 300px; transform: translateY(140%); opacity: 0; transition: transform .5s cubic-bezier(.2,.9,.3,1.2), opacity .4s; z-index: 2; }
.p-map .toast.show { transform: none; opacity: 1; }
.p-map .toast img { width: 34px; height: 34px; }
.p-map .toast b { display: block; font-size: 12.5px; }
.p-map .toast span { font-size: 11.5px; color: #6b7487; }

/* Según el ancho del mapa se quitan piezas para que nada se amontone */
@container (max-width: 860px) { .p-map .k-off { display: none; } }
@container (max-width: 760px) { .p-map .kpi { display: none; } .p-map .toast { display: none; } }
@container (max-width: 620px) {
  .p-list, .p-insp { display: none; }
  .p-map .hello { left: 14px; }
  .p-map .toast { display: flex; left: 14px; }
}
@container (max-width: 420px) { .p-map .kpi { display: none; } }

/* Mapa SVG: marcadores animados */
.mk-label { font: 800 10px "Nunito Sans", sans-serif; fill: #fff; }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-tile { border-radius: 28px; padding: 48px 40px 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 560px; }
.product-tile.light { background: var(--parchment); }
.product-tile.dark { background: var(--navy); color: #fff; }
.product-tile h3 { font-size: 40px; letter-spacing: -0.025em; line-height: 1.1; }
.product-tile .tagline { margin-top: 8px; font-weight: 400; color: var(--ink-80); }
.product-tile.dark .tagline { color: var(--on-dark-muted); }
.product-tile .actions { justify-content: center; margin-top: 22px; }
.product-tile .art { margin-top: auto; width: 100%; padding-top: 44px; }
.product-tile.dark .btn-ghost { color: var(--primary-on-dark); border-color: var(--primary-on-dark); }
.product-tile.dark .btn-ghost:hover { background: rgba(127, 178, 255, .1); }
.badge-new { font-size: 13px; font-weight: 600; color: #e8792b; margin-bottom: 8px; display: block; }
.product-tile.dark .badge-new { color: #ffb070; }

/* Ilustración de equipo GPS */
.device-art { width: 100%; max-width: 420px; margin: 0 auto; filter: drop-shadow(3px 5px 30px rgba(3,12,32,.22)); }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 18px; padding: 28px; }
.tile-light .card { background: var(--parchment); border-color: transparent; }
.tile-dark .card, .tile-dark-2 .card, .tile-dark-3 .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); }
.card h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--ink-80); font-size: 16px; }
.tile-dark .card p, .tile-dark-2 .card p, .tile-dark-3 .card p { color: var(--on-dark-muted); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(26,95,208,.1); color: var(--primary); margin-bottom: 18px; }
.tile-dark .card .ic, .tile-dark-2 .card .ic, .tile-dark-3 .card .ic { background: rgba(127,178,255,.12); color: var(--primary-on-dark); }
.card .ic svg { width: 22px; height: 22px; }
.card .num { font-size: 14px; font-weight: 700; color: var(--primary); display: block; margin-bottom: 10px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-media { grid-template-columns: .85fr 1.15fr; }
.split .lead { margin-top: 16px; }
.split p + p { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.tile-dark .checks li::before, .tile-dark-2 .checks li::before { background-color: #2f74e6; }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats b { display: block; font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--on-dark-muted); font-size: 15px; }

/* Alertas */
.alerts-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.alert-card { background: var(--canvas); border-radius: 18px; padding: 22px 14px 18px; text-align: center; border: 1px solid var(--hairline); transition: transform .3s ease; }
.alert-card:hover { transform: translateY(-4px); }
.alert-card img { width: 64px; height: 64px; margin: 0 auto 12px; object-fit: contain; }
.alert-card b { display: block; font-size: 15px; font-weight: 600; }
.alert-card span { font-size: 13px; color: var(--ink-48); }

/* Funciones de la plataforma */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row.flip > :first-child { order: 2; }
.feature-row h3 { font-size: 40px; letter-spacing: -0.025em; line-height: 1.1; }
.feature-row .lead { margin-top: 14px; font-size: 21px; color: var(--ink-80); }
.tile-dark .feature-row .lead { color: var(--on-dark-muted); }

/* Mockups secundarios */
.mock { background: #fff; border-radius: 20px; box-shadow: var(--shadow-product); color: #1d2536; font-family: "Nunito Sans", var(--font); letter-spacing: 0; font-size: 13px; overflow: hidden; text-align: left; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #edf0f5; }
.mock-head b { font-size: 15px; font-weight: 800; }
.mock-head small { color: #7b8598; font-weight: 700; font-size: 11px; }
.mock-body { padding: 16px 18px; }
.mock table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mock th { text-align: left; color: #7b8598; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 4px; border-bottom: 1px solid #edf0f5; }
.mock td { padding: 8px 4px; border-bottom: 1px solid #f2f4f8; }
.mock .pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #1b4f9c; color: #fff; font-weight: 800; font-size: 11px; }
.mock .pill.soft { background: #e8eef9; color: #1b4f9c; }
.mock .tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock .tot div { background: #f3f7fd; border-radius: 12px; padding: 10px; }
.mock .tot b { display: block; font-size: 18px; font-weight: 800; }
.mock .tot span { font-size: 10.5px; color: #6b7487; font-weight: 700; text-transform: uppercase; }
.mock .bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin: 6px 0 12px; }
.mock .bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(#3b7be0, #1b4f9c); transform-origin: bottom; }
.reveal.in .mock .bars i { animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.mock .switch { width: 46px; height: 28px; border-radius: 999px; background: #d6dbe5; position: relative; transition: background .3s; flex: none; cursor: pointer; border: 0; }
.mock .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s; }
.mock .switch.on { background: #e5484d; }
.mock .switch.on::after { transform: translateX(18px); }
.mock .lrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f2f4f8; }
.mock .lrow:last-child { border-bottom: 0; }
.mock .lrow .ico { width: 34px; height: 34px; border-radius: 10px; background: #e8eef9; color: #1b4f9c; display: grid; place-items: center; flex: none; }
.mock .lrow .ico svg { width: 17px; height: 17px; }
.mock .lrow .t { flex: 1; }
.mock .lrow .t b { display: block; font-size: 13px; }
.mock .lrow .t span { font-size: 11.5px; color: #7b8598; }
.mock .due { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.mock .due.ok { background: #e3f5ea; color: #157a41; }
.mock .due.soon { background: #fdf1dc; color: #9a6203; }
.mock .due.late { background: #fde7e7; color: #b42318; }
.mock .linkbox { display: flex; align-items: center; gap: 8px; border: 1px dashed #b9c9e6; border-radius: 12px; padding: 10px 12px; background: #f7faff; font-size: 12px; color: #1b4f9c; font-weight: 700; margin: 12px 0; word-break: break-all; }
.mock .seg { display: inline-flex; background: #f0f3f8; border-radius: 999px; padding: 3px; gap: 2px; }
.mock .seg span { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 11px; color: #4a5468; }
.mock .seg span.on { background: #fff; color: #1b4f9c; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Comparte GPS: el enlace y lo que ve quien lo recibe */
.mock .switch-on { width: 40px; height: 24px; border-radius: 999px; background: #1f9d55; position: relative; flex: none; }
.mock .switch-on::after { content: ""; position: absolute; top: 3px; left: 19px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.mock-stack { position: relative; max-width: 540px; margin: 0 auto; padding: 0 0 150px; }
.mock-stack > .mock:first-child { width: 78%; }
.mock.recibe { position: absolute; right: 0; bottom: 0; width: 260px; }
.mock.recibe .mock-head { padding: 12px 14px; }
.mock.recibe .mock-body { padding: 12px 14px 14px; }
.ruta-mini { width: 100%; height: auto; display: block; }
.ruta-trazo { stroke-dasharray: 360; stroke-dashoffset: 360; }
.reveal.in .ruta-trazo { animation: trazar 2.4s .5s ease-in-out forwards; }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@media (max-width: 640px) {
  .mock-stack { padding: 0; }
  .mock-stack > .mock:first-child { width: 100%; }
  .mock.recibe { position: static; width: 100%; max-width: 340px; margin: 20px auto 0; }
}

/* ---------- Página App ---------- */
.hero-phones { display: flex; justify-content: center; align-items: flex-end; gap: 32px; margin: 64px auto -110px; max-width: 980px; padding: 0 24px; }
.hero-phones .phone { width: 250px; } .hero-phones .phone.mid { width: 290px; }

/* Pantalla de Reportes de la app, hecha en HTML con los colores de la app en oscuro */
.app-screen {
  position: relative; aspect-ratio: 685 / 1530; border-radius: 36px; overflow: hidden;
  background: #143466; color: #eaf1ff; font-family: "Nunito Sans", var(--font); letter-spacing: 0;
  padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; text-align: left;
}
.as-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; color: #9cc2ff; }
.as-x { width: 26px; height: 26px; border-radius: 9px; background: #334e7a; display: grid; place-items: center; color: #cfe0ff; }
.as-card { background: #244271; border: 1px solid #3c5780; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.as-card > b { font-size: 15px; font-weight: 800; }
.as-card > small { color: #a9b9db; font-size: 11px; margin-top: -6px; }
.as-tabs { display: flex; gap: 4px; background: #102950; border-radius: 999px; padding: 3px; }
.as-tabs span { flex: 1; text-align: center; padding: 5px 0; border-radius: 999px; font-weight: 800; font-size: 10.5px; color: #a9b9db; }
.as-tabs span.on { background: #3b7be0; color: #fff; }
.as-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.as-tot div { background: #102950; border-radius: 10px; padding: 7px 9px; }
.as-tot b { display: block; font-size: 15px; font-weight: 800; }
.as-tot span { font-size: 9.5px; color: #a9b9db; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.as-chart { width: 100%; height: 54px; background: #102950; border-radius: 10px; padding: 6px; }
.as-row { display: flex; justify-content: space-between; font-size: 11px; color: #cfdcf5; padding: 4px 2px; border-top: 1px solid #3c5780; }
.as-btns { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }
.as-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.as-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 12px; background: #334e7a; color: #eaf1ff; font-weight: 800; font-size: 12px; }
.as-btn.primary { background: #3b7be0; }
.as-btn svg { width: 15px; height: 15px; }
.as-toast { position: absolute; left: 14px; right: 14px; bottom: 120px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #eaf1ff; color: #10264d; font-weight: 800; font-size: 11.5px; box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; transform: translateY(12px); }
.as-toast svg { width: 16px; height: 16px; color: #1f9d55; flex: none; }
.reveal.in .as-toast { animation: toastApp 5s 1.2s ease-in-out infinite; }
@keyframes toastApp { 0%, 8% { opacity: 0; transform: translateY(12px); } 14%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(12px); } }

/* Hoja del PDF que "sale" del teléfono */
.pdf-sheet { position: relative; width: 210px; aspect-ratio: 210 / 297; background: #fff; border-radius: 6px; box-shadow: var(--shadow-product); padding: 22px 18px; transform: rotate(5deg) translateY(-20px); align-self: center; }
.pdf-cover { background: linear-gradient(160deg, #143466, #1b4f9c); border-radius: 4px; color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 3px; font-family: "Nunito Sans", var(--font); letter-spacing: 0; }
.pdf-cover img { width: 34px; height: 34px; margin-bottom: 8px; }
.pdf-cover b { font-size: 15px; font-weight: 800; }
.pdf-cover span { font-size: 10px; color: #cfe0ff; }
.pdf-lines { display: grid; gap: 8px; margin-top: 16px; }
.pdf-lines i { display: block; height: 6px; border-radius: 3px; background: #e6eaf2; }
.pdf-tag { position: absolute; right: -12px; top: -12px; background: #e5484d; color: #fff; font-weight: 800; font-size: 12px; padding: 6px 10px; border-radius: 8px; }
@media (max-width: 833px) {
  .hero-phones .phone:not(.mid) { display: none; }
  .hero-phones { margin-bottom: -90px; }
}

/* ---------- Pantallas interactivas de la app (app-mock.js) ----------
   Colores: claro = la app en modo claro; oscuro = el azul "B" #143466 con cristal al 80 %.
   Todo se mide en em y el tamaño de letra sale del ancho del teléfono (cqw). */
.phone { container-type: inline-size; }
.am {
  position: relative; aspect-ratio: 685 / 1530; border-radius: 36px; overflow: hidden;
  font-family: "Nunito Sans", var(--font); letter-spacing: 0; text-align: left; line-height: 1.3;
  font-size: 3.7cqw; color: var(--a-ink); background: var(--m-bg); user-select: none;
  --verde: #1f9d55; --rojo: #e5484d; --ambar: #d98a04;
}
.am[data-tema="claro"] {
  --a-glass: rgba(255,255,255,.9); --a-gb: rgba(255,255,255,.8); --a-ink: #1d2536; --a-mut: #6b7487;
  --a-line: #e3e8f0; --a-card: #ffffff; --a-chip: #eef2f8; --a-chipon: #1b4f9c; --a-acc: #1b4f9c; --a-btn: #1b4f9c; --a-soft: #e8eef9;
  --m-bg: #f2efe9; --m-st: #ffffff; --m-av: #fcd27e; --m-av2: #e9b44c; --m-park: #cfe6c0; --m-water: #aad3ee; --m-lbl: #7d7464;
}
.am[data-tema="oscuro"] {
  --a-glass: rgba(20,52,102,.86); --a-gb: rgba(255,255,255,.12); --a-ink: #eaf1ff; --a-mut: #a9b9db;
  --a-line: #3c5780; --a-card: rgba(255,255,255,.07); --a-chip: #102950; --a-chipon: #3b7be0; --a-acc: #9cc2ff; --a-btn: #3b7be0; --a-soft: #334e7a;
  --m-bg: #1c2e4e; --m-st: #2b4066; --m-av: #41629a; --m-av2: #2f4a77; --m-park: #1d4a3c; --m-water: #0d2140; --m-lbl: #9fb3d6;
  --verde: #34c759; --rojo: #ef3b30; --ambar: #f5a524;
}
.am, .am * { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease; }
.am-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-map .m-bg { fill: var(--m-bg); } .am-map .m-st { stroke: var(--m-st); }
.am-map .m-av { stroke: var(--m-av); } .am-map .m-av2 { stroke: var(--m-av2); }
.am-map .m-park { fill: var(--m-park); } .am-map .m-water { fill: var(--m-water); }
.am-map .m-lbl { fill: var(--m-lbl); } .am-map .m-lbl-park { fill: #5f8a4f; }
.am-map .m-cas { stroke: var(--m-st); }
.am-glass { background: var(--a-glass); border: 1px solid var(--a-gb); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 .4em 1.4em rgba(10,20,45,.16); }

/* Barra superior y botones del mapa */
.am-top { position: absolute; top: 2.9em; left: .9em; right: .9em; height: 3.6em; border-radius: 1em; display: flex; align-items: center; padding: 0 .55em; gap: .4em; z-index: 3; }
.am-tt { flex: 1; text-align: center; display: flex; flex-direction: column; }
.am-tt b { font-weight: 900; font-size: 1.05em; letter-spacing: .02em; }
.am-tt small { font-size: .78em; color: var(--a-mut); font-weight: 700; }
.am-ib { width: 2.5em; height: 2.5em; border-radius: .75em; display: grid; place-items: center; flex: none; color: var(--a-ink); font-weight: 800; font-size: 1em; position: relative; }
.am-top .am-ib { background: var(--a-chip); }
.am-ib svg { width: 1.25em; height: 1.25em; }
.am-bell i { position: absolute; top: -.35em; right: -.45em; background: var(--rojo); color: #fff; font-style: normal; font-size: .58em; font-weight: 900; padding: .15em .35em; border-radius: 999px; border: 2px solid #fff; }
.am-tools { position: absolute; top: 7.4em; display: flex; flex-direction: column; gap: .55em; z-index: 2; }
.am-tools.l { left: .9em; } .am-tools.r { right: .9em; }

/* Hoja inferior */
.am-sheet { position: absolute; left: .7em; right: .7em; bottom: .7em; border-radius: 1.3em; z-index: 4; display: flex; flex-direction: column; padding: .45em .9em .9em; transition: height .45s cubic-bezier(.2,.8,.2,1), background-color .35s; overflow: hidden; }
.am-sheet.alto { height: 62%; } .am-sheet.medio { height: 47%; } .am-sheet.bajo { height: 30%; }
.am-asa { width: 5em; height: .32em; border-radius: 9px; background: var(--a-line); margin: 0 auto .55em; flex: none; }
.am-body { flex: 1; display: flex; flex-direction: column; gap: .55em; min-height: 0; }
.am-h { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.am-h > b, .am-h > div > b { font-size: 1.15em; font-weight: 900; }
.am-x { width: 1.9em; height: 1.9em; border-radius: .6em; display: grid; place-items: center; background: var(--a-soft); color: var(--a-acc); font-size: 1.1em; font-weight: 700; cursor: pointer; flex: none; }
.am-eti { display: block; font-size: .72em; font-weight: 900; letter-spacing: .08em; color: var(--a-acc); margin-top: .2em; }
.am-mut { color: var(--a-mut); font-size: .8em; }
.am-search { display: flex; align-items: center; gap: .5em; height: 2.4em; padding: 0 .7em; border-radius: .7em; border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-mut); font-size: .9em; }
.am-search svg { width: 1.1em; height: 1.1em; }
.am-chips { display: flex; gap: .35em; flex-wrap: nowrap; overflow: hidden; }
.am-chips span { padding: .45em .8em; border-radius: 999px; background: var(--a-chip); color: var(--a-ink); font-weight: 800; font-size: .82em; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; }
.am-chips span svg { width: 1.05em; height: 1.05em; }
.am-chips span.on { background: var(--a-chipon); color: #fff; }
.am-chips i { font-style: normal; }
.am-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .5em; scrollbar-width: none; }
.am-scroll::-webkit-scrollbar { display: none; }
.am-grp { display: flex; align-items: center; gap: .5em; font-weight: 900; font-size: .85em; margin-top: .2em; }
.am-grp i { width: .65em; height: .65em; border-radius: 50%; }
.am-grp span { margin-left: auto; background: var(--a-soft); color: var(--a-acc); border-radius: 999px; padding: .1em .55em; font-size: .9em; }
.am-veh { display: flex; align-items: center; gap: .6em; padding: .65em; border-radius: .9em; border: 1px solid var(--a-line); background: var(--a-card); cursor: pointer; }
.am-veh:hover { border-color: var(--a-acc); }
.am-ring { width: 2.3em; height: 2.3em; border-radius: 50%; border: .18em solid currentColor; display: grid; place-items: center; flex: none; font-weight: 900; font-size: .95em; }
.am-ring svg { width: 1em; height: 1em; }
.am-vi { flex: 1; min-width: 0; }
.am-vi b { display: block; font-size: .9em; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-vi small, .am-vr small { font-size: .74em; color: var(--a-mut); }
.am-vr { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .25em; }
.am-chip { font-size: .7em; font-weight: 900; padding: .3em .65em; border-radius: 999px; white-space: nowrap; }
.am-chip.move { background: rgba(31,157,85,.16); color: var(--verde); }
.am-chip.park { background: rgba(47,128,237,.16); color: #4d8ef0; }
.am-chip.off { background: rgba(138,147,166,.18); color: var(--a-mut); }
.am[data-tema="oscuro"] .am-chip.move { background: var(--verde); color: #06331a; }
.am[data-tema="oscuro"] .am-chip.park { background: #3b7be0; color: #fff; }
.am-verde { color: var(--verde); }

/* Ficha */
.am-fh { display: flex; gap: .6em; align-items: center; }
.am-fh > div { flex: 1; min-width: 0; }
.am-fh > div > b { font-size: 1.1em; font-weight: 900; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-fsub { display: flex; align-items: center; gap: .4em; font-size: .9em; margin-top: .2em; flex-wrap: wrap; }
.am-fsub small { color: var(--a-mut); }
.am-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.am-stats div { border: 1px solid var(--a-line); background: var(--a-card); border-radius: .7em; padding: .5em; }
.am-stats small { display: block; font-size: .62em; font-weight: 900; letter-spacing: .05em; color: var(--a-mut); }
.am-stats b { font-size: .85em; font-weight: 900; }
.am-acc { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35em; }
.am-acc span { display: flex; flex-direction: column; align-items: center; gap: .25em; padding: .55em .2em; border-radius: .7em; background: var(--a-soft); color: var(--a-acc); font-size: .68em; font-weight: 900; text-align: center; cursor: pointer; }
.am-acc span:first-child { background: var(--a-btn); color: #fff; }
.am-acc svg { width: 1.6em; height: 1.6em; }
.am-corte { display: grid; grid-template-columns: 1fr auto auto; gap: .4em; align-items: center; border-top: 1px solid var(--a-line); padding-top: .55em; }
.am-corte b { display: block; font-size: .85em; font-weight: 900; }
.am-corte small { font-size: .7em; color: var(--a-mut); }
.am-btn { display: inline-flex; align-items: center; justify-content: center; gap: .3em; padding: .55em .7em; border-radius: .7em; font-weight: 900; font-size: .74em; cursor: pointer; white-space: nowrap; }
.am-btn svg { width: 1.1em; height: 1.1em; }
.am-btn.rojo { background: var(--rojo); color: #fff; }
.am-btn.suave { background: var(--a-soft); color: var(--a-acc); }
.am-btn.azul { background: var(--a-btn); color: #fff; }
.am-btn.ancho { width: 100%; padding: .8em; font-size: .88em; flex: none; }
.am-btn.chico { padding: .4em .6em; margin-left: auto; }
.am-btn.dis { opacity: .4; pointer-events: none; }
.am-btn:active, .am-chips span:active, .am-acc span:active, .am-veh:active { transform: scale(.96); }

/* Datos */
.am-dato { display: flex; align-items: center; gap: .6em; padding: .6em .7em; border-radius: .8em; border: 1px solid var(--a-line); background: var(--a-card); }
.am-dato > svg { width: 1.3em; height: 1.3em; color: var(--a-acc); flex: none; }
.am-dato > div { flex: 1; min-width: 0; }
.am-dato b { display: block; font-size: .85em; font-weight: 900; }
.am-dato small { font-size: .7em; color: var(--a-mut); }
.am-due { font-size: .66em; font-weight: 900; padding: .3em .6em; border-radius: 999px; white-space: nowrap; }
.am-due.soon { background: #f5a524; color: #3d2700; } .am-due.prog { background: #3b7be0; color: #fff; }
.am-due.late { background: #ef3b30; color: #fff; } .am-due.ok { background: #34c759; color: #06331a; }

/* Recorridos */
.am-pills { position: absolute; top: 7.4em; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: .45em; z-index: 2; pointer-events: none; }
.am-pill { display: inline-flex; align-items: center; gap: .45em; padding: .4em .8em; border-radius: 999px; font-size: .78em; font-weight: 800; pointer-events: auto; }
.am-pill b { color: var(--rojo); }
.am-pill small { color: var(--a-mut); font-weight: 700; }
.am-seg { padding: .25em .3em .25em .7em; }
.am-seg span { padding: .35em .7em; border-radius: 999px; cursor: pointer; }
.am-seg span.on { background: var(--a-chipon); color: #fff; }
.am-pto { cursor: pointer; }
.am-pto.sel .pt { r: 9; fill: #1aa3b5; }
.am-pto.sel path { stroke: #fff; }
.am-popup { position: absolute; top: 7.2em; left: 3.7em; right: 3.7em; z-index: 5; border-radius: 1.1em; padding: .8em .9em; font-size: .92em; }
.am-popup .am-h b { font-size: 1em; }
.am-pn { display: block; font-weight: 900; margin-top: .3em; }
.am-popup p { margin: .35em 0 .15em; font-size: .86em; }
.am-tabla { display: grid; grid-template-columns: auto 1fr; gap: .35em .8em; border-top: 1px solid var(--a-line); margin-top: .5em; padding-top: .5em; font-size: .82em; }
.am-tabla span { color: var(--a-mut); } .am-tabla b { font-weight: 900; }
.am-viajes { display: flex; flex-direction: column; gap: .4em; overflow: hidden; }
.am-viaje-f { display: flex; align-items: center; gap: .6em; padding: .5em .6em; border: 1px solid var(--a-line); border-radius: .8em; background: var(--a-card); }
.am-viaje-f b { display: block; font-size: .8em; font-weight: 900; }
.am-viaje-f small { font-size: .7em; color: var(--a-mut); }
.am-chk { width: 1.5em; height: 1.5em; border-radius: .4em; border: 2px solid var(--a-line); display: grid; place-items: center; color: transparent; font-size: .8em; font-weight: 900; cursor: pointer; flex: none; }
.am-chk.on { background: #1aa3b5; border-color: #1aa3b5; color: #fff; }
.am-chips.per span { font-size: .76em; padding: .45em .7em; }

/* Alertas */
.am-alerta { display: flex; gap: .6em; padding: .6em; border-radius: .9em; border: 1px solid var(--a-line); background: var(--a-card); }
.am-alerta img { width: 2.6em; height: 2.6em; border-radius: .6em; background: #fff; padding: .2em; flex: none; object-fit: contain; }
.am-alerta > div { flex: 1; min-width: 0; }
.am-alerta b { display: flex; align-items: center; gap: .35em; font-size: .86em; font-weight: 900; }
.am-alerta b small { margin-left: auto; font-size: .82em; color: var(--a-mut); font-weight: 800; white-space: nowrap; }
.am-alerta span { font-size: .74em; color: var(--a-mut); display: block; margin-top: .15em; }
.am-alerta .dot { width: .5em; height: .5em; border-radius: 50%; background: #6ea3ec; display: inline-block; flex: none; }
.am-alerta.entra, .am-link.entra { animation: amEntra .6s cubic-bezier(.2,.9,.3,1.2); }
@keyframes amEntra { from { opacity: 0; transform: translateY(-1em) scale(.97); } }
.am-push { position: absolute; top: 2.9em; left: .9em; right: .9em; z-index: 6; display: flex; gap: .6em; align-items: center; padding: .6em .7em; border-radius: 1em; transform: translateY(-140%); }
.am-push.show { animation: amPush 3.4s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes amPush { 0% { transform: translateY(-140%); } 14%, 78% { transform: none; } 100% { transform: translateY(-140%); } }
.am-push img { width: 2.3em; height: 2.3em; border-radius: .55em; background: #fff; padding: .2em; }
.am-push b { display: block; font-size: .85em; font-weight: 900; }
.am-push span { font-size: .72em; color: var(--a-mut); }
.am-vacio { text-align: center; padding: 1.5em 0; }

/* Comparte GPS */
.am-link { border: 1px solid var(--a-line); background: var(--a-card); border-radius: .9em; padding: .65em; display: flex; flex-direction: column; gap: .55em; }
.am-lh { display: flex; gap: .5em; align-items: flex-start; }
.am-lh > div { flex: 1; min-width: 0; }
.am-lh b { display: block; font-size: .88em; font-weight: 900; }
.am-lh small { display: block; font-size: .7em; color: var(--a-mut); }
.am-lb { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .35em; }

/* Rango de fechas */
.am-fondo { position: absolute; inset: 0; background: var(--m-bg); }
.am[data-tema="oscuro"] .am-fondo { background: #0f2347; }
.am-cal { position: absolute; left: .8em; right: .8em; top: 34%; border-radius: 1.2em; padding: .9em; display: flex; flex-direction: column; gap: .6em; z-index: 2; }
.am-ct { font-size: 1.05em; font-weight: 900; }
.am-cbox { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; }
.am-cbox div { border-radius: .8em; padding: .5em .6em; background: var(--a-chip); display: flex; flex-direction: column; gap: .15em; transition: background-color .25s; }
.am-cbox div.act { background: var(--a-btn); color: #fff; }
.am-cbox small { font-size: .62em; font-weight: 900; letter-spacing: .05em; opacity: .85; display: flex; align-items: center; gap: .3em; }
.am-cbox small svg { width: 1.1em; height: 1.1em; }
.am-cbox b { font-size: .95em; font-weight: 900; }
.am-cm { display: flex; justify-content: space-between; align-items: center; font-size: .9em; }
.am-cm span { width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: .5em; cursor: pointer; font-size: 1.2em; font-weight: 900; color: var(--a-acc); }
.am-cg { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2em; text-align: center; }
.am-cg small { font-size: .7em; font-weight: 900; color: var(--a-mut); padding-bottom: .2em; }
.am-cg span { aspect-ratio: 1; display: grid; place-items: center; border-radius: .55em; font-size: .82em; font-weight: 800; }
.am-cg span.d { cursor: pointer; }
.am-cg span.d:hover { background: var(--a-soft); }
.am-cg span.en { background: var(--a-soft); border-radius: 0; }
.am-cg span.ext { background: var(--a-btn); color: #fff; }
.am-cf { display: flex; align-items: center; gap: .9em; font-size: .85em; }
.am-cf small { flex: 1; color: var(--a-mut); }
.am-cf span { font-weight: 900; color: var(--a-acc); cursor: pointer; }

/* Diálogo y aviso */
.am-dlg { position: absolute; inset: 0; z-index: 9; background: rgba(5,12,30,.45); display: grid; place-items: center; padding: 1.5em; animation: amFade .2s; }
@keyframes amFade { from { opacity: 0; } }
.am-dlg-c { background: var(--a-card); background-color: var(--a-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 1.1em; padding: 1em; width: 100%; box-shadow: 0 1em 2em rgba(0,0,0,.3); }
.am[data-tema="claro"] .am-dlg-c { background: #fff; }
.am-dlg-c b { font-size: 1.05em; font-weight: 900; }
.am-dlg-c p { font-size: .82em; color: var(--a-mut); margin: .4em 0 .9em; }
.am-dlg-c div { display: flex; justify-content: flex-end; gap: 1.2em; font-weight: 900; font-size: .9em; }
.am-dlg-c span { cursor: pointer; color: var(--a-acc); } .am-dlg-c span.rojo { color: var(--rojo); }
.am-toast { position: absolute; left: 1em; right: 1em; bottom: 34%; z-index: 10; text-align: center; padding: .7em .8em; border-radius: .9em; background: #eaf1ff; color: #10264d; font-weight: 900; font-size: .82em; box-shadow: 0 .6em 1.6em rgba(0,0,0,.3); opacity: 0; transform: translateY(.8em); pointer-events: none; transition: opacity .3s, transform .3s; }
.am[data-tema="claro"] .am-toast { background: #1d2536; color: #fff; }
.am-toast.show { opacity: 1; transform: none; }

/* Reportes: pestañas nuevas */
.as-det, .as-bars { display: flex; flex-direction: column; }
.as-det[hidden], .as-bars[hidden] { display: none; }
.as-det small { color: #a9b9db; font-size: 10px; }
.as-bars { flex-direction: row; align-items: flex-end; gap: 6px; height: 150px; padding: 8px 6px 18px; background: #102950; border-radius: 10px; }
.as-bars i { flex: 1; position: relative; border-radius: 5px 5px 2px 2px; background: linear-gradient(#9cc2ff, #3b7be0); animation: grow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.as-bars small { position: absolute; bottom: -15px; left: 0; right: 0; text-align: center; font-size: 9px; color: #a9b9db; font-style: normal; }

/* Avisos de voz (IVMS) */
.voice { display: grid; gap: 14px; }
.voice-bubble {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px 20px 20px 6px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 19px; color: #fff;
  opacity: 0; transform: translateX(-16px);
}
.reveal.in .voice-bubble { animation: bubble .7s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal.in .voice-bubble.d1 { animation-delay: .6s; }
.reveal.in .voice-bubble.d2 { animation-delay: 1.2s; }
@keyframes bubble { to { opacity: 1; transform: none; } }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; flex: none; }
.wave i { width: 3px; border-radius: 2px; background: var(--primary-on-dark); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 8px; } .wave i:nth-child(2) { height: 18px; animation-delay: .1s; } .wave i:nth-child(3) { height: 12px; animation-delay: .2s; }
.wave i:nth-child(4) { height: 20px; animation-delay: .3s; } .wave i:nth-child(5) { height: 9px; animation-delay: .4s; }
@keyframes wave { 50% { transform: scaleY(.35); } }

/* Claro / oscuro de la app */
.theme-switch { display: inline-flex; background: #e6eaf2; padding: 4px; border-radius: 999px; gap: 4px; margin-top: 28px; }
.theme-switch button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-80); cursor: pointer; transition: background .25s, color .25s; }
.theme-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15,26,46,.12); }
.phone img.swap { transition: opacity .45s ease; }

/* Comparación */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 12px; border-bottom: 1px solid var(--hairline); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.compare .y { color: var(--primary); font-weight: 700; }
.compare .n { color: #b4bccb; }

/* Formulario */
.form-card { background: var(--canvas); border-radius: 24px; padding: 36px; border: 1px solid var(--hairline); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-80); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--pearl);
  border: 1px solid rgba(15, 26, 46, .12); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,95,208,.14); }
.field.err input { border-color: #d92d20; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-note { font-size: 13px; color: var(--ink-48); margin-top: 12px; }
.info-list { display: grid; gap: 22px; }
.info-list .it { display: flex; gap: 16px; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(26,95,208,.1); color: var(--primary); flex: none; }
.info-list .ic svg { width: 21px; height: 21px; }
.info-list h4 { font-size: 15px; font-weight: 600; color: var(--ink-48); margin-bottom: 2px; }
.map-embed { border: 0; width: 100%; height: 280px; border-radius: 18px; margin-top: 28px; background: var(--parchment); }

/* Texto legal */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 24px; letter-spacing: -0.015em; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-80); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 8px; }
.legal .box { background: var(--parchment); border-radius: 18px; padding: 22px 24px; margin-top: 20px; }

/* Logos de marca */
.brand-pair { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.brand-pair img { height: 120px; width: auto; }
.brand-pair .sep { width: 1px; height: 90px; background: var(--hairline); }

/* Footer */
.site-footer { background: var(--parchment); color: var(--ink-80); padding: 64px 0 96px; font-size: 14px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(15,26,46,.1); flex-wrap: wrap; }
.footer-top .lt img { height: 56px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 32px 0; }
.footer-grid h5 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-grid a, .footer-grid span.l { display: block; color: var(--ink-80); font-size: 13px; line-height: 2.3; }
.footer-grid a:hover { color: var(--primary); text-decoration: none; }
.footer-grid p { font-size: 13px; line-height: 1.6; }
.footer-legal { border-top: 1px solid rgba(15,26,46,.1); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-48); }
.footer-legal a { color: var(--ink-48); }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--hairline); }
.social a svg { width: 17px; height: 17px; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  background: var(--wa); color: #06331a !important; border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 30px rgba(6, 51, 26, .28); text-decoration: none !important;
  transition: transform .2s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float:active { transform: scale(.95); }
.wa-float svg { width: 26px; height: 26px; }

/* Aparición al desplazarse */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.intro { animation: intro 1s cubic-bezier(.2,.8,.2,1) both; }
.intro.d1 { animation-delay: .08s; } .intro.d2 { animation-delay: .16s; } .intro.d3 { animation-delay: .26s; }
@keyframes intro { from { opacity: 0; transform: translateY(24px); } }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .hero-display { font-size: 52px; }
  .display-lg { font-size: 40px; }
  .alerts-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stage .phone { display: none; }
  .hero-stage .browser { margin-left: 0; }
}
@media (max-width: 833px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav-links, .nav-open .nav-cta { display: flex; }
  .nav-open .global-nav .container { flex-wrap: wrap; height: auto; padding-top: 4px; padding-bottom: 18px; }
  .nav-open .nav-links { order: 3; flex-direction: column; width: 100%; gap: 0; margin: 6px 0 0; }
  .nav-open .nav-links a { display: block; font-size: 20px; padding: 10px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-open .nav-cta { order: 4; width: 100%; padding-top: 14px; }
  .nav-open .nav-cta { flex-wrap: wrap; }
  .nav-open .acceso { width: 100%; }
  .nav-open .acceso summary { width: 100%; justify-content: center; padding: 11px 14px; font-size: 15px; }
  .nav-open .acceso-menu { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .sub-nav a:not(.btn) { display: none; }
  .tile { padding: 72px 0; }
  .split, .feature-row, .products, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature-row { gap: 40px; }
  .feature-row.flip > :first-child { order: 0; }
  .feature-row + .feature-row { margin-top: 88px; }
  .split { gap: 40px; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .stats { row-gap: 40px; }
  .portal { grid-template-columns: 1fr; height: 460px; }
  .p-side { display: none; }
  .hero-stage .phone { display: none; }
  .phones .phone { width: 200px; } .phones .phone.mid { width: 230px; }
  .phones .phone.side-hide { display: none; }
  .product-tile { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding: 0 20px; }
  .hero { padding-top: 64px; }
  .hero-display { font-size: 40px; }
  .display-lg { font-size: 32px; }
  .display-md { font-size: 28px; }
  .lead { font-size: 20px; }
  .feature-row h3, .product-tile h3 { font-size: 32px; }
  .stats b { font-size: 44px; }
  .alerts-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .portal { height: 380px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .brand-pair img { height: 84px; }
  .brand-pair .sep { display: none; }
  .compare { font-size: 14px; } .compare thead th { font-size: 16px; }
  .compare th, .compare td { padding: 12px 6px; }
}
