/* Lume Express · demo. Colores del logo: rojo, crema y tinta oscura; estilo calcomanía con borde y sombra sólida. */
:root {
  --bg: #FBF5EA; --surface: #FFFFFF; --field: #F7F0E2; --ink: #1B2027; --muted: #5A5F68; --line: #E6DCCA;
  --red: #E0352B; --red-deep: #B8271F; --red-t: #FFF8EC; --yellow: #FFC93C; --green: #17884A; --wa: #1A9E50; --wa-deep: #138240;
  --night: #1B2027; --night-2: #2A313B; --night-t: #FBF5EA; --sky: #BFE0EA;
  --marca: var(--red); --marca-t: #FFFFFF;
  --display: "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --r: 14px; --r-lg: 20px; --bd: 2px solid var(--ink); --sombra: 4px 4px 0 var(--ink); --sombra-s: 3px 3px 0 var(--ink);
  --nav-h: 66px; --sa-b: env(safe-area-inset-bottom, 0px); --sa-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button, .btn, .nav-i, .chip, .acc, .fila, .vivo, label { touch-action: manipulation; }
button, .btn, .nav-i, .chip { -webkit-user-select: none; user-select: none; }
[hidden], .oculto { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.hint { font-size: 14px; color: var(--muted); }
.centro { text-align: center; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
#main:focus { outline: none; }
.noscript { padding: 24px; }

/* ---------- botones ---------- */
.btn { appearance: none; border: var(--bd); border-radius: 999px; min-height: 50px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 750; font-size: 16px; text-decoration: none; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: var(--sombra-s);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .15s; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-s { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-rojo { background: var(--red); color: var(--red-t); }
.btn-negro { background: var(--ink); color: var(--night-t); }
.btn-claro { background: var(--night-t); color: var(--ink); }
.btn-suave { background: var(--surface); box-shadow: none; border-color: var(--line); border-width: 2px; }
.btn-texto { background: none; border: 0; box-shadow: none; color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }
.btn-wa { background: var(--wa); color: #fff; width: 100%; font-size: 17px; min-height: 56px; }
.btn-ancho { width: 100%; }
.btn-ic { appearance: none; border: 0; background: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--muted); }
@media (hover: hover) {
  .btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
  .btn-suave:hover { border-color: var(--ink); box-shadow: none; transform: none; }
  .btn-texto:hover { transform: none; box-shadow: none; color: var(--red); }
  .btn-rojo:hover { background: var(--red-deep); }
  .btn-wa:hover { background: var(--wa-deep); }
  .btn-ic:hover { background: var(--field); color: var(--ink); }
}

/* ---------- pública ---------- */
.pub-top { background: var(--night); color: var(--night-t); padding-top: var(--sa-t); position: sticky; top: 0; z-index: 20; }
.pub-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.pub-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 italic 19px var(--display); }
.pub-logo-s { width: 46px; height: auto; }
.pub-nav { display: flex; align-items: center; gap: 4px; }
.pub-nav a:not(.btn) { padding: 10px 12px; text-decoration: none; font-weight: 650; font-size: 15px; border-radius: 999px; }
.pub-nav a:not(.btn):hover { background: var(--night-2); }
.pub-nav .btn { box-shadow: 3px 3px 0 var(--red); border-color: var(--night-t); }
@media (max-width: 560px) { .pub-nav a:not(.btn) { display: none; } }

.hero { background: var(--night); color: var(--night-t); position: relative; overflow: hidden; padding-bottom: 72px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: center; padding-block: 40px 20px; }
.hero h1 { font-size: clamp(38px, 7.2vw, 76px); font-weight: 900; font-style: italic; letter-spacing: -.025em; line-height: .98; max-width: 12ch; }
.hero p { font-size: clamp(17px, 2vw, 20px); margin-top: 20px; max-width: 38ch; color: #E9E2D3; }
.hero-acc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-acc .btn { border-color: var(--night-t); }
.hero-acc .btn-rojo { box-shadow: 4px 4px 0 var(--night-t); }
.hero-acc .btn-claro { box-shadow: 4px 4px 0 var(--red); }
.hero-logo { width: min(420px, 100%); height: auto; justify-self: center; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: rodar 3s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes rodar { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(.5deg); } }
.velocidad { position: absolute; inset: 0; pointer-events: none; }
.velocidad i { position: absolute; left: 0; height: 9px; border-radius: 9px; background: var(--red); opacity: .55; transform: translateX(-120%) skewX(-24deg); animation: raya 2.6s linear infinite; }
.velocidad i:nth-child(1) { top: 18%; width: 34%; }
.velocidad i:nth-child(2) { top: 31%; width: 20%; opacity: .3; animation-delay: -.8s; animation-duration: 2s; }
.velocidad i:nth-child(3) { top: 54%; width: 28%; opacity: .4; animation-delay: -1.6s; }
.velocidad i:nth-child(4) { top: 66%; width: 14%; opacity: .25; animation-delay: -.4s; animation-duration: 1.8s; background: var(--yellow); }
.velocidad i:nth-child(5) { top: 80%; width: 24%; opacity: .35; animation-delay: -2s; animation-duration: 2.3s; }
.velocidad i:nth-child(6) { top: 42%; width: 10%; opacity: .5; animation-delay: -1.1s; animation-duration: 1.6s; background: var(--night-t); }
@keyframes raya { to { transform: translateX(420%) skewX(-24deg); } }
@media (max-width: 760px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 22px 8px; gap: 8px; }
  .hero-logo { order: -1; width: min(250px, 70vw); }
  .hero-txt { text-align: center; }
  .hero h1, .hero p { margin-inline: auto; }
  .hero-acc { justify-content: center; }
}

.cotizador { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; margin-top: -26px; position: relative; z-index: 2; scroll-margin-top: 80px; }
@media (max-width: 860px) { .cotizador { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: var(--bd); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sombra); }
.card > h2, .bloque > h2 { font-size: 21px; font-weight: 850; font-style: italic; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.cot-form { display: grid; gap: 18px; }
.cot-form h2 { font-size: clamp(24px, 3.4vw, 30px); }
.cot-res { display: grid; gap: 16px; }
.lbl { font-size: 14px; font-weight: 700; }
.ruta { position: relative; display: grid; gap: 12px; padding-left: 42px; }
.ruta::before { content: ""; position: absolute; left: 14px; top: 46px; bottom: 46px; border-left: 3px dotted var(--ink); opacity: .45; }
.parada { position: relative; display: grid; gap: 6px; }
.pin { position: absolute; left: -42px; top: 33px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 900 italic 14px var(--display); border: var(--bd); }
.pin-a { background: var(--red); color: #fff; }
.pin-b { background: var(--ink); color: #fff; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
input, select { font-size: 16px; font-weight: 500; width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r); border: 2px solid var(--line); background: var(--field); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
input::placeholder { color: #8B8476; }
input:focus, select:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px rgba(224, 53, 43, .18); }
input.mal { border-color: var(--red); background: #FFF0EE; }
input[type=search] { -webkit-appearance: none; appearance: none; }
fieldset { margin: 0; min-width: 0; }
.tams { border: 0; padding: 0; display: grid; gap: 8px; }
.chips-tam { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip-tam { appearance: none; border: 2px solid var(--line); background: var(--field); border-radius: var(--r); padding: 12px 6px 10px; display: grid; justify-items: center; gap: 2px; cursor: pointer; text-align: center;
  transition: transform .15s var(--ease), border-color .15s, background-color .15s, box-shadow .15s; }
.chip-tam b { font-size: 15px; }
.chip-tam small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.chip-tam.on { border-color: var(--ink); background: var(--yellow); box-shadow: var(--sombra-s); transform: translate(-1px, -1px); }
.chip-tam.on small { color: var(--ink); }
.caja-ic { display: block; background: #D9A35B; border: 2px solid var(--ink); border-radius: 3px; position: relative; margin: 2px auto 6px; transition: transform .25s var(--ease); }
.caja-ic::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #F2D29B; }
.caja-pequeno { width: 20px; height: 16px; margin-top: 12px; }
.caja-mediano { width: 28px; height: 22px; margin-top: 6px; }
.caja-grande { width: 36px; height: 28px; }
.chip-tam.on .caja-ic { animation: brinco .45s var(--ease); }
@keyframes brinco { 40% { transform: translateY(-6px) rotate(-6deg); } }

.ticket { display: grid; gap: 6px; background: var(--red); color: var(--red-t); border: var(--bd); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.ticket::after { content: ""; position: absolute; right: -36px; top: -36px; width: 150px; height: 150px; border-radius: 50%; border: 20px solid rgba(255, 248, 236, .12); }
.t-lbl { font-size: 14px; font-weight: 700; opacity: .92; }
.t-precio { font: 900 italic clamp(40px, 9vw, 54px)/1 var(--display); letter-spacing: -.02em; display: inline-block; }
.t-precio.pop { animation: pop .42s var(--ease); }
@keyframes pop { 0% { transform: scale(.92); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
.t-info { font-size: 15px; position: relative; z-index: 1; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; position: relative; z-index: 1; }
.t-chips span { background: rgba(27, 32, 39, .22); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.mapa-box { border: var(--bd); border-radius: var(--r-lg); overflow: hidden; background: #F1E9D8; box-shadow: var(--sombra); line-height: 0; }
.mapa { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; transition: none; }
.m-tierra { fill: #F1E9D8; }
.m-lago { fill: var(--sky); }
.m-lago-t { fill: #3F7F92; font: italic 700 10px var(--body); text-anchor: middle; }
.m-calles polyline { fill: none; stroke: #FFFDF7; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.m-barrios circle { fill: #C7B795; }
.m-ruta-s { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; opacity: .12; }
.m-ruta { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazo 1.1s var(--ease) forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.m-pin circle { stroke: #fff; stroke-width: 2.5; }
.m-a circle { fill: var(--red); }
.m-b circle { fill: var(--ink); }
.m-pin text { fill: #fff; font: 900 italic 10px var(--display); text-anchor: middle; }
.m-b { animation: caer .5s var(--ease) .7s both; }
@keyframes caer { from { opacity: 0; transform: translateY(-14px); } }
.m-moto-c { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.m-moto-d { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-moto-in { animation: bache .5s ease-in-out infinite alternate; }
@keyframes bache { to { transform: translateY(-1.6px); } }
.btn-wa .ic { width: 24px; height: 24px; }

.rastrear { margin-top: 32px; scroll-margin-top: 80px; }
.rastrear-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; align-items: center; background: var(--yellow); }
.rastrear-in h2 { font-size: clamp(24px, 3.4vw, 30px); font-style: italic; font-weight: 900; }
.rastrear-in .hint { color: var(--ink); margin-top: 6px; }
.rastrear-f { display: flex; gap: 10px; }
.rastrear-f input { flex: 1; min-width: 0; text-transform: uppercase; font: 900 italic 18px var(--display); letter-spacing: .03em; background: var(--surface); border-color: var(--ink); }
@media (max-width: 760px) { .rastrear-in { grid-template-columns: minmax(0, 1fr); } }

.accesos { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 40px; margin-block: 64px 72px; align-items: center; }
.accesos h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.accesos p { margin-top: 14px; font-size: 18px; max-width: 42ch; }
@media (max-width: 860px) { .accesos { grid-template-columns: minmax(0, 1fr); margin-block: 48px 56px; } }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.acc-col { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 520px) { .acc-grid { grid-template-columns: minmax(0, 1fr); } }
.acc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 68px; background: var(--surface); border: var(--bd); border-radius: var(--r); text-decoration: none; box-shadow: var(--sombra-s);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.acc > span:not(.mono) { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.acc b { font-size: 16px; }
.acc small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc .ic { color: var(--muted); transition: transform .15s var(--ease); }
.acc:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (hover: hover) { .acc:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c, var(--red)); } .acc:hover .ic { transform: translateX(3px); color: var(--ink); } }
.acc-lume { grid-column: 1 / -1; background: var(--night); color: var(--night-t); }
.acc-lume small { color: #CFC7B7; }
.acc-logo { width: 54px; height: auto; flex: none; }
.mono { --c: var(--red); --ct: #fff; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--c); color: var(--ct); display: grid; place-items: center; font: 900 italic 16px var(--display); border: var(--bd); letter-spacing: -.02em; }
.mono-s { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; border-width: 1.5px; }
.mono-l { width: 52px; height: 52px; font-size: 19px; border-radius: 14px; }
.mono-xl { width: 84px; height: 84px; font-size: 32px; border-radius: 22px; border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
.pie { background: var(--night); color: var(--night-t); padding-block: 28px calc(28px + var(--sa-b)); }
.pie-in { display: grid; gap: 4px; }
.pie b { font: 900 italic 22px var(--display); }
.pie small { color: #CFC7B7; font-size: 13px; margin-top: 8px; }

/* ---------- entrar ---------- */
.entrar { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: center; padding: calc(24px + var(--sa-t)) 16px calc(24px + var(--sa-b)); background: var(--night); }
.entrar-card { width: min(460px, 100%); background: var(--surface); border: var(--bd); border-radius: 24px; padding: 24px 20px; box-shadow: 6px 6px 0 var(--red); display: grid; gap: 14px; }
.entrar-card h1 { font-size: 28px; font-style: italic; font-weight: 900; letter-spacing: -.02em; }
.entrar-card h2 { font-size: 22px; font-style: italic; font-weight: 850; }
.entrar-logo { width: 120px; height: auto; justify-self: center; animation: rodar 3s ease-in-out infinite; }
.entrar-negocio { background: var(--bg); align-content: start; padding-top: 0; }
.entrar-banda { width: calc(100% + 32px); margin-inline: -16px; background: var(--marca); color: var(--marca-t); display: grid; justify-items: center; text-align: center; gap: 8px; padding: calc(28px + var(--sa-t)) 16px 64px; position: relative; overflow: hidden; }
.entrar-banda::before, .entrar-banda::after { content: ""; position: absolute; height: 10px; border-radius: 10px; background: currentColor; opacity: .14; transform: skewX(-24deg); }
.entrar-banda::before { width: 40%; left: -6%; top: 30%; }
.entrar-banda::after { width: 26%; right: -4%; top: 62%; }
.entrar-banda h1 { font-size: clamp(34px, 8vw, 48px); font-style: italic; font-weight: 900; letter-spacing: -.02em; }
.entrar-banda p { font-weight: 650; opacity: .92; }
.entrar-dom { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .2); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.entrar-dom .ic { width: 16px; height: 16px; }
.entrar-negocio .entrar-card { margin-top: -40px; position: relative; box-shadow: var(--sombra); }
.usuarios { display: grid; gap: 10px; }
.usuario { appearance: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; border: var(--bd); border-radius: var(--r); background: var(--field); cursor: pointer; text-align: left;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s; }
.usuario > span:not(.usuario-av) { display: grid; flex: 1; line-height: 1.25; }
.usuario b { font-size: 17px; }
.usuario small { font-size: 14px; color: var(--muted); }
.usuario:active { transform: translate(2px, 2px); }
@media (hover: hover) { .usuario:hover { background: var(--yellow); box-shadow: var(--sombra-s); transform: translate(-1px, -1px); } }
.usuario-av { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--marca); color: var(--marca-t); display: grid; place-items: center; font: 900 italic 18px var(--display); border: var(--bd); }
.usuario-av.en-ruta { background: var(--yellow); color: var(--ink); }
.nota { font-size: 14px; color: var(--muted); background: var(--field); border-radius: var(--r); padding: 10px 12px; }
.volver { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; text-decoration: none; justify-self: start; padding: 10px 4px; min-height: 44px; }

/* ---------- armazón de la app ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.contenido { padding-bottom: calc(var(--nav-h) + var(--sa-b) + 28px); max-width: 1180px; margin: 0 auto; }
.pad { padding: 16px; display: grid; gap: 18px; align-content: start; }
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: var(--bd); padding-bottom: var(--sa-b); }
.nav-marca, .nav-pie, .nav-salir { display: none; }
.nav-items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: var(--nav-h); }
.nav-i { display: grid; justify-items: center; align-content: center; gap: 3px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--muted); position: relative; }
.nav-i .ic { width: 23px; height: 23px; transition: transform .2s var(--ease); }
.nav-i.on { color: var(--ink); }
.nav-i.on::before { content: ""; position: absolute; top: 6px; width: 46px; height: 32px; border-radius: 999px; background: var(--yellow); z-index: -1; animation: pastilla .3s var(--ease); }
.nav-i { z-index: 0; }
@keyframes pastilla { from { transform: scaleX(.4); opacity: 0; } }
.nav-i:active .ic { transform: scale(.88); }
.nav-pedir .ic { width: 28px; height: 28px; background: var(--red); color: #fff; border: var(--bd); border-radius: 50%; padding: 3px; box-shadow: 2px 2px 0 var(--ink); stroke-width: 2.6; }
.nav-pedir { color: var(--ink); }
.nav-pedir.on::before { display: none; }
.enfoque .nav { display: none; }
.enfoque .contenido { padding-bottom: calc(92px + var(--sa-b)); }

.barra { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: calc(8px + var(--sa-t)) 16px 8px; background: var(--bg); border-bottom: 2px solid var(--line); }
.barra h1 { font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: -.015em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atras { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; }
.atras .ic { width: 24px; height: 24px; }
.atras:active { background: var(--field); }
.barra-fecha { font-size: 14px; color: var(--muted); font-weight: 600; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .nav { position: sticky; top: 0; height: 100vh; height: 100dvh; border-top: 0; border-right: var(--bd); display: flex; flex-direction: column; padding: 18px 14px; gap: 18px; background: var(--field); }
  .nav-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 6px 14px; border-bottom: 2px solid var(--line); }
  .nav-marca > span:not(.mono) { display: grid; line-height: 1.2; min-width: 0; }
  .nav-marca b { font: 900 italic 18px var(--display); }
  .nav-marca small { font-size: 13px; color: var(--muted); }
  .nav-items { display: grid; grid-template-columns: none; height: auto; gap: 4px; }
  .nav-i { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 15px; color: var(--ink); }
  .nav-i::before { display: none !important; }
  .nav-i:hover { background: var(--surface); }
  .nav-i.on { background: var(--marca); color: var(--marca-t); box-shadow: var(--sombra-s); border: var(--bd); padding: 9px 10px; }
  .nav-pedir .ic { width: 23px; height: 23px; padding: 1px; box-shadow: none; border-width: 1.5px; }
  .nav-pedir { order: -1; background: var(--red); color: #fff; border: var(--bd); box-shadow: var(--sombra-s); margin-bottom: 8px; padding: 9px 10px; }
  .nav-pedir:hover { background: var(--red-deep); }
  .nav-pedir.on { background: var(--red-deep); color: #fff; }
  .nav-pie { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 13px; color: var(--muted); line-height: 1.3; }
  .nav-logo { width: 56px; height: auto; }
  .nav-logo-m { width: 52px; height: auto; flex: none; }
  .nav-salir { display: flex; align-items: center; gap: 12px; margin-top: auto; appearance: none; border: 0; background: none; padding: 11px 12px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 15px; }
  .nav-salir:hover { background: var(--surface); }
  .shell-lume .nav-i.on { background: var(--red); color: #fff; }
  .contenido { padding-bottom: 48px; width: 100%; }
  .pad { padding: 24px 32px; gap: 22px; }
  .barra { padding: 14px 32px; min-height: 72px; }
  .barra h1 { font-size: 28px; }
  .enfoque .nav { display: flex; }
  .enfoque .contenido { padding-bottom: 48px; }
}

/* ---------- inicio del negocio ---------- */
.banda { background: var(--marca); color: var(--marca-t); padding: calc(18px + var(--sa-t)) 16px 18px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.banda::before { content: ""; position: absolute; width: 46%; height: 12px; border-radius: 12px; background: currentColor; opacity: .12; left: -8%; top: 30px; transform: skewX(-24deg); animation: raya-b 4s var(--ease) infinite; }
@keyframes raya-b { 0% { transform: translateX(-30%) skewX(-24deg); opacity: 0; } 30% { opacity: .14; } 100% { transform: translateX(260%) skewX(-24deg); opacity: 0; } }
.banda-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.saludo { font-weight: 650; opacity: .92; }
.banda h1 { font-size: clamp(32px, 8vw, 46px); font-style: italic; font-weight: 900; letter-spacing: -.025em; }
.mono-banda { width: 58px; height: 58px; font-size: 21px; border-radius: 16px; border-color: currentColor; background: rgba(255, 255, 255, .16); color: inherit; }
.kpis { display: grid; gap: 10px; }
.kpis-banda { grid-template-columns: minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.45fr); margin-top: 16px; position: relative; }
.kpi { display: grid; gap: 2px; padding: 12px; border-radius: var(--r); text-decoration: none; background: var(--surface); color: var(--ink); border: var(--bd); align-content: start; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.kpi b { font: 900 italic 26px/1.1 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpis-banda .kpi { background: rgba(255, 255, 255, .14); color: inherit; border: 2px solid rgba(255, 255, 255, .28); }
.kpis-banda .kpi span { color: inherit; opacity: .88; }
.kpis-banda .kpi b { font-size: 22px; white-space: nowrap; }
@media (min-width: 960px) {
  .banda { margin: 20px 32px 0; border-radius: 28px; border: var(--bd); box-shadow: var(--sombra); padding: 26px 28px 24px; }
  .kpis-banda .kpi b { font-size: 30px; }
}
.pedir-grande { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--red); color: #fff; border: var(--bd); border-radius: var(--r-lg); text-decoration: none; box-shadow: var(--sombra);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.pedir-grande > span:not(.pg-ic) { display: grid; flex: 1; line-height: 1.25; }
.pedir-grande b { font: 900 italic 22px var(--display); }
.pedir-grande small { font-size: 14px; opacity: .92; }
.pedir-grande > .ic { width: 26px; height: 26px; }
.pg-ic { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--ink); border: var(--bd); display: grid; place-items: center; }
.pg-ic .ic { width: 30px; height: 30px; animation: andar 1.2s ease-in-out infinite; }
@keyframes andar { 0%, 100% { transform: translateX(-2px) rotate(-3deg); } 50% { transform: translateX(2px) rotate(2deg); } }
.pedir-grande:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (hover: hover) { .pedir-grande:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); } }
.bloque { display: grid; gap: 12px; }
.cuenta { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--night-t); font: 800 13px var(--body); font-style: normal; }
.vivos { display: grid; gap: 12px; }
@media (min-width: 700px) { .vivos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vivo { display: grid; gap: 10px; padding: 16px; background: var(--surface); border: var(--bd); border-radius: var(--r-lg); text-decoration: none; box-shadow: var(--sombra-s); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.vivo:active { transform: translate(2px, 2px); box-shadow: none; }
@media (hover: hover) { .vivo:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--marca); } }
.vivo-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vivo-code { display: inline-flex; align-items: center; gap: 8px; font: 900 italic 16px var(--display); }
.punto { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; position: relative; flex: none; }
.punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: latido 1.6s ease-out infinite; }
@keyframes latido { to { transform: scale(2.6); opacity: 0; } }
.vivo-dest { font-size: 17px; }
.vivo-eta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.vivo-eta .ic { width: 16px; height: 16px; }
.pista { --p: 0; position: relative; height: 34px; display: flex; justify-content: space-between; align-items: center; margin-inline: 6px; }
.pista::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: var(--field); }
.pista-barra { position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: var(--red); width: calc(var(--p) * 100%); transform-origin: left; animation: crece 1s var(--ease) both; }
@keyframes crece { from { transform: scaleX(0); } }
.pista-p { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--line); }
.pista-p.on { background: var(--red); border-color: var(--ink); }
.pista-moto { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--yellow); border: var(--bd); display: grid; place-items: center; animation: llega 1s var(--ease) both; }
.pista-moto .ic { width: 20px; height: 20px; animation: bache .45s ease-in-out infinite alternate; }
@keyframes llega { from { left: 0; } }
.pista-n { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.pista-n span.on { color: var(--ink); font-weight: 800; }
.lista { padding: 4px 0; display: grid; }
.lista .vacio { margin: 12px; }
.fila { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.fila:last-child { border-bottom: 0; }
a.fila:active { background: var(--field); }
@media (hover: hover) { a.fila:hover { background: var(--field); } }
.fila-txt { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.fila-txt b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-a { color: var(--muted); font-weight: 600; }
.fila-txt small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-der { display: grid; justify-items: end; gap: 4px; flex: none; }
.fila-der b { font-size: 15px; }
.fila-ic { color: var(--muted); }
.fila-s { padding-inline: 0; min-height: 58px; }
.lista-s { display: grid; }
.dia { font: 800 13px var(--body); color: var(--muted); padding: 14px 16px 4px; margin: 0; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.p-0 { background: #FFF1C2; color: #6B4A00; }
.p-1 { background: #FFE0CC; color: #8A3300; }
.p-2 { background: #FFD9D5; color: #9E1E16; }
.p-3 { background: #D6F2E1; color: #0E5E31; }
.p-cancel { background: #ECE8E0; color: #5A5F68; }
.ver-todo { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-weight: 750; text-decoration: none; min-height: 44px; }
.ver-todo .ic { width: 18px; height: 18px; transition: transform .15s; }
.ver-todo:hover .ic { transform: translateX(3px); }
.vacio { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 22px 16px; border: 2px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.vacio-ic { width: 34px; height: 34px; color: var(--ink); opacity: .55; }
.vacio p { max-width: 34ch; }
@media (min-width: 960px) { .pedir-grande { max-width: 560px; } }

/* ---------- pedir un envío ---------- */
.nuevo { grid-template-columns: minmax(0, 1fr); }
.nuevo-f { display: grid; gap: 16px; }
.paso { border: var(--bd); display: grid; gap: 14px; padding: 18px 16px; }
.paso legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font: 850 italic 20px var(--display); padding: 0; margin-bottom: 0; }
.paso legend + * { clear: both; }
.paso-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; border: var(--bd); font-size: 14px; flex: none; }
.paso-b { background: var(--ink); }
.paso-c { background: var(--yellow); color: var(--ink); }
.paso-c .ic { width: 16px; height: 16px; }
.seg-dir { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r); background: var(--field); cursor: pointer; font-weight: 500; transition: border-color .15s, background-color .15s; }
.radio-card input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.radio-card span { display: grid; line-height: 1.3; }
.radio-card b { font-size: 16px; }
.radio-card small { color: var(--muted); font-size: 14px; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: var(--sombra-s); }
.dests { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.dests::-webkit-scrollbar { display: none; }
.dest { appearance: none; flex: none; scroll-snap-align: start; display: grid; justify-items: start; gap: 0; text-align: left; padding: 9px 14px; min-height: 52px; border: 2px solid var(--line); border-radius: var(--r); background: var(--field); cursor: pointer; line-height: 1.25;
  transition: transform .15s var(--ease), border-color .15s, background-color .15s; }
.dest b { font-size: 15px; }
.dest small { font-size: 13px; color: var(--muted); }
.dest.on { border-color: var(--ink); background: var(--yellow); }
.dest.on small { color: var(--ink); }
.dest-nuevo { grid-auto-flow: column; align-items: center; gap: 4px; }
.dest-nuevo .ic { width: 18px; height: 18px; }
.fila2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fila3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .nuevo .fila2 { grid-template-columns: minmax(0, 1fr); } }
.check { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--red); }
.interruptor { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-weight: 500; cursor: pointer; padding: 6px 0; position: relative; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor > span:last-child { display: grid; line-height: 1.3; }
.interruptor b { font-size: 16px; }
.interruptor small { font-size: 13px; color: var(--muted); }
.sw { width: 52px; height: 32px; border-radius: 999px; background: var(--line); border: var(--bd); position: relative; transition: background-color .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: transform .22s var(--ease); }
.interruptor input:checked + .sw { background: var(--green); }
.interruptor input:checked + .sw::after { transform: translateX(20px); }
.interruptor input:focus-visible + .sw { outline: 3px solid var(--red); outline-offset: 2px; }
.monto-in { display: flex; align-items: center; gap: 0; border: 2px solid var(--line); border-radius: var(--r); background: var(--field); overflow: hidden; }
.monto-in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(224, 53, 43, .18); background: var(--surface); }
.monto-in span { padding: 0 12px; font-weight: 800; color: var(--muted); }
.monto-in input { border: 0; background: none; box-shadow: none !important; border-radius: 0; min-width: 0; }
.monto-in span + input { padding-left: 0; }
.monto { animation: aparece .25s var(--ease); }
@keyframes aparece { from { opacity: 0; transform: translateY(-6px); } }
.segmentado { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--field); border: 2px solid var(--line); border-radius: 999px; }
.segmentado button { appearance: none; border: 2px solid transparent; background: none; border-radius: 999px; min-height: 44px; font-weight: 750; cursor: pointer; transition: background-color .15s, border-color .15s; }
.segmentado button.on { background: var(--ink); color: var(--night-t); }
.nuevo-res { display: grid; gap: 14px; align-content: start; }
.err { color: var(--red-deep); font-weight: 700; font-size: 15px; background: #FFF0EE; border: 2px solid var(--red); border-radius: var(--r); padding: 10px 12px; }
.btn-precio:not(:empty)::before { content: "· "; }
.solo-esc { display: none; }
.barra-pedir { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + var(--sa-b)); background: var(--surface); border-top: var(--bd); }
.barra-pedir > span { display: grid; line-height: 1.1; }
.barra-pedir small { font-size: 13px; color: var(--muted); font-weight: 650; }
.barra-pedir b { font: 900 italic 26px var(--display); }
.barra-pedir .btn { flex: 1; max-width: 220px; }
@media (min-width: 960px) {
  .nuevo { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .nuevo-res { position: sticky; top: 92px; }
  .solo-esc { display: inline-flex; }
  .barra-pedir { display: none; }
}

/* ---------- detalle ---------- */
.detalle { grid-template-columns: minmax(0, 1fr); }
.sello { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--green); color: #fff; border: var(--bd); border-radius: var(--r-lg); box-shadow: var(--sombra); }
.sello > span:last-child { display: grid; line-height: 1.3; }
.sello b { font: 900 italic 22px var(--display); }
.sello small { font-size: 14px; }
.sello-ic { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #fff; color: var(--green); border: var(--bd); display: grid; place-items: center; animation: sellar .6s var(--ease) both .15s; }
.sello-ic .ic { width: 28px; height: 28px; stroke-width: 3; }
@keyframes sellar { 0% { transform: scale(2.2) rotate(-25deg); opacity: 0; } 60% { transform: scale(.9) rotate(4deg); opacity: 1; } 100% { transform: scale(1); } }
.det-mapa { padding: 0; overflow: hidden; position: relative; }
.det-eta { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: var(--bd); border-radius: 999px; padding: 8px 14px; font-size: 15px; box-shadow: var(--sombra-s); }
.det-linea { display: grid; gap: 12px; }
.linea { list-style: none; margin: 0; padding: 0; display: grid; }
.linea li { position: relative; padding: 0 0 18px 34px; display: grid; line-height: 1.3; }
.linea li:last-child { padding-bottom: 0; }
.linea li::before { content: ""; position: absolute; left: 3px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--line); z-index: 1; }
.linea li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 3px; background: var(--line); }
.linea li:last-child::after { display: none; }
.linea li.on::before { background: var(--red); border-color: var(--ink); }
.linea li.on::after { background: var(--red); }
.linea li.ahora::before { box-shadow: 0 0 0 5px rgba(224, 53, 43, .2); animation: aro 1.6s ease-in-out infinite; }
@keyframes aro { 50% { box-shadow: 0 0 0 9px rgba(224, 53, 43, .06); } }
.linea b { font-size: 16px; }
.linea small { font-size: 14px; color: var(--muted); }
.linea li:not(.on) b { color: var(--muted); }
.datos { margin: 12px 0 0; display: grid; }
.datos div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.datos div:last-child { border-bottom: 0; }
.datos dt { font-size: 14px; color: var(--muted); font-weight: 600; }
.datos dd { margin: 0; font-weight: 650; display: grid; justify-items: start; }
.datos dd .mono { display: inline-grid; vertical-align: middle; }
.datos dd small { font-size: 14px; font-weight: 500; color: var(--muted); }
.acciones { display: grid; gap: 10px; }
.acc-2 { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-2 .btn { flex: 1 1 160px; }
.asignar { display: grid; gap: 10px; }
@media (min-width: 960px) {
  .detalle { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
  .detalle > .sello, .detalle > .det-mapa { grid-column: 1; }
  .detalle > .det-linea { grid-column: 2; grid-row: span 2; }
  .detalle > .sello + .det-mapa + .det-linea { grid-row: 1 / span 3; }
  .detalle > .acciones { grid-column: 2; }
}

/* ---------- filtros y listas ---------- */
.filtros { display: grid; gap: 10px; }
.buscar { position: relative; display: block; }
.buscar .ic { position: absolute; left: 14px; top: 50%; margin-top: -10px; color: var(--muted); }
.buscar input { padding-left: 44px; background: var(--surface); border-color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip { appearance: none; flex: none; border: 2px solid var(--line); background: var(--surface); border-radius: 999px; min-height: 40px; padding: 6px 14px; font-weight: 750; font-size: 14px; cursor: pointer; transition: background-color .15s, border-color .15s, transform .12s; }
.chip span { color: var(--muted); font-weight: 650; margin-left: 2px; }
.chip.on { background: var(--ink); color: var(--night-t); border-color: var(--ink); }
.chip.on span { color: #CFC7B7; }
.chip:active { transform: scale(.96); }
@media (min-width: 960px) { .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } .filtros { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; } }

/* ---------- cobros ---------- */
.liq { display: grid; gap: 6px; background: var(--yellow); border: var(--bd); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sombra); }
.liq-total { font: 900 italic clamp(42px, 10vw, 58px)/1 var(--display); letter-spacing: -.025em; }
.liq-cuentas { margin: 10px 0 0; display: grid; background: rgba(255, 255, 255, .55); border-radius: var(--r); padding: 4px 14px; }
.liq-cuentas div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(27, 32, 39, .14); }
.liq-cuentas div:last-child { border-bottom: 0; }
.liq-cuentas dt { display: grid; line-height: 1.25; font-weight: 650; }
.liq-cuentas dt small { font-size: 13px; color: #4B4436; font-weight: 500; }
.liq-cuentas dd { margin: 0; white-space: nowrap; font-weight: 800; font-size: 17px; }
.liq-neto dt, .liq-neto dd { font-weight: 900; font-size: 18px; }
.liq-nota { font-size: 13px; color: #4B4436; }
.grafico { width: 100%; height: auto; margin-top: 10px; display: block; }
.g-linea { stroke: var(--line); stroke-dasharray: 3 4; }
.g-barra { fill: #F2B3AE; transform-box: fill-box; transform-origin: bottom; animation: sube-b .7s var(--ease) both; }
.g-barra.hoy { fill: var(--red); }
@keyframes sube-b { from { transform: scaleY(0); } }
.g-n { font: 700 10px var(--body); fill: var(--ink); text-anchor: middle; }
.g-x { font: 600 11px var(--body); fill: var(--muted); text-anchor: middle; }
@media (min-width: 960px) { .cobros { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .cobros > .liq { grid-row: span 2; } }

/* ---------- cuenta ---------- */
.cuenta-p > .card { display: grid; gap: 12px; }
.prev { border: var(--bd); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.prev-banda { background: var(--marca); color: var(--marca-t); display: flex; align-items: center; gap: 10px; padding: 12px; font: 900 italic 18px var(--display); }
.prev-banda .mono { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.prev-cuerpo { display: grid; gap: 6px; padding: 12px; }
.prev-cuerpo span:not(.prev-btn) { height: 10px; border-radius: 6px; background: var(--line); width: 70%; }
.prev-cuerpo span:nth-child(2) { width: 46%; }
.prev-btn { justify-self: start; margin-top: 4px; background: var(--red); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 800; border: 2px solid var(--ink); }
@media (min-width: 960px) { .cuenta-p { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* ---------- panel de la empresa ---------- */
.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis-4 .kpi { box-shadow: var(--sombra-s); }
.kpis-4 .kpi:first-child { background: var(--yellow); }
@media (min-width: 760px) { .kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis-4 .kpi b { font-size: 32px; } }
.hoy-grid { display: grid; gap: 18px; }
.mapa-vivo { display: grid; gap: 12px; }
.mapa-vivo .mapa { border: 2px solid var(--line); border-radius: var(--r); }
.mapa-vivo .btn { justify-self: start; }
.tablero { display: grid; gap: 16px; }
.col { display: grid; gap: 10px; align-content: start; }
.col h3 { font: 850 italic 18px var(--display); display: flex; align-items: center; gap: 8px; }
.tarea { background: var(--surface); border: var(--bd); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; box-shadow: var(--sombra-s); }
.tarea-top { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tarea-top > span:not(.mono) { display: grid; flex: 1; line-height: 1.25; min-width: 0; }
.tarea-top b { white-space: nowrap; }
.tarea-top small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tarea-top small { font-size: 13px; color: var(--muted); }
.tarea-ruta { font-weight: 650; font-size: 15px; }
.tarea-ruta span { color: var(--red); font-weight: 900; }
.tarea-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tarea-moto { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.tarea-moto .ic { width: 18px; height: 18px; }
.tarea .btn .ic { width: 16px; height: 16px; }
.col-tareas { display: grid; gap: 10px; }
@media (min-width: 700px) { .col-tareas { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
@media (min-width: 1200px) { .hoy-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.chips-cli { margin-bottom: -6px; }
.clientes { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .clientes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cliente { display: grid; gap: 14px; border-top: 8px solid var(--c); }
.cliente-top { display: flex; align-items: center; gap: 12px; }
.cliente-top h2 { font-size: 22px; font-style: italic; font-weight: 900; }
.cliente-top small { color: var(--muted); font-size: 14px; }
.mini { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini div { background: var(--field); border-radius: 12px; padding: 10px 12px; display: grid; }
.mini dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.mini dd { margin: 0; font: 900 italic 20px var(--display); }
.mini dd small { font: 600 12px var(--body); color: var(--muted); }
.tarifas { grid-template-columns: minmax(0, 1fr); }
.tarifas form { display: grid; gap: 14px; }
.tarifas form h2:not(:first-child) { margin-top: 8px; }
.tarifas .monto-in input { padding-left: 14px; }
@media (max-width: 420px) { .tarifas .fila3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 960px) { .tarifas { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; } .tarifas > section { position: sticky; top: 92px; } }

/* ---------- seguimiento público ---------- */
.seg { min-height: 100vh; min-height: 100dvh; max-width: 760px; margin: 0 auto; padding-bottom: calc(24px + var(--sa-b)); }
.seg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + var(--sa-t)) 16px 10px; background: var(--night); color: var(--night-t); }
.seg-marca { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 900 italic 17px var(--display); }
.seg-logo { width: 44px; height: auto; }
.seg-de { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.seg-hero { background: var(--marca); color: var(--marca-t); padding: 22px 16px 26px; display: grid; gap: 6px; }
.seg-code { font-weight: 700; opacity: .9; font-size: 15px; }
.seg-hero h1 { font-size: clamp(32px, 8.5vw, 48px); font-style: italic; font-weight: 900; letter-spacing: -.025em; }
.seg-eta { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 17px; }
.seg-mapa { margin: -14px 16px 0; border: var(--bd); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra); line-height: 0; position: relative; background: #F1E9D8; }
.seg-cuerpo { padding-top: 18px; }
.aviso-cobro { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--yellow); border: var(--bd); border-radius: var(--r-lg); box-shadow: var(--sombra-s); }
.aviso-cobro > span { display: grid; line-height: 1.3; }
.aviso-cobro b { font: 900 italic 20px var(--display); }
.aviso-cobro small { font-size: 14px; }
.aviso-cobro .ic { width: 30px; height: 30px; }
@media (min-width: 760px) { .seg { padding-top: 24px; } .seg-top { border-radius: 20px 20px 0 0; } }

/* ---------- aviso flotante ---------- */
#toast { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--nav-h) + var(--sa-b) + 14px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--night-t); padding: 12px 18px; border-radius: 14px; font-weight: 650; font-size: 15px; box-shadow: 4px 4px 0 var(--red); transition: transform .25s var(--ease), opacity .25s; overflow-wrap: anywhere; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { #toast { bottom: 24px; } }

/* ---------- entradas ---------- */
.ent:not(.visto) { opacity: 0; transform: translateY(18px); }
.ent.visto { animation: sube .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes sube { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .velocidad { display: none; }
  .ent:not(.visto) { opacity: 1; transform: none; }
}

/* ---------- etiqueta de demo y hoja de salir ---------- */
.demo-tag { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--sa-b) + 8px); margin: 0; pointer-events: none; white-space: nowrap;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 800; }
.enfoque .demo-tag { bottom: calc(76px + var(--sa-b)); }
.contenido { padding-bottom: calc(var(--nav-h) + var(--sa-b) + 56px); }
.enfoque .contenido { padding-bottom: calc(120px + var(--sa-b)); }
.demo-tag-in { position: static; transform: none; justify-self: start; margin-top: 6px; }
.enlace-txt { font-size: 14px; font-weight: 650; background: var(--field); border-radius: 10px; padding: 8px 12px; overflow-wrap: anywhere; }
.solo-movil { color: var(--ink); }
.hoja { border: var(--bd); border-radius: 22px; padding: 22px 20px; width: min(420px, calc(100% - 32px)); box-shadow: 6px 6px 0 var(--red); background: var(--surface); color: var(--ink); }
.hoja::backdrop { background: rgba(27, 32, 39, .55); }
.hoja[open] { animation: sube .3s var(--ease); }
.hoja h2 { font-size: 24px; font-style: italic; font-weight: 900; }
.hoja p { margin-top: 8px; color: var(--muted); }
.hoja-acc { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 960px) {
  .shell > .demo-tag, .enfoque > .demo-tag { left: auto; right: 20px; bottom: 16px; transform: none; }
  .contenido, .enfoque .contenido { padding-bottom: 48px; }
  .solo-movil { display: none; }
}

/* ---------- campos obligatorios y ubicación exacta ---------- */
.oblig { color: var(--red); font-weight: 900; }
.campo-err { color: var(--red-deep); font-size: 13px; font-weight: 700; line-height: 1.3; }
.campo-err::before { content: "! "; font-weight: 900; }
input[aria-invalid="true"] { border-color: var(--red); background: #FFF0EE; }
.ubic-campo { display: grid; gap: 10px; padding: 12px; margin-inline: -4px; border-radius: var(--r); background: #FFF7DD; border: 2px dashed #E9C25A; }
.ubic-estado { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.ubic-estado.ok { color: var(--green); font-weight: 700; }
.ubic-estado .ic { width: 16px; height: 16px; margin-top: 1px; }
.ubic-campo .btn { justify-self: start; }
.enlace-mapa { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; color: var(--red-deep); min-height: 32px; }
.enlace-mapa .ic { width: 18px; height: 18px; }
.acc-moto { grid-column: 1 / -1; background: var(--yellow); }
.acc-moto small { color: #4B4436; }
.acc-moto-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface); border: var(--bd); display: grid; place-items: center; }
.acc-moto-ic .ic { animation: andar 1.2s ease-in-out infinite; }

/* ---------- app del motorista ---------- */
.moto-app { min-height: 100vh; min-height: 100dvh; max-width: 640px; margin: 0 auto; padding-bottom: calc(56px + var(--sa-b)); }
.moto-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--sa-t)) 16px 10px; background: var(--night); color: var(--night-t); }
.moto-quien { display: grid; flex: 1; line-height: 1.2; }
.moto-quien b { font: 900 italic 20px var(--display); }
.moto-quien small { font-size: 13px; color: #CFC7B7; }
.moto-top .btn-ic { color: var(--night-t); }
.moto-kpis { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.25fr); }
.moto-kpis .kpi b { font-size: 22px; white-space: nowrap; }
.tm-card { display: grid; gap: 14px; }
.tm-top { display: flex; justify-content: space-between; align-items: center; font: 900 italic 18px var(--display); }
.tm-paso { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.tm-paso > div { display: grid; gap: 4px; justify-items: start; }
.tm-paso small { font-size: 13px; color: var(--muted); font-weight: 700; }
.tm-paso b { font-size: 17px; }
.tm-paso span:not(.paso-n):not(.tm-cobro) { font-size: 15px; }
.tm-paso.hecho { opacity: .55; }
.tm-paso .btn-ancho { margin-top: 6px; }
.tm-cobro { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; margin-top: 4px; }
.tm-cobro .ic { width: 18px; height: 18px; }
.tm-contacto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.moto-app .demo-tag { bottom: calc(12px + var(--sa-b)); }
@media (min-width: 960px) { .moto-app .demo-tag { left: 50%; right: auto; transform: translateX(-50%); } }
.moto-kpis .kpi span { white-space: nowrap; }
.tm-contacto .btn { white-space: nowrap; padding-inline: 10px; gap: 6px; }
.tm-paso .btn-negro { white-space: nowrap; }
.moto-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
.moto-kpis .kpi { padding-inline: 10px; }
