/* Seeker Parking · identidad Seeker Links */
:root {
  --navy: #384274; --navy-deep: #2E3763; --indigo: #3A4B93; --indigo-h: #31407F;
  --bg: #EEF1FA; --white: #FFFFFF;
  --ink: #22263F; --ink-2: #5E6480; --ink-blue: #4A558C; --side-ink: #DCE2F5;
  --line-ctrl: #B8C5EB; --line: #DDE3F4; --line-soft: #EDF0F8; --cyan: #76D8FF;
  --lima: #B5D966; --lima-bg: #F1F7E4;
  --emerald: #278568; --emerald-bg: #E5F3ED;
  --sage: #64856A; --sage-bg: #EDF3EA;
  --terra: #C87545; --terra-bg: #FBEDE4;
  --amber: #B77916; --amber-bg: #FFF2D8; --amber-ink: #7A500C;
  --gold: #E4BD54; --gold-bg: #FCF6DF;
  --ok: #1F7A47; --ok-bg: #E3F4EA;
  --err: #B3261E; --err-bg: #FCE9E7;
  --info: #3A4B93; --info-bg: #E4E9F8;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px; --r-sm: 6px;
  --shadow: 0 1px 2px rgba(34, 38, 63, .05), 0 4px 14px rgba(34, 38, 63, .05);
  --side-w: 248px; --top-h: 72px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--indigo); }
.num, .kpi-v, .pack-v, .table, .bar-v, .tip { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); margin: 0; }
.sm { font-size: 13.5px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Iconos ---------- */
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Menú lateral ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--navy); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 20px 14px calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--cyan); color: var(--navy-deep); font-weight: 800; font-size: 19px; }
.brand strong { display: block; color: var(--white); font-weight: 800; font-size: 16.8px; line-height: 1.2; }
.brand small { display: block; font-size: 13px; color: var(--side-ink); opacity: .85; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-h { margin: 10px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--side-ink); opacity: .7; }
.nav-a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px;
  color: var(--side-ink); text-decoration: none; font-weight: 600; font-size: 15.2px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
}
.nav-a:hover { background: rgba(255, 255, 255, .07); }
.nav-a.on { background: var(--navy-deep); color: var(--white); box-shadow: inset 3px 0 0 var(--cyan); }
.nav-sep { border: 0; border-top: 1px solid rgba(220, 226, 245, .16); margin: 12px 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.side-foot form { margin: 0; }
.me { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lima); color: var(--ink); font-weight: 800; flex: none; }
.me-t { min-width: 0; }
.me-t strong { display: block; color: var(--white); font-size: 14.4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t small { display: block; font-size: 13px; color: var(--side-ink); }

/* ---------- Área principal ---------- */
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line);
  min-height: var(--top-h); display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px max(28px, env(safe-area-inset-right, 0px)) 12px 28px;
}
.page-title { margin: 0; font-size: 25.6px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.menu-btn { display: none; border: 1px solid var(--line-ctrl); background: var(--white); border-radius: 8px; padding: 7px; cursor: pointer; color: var(--navy); }
.work { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 24px; max-width: 1280px; width: 100%; }
.scrim { position: fixed; inset: 0; background: rgba(34, 38, 63, .45); z-index: 35; }

/* ---------- Filtros ---------- */
.filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.f label { font-size: 13px; font-weight: 700; color: var(--ink-blue); }
.f input, .f select { height: 38px; padding: 0 10px; border: 1px solid var(--line-ctrl); border-radius: 8px; background: var(--white); font-size: 14.4px; min-width: 0; }
.f select { min-width: 9.5rem; }
.f input:focus, .f select:focus { outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(118, 216, 255, .55); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font-size: 15.2px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14.4px; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-h); }
.btn-secondary { background: var(--white); color: var(--indigo); border-color: var(--line-ctrl); }
.btn-secondary:hover { border-color: var(--indigo); }
.btn-danger { background: var(--err); color: var(--white); }
.btn-danger:hover { background: #962019; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-block { width: 100%; }
.btn-ghost { border: 1px solid var(--line-ctrl); background: var(--white); color: var(--indigo); border-radius: 8px; padding: 0 12px; height: 34px; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--indigo); }
.btn-ghost.danger { color: var(--err); }
.btn-ghost.danger:hover { border-color: var(--err); }

/* ---------- Tarjetas ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.narrow { max-width: 640px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-title { margin: 0; font-size: 16.8px; font-weight: 700; line-height: 1.3; }
.card-sub { margin: 0; font-size: 15.2px; font-weight: 700; }
.sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.sec-title { margin: 4px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
#resumen, #linea-tiempo { scroll-margin-top: 96px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 20px; }
.div { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; width: 100%; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: 16px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); min-width: 0; }
.kpi-l { font-size: 14px; font-weight: 700; color: var(--ink-blue); display: block; }
.kpi-v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.kpi-s { font-size: 13.5px; color: var(--ink-2); }
.kpi-feature { background: var(--navy); border-color: var(--navy); color: var(--white); }
.kpi-feature .kpi-l { color: var(--side-ink); }
.kpi-feature .kpi-v { color: var(--white); }
.kpi-feature .kpi-s { color: var(--side-ink); }
.kpi-feature::after { content: ""; display: block; height: 3px; width: 44px; border-radius: 2px; background: var(--cyan); margin-top: 8px; }
.takeaway { margin: -4px 0 0; color: var(--ink-2); max-width: 75ch; }
.takeaway b { color: var(--ink); font-weight: 700; }

.dash { display: flex; flex-direction: column; gap: 20px; }
#content { display: flex; flex-direction: column; gap: 24px; }
.dash-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.active-f { margin: 0; font-size: 14px; color: var(--ink-blue); font-weight: 600; }

/* ---------- Badges / tags ---------- */
.badge, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-ok, .tag-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warn { background: var(--amber-bg); color: var(--amber-ink); }
.badge-muted { background: var(--line-soft); color: var(--ink-2); }
.tag-lima { background: var(--lima-bg); color: #3F5A12; }
.kpi-feature .tag-lima { background: var(--lima); color: var(--ink); }
.tag { padding: 1px 8px; font-size: 12.5px; }

/* ---------- Segmented ---------- */
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; color: var(--ink-blue); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--indigo); background: var(--white); }

/* ---------- Leyendas y gráficos ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i, .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
.sw-p3 { background: var(--indigo); } .sw-p2 { background: var(--emerald); }
.chart { width: 100%; min-height: 320px; }
.chart svg { display: block; overflow: visible; }
.chart .ax { fill: var(--ink-2); font-size: 13px; font-family: var(--font); font-weight: 500; }
.chart .end { font-size: 14px; font-weight: 800; font-family: var(--font); }
.chart .ann { fill: var(--ink-blue); font-size: 13px; font-weight: 700; font-family: var(--font); }
.empty { display: flex; align-items: center; justify-content: center; min-height: 10rem; color: var(--ink-2); font-size: 14px; text-align: center; padding: 16px; }

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(7rem, 10.5rem) 1fr 6.5rem; align-items: center; gap: 14px; }
.bar-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-wrap { min-width: 0; }
.track { display: flex; height: 28px; border-radius: 6px; overflow: hidden; transition: width .3s ease; }
.track > div { height: 100%; display: flex; align-items: center; padding: 0 9px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.track > div + div { box-shadow: inset 2px 0 0 var(--white); }
.bar-v { text-align: right; font-weight: 700; }
.bar-v small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ---------- Paquetes ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 16px; }
.pack { transition: opacity .25s; }
.pack.off { opacity: .45; }
.pack-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16.8px; }
.chip.sm { font-size: 13.4px; }
.pack-n { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pack-v { display: block; font-size: 29px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.meter-bar > div { height: 100%; border-radius: 4px; transition: width .3s ease; }
.veh { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.veh-t { font-size: 13.4px; font-weight: 700; color: var(--ink-blue); }
.veh-r { display: grid; grid-template-columns: 4.8rem 1fr 8rem; gap: 10px; align-items: center; font-size: 14px; }
.veh-track { height: 10px; border-radius: 5px; background: var(--line-soft); overflow: hidden; }
.veh-track > div { height: 100%; border-radius: 5px; }
.veh-v { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Tablas ---------- */
.tw { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 15.2px; }
.table th { font-size: 13.4px; font-weight: 700; color: var(--ink-blue); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; vertical-align: middle; }
.table .num { text-align: right; }
.table .right { text-align: right; }
.table .gap { border-left: 1px solid var(--line-soft); }
.table tr.grp th { border-bottom: 0; padding-bottom: 0; }
.table tr.tot td, .table tfoot td { font-weight: 800; border-bottom: 0; background: var(--bg); }
.table tbody tr:hover td { background: #F7F8FD; }
.table select { height: 34px; border: 1px solid var(--line-ctrl); border-radius: 8px; padding: 0 8px; background: var(--white); }
.table form.inline { margin: 0; }
.table td.right { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 14.4px; font-weight: 700; color: var(--ink); }
.field input, .field select { height: 44px; padding: 0 12px; border: 1px solid var(--line-ctrl); border-radius: 8px; background: var(--white); font-size: 16px; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(118, 216, 255, .55); }
.hint { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pass { display: flex; gap: 8px; }
.pass input { flex: 1; min-width: 0; }
.pass .btn-ghost { height: 44px; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-ctrl); border-radius: 8px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--indigo); background: var(--info-bg); }
.radio input { margin-top: 4px; accent-color: var(--indigo); }
.radio small { display: block; color: var(--ink-2); font-size: 13px; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--line-ctrl); border-radius: var(--r); background: var(--bg); color: var(--ink-blue); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop .ic { width: 30px; height: 30px; color: var(--indigo); }
.drop strong { color: var(--ink); }
.drop small { color: var(--ink-2); font-size: 13.5px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--indigo); background: var(--info-bg); }
.drop.has { border-style: solid; border-color: var(--emerald); background: var(--emerald-bg); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks .badge { padding: 1px 7px; }

/* ---------- Alertas ---------- */
.alert { padding: 12px 16px; border-radius: 8px; font-weight: 600; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE3CE; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #F3C4BF; }

/* ---------- Modal ---------- */
.modal { border: 1px solid var(--line); border-radius: 12px; padding: 24px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(34, 38, 63, .25); color: var(--ink); }
.modal::backdrop { background: rgba(34, 38, 63, .5); }

/* ---------- Tooltip ---------- */
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(34, 38, 63, .14); padding: 10px 12px; font-size: 13.5px; min-width: 190px; }
.tip-t { font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.tip-r { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.tip-r i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.tip-r b { margin-left: auto; padding-left: 14px; color: var(--ink); font-weight: 700; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; background: var(--bg); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-brand { background: var(--navy); color: var(--side-ink); padding: 40px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid var(--navy-deep); }
.login-art { position: relative; z-index: 1; max-width: 30rem; }
.login-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.login-big { margin: 0 0 28px; color: var(--white); font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.login-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.login-points li { display: flex; align-items: center; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-lima { background: var(--lima); } .dot-cyan { background: var(--cyan); } .dot-gold { background: var(--gold); }
.login-card { align-self: center; justify-self: center; width: min(440px, calc(100% - 32px)); margin: 40px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 36px 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.login-title { margin: 0; font-size: 25.6px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .top { padding-left: 20px; padding-right: 20px; }
  .top-actions { margin-left: 0; width: 100%; }
  .work { padding: 20px 20px 40px; }
}
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .2); }
  .side.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; place-items: center; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 20px; gap: 20px; }
  .login-brand::after { display: none; }
  .login-big { font-size: 24px; margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .top { padding: 12px 16px; }
  .work { padding: 16px 16px 32px; }
  .filters { width: 100%; }
  .f { flex: 1 1 calc(50% - 10px); }
  .f select { min-width: 0; }
  .card { padding: 18px 16px; }
  .bar-row { grid-template-columns: 6.2rem 1fr 4.8rem; gap: 10px; }
  .track > div { font-size: 0; padding: 0; }
  .bar-n { white-space: normal; font-size: 14.4px; line-height: 1.25; }
  .veh-r { grid-template-columns: 4.2rem 1fr 6.8rem; }
  .radios { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
