@font-face { font-family: "Open Sans"; font-weight: 400; src: url(lib/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; src: url(lib/open-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; src: url(lib/open-sans-latin-700-normal.woff2) format("woff2"); }
:root {
  --topbar: #13294a; --rail: #0e2036;
  --page: #eef1f5; --surface: #fff; --surface-2: #f5f7fa; --line: #e2e6ec; --line-strong: #c9d0da;
  --ink: #111a26; --ink-2: #4c5768; --muted: #8590a0;
  --accent: #0b5cad; --accent-soft: #e3effb; --bar: #2a78d6; --track: #e6eaf0;
  --good: #0ca30c; --good-ink: #006300; --good-soft: #e3f4e3;
  --warn: #fab219; --warn-ink: #7a5200; --warn-soft: #fff3d6;
  --bad: #d03b3b; --bad-ink: #a32020; --bad-soft: #fbe5e5;
  --wa: #1fa855;
  --font: "Open Sans", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--topbar); }          /* lo que muestra el iPhone detrás de la hora */
html, body { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; }
body { background: var(--page); color: var(--ink); font: 14px/1.45 var(--font); overscroll-behavior: none; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }

/* ---------- login ---------- */
.login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(160deg, rgba(19,41,74,.92), rgba(11,92,173,.78)), url(lib/fondo_login.jpg) center/cover; }
.login .marca { position: absolute; right: -30px; bottom: 30px; width: 70%; opacity: .07; }
.login form { width: 100%; max-width: 360px; background: rgba(13,30,56,.72); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 28px 22px 24px; color: #fff; backdrop-filter: blur(6px); }
.login .logo { display: block; width: 170px; margin: 0 auto 4px; }
.login .sub { text-align: center; margin: 0 0 22px; color: #cfe0f5; letter-spacing: .3px; }
.login label { display: block; font-size: 13px; color: #cfe0f5; margin-bottom: 12px; }
.login input[type=text], .login input[type=password] { display: block; width: 100%; margin-top: 4px; height: 46px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.95); color: var(--ink);
  padding: 0 12px; font-size: 16px; text-transform: uppercase; }
.login .btn { width: 100%; height: 48px; margin-top: 8px; font-size: 16px; }
.login .error { background: var(--bad-soft); color: var(--bad-ink); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; font-size: 13px; }

/* ---------- estructura ---------- */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 5; background: var(--topbar); color: #fff; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; height: 60px; }
.top .logo { height: 26px; }
.top .t { flex: 1; min-width: 0; }
.top .t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .t span { display: block; font-size: 12px; color: #b9c8dc; }
.top .ico { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center; }
.top .ico svg { width: 20px; height: 20px; }
.vista { padding: calc(74px + env(safe-area-inset-top, 0px)) 12px calc(86px + var(--safe-b)); }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr) 84px repeat(2, 1fr); padding-bottom: var(--safe-b); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.nav a svg { width: 23px; height: 23px; }
.nav a.on { color: var(--accent); }
.nav a .n { position: absolute; margin: -2px 0 0 26px; background: var(--bad); color: #fff; border-radius: 9px; font-size: 10px; padding: 0 5px; }

/* ---------- piezas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.card h2 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
.card h2 small { font-weight: 400; color: var(--ink-2); font-size: 12.5px; margin-left: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-weight: 600; }
.btn svg { width: 19px; height: 19px; }
.btn.sec { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.wa { background: var(--wa); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; }
.fila-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fila-btn.tres { grid-template-columns: 1fr 1fr 1fr; }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: normal; max-width: 100%; border-radius: 12px; }
.st::before { flex: none; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { background: var(--good-soft); color: var(--good-ink); }
.st.mid { background: var(--warn-soft); color: var(--warn-ink); }
.st.bad { background: var(--bad-soft); color: var(--bad-ink); }
.st.info { background: var(--accent-soft); color: var(--accent); }
.st.neu { background: var(--surface-2); color: var(--ink-2); }
.vacio { text-align: center; color: var(--ink-2); padding: 30px 10px; }
.cargando { text-align: center; color: var(--ink-2); padding: 30px; }

/* objetivo */
.obj .pct { display: flex; align-items: baseline; gap: 10px; }
.obj .pct b { font-size: 38px; font-weight: 300; letter-spacing: -1px; }
.barra { position: relative; height: 10px; background: var(--track); border-radius: 6px; margin: 8px 0 4px; }
.barra i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--bar); }
.barra em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; margin-top: 12px; }
.nums div span { display: block; color: var(--ink-2); font-size: 12px; }
.nums div b { font-size: 22px; font-weight: 300; }
.locs .l { padding: 9px 0; border-top: 1px solid var(--line); }
.locs .l:first-child { border-top: 0; }
.locs .l .r { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.locs .l .r b { font-weight: 600; }
.locs .barra { height: 6px; margin: 6px 0 0; }
.atajos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.atajos a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; color: var(--ink); }
.atajos a b { display: block; font-size: 24px; font-weight: 300; color: var(--accent); }
.atajos a span { font-size: 12px; color: var(--ink-2); }

/* búsqueda y listas */
.buscar { position: sticky; top: 56px; z-index: 4; background: var(--page); padding: 2px 0 8px; margin: -2px 0 0; }
.buscar input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); padding: 0 14px 0 40px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238590a0' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 12px 50%/20px no-repeat; font-size: 15px; }
.chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.chips button { flex: none; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cli { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; color: var(--ink); }
.cli .a { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cli .nom { font-weight: 600; }
.cli .dom { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.cli .pie { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.mas { text-align: center; padding: 10px; }

/* ficha */
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 6px 10px; font-size: 13.5px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; word-break: break-word; }
.eq { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.eq:first-of-type { border-top: 0; }
.eq input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.eq .x { flex: 1; min-width: 0; font-size: 13.5px; }
.eq .x b { font-weight: 600; }
.eq .x div { color: var(--ink-2); font-size: 12.5px; }
.campo { display: block; font-size: 13px; color: var(--ink-2); margin: 12px 0 10px; }
.campo input, .campo select { display: block; width: 100%; height: 44px; margin-top: 4px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; background: var(--surface); font-size: 15px; }
.mud { background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.mud b { font-weight: 600; }
.volver { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; margin: 0 0 10px; }

.aviso { position: fixed; left: 12px; right: 12px; bottom: calc(80px + var(--safe-b)); z-index: 20; background: #1d2633; color: #fff;
  border-radius: 10px; padding: 12px 14px; font-size: 14px; transition: .25s; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.aviso.fuera { opacity: 0; transform: translateY(14px); pointer-events: none; }
.aviso.error { background: var(--bad-ink); }
.actualizado { text-align: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.visor { position: fixed; inset: 0; z-index: 30; background: var(--page); display: flex; flex-direction: column; }
.visor-b { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.visor iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.top { padding-top: calc(10px + env(safe-area-inset-top, 0px)); height: calc(60px + env(safe-area-inset-top, 0px)); }
.buscar { top: calc(60px + env(safe-area-inset-top, 0px)); padding-top: 8px; }
html { -webkit-text-size-adjust: 100%; }
.fila-extra { display: flex; gap: 8px; margin-top: 4px; }
.fila-extra input { flex: 1; margin-top: 0 !important; text-transform: uppercase; }
.fila-extra .btn { flex: none; height: 44px; }

/* ---------- PC (ventana ancha): menú a la izquierda y tarjetas en columnas ---------- */
/* Órdenes: ruta y pendiente */
.acc-ord { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.acc-ord .btn { height: 40px; font-size: 13.5px; }
.cli .tilde { display: none; }
.cli.eligiendo { position: relative; padding-left: 46px; }
.cli.eligiendo .tilde { display: block; position: absolute; left: 13px; top: 14px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-strong); background: var(--surface); }
.cli.sel { border-color: var(--accent); background: var(--accent-soft); }
.cli.sel .tilde { background: var(--accent); border-color: var(--accent); }
.cli.sel .tilde::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.barra-ruta { position: fixed; left: 0; right: 0; bottom: calc(60px + var(--safe-b)); z-index: 7; display: flex; gap: 8px; align-items: center;
  padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(17,26,38,.08); }
.barra-ruta span { flex: 1; font-weight: 600; }
.vista.con-barra { padding-bottom: calc(150px + var(--safe-b)); }
/* ruta */
.paradas .par { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.paradas .par:first-child { border-top: 0; }
.paradas .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; }
.paradas .x { flex: 1; min-width: 0; color: var(--ink); }
.paradas .nom { font-weight: 600; font-size: 13.5px; }
.paradas .dom { color: var(--ink-2); font-size: 12.5px; }
.ico-b { flex: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 15px; }
.ico-b:disabled { opacity: .35; }
.paradas .corte { margin: 6px 0 0; padding: 8px 0 2px; border-top: 2px dashed var(--line-strong); color: var(--accent); font-weight: 600; font-size: 12.5px; }
/* estadísticas */
.comp { margin-top: 12px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.comp.ok { background: var(--good-soft); color: var(--good-ink); }
.comp.bad { background: var(--bad-soft); color: var(--bad-ink); }
.dias { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-top: 16px; }
.dias .d { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.dias .d i { width: 100%; min-height: 0; background: var(--bar); border-radius: 3px 3px 0 0; }
.dias .d em { font-style: normal; font-size: 9px; color: var(--ink-2); margin-bottom: 2px; }
.dias .d span { font-size: 9px; color: var(--muted); margin-top: 3px; height: 12px; }
.dias .d.fds span { color: var(--bad); }
.dias .d.fut i { background: var(--track); }
.hb { margin-top: 10px; }
.hb .r { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.hb .r b { font-weight: 600; white-space: nowrap; }
.hb .r small { color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.hb .barra { margin: 5px 0 0; height: 8px; }
.barra.roja i { background: var(--bad); }

.btn.rojo { background: var(--bad); }
.dlg { position: fixed; inset: 0; z-index: 40; background: rgba(10,20,35,0); display: flex; align-items: flex-end; justify-content: center; transition: background .22s; }
.dlg-c { position: relative; width: 100%; max-width: 520px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 30px 20px calc(18px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 -10px 40px rgba(10,20,35,.25);
  transform: translateY(105%); transition: transform .26s cubic-bezier(.2,.8,.25,1); }
.dlg-c .asa { position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-strong); }
.dlg-i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 8px rgba(11,92,173,.06); margin-bottom: 6px; }
.dlg-i svg { width: 30px; height: 30px; }
.dlg-c b { font-size: 19px; font-weight: 700; text-align: center; color: var(--topbar); }
.dlg-s { font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: .2px; margin: -4px 0 8px; text-align: center; }
.dlg-c .btn { height: 50px; font-size: 15.5px; font-weight: 600; border-radius: 14px; }
.dlg-c .btn:not(.sec) { box-shadow: 0 6px 16px rgba(11,92,173,.28); margin-top: 6px; }
.dlg.on { background: rgba(10,20,35,.5); }
.dlg.on .dlg-c { transform: none; }
.top .ico + .ico { margin-left: -2px; }
/* credencial */
.cred-v { position: fixed; inset: 0; z-index: 35; background: rgba(10,23,41,.45); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  display: flex; align-items: center; justify-content: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 18px calc(24px + var(--safe-b)); overflow-y: auto; }
.cred-x { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 18px; z-index: 2; }
.cred-z { width: 100%; max-width: 360px; }
.cred { background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); text-align: center; padding-bottom: 18px; }
.cred-h { background: linear-gradient(135deg, var(--topbar), #1d4378); padding: 18px 16px 70px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cred-h img { height: 34px; }
.cred-h span { color: #cfe0f5; font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; }
.cred-f { width: 156px; height: 156px; margin: -62px auto 0; border-radius: 50%; overflow: hidden; border: 5px solid #fff; background: var(--surface-2);
  box-shadow: 0 6px 20px rgba(10,20,35,.25); display: grid; place-items: center; color: var(--muted); }
.cred-f img { width: 100%; height: 100%; object-fit: cover; }
.cred-f svg { width: 60px; height: 60px; }
.cred-n { margin: 14px 16px 2px; font-size: 21px; font-weight: 700; color: var(--topbar); letter-spacing: .3px; line-height: 1.2; }
.cred-d { margin-bottom: 14px; }
.cred-d span, .cred-g span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--accent); }
.cred-d b { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: .5px; }
.cred-g { display: grid; grid-template-columns: 1fr; margin: 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred-g div { padding: 12px 6px; }
.cred-g div + div { border-left: 1px solid var(--line); }
.cred-g b { font-size: 14px; font-weight: 600; color: var(--ink); }
.cred-p { padding-top: 16px; }
.cred-p img { height: 30px; }
.tarj { position: relative; width: 100%; aspect-ratio: 1 / 1.586; max-height: calc(100vh - 120px); border-radius: 24px; overflow: hidden; color: #fff; padding: 26px 22px 28px;
  background: radial-gradient(140% 90% at 100% 0%, #2a6fc0 0%, #13408a 40%, var(--topbar) 78%); box-shadow: 0 18px 50px rgba(0,0,0,.45);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.tarj::before { content: ""; position: absolute; right: -90px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; border: 34px solid rgba(255,255,255,.05); }
.tarj::after { content: ""; position: absolute; left: -70px; top: -120px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.04); }
.tarj > * { position: relative; z-index: 1; }
.tarj-a { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tarj-l { height: 36px; }
.tarj-a span { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: #cfe0f5; }
.tarj-f { flex: none; width: 168px; height: 168px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,.92); background: rgba(255,255,255,.15);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.tarj-f img { width: 100%; height: 100%; object-fit: cover; }
.tarj-f svg { width: 60px; height: 60px; }
.tarj-d { display: flex; flex-direction: column; align-items: center; }
.tarj-d b { font-size: 22px; font-weight: 700; letter-spacing: .4px; line-height: 1.2; margin-bottom: 14px; }
.tarj-d span { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #9fc0e8; }
.tarj-d em { font-style: normal; font-size: 18px; font-weight: 600; letter-spacing: .6px; margin-bottom: 8px; }
.cred-z { max-width: 330px; }
.cred-c { display: block; margin: 16px auto 0; height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: 14px; }
.cred-l { background: var(--surface); border-radius: 22px; padding: 18px 14px 10px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.cred-l > b { display: block; text-align: center; font-size: 17px; font-weight: 700; color: var(--topbar); margin-bottom: 8px; }
.cred-l button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 6px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.cred-l button:first-of-type { border-top: 0; }
.cred-l button span { flex: 1; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.cred-lf { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cred-lf img { width: 100%; height: 100%; object-fit: cover; }
.cred-lf svg { width: 22px; height: 22px; }
.buscar-f { display: flex; gap: 8px; }
.buscar-f input { flex: 1; min-width: 0; }
.btn-f { position: relative; flex: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent); display: grid; place-items: center; }
.btn-f svg { width: 22px; height: 22px; }
.btn-f i { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.btn-f i:empty { display: none; }
.filtros-act { display: flex; flex-wrap: wrap; gap: 6px; }
.filtros-act:not(:empty) { margin-top: 8px; }
.filtros-act button { height: 30px; padding: 0 10px; border-radius: 99px; border: 0; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; }
.dlg-c.filtros { align-items: stretch; }
.dlg-c.filtros > b { text-align: center; }
.ant-t { color: var(--ink); font-weight: 600; font-size: 15px; margin: 4px 0 2px; }
.rango { position: relative; height: 40px; }
.rango .pista, .rango .sel { position: absolute; top: 17px; height: 6px; border-radius: 3px; }
.rango .pista { left: 0; right: 0; background: var(--track); }
.rango .sel { background: var(--accent); }
.rango input { position: absolute; left: -2px; right: -2px; top: 6px; width: calc(100% + 4px); height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.rango input::-webkit-slider-runnable-track { height: 28px; background: none; }
.rango input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(10,20,35,.25); }
.rango input::-moz-range-track { background: none; }
.rango input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.rango-e { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.cli .ncli { flex: none; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 2px 8px; margin-top: 1px; }
.card.sin-tilde .eqsel { display: none; }
.locs .lnums { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.locs .lnums b { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) {
  body { font-size: 14.5px; }
  .top { position: fixed; left: 0; right: 0; top: 0; padding: 10px 24px; height: 56px; }
  .top .logo { height: 30px; margin-right: 26px; }
  .nav { top: 56px; bottom: 0; right: auto; width: 220px; display: flex; flex-direction: column; gap: 4px;
    padding: 16px 12px; background: var(--rail); border-top: 0; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; font-size: 14px; color: #a9b8cc; border-radius: 10px; }
  .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav a.on { background: rgba(255,255,255,.1); color: #fff; }
  .vista { margin-left: 220px; padding: 80px 28px 32px; max-width: 1640px; }
  .vista[data-p=inicio], .vista[data-p=cliente] { column-width: 430px; column-gap: 16px; }
  .vista[data-p=inicio] > *, .vista[data-p=cliente] > * { break-inside: avoid; }
  .vista[data-p=cliente] > .volver { column-span: all; display: inline-flex; }
  .vista[data-p=inicio] .atajos { margin-bottom: 12px; }
  .buscar { top: 56px; padding-top: 14px; margin-top: -14px; }
  .dlg { align-items: center; }
  .dlg-c { max-width: 400px; border-radius: 22px; padding-bottom: 20px; transform: scale(.94); opacity: 0; transition: transform .2s, opacity .2s; }
  .dlg.on .dlg-c { opacity: 1; }
  .dlg-c .asa { display: none; }
  .buscar input { max-width: 640px; }
  #lista, .vista[data-p=mudanzas] { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; align-items: start; }
  #lista .cli, .vista[data-p=mudanzas] .cli { margin: 0; }
  #lista .mas, #lista .vacio, .vista[data-p=mudanzas] .vacio { grid-column: 1 / -1; }
  .cli:hover { border-color: var(--accent); }
  .vista[data-p=pendiente] .card { max-width: 520px; }
  .barra-ruta { left: 220px; bottom: 0; padding: 12px 28px; }
  .vista[data-p=estadisticas] { column-width: 430px; column-gap: 16px; }
  .vista[data-p=estadisticas] > * { break-inside: avoid; }
  .vista[data-p=recorrido] .card { max-width: 640px; }
  .aviso { left: auto; right: 24px; bottom: 24px; width: 400px; }
  .btn { cursor: pointer; }
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.seg button { height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--ink-2); letter-spacing: .2px; }
.seg button.on.si { background: var(--good); border-color: var(--good); color: #fff; }
.seg button.on.no { background: var(--bad); border-color: var(--bad); color: #fff; }
.emot { display: block; width: 100%; height: 44px; margin-top: 6px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; background: var(--surface); font-size: 15px; }
.chk { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
.chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.card.nueva { border: 1px solid var(--accent); }
.card.nueva b { display: block; margin-bottom: 10px; font-size: 15px; }

/* estadísticas: lo que falta y el recupero por motivo de baja */
.nums .falta b { font-weight: 600; color: var(--accent); }
.seg-t { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 8px 0 4px; }
.seg-t button { flex: 1; border: 0; background: none; padding: 7px 4px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.seg-t button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(17, 26, 38, .12); }
.mot-tot { font-size: 26px; font-weight: 300; margin: 8px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mot-tot span { font-size: 13px; font-weight: 600; }
.mot .barra { height: 7px; margin: 5px 0 2px; }
.xdey { font-size: 12px; }

/* inicio: avisos y resumen del mes */
.avisos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.av { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none; font-size: 14px; line-height: 1.3; }
.av .i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.av .i svg { width: 20px; height: 20px; }
.av .x { flex: 1; min-width: 0; }
.av .x b { display: block; font-size: 14.5px; }
.av .x span { display: block; font-size: 13px; }
.av .fl { flex: none; color: var(--accent); font-size: 20px; line-height: 1; }
.av.mid .i { background: var(--warn-soft); color: var(--warn-ink); }
.av.bad .i { background: var(--bad-soft); color: var(--bad-ink); }
.av.ok .i { background: var(--good-soft); color: var(--good-ink); }
.hoy-c { margin-top: 8px; border-top: 1px solid var(--line); }
.hoy-c a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.hoy-c a:last-child { border-bottom: 0; padding-bottom: 0; }
.hoy-c em { flex: none; font-style: normal; font-weight: 700; color: var(--accent); min-width: 48px; }
.hoy-c div { min-width: 0; font-size: 13px; }
.hoy-c div b { display: block; font-size: 14px; }
.resumen .tipos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.resumen .tipos span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: 12.5px; }
.resumen .tipos b { font-weight: 700; }
.nums.tres { grid-template-columns: repeat(3, 1fr); }
.resumen h2 small { float: right; color: var(--accent); font-weight: 600; }
.atajos.dos { grid-template-columns: repeat(2, 1fr); }

/* inicio: objetivo en anillo */
.anillo { display: block; width: 190px; height: 190px; margin: 4px auto 6px; }
.anillo circle { fill: none; stroke-width: 20; }
.anillo .pista { stroke: var(--track); }
.anillo .lleno { stroke: var(--bar); stroke-linecap: round; }
.anillo .lleno.ok { stroke: var(--good); }
.anillo .lleno.mid { stroke: var(--warn); }
.anillo .lleno.bad { stroke: var(--bad); }
.anillo .est { font-size: 15px; font-weight: 700; }
.anillo .est.ok { fill: var(--good-ink); }
.anillo .est.mid { fill: var(--warn-ink); }
.anillo .est.bad { fill: var(--bad-ink); }
.anillo text { text-anchor: middle; fill: var(--ink); }
.anillo .n { font-size: 32px; font-weight: 300; }
.anillo .de { font-size: 13px; }
.obj-f { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-top: 8px; }
.obj-f b { font-weight: 700; }

/* ---------- escanear (botón del medio, como el QR de Mercado Pago) ---------- */
.nav-esc { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 2px; padding: 0 0 9px; color: var(--accent); font: inherit; font-size: 11.5px; font-weight: 700; }
.nav-esc span { position: absolute; top: -24px; left: 50%; margin-left: -29px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; border: 4px solid var(--surface);
  box-shadow: 0 6px 16px rgba(11,92,173,.35); }
.nav-esc span svg { width: 28px; height: 28px; }
.nav-esc:active span { transform: scale(.94); }
.esc { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; overflow: hidden; }
.esc video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.esc-arriba { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.esc-arriba b { flex: 1; text-align: center; font-size: 16px; }
.esc-b { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }
.esc-b svg { width: 22px; height: 22px; }
.esc-b.on { background: #fff; color: #111; }
.esc-b[hidden] { visibility: hidden; display: grid; }
.esc-ventana { position: absolute; z-index: 2; left: 7%; right: 7%; top: 30%; height: 22%; border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); transition: box-shadow .2s; }
.esc-ventana i { position: absolute; width: 30px; height: 30px; border: 4px solid #fff; transition: border-color .15s; }
.esc-ventana .c1 { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.esc-ventana .c2 { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.esc-ventana .c3 { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.esc-ventana .c4 { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.esc-laser { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ff3b3b; box-shadow: 0 0 10px 2px rgba(255,59,59,.7);
  animation: esc-l 1.6s ease-in-out infinite; }
@keyframes esc-l { 0%, 100% { transform: translateY(-34px); } 50% { transform: translateY(34px); } }
.esc.ok .esc-ventana i { border-color: #2fd12f; }
.esc.mal .esc-ventana i { border-color: #ffb020; }
.esc.ok .esc-laser, .esc.mal .esc-laser { opacity: 0; }
.esc-ayuda { position: absolute; z-index: 3; left: 20px; right: 20px; top: calc(52% + 18px); text-align: center; font-size: 14px; line-height: 1.4; color: #e8eef6; }
.esc-toast { position: absolute; z-index: 4; left: 50%; top: calc(30% - 70px); transform: translateX(-50%); max-width: 86%; padding: 9px 16px;
  border-radius: 12px; background: rgba(12,163,12,.95); font-size: 13.5px; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.esc-toast b { display: block; font-size: 14.5px; }
.esc-toast.mal { background: rgba(214,130,0,.97); }
.esc-pie { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 12px 14px calc(14px + var(--safe-b)); }
.esc-pie[hidden] { display: none; }
.esc-carro { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 12px 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.esc-carro span { flex: 1; min-width: 0; font-size: 15px; }
.esc-carro span b { font-size: 22px; color: var(--accent); margin-right: 4px; }
.esc-carro small { display: block; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc-carro .btn { height: 46px; padding: 0 18px; font-size: 15px; }
.esc-carro.vacio { justify-content: center; color: var(--ink-2); font-size: 14px; padding: 16px; }
.esc-hoja { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0;
  padding: 20px 16px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.esc-hoja[hidden] { display: none; }
.esc-msg b { display: block; font-size: 17px; }
.esc-msg p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.esc-msg.mal b { color: var(--bad-ink); }
.fila-extra .escextra { flex: none; width: 46px; padding: 0; justify-content: center; }
.fila-extra .escextra svg { width: 22px; height: 22px; margin: 0; }
.det-esc .dlg-c { align-items: stretch; max-height: 86vh; }
.det-esc h2 { margin: 0; text-align: center; font-size: 19px; color: var(--topbar); }
.det-res { margin: -4px 0 4px; text-align: center; color: var(--ink-2); font-size: 14px; }
.det-l { overflow: auto; display: flex; flex-direction: column; gap: 10px; margin: 0 -4px; padding: 0 4px; }
.det-cli { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.det-cli > b { display: block; font-size: 15px; text-align: left; color: var(--ink); }
.det-cli > span { display: block; color: var(--ink-2); font-size: 12.5px; margin-bottom: 6px; }
.det-cli.ajeno { border-color: var(--bad-soft); background: #fff9f9; }
.det-eq { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }
.det-eq b { font-size: 13.5px; text-align: left; color: var(--ink); display: block; }
.det-eq small { color: var(--ink-2); font-size: 12px; }
.det-eq .st { flex: none; }

/* ---------- cuenta maestra: por recuperador ---------- */
.rk { display: flex; flex-direction: column; gap: 12px; }
.rk-t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rk-t span { font-weight: 700; }
.rk-t .ok { color: var(--good-ink); } .rk-t .mid { color: #8a5a00; } .rk-t .bad { color: var(--bad-ink); }
.rk-b { position: relative; height: 8px; border-radius: 4px; background: var(--track); margin: 5px 0 3px; }
.rk-b i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.rk-b i.ok { background: var(--good); } .rk-b i.mid { background: #e0a100; } .rk-b i.bad { background: var(--bad); }
.rk-b em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; }
.rk-f small { color: var(--ink-2); font-size: 12px; }
