/* Marca Dashwi: coral #F04446 · ciruela #400D29 · durazno #FFD5C2 · crema #FFF5E8 · Outfit + Inter */
:root {
  --bg: #FFF5E8; --card: #ffffff; --text: #2B1520; --ink: #400D29; --muted: #7D6470; --line: #F0DFD5;
  --brand: #F04446; --brand-2: #400D29; --brand-soft: #FFE7DC; --peach: #FFD5C2;
  --ok: #1F7A4D; --ok-soft: #E2F3E9; --warn: #A65A00; --warn-soft: #FFF0D9;
  --danger: #B42318; --danger-soft: #FDECEB; --info: #400D29; --info-soft: #FDEDE4;
  --radius: 16px; --shadow: 0 1px 2px rgba(64,13,41,.05), 0 6px 20px rgba(64,13,41,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A0711; --card: #26091A; --text: #FFF5E8; --ink: #FFF5E8; --muted: #C9AEB9; --line: #42182E;
    --brand: #FF5A5C; --brand-2: #FFD5C2; --brand-soft: #3A1027; --peach: #4A1631;
    --ok: #5FD39A; --ok-soft: #12301F; --warn: #F0A44B; --warn-soft: #33240F;
    --danger: #FF7B73; --danger-soft: #3A1513; --info: #FFD5C2; --info-soft: #3A1027;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; font-family: var(--display); color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 800; } h2 { font-size: 1.25rem; font-weight: 700; } h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: .25rem 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .right { text-align: right; } .center { text-align: center; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 96px; }
.narrow { max-width: 460px; }

/* barra superior */
.top { position: sticky; top: 0; z-index: 1000; background: var(--card); border-bottom: 1px solid var(--line); }
.top .in { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo b { background: var(--brand); color: #fff; border-radius: 8px; padding: 2px 7px; }
.top .grow { flex: 1; }
.tag { font-size: .78rem; background: var(--brand-soft); color: var(--brand-2); padding: 3px 9px; border-radius: 99px; font-weight: 600; }

/* tarjetas y cuadrícula */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin: 12px 0; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi .v { font-family: var(--display); color: var(--ink); font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .82rem; color: var(--muted); }

/* botones y formularios */
button, .btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; cursor: pointer; background: var(--brand); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }

button:hover, .btn:hover { filter: brightness(1.06); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary, .btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button.danger { background: var(--danger); color: #fff; }
button.ghost { background: transparent; color: var(--brand); padding: 6px 10px; min-height: 36px; }
button.block { width: 100%; }
button.small { padding: 6px 12px; min-height: 34px; font-size: .9rem; }
label { display: block; font-size: .88rem; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); min-height: 44px; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; background: transparent; color: var(--muted); min-height: 38px; padding: 6px 8px; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* pestañas inferiores (móvil) */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--card); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; max-width: 160px; background: transparent; color: var(--muted); border-radius: 0; flex-direction: column; gap: 0; font-size: .75rem; padding: 6px 4px; min-height: 58px; }
.tabs button span { font-size: 1.3rem; line-height: 1.2; }
.tabs button.on { color: var(--brand); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }

/* categorías y comercios */
.cats { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.cat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; min-width: 92px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-weight: 600; font-size: .82rem; }
.cat .i { font-size: 1.7rem; }
.cat.on { border-color: var(--brand); background: var(--brand-soft); }
.storecard { cursor: pointer; margin: 0; }
.storecard .ban { height: 84px; border-radius: 10px; display: grid; place-items: center; font-size: 2.4rem; background: var(--brand-soft); margin-bottom: 10px; }
.closed { opacity: .55; }

/* menú y carrito */
.item { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { min-height: 34px; width: 34px; padding: 0; border-radius: 99px; }
.qty b { min-width: 18px; text-align: center; }
.cartbar { position: fixed; left: 16px; right: 16px; bottom: 72px; z-index: 1001; max-width: 600px; margin: 0 auto; }
.cartbar button { width: 100%; justify-content: space-between; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lines td { padding: 4px 0; } .lines td:last-child { text-align: right; }
.lines tr.total td { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; font-size: 1.05rem; }

/* estado de pedidos */
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--info-soft); color: var(--info); white-space: nowrap; }
.pill.nuevo { background: var(--warn-soft); color: var(--warn); }
.pill.recogido { background: var(--info-soft); color: var(--info); }
.pill.entregado { background: var(--ok-soft); color: var(--ok); }
.pill.cancelado { background: var(--danger-soft); color: var(--danger); }
.steps { display: flex; gap: 4px; margin: 12px 0 4px; }
.steps i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.steps i.on { background: var(--brand); }
.pin { font-size: 2rem; font-weight: 800; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.stars button { background: transparent; color: var(--muted); font-size: 1.8rem; padding: 0 4px; min-height: 44px; }
.stars button.on { color: #f5a524; }

/* mapas */
.map { height: 300px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; z-index: 0; background: var(--line); }
.map.tall { height: 420px; }
.leaflet-container { font: inherit; }
.mk { font-size: 24px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* avisos */
.notice { padding: 10px 14px; border-radius: 10px; background: var(--info-soft); color: var(--info); margin: 10px 0; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
#toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 2000; max-width: calc(100% - 32px); }
#toast div { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; margin-bottom: 8px; box-shadow: var(--shadow); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.scroll { overflow-x: auto; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.hidden { display: none !important; }
@media (min-width: 760px) {
  .tabs { position: static; border: 0; background: transparent; justify-content: flex-start; gap: 6px; padding: 12px 16px 0; max-width: 980px; margin: 0 auto; }
  .tabs button { flex-direction: row; gap: 6px; min-height: 40px; max-width: none; flex: 0 0 auto; border-radius: 10px; font-size: .92rem; padding: 8px 14px; }
  .tabs button span { font-size: 1rem; }
  .tabs button.on { background: var(--brand-soft); }
  .cartbar { bottom: 20px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* viajes */
.ride-cta { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; justify-items: start; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0 0; font-size: 1.15rem; font-weight: 700; }
.ride-cta .ri { grid-row: 1 / 3; font-size: 2rem; align-self: center; }
.ride-cta .small { font-weight: 500; }
.rides { display: grid; gap: 8px; }
.ride { width: 100%; justify-content: flex-start; gap: 12px; background: var(--bg); color: var(--text); border: 2px solid var(--line); padding: 10px 12px; text-align: left; }
.ride.on { border-color: var(--brand); background: var(--brand-soft); }
.ride .ri { font-size: 1.8rem; line-height: 1; }
.ride .rn { flex: 1; display: flex; flex-direction: column; font-weight: 500; }
.ride .rp { font-variant-numeric: tabular-nums; font-size: 1.05rem; white-space: nowrap; }

/* oferta de la asignación automática (app del chofer) */
.offer { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.offer .sheet { width: 100%; max-width: 480px; background: var(--card); border-radius: 18px; padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.35); margin-bottom: env(safe-area-inset-bottom); animation: rise .2s ease-out; }
.offer .clock { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) var(--p, 100%), var(--line) 0); }
.offer .clock span { width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.offer .earn { font-size: 2.2rem; font-weight: 800; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
button.big { min-height: 58px; font-size: 1.15rem; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .offer .sheet { animation: none; } }

/* precios, chat, emergencia, cuenta y reportes */
.lines tr.disc td { color: var(--brand-2); }
.surge { color: var(--warn); font-weight: 700; }
.btn.danger { background: var(--danger); color: #fff; }
.chat .msgs { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px; }
.msg { align-self: flex-start; max-width: 85%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 11px; }
.msg.me { align-self: flex-end; background: var(--brand-soft); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.msg span { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.chat-form input { flex: 1; }
details.sos, details.chat-wrap { margin-top: 12px; }
details.sos summary, details.chat-wrap summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
details.sos summary { color: var(--danger); }
.seg.wrap { flex-wrap: wrap; }
.tag.feat { background: var(--warn-soft); color: var(--warn); margin-left: 6px; vertical-align: middle; }
label.chk { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin: 0 12px 0 0; }
label.chk input { width: auto; min-height: auto; }
.bar { display: grid; grid-template-columns: 48px 1fr 84px; gap: 8px; align-items: center; font-size: .85rem; padding: 3px 0; }
.bar .bt { background: var(--line); border-radius: 99px; height: 10px; overflow: hidden; }
.bar .bt i { display: block; height: 100%; background: var(--brand); border-radius: 99px; min-width: 2px; }
.bar .bv { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 130px; align-items: end; }
.hours div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.hours i { display: block; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.hours span { font-size: .68rem; color: var(--muted); text-align: center; height: 14px; }
.sosbar .notice { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* ===== Marca Dashwi: componentes ===== */
.top { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.logo { gap: 9px; }
.logo .mark { width: 34px; height: 34px; flex: none; border-radius: 10px; }
.logo .word { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.45rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.logo .role { font-family: var(--font); font-weight: 600; font-size: .78rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 9px; margin-left: 1px; }
.tag { background: var(--brand-soft); color: var(--brand-2); }
button, .btn { border-radius: 12px; letter-spacing: .005em; }
button.secondary, .btn.secondary { color: var(--ink); background: var(--card); }
button.ghost { color: var(--brand); }
.ico { width: 22px; height: 22px; display: block; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs button span { display: grid; place-items: center; height: 26px; }
.tabs button.on { color: var(--brand); }
@media (min-width: 760px) { .tabs button span { height: auto; } .tabs button .ico { width: 18px; height: 18px; } .tabs button.on { background: var(--brand-soft); color: var(--brand-2); } }
.steps i.on { background: var(--brand); }
.cat .i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 0; }
.cat .i .ico { width: 24px; height: 24px; }
.cat.on { border-color: var(--brand); background: var(--brand-soft); }
.cat.on .i { background: var(--brand); color: #fff; }
.storecard .ban { background: linear-gradient(135deg, var(--brand-soft), var(--peach)); color: var(--brand); }
.storecard .ban .ico { width: 40px; height: 40px; stroke-width: 1.6; }
.hero { margin: 22px 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.02; margin-bottom: 6px; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service { flex-direction: column; align-items: flex-start; gap: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px; padding: 14px 12px; text-align: left; }
.service .si { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; }
.service .si .ico { width: 26px; height: 26px; }
.service b { display: block; font-family: var(--display); font-size: 1.08rem; }
.service small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; line-height: 1.25; margin-top: 2px; }
.service:hover { filter: none; border-color: var(--brand); }
.brand-hero { text-align: center; padding: 28px 0 8px; }
.brand-hero .mark { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 10px 30px rgba(240,68,70,.35); }
.brand-hero .word { display: block; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.6rem; letter-spacing: -.035em; color: var(--ink); margin-top: 10px; line-height: 1; }
.brand-hero .tagline { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-top: 8px; }
.kycbar { background: var(--ink); color: var(--bg); }
.kycbar .in { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .92rem; }
.kycbar .btn { background: var(--brand); color: #fff; min-height: 38px; padding: 6px 14px; }
.wizard .dots { display: flex; gap: 6px; margin: 14px 0 6px; }
.wizard .dots i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.wizard .dots i.on { background: var(--brand); }
.shot { display: grid; place-items: center; text-align: center; gap: 8px; border: 2px dashed var(--line); border-radius: 16px; padding: 18px; background: var(--bg); color: var(--muted); cursor: pointer; min-height: 170px; font-weight: 600; margin: 0; }
.shot img { max-width: 100%; max-height: 260px; border-radius: 12px; display: block; }
.shot.selfie img { border-radius: 50%; width: 200px; height: 200px; object-fit: cover; }
.shot input { display: none; }
.shot .ico { width: 34px; height: 34px; color: var(--brand); }
.tips { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.kyc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.kyc-photos figure { margin: 0; }
.kyc-photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.kyc-photos figcaption { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.kyc-data { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 6px 0 10px; font-size: .9rem; }
.kyc-data dt { color: var(--muted); } .kyc-data dd { margin: 0; font-weight: 600; }
.dup { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.dup img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
#lightbox { position: fixed; inset: 0; z-index: 4000; background: rgba(26,7,17,.85); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
#lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.legal { line-height: 1.65; } .legal h2 { margin-top: 24px; } .legal li { margin: 4px 0; }
.draft { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.tabs.many button { font-size: .64rem; padding: 6px 0; }
@media (min-width: 760px) { .tabs.many button { font-size: .9rem; padding: 8px 12px; } }

/* íconos de marca en lugar de emojis */
.ride .ri { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 0; }
.ride.on .ri { background: var(--brand); color: #fff; }
.ride .ri .ico { width: 24px; height: 24px; }
[data-demo] { display: flex; align-items: center; justify-content: center; gap: 8px; }
.demo-i .ico { width: 20px; height: 20px; color: var(--brand); }

/* ---------- chat traducido, frases rápidas y soporte ---------- */
.msg .orig { display: block; margin-top: 3px; font-size: .74rem; color: var(--muted); font-style: normal; }
.msg details.orig summary { cursor: pointer; list-style: none; text-decoration: underline dotted; }
.msg details.orig summary::-webkit-details-marker { display: none; }
.msg details.orig[open] { white-space: pre-wrap; overflow-wrap: anywhere; }
.quick, .chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.quick::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 99px; min-height: 36px; padding: 6px 12px; font-size: .86rem; font-weight: 500; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip b { font-weight: 700; color: var(--brand); margin-left: 2px; }
.chip.on b { color: var(--peach); }
.support-wrap { position: fixed; inset: 0; z-index: 3500; background: rgba(26,7,17,.5); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.support-wrap.hidden { display: none; }
.support { width: 100%; max-width: 480px; max-height: 86vh; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 12px 40px rgba(26,7,17,.35); margin-bottom: env(safe-area-inset-bottom); animation: rise .2s ease-out; }
.support .msgs { flex: 1; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px; }
.big-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.big-ico .ico { width: 32px; height: 32px; }

/* ---------- revisión de cuentas ---------- */
.case { border-left: 4px solid var(--line); }
.case.alta { border-left-color: var(--danger); }
.case.media { border-left-color: var(--warn); }
.pill.sev.alta { background: var(--danger-soft); color: var(--danger); }
.pill.sev.media { background: var(--warn-soft); color: var(--warn); }
.pill.sev.baja { background: var(--bg); color: var(--muted); }
.pill.blk { background: var(--ink); color: var(--bg); }
.who { background: var(--bg); border-radius: 12px; padding: 8px 12px; font-size: .92rem; }

/* ---------- bandeja de soporte (Administración) ---------- */
.support-admin { display: grid; gap: 12px; }
@media (min-width: 760px) { .support-admin { grid-template-columns: minmax(260px, 1fr) 1.6fr; align-items: start; } .support-admin > .card { margin: 0; } }
.support-admin > * { min-width: 0; }
.conv > * { min-width: 0; }
.conv { width: 100%; display: grid; justify-content: stretch; justify-items: stretch; gap: 2px; text-align: left; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 4px; min-height: 0; font-weight: 400; }
.conv.on { background: var(--brand-soft); border-radius: 10px; }
.conv .last { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sp-thread .chat .msgs { max-height: 52vh; }

/* ---------- nivel del chofer ---------- */
.lvl-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.lvl-badge .ico { width: 15px; height: 15px; }
.lvl-badge.oro { background: #FFF1C2; color: #7A5200; }
.lvl-badge.plata { background: #ECEAF0; color: #4C4757; }
.lvl-badge.bronce { background: #FBE3D3; color: #8A4A1F; }
.lvl-badge.small { font-size: .75rem; padding: 1px 8px; }
@media (prefers-color-scheme: dark) { .lvl-badge.oro { background: #3D3110; color: #F5D37A; } .lvl-badge.plata { background: #2E2B35; color: #D6D2DF; } .lvl-badge.bronce { background: #3A2215; color: #F0B48C; } }
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 10px 0 8px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--peach), var(--brand)); }
.lvl-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.lvl-stats b { color: var(--text); }

.stars.sm button { font-size: 1.5rem; }
.stars-sm { color: #B7791F; font-weight: 700; }
@media (prefers-color-scheme: dark) { .stars-sm { color: #F5D37A; } }

/* ---------- recibo ---------- */
.receipt .logo .mark { width: 30px; height: 30px; }
@media print {
  .noprint, header.top, .tabs, #toast, .kycbar, .support-wrap { display: none !important; }
  body { background: #fff; color: #000; }
  .receipt { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- pruebas de recogida y entrega ---------- */
.proofs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
figure.proof { margin: 8px 0 0; }
figure.proof img { width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
details.report, details.no-answer { margin-top: 8px; }
details.report summary, details.no-answer summary { cursor: pointer; color: var(--brand); font-weight: 600; }

/* ---------- paradas, horario y modo tableta ---------- */
.stop-card .map { height: 180px; }
.hrow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.hrow input[type=time] { width: auto; min-height: 38px; padding: 4px 8px; }
details.hours { display: block; height: auto; margin: 2px 0 12px; } details.hours summary { cursor: pointer; color: var(--brand); font-weight: 600; width: fit-content; }
details.hours table { max-width: 320px; margin-top: 6px; }
body.kiosk { font-size: 19px; }
body.kiosk .kpis, body.kiosk #v-menu, body.kiosk #acct-tools, body.kiosk #hours-card, body.kiosk .tabs, body.kiosk .k-hide, body.kiosk .kycbar { display: none !important; }
body.kiosk #v-pedidos { display: block !important; }
body.kiosk .wrap { max-width: none; }
@media (min-width: 760px) { body.kiosk .kcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; } }
body.kiosk button { min-height: 56px; font-size: 1.05rem; }
#ticket { display: none; }
@media print {
  body:has(#ticket:not(:empty)) > *:not(#ticket) { display: none !important; }
  #ticket { display: block; font: 14px/1.4 monospace; color: #000; width: 72mm; }
  #ticket h2 { font-size: 18px; margin: 0 0 4px; } #ticket table { width: 100%; border-collapse: collapse; } #ticket td { padding: 2px 4px; vertical-align: top; }
}

/* ---------- billetera ---------- */
.wallet-hero { background: linear-gradient(135deg, #400D29 0%, #6E1D4A 100%); color: #FFF5E8; border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 10px 30px rgba(64,13,41,.28); margin: 16px 0 12px; }
.wallet-hero.debt .wh-amount { color: #FFD5C2; }
.wallet-hero.blocked { background: linear-gradient(135deg, #8E1A13 0%, #F04446 100%); }
.wallet-hero.blocked .wh-amount { color: #FFF5E8; }
.wh-label { font: 600 .82rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.wh-mark { width: 30px; height: 30px; color: #F04446; }
.wallet-hero.blocked .wh-mark { color: #FFD5C2; }
.wh-amount { font: 800 2.6rem/1.05 var(--display); letter-spacing: -.02em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.wh-sub { opacity: .8; font-size: .9rem; }
.wh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,245,232,.18); }
.wh-stats b { display: block; font: 700 1.05rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.wh-stats span { display: block; font-size: .74rem; line-height: 1.3; opacity: .75; margin-top: 2px; }
.wh-period { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,245,232,.18); }
.wh-period + .wh-stats { margin-top: 8px; padding-top: 0; border-top: 0; }
.wh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.wh-btn { background: #FFF5E8; color: #400D29; border-radius: 12px; font-weight: 700; flex: 1; min-width: 140px; }
.wh-btn.ghost { background: transparent; color: #FFF5E8; border: 1px solid rgba(255,245,232,.45); }
.wh-note { font-size: .8rem; opacity: .85; margin: 10px 0 0; }
.wh-alert { background: rgba(255,245,232,.16); border-radius: 10px; padding: 8px 10px; font-size: .85rem; font-weight: 600; margin: 10px 0 0; }
.wh-topup { margin-top: 10px; } .chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip.light { background: rgba(255,245,232,.14); color: #FFF5E8; border-color: rgba(255,245,232,.35); font-weight: 700; }
.moves { list-style: none; margin: 8px 0 0; padding: 0; }
.move { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.move:last-child { border-bottom: 0; }
.mv-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; }
.mv-ico.in { background: var(--ok-soft); color: var(--ok); } .mv-ico.out { background: var(--brand-soft); color: var(--brand-2); }
.mv-txt { display: grid; min-width: 0; } .mv-txt .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-amt { font: 700 1rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-amt.in { color: var(--ok); } .mv-amt.out { color: var(--text); }
.wallet-use { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.wallet-use b { font-family: var(--display); }
.wallet-pay { font-size: .88rem; margin: 6px 0 0; }
.amt-in { color: var(--ok); font-weight: 700; } .amt-out { font-weight: 700; } .amt-debt { color: var(--danger); font-weight: 700; }
@media (max-width: 759px) { .tabs.many { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; } .tabs.many::-webkit-scrollbar { display: none; } .tabs.many button { flex: 0 0 66px; } }
details.adj { display: inline-block; text-align: left; }
details.adj summary { cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; }
details.adj[open] summary { margin-bottom: 6px; }
.adj-box { display: grid; gap: 6px; min-width: 200px; }
.adj-box input, .adj-box select { margin: 0; }
details.give { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
details.give summary { cursor: pointer; font-weight: 600; color: var(--brand-2); }
.refund { align-items: center; gap: 8px; }
.wallet-use input[type=checkbox] { width: 20px; height: 20px; min-height: 0; flex: 0 0 20px; margin: 0; padding: 0; accent-color: var(--brand); }
.wallet-use span { line-height: 1.35; }
.mv-amt, .amt-in, .amt-out, .amt-debt { white-space: nowrap; }
@media (max-width: 759px) { .tabs button { position: relative; } .tabs button .badge { position: absolute; top: 4px; left: calc(50% + 6px); } }

/* ---------- hoja de ayuda (centro de ayuda, recogida, seguridad) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 3400; background: rgba(26,7,17,.55); display: flex; align-items: flex-end; justify-content: center; }
body.sheet-open { overflow: hidden; }
.hsheet { width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(26,7,17,.3); animation: rise .22s ease-out; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 760px) { .sheet-wrap { align-items: center; } .hsheet { border-radius: 22px; max-height: 86vh; } }
.sh-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; padding: 10px 10px 6px; border-bottom: 1px solid var(--line); }
a.sh-row { text-decoration: none; }
.sh-title { display: grid; text-align: center; line-height: 1.25; } .sh-title b { font: 700 1.05rem/1.25 var(--display); }
.sh-ib { width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; background: transparent; color: var(--text); border-radius: 12px; }
.sh-ib:hover { background: var(--bg); } .sh-ib .ico { width: 22px; height: 22px; }
.sh-body { overflow-y: auto; padding: 14px 16px 20px; }
.sh-body h2 { font: 800 1.45rem/1.2 var(--display); margin: 2px 0 14px; letter-spacing: -.01em; }
.sh-body h4 { font: 700 1rem/1.3 var(--display); margin: 18px 0 6px; }
.sh-hello { color: var(--muted); margin: 0; }
.sh-list { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.sh-list + .sh-list { margin-top: 10px; }
.sh-row { display: grid; grid-template-columns: auto 1fr 20px; gap: 12px; align-items: center; width: 100%; text-align: left; background: transparent; color: var(--text); border-radius: 0; padding: 14px; min-height: 64px; border-bottom: 1px solid var(--line); font-weight: 400; }
.sh-row:last-child { border-bottom: 0; } .sh-row:hover { background: var(--bg); }
.sh-row.no-ico { grid-template-columns: 1fr 20px; }
.sh-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.sh-ico .ico { width: 24px; height: 24px; }
.sh-ico.plum { background: #F3E6EE; color: var(--brand-2); } .sh-ico.ok { background: var(--ok-soft); color: var(--ok); } .sh-ico.warn { background: var(--warn-soft); color: var(--warn); }
@media (prefers-color-scheme: dark) { .sh-ico.plum { background: #3A1027; color: #FFD5C2; } }
.sh-txt { display: grid; gap: 2px; min-width: 0; } .sh-txt b { font: 600 1rem/1.3 var(--display); } .sh-txt span { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.sh-chev { color: var(--muted); } .sh-chev .ico { width: 18px; height: 18px; }
.sh-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 0 14px; background: var(--bg); margin: 0 0 14px; }
.sh-search .ico { width: 20px; height: 20px; color: var(--muted); flex: none; } .sh-search input { border: 0; background: transparent; padding: 12px 0; min-height: 48px; outline: none; }
.sh-art p { line-height: 1.55; margin: 0 0 12px; }
.sh-hero { text-align: center; padding: 6px 4px 2px; } .sh-hero svg.art { width: 150px; height: 120px; margin: 0 auto 8px; display: block; }
.sh-hero h2 { margin-bottom: 8px; } .sh-hero p { color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.sh-big { text-align: center; background: var(--bg); border: 1px dashed var(--line); border-radius: 16px; padding: 16px; margin: 6px 0 12px; }
.sh-big .code { font: 800 2.6rem/1 var(--display); letter-spacing: .04em; color: var(--brand-2); }
.sh-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.sh-stat div { background: var(--bg); border-radius: 14px; padding: 10px 12px; } .sh-stat b { display: block; font: 800 1.35rem/1.2 var(--display); font-variant-numeric: tabular-nums; } .sh-stat span { font-size: .8rem; color: var(--muted); }
.sh-done { text-align: center; padding: 10px 0; } .sh-done .ok-dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: var(--ok-soft); color: var(--ok); } .sh-done .ok-dot .ico { width: 34px; height: 34px; }
.qty-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; gap: 6px; } .qty button { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; } .qty b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.chips-sel { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
/* deslizar para confirmar */
.slide { --fill: 0px; position: relative; height: 62px; border-radius: 99px; background: #3D0A0A; overflow: hidden; user-select: none; touch-action: none; margin-top: 12px; }
.slide::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: rgba(240,68,70,.35); }
.slide-label { position: absolute; inset: 0; display: grid; place-items: center; color: #FF7B73; font: 700 1.15rem/1 var(--display); padding-left: 40px; }
.slide-knob { position: absolute; left: 4px; top: 4px; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: grab; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.slide-knob .ico { width: 26px; height: 26px; } .slide.done .slide-label { color: #fff; }
.sos-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sos-row .ico { width: 30px; height: 30px; color: var(--brand); }
/* barra de ayuda en el pedido activo del chofer */
.help-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.help-bar button { display: flex; align-items: center; justify-content: center; gap: 8px; } .help-bar .ico { width: 20px; height: 20px; }
.arrive-strip { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: .92rem; }
.arrive-strip .ico { width: 22px; height: 22px; flex: none; } .arrive-strip b { font-variant-numeric: tabular-nums; }
.icon-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.icon-btn .ico { width: 20px; height: 20px; } .icon-btn.shield { color: #3B5BDB; }
@media (prefers-color-scheme: dark) { .icon-btn.shield { color: #91A7FF; } }
/* ¿no te llegan ofertas? */
.offers-card { display: grid; gap: 10px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 800 1rem/1 var(--display); }
.check-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: start; }
.check-row:last-child { border-bottom: 0; } .check-row .st { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.check-row .st.ok { background: var(--ok-soft); color: var(--ok); } .check-row .st.no { background: var(--danger-soft); color: var(--danger); }
.check-row .st .ico { width: 18px; height: 18px; } .check-row b { display: block; } .check-row .small { color: var(--muted); }
.waiting-note { border-left: 4px solid var(--brand); }
.hsheet.compact .sh-top { border-bottom: 0; padding-bottom: 0; }
header.top #live { white-space: nowrap; }
@media (max-width: 459px) { header.top #who, header.top .hello { display: none; } header.top .icon-btn { width: 36px; height: 36px; min-height: 36px; } }
header.top #logout { white-space: nowrap; }

/* ---------- Dashwi Servicios ---------- */
.services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-group { font-size: 1.05rem; margin: 20px 0 10px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.svc-card { display: grid; grid-template-rows: auto 1fr; gap: 10px; align-items: start; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); font-weight: 400; min-height: 150px; }
.svc-card:hover { border-color: var(--brand); }
.svc-card .si, .svc-hero .si { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.svc-card .si .ico, .svc-hero .si .ico { width: 26px; height: 26px; }
.svc-txt { display: grid; gap: 3px; } .svc-txt b { font: 700 1rem/1.25 var(--display); } .svc-txt small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.svc-price { margin-top: 4px; font: 700 .85rem/1 var(--display); color: var(--brand-2); }
.svc-hero { display: flex; gap: 12px; align-items: center; margin: 8px 0 14px; } .svc-hero .si { width: 56px; height: 56px; flex: none; }
.extra-card { border: 2px solid var(--brand); background: var(--brand-soft); }
.extra-amt { font: 800 1.8rem/1.1 var(--display); color: var(--brand-2); margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.pro-tag { background: var(--brand-2); color: #FFF5E8; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.svc-chips .chip { font-size: .8rem; }
.svc-info { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .svc-info .chip { font-size: .8rem; cursor: default; }
details.extra-form { margin: 10px 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; } details.extra-form summary { cursor: pointer; font-weight: 600; color: var(--brand-2); }
.sv-row.off { opacity: .6; } .sv-row .sh-ico { width: 42px; height: 42px; flex: none; }
#roles.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
#roles.seg button { min-height: 44px; }

/* ---------- Dashwi para Negocios (panel, integraciones y API) ---------- */
.hsheet.wide { max-width: 680px; }
.mode-sw { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px 4px 6px; min-height: 36px; color: var(--text); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.mode-sw i { width: 30px; height: 18px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.mode-sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.mode-sw.on { background: #FFF0D9; border-color: #F3C98B; color: #8A4B00; } .mode-sw.on i { background: #E08A1E; } .mode-sw.on i::after { transform: translateX(12px); }
.mode-sw:hover { background: var(--card); }
.testbar { background: repeating-linear-gradient(135deg, #8A4B00 0 12px, #A65A00 12px 24px); color: #FFF5E8; text-align: center; font-size: .8rem; font-weight: 600; padding: 5px 12px; letter-spacing: .01em; }
.testbar b { font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.biz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.biz-head h1 { margin: 0; } .biz-head p { margin: 2px 0 0; }
.biz-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis.biz .kpi { padding: 14px 16px; } .kpis.biz .kpi .v { font-size: 1.6rem; }
.kpi .d { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0 10px; }
.toolbar .chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; min-width: 160px; }
.search-in { position: relative; } .search-in .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-in input { padding-left: 36px; min-height: 40px; }
.dl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dl-head, .dl-row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.3fr) minmax(0,1.8fr) minmax(0,1.1fr) minmax(0,.8fr) minmax(0,.9fr); gap: 12px; align-items: center; padding: 11px 16px; }
.dl-head { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--bg); border-bottom: 1px solid var(--line); }
.dl-row { width: 100%; text-align: left; background: transparent; color: var(--text); border: 0; border-radius: 0; border-bottom: 1px solid var(--line); font-weight: 400; min-height: 58px; cursor: pointer; }
.dl-row:last-child { border-bottom: 0; } .dl-row:hover { background: var(--bg); }
.dl-row .c1 b { font-family: var(--display); font-weight: 700; display: block; } .dl-row .sub { font-size: .8rem; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.dl-row .amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; } .dl-head .amt { text-align: right; }
@media (max-width: 759px) {
  .dl-head { display: none; }
  .dl-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "a e" "b f" "c c"; gap: 2px 10px; padding: 12px 14px; }
  .dl-row .c1 { grid-area: a; } .dl-row .c2 { grid-area: b; } .dl-row .c3 { grid-area: c; } .dl-row .c4 { grid-area: e; justify-self: end; } .dl-row .c5 { display: none; } .dl-row .c6 { grid-area: f; justify-self: end; }
}
.src { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.src i { width: 7px; height: 7px; border-radius: 2px; background: var(--muted); }
.src.shopify i { background: #5E8E3E; } .src.woocommerce i { background: #7F54B3; } .src.api i { background: var(--brand); } .src.csv i { background: #2F6FB3; } .src.panel i { background: var(--brand-2); }
.pill.needs { background: var(--warn-soft); color: var(--warn); } .pill.assigned { background: var(--info-soft); color: var(--info); }
.mode-tag { font: 700 .68rem/1 var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.mode-tag.test { background: #FFF0D9; color: #8A4B00; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 10px; } .sec-h h2 { margin: 0; } .sec-h p { margin: 2px 0 0; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.int-card { display: grid; gap: 10px; align-content: start; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); font-weight: 400; min-height: 168px; position: relative; }
button.int-card:hover { border-color: var(--brand); }
.int-card.soon { opacity: .7; box-shadow: none; } .int-card .top-r { position: absolute; top: 14px; right: 14px; }
.int-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 1.15rem/1 var(--display); color: #fff; background: var(--brand-2); }
.int-logo .ico { width: 24px; height: 24px; }
.int-logo.shopify { background: #5E8E3E; } .int-logo.woocommerce { background: #7F54B3; } .int-logo.api { background: var(--brand); } .int-logo.csv { background: #2F6FB3; } .int-logo.pos { background: #8B8B8B; }
.int-card b { font: 700 1.05rem/1.2 var(--display); } .int-card p { margin: 0; font-size: .86rem; color: var(--muted); }
.st-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.st-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.st-dot.ok { color: var(--ok); } .st-dot.ok::before { background: var(--ok); } .st-dot.warn { color: var(--warn); } .st-dot.warn::before { background: var(--warn); } .st-dot.err { color: var(--danger); } .st-dot.err::before { background: var(--danger); }
pre.code { margin: 8px 0; background: #1E0814; color: #FFE7DC; border-radius: 12px; padding: 12px 14px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; position: relative; }
pre.code .k { color: #FF8A8C; } pre.code .s { color: #FFD5C2; } pre.code .c { color: #A88796; }
.code-wrap { position: relative; } .code-wrap .copy { position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 4px 10px; font-size: .78rem; background: rgba(255,245,232,.12); color: #FFF5E8; border: 1px solid rgba(255,245,232,.2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.copy-field { display: flex; gap: 6px; align-items: stretch; } .copy-field input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; background: var(--bg); }
.copy-field button { flex: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; } .tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; } .tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.steps-list { counter-reset: st; list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps-list li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font: 700 .85rem/1 var(--display); }
.steps-list li > div > b { display: block; } .steps-list li > div > .small { display: block; }
.tl { list-style: none; margin: 10px 0; padding: 0 0 0 4px; } .tl li { position: relative; padding: 0 0 12px 22px; font-size: .9rem; }
.tl li::before { content: ''; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.tl li::after { content: ''; position: absolute; left: 4.5px; top: 17px; bottom: 0; width: 1px; background: var(--line); } .tl li:last-child::after { display: none; }
.tl li span { color: var(--muted); font-size: .8rem; margin-left: 6px; }
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.dt-grid > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; } .dt-grid .l { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; } .dt-grid .v { font-weight: 600; }
.dt-grid .full { grid-column: 1 / -1; }
.pin-big { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.pin-big b { font: 800 1.8rem/1 var(--display); letter-spacing: .25em; color: var(--brand-2); }
.biz-hero { background: linear-gradient(135deg, #400D29 0%, #6E1D4A 100%); color: #FFF5E8; border-radius: 22px; padding: 20px; box-shadow: 0 10px 30px rgba(64,13,41,.25); display: grid; gap: 4px; }
.biz-hero .wh-amount { font-size: 2.2rem; }
.biz-hero .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: .84rem; color: #FFD5C2; }
.rate-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .rate-card div { background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; } .rate-card b { display: block; font: 800 1.25rem/1.1 var(--display); color: var(--ink); } .rate-card span { font-size: .78rem; color: var(--muted); }
.key-new { border: 2px solid var(--ok); background: var(--ok-soft); border-radius: 14px; padding: 12px; margin: 10px 0; }
.ev-checks { display: grid; gap: 6px; margin: 8px 0; } .ev-checks label { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; } .ev-checks code { font-size: .8rem; color: var(--muted); }
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 20px; text-align: center; display: grid; gap: 6px; justify-items: center; background: var(--bg); cursor: pointer; }
.drop:hover, .drop.on { border-color: var(--brand); } .drop .ico { width: 30px; height: 30px; color: var(--brand); } .drop input { display: none; }
.biz-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; }
.biz-box .btn.small { min-height: 34px; padding: 6px 10px; font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; } .biz-box .btn .ico { width: 16px; height: 16px; }
.biz-items { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); font-size: .9rem; display: grid; gap: 3px; }
.empty-state { text-align: center; padding: 34px 16px; color: var(--muted); } .empty-state .big-ico { margin: 0 auto 8px; } .empty-state b { display: block; color: var(--ink); font: 700 1.05rem/1.3 var(--display); margin-bottom: 4px; }
.qa { display: flex; gap: 8px; flex-wrap: wrap; } .qa .chip.on { background: var(--brand-2); }
.biz-note { font-size: .82rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.track-brand { font: 700 .9rem/1.2 var(--display); color: var(--brand-2); background: var(--brand-soft); display: inline-block; border-radius: 99px; padding: 4px 12px; margin-bottom: 6px; }
#roles.seg button.wide-r { grid-column: 1 / -1; }
.pt-row td .small { display: block; }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.btn.ghost { background: transparent; color: var(--brand); border-color: transparent; padding: 6px 10px; min-height: 36px; }
.btn .ico, button.small .ico { width: 18px; height: 18px; }
.copy-field .btn { flex: none; }
.mode-sw .ms-short { display: none; }
@media (max-width: 599px) { .mode-sw .ms-long { display: none; } .mode-sw .ms-short { display: inline; } body:has(#mode) header.top #live { display: none; } }
@media (max-width: 389px) { body:has(#mode) .logo .role { display: none; } }
.ev-checks input { width: 18px; height: 18px; min-height: 0; flex: none; margin: 0; accent-color: var(--brand); }
.ev-checks label { justify-content: flex-start; text-align: left; flex-wrap: wrap; }
.sh-title { min-width: 0; } .sh-title b, .sh-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 439px) { body:has(#mode) .logo .role { display: none; } body:has(#mode) .mode-sw { padding: 4px 8px 4px 5px; } }
@media (max-width: 419px) { header.top #live { max-width: 13px; overflow: hidden; white-space: nowrap; flex: none; } }
@media (min-width: 760px) { .tabs.many { flex-wrap: wrap; gap: 4px; } .tabs.many button { padding: 8px 10px; } }

/* ---------- Tarjeta Dashwi y Compra y entrega ---------- */
.dcard { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1.586; border-radius: 18px; padding: 16px 18px; color: #fff; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 14px 30px rgba(240,68,70,.32); background: radial-gradient(130% 150% at 100% 0%, #FF7577 0%, #F04446 42%, #A9142B 100%); font-family: var(--font); isolation: isolate; }
.dcard::before, .dcard::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; }
.dcard::before { width: 260px; height: 260px; right: -90px; bottom: -150px; background: rgba(64,13,41,.28); }
.dcard::after { width: 180px; height: 180px; left: -70px; top: -90px; background: rgba(255,255,255,.12); }
.dcard.frozen { background: linear-gradient(135deg, #8C7480 0%, #400D29 100%); box-shadow: 0 10px 24px rgba(64,13,41,.3); }
.dcard.unlocked { box-shadow: 0 0 0 3px #FFD5C2, 0 16px 34px rgba(240,68,70,.45); }
.dc-top { display: flex; justify-content: space-between; align-items: center; }
.dc-logo { display: flex; align-items: center; gap: 6px; font: italic 800 1.15rem/1 var(--display); letter-spacing: -.02em; }
.dc-logo svg { width: 26px; height: 26px; }
.dc-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #FFE7B8, #E7B96A); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.dc-mid { align-self: center; display: grid; gap: 4px; }
.dc-state { justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2); border-radius: 99px; padding: 4px 10px; font-size: .78rem; font-weight: 700; backdrop-filter: blur(4px); }
.dc-state .ico { width: 14px; height: 14px; }
.dc-amt { font: 800 1.7rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.dc-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.dc-num { font: 600 .95rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; white-space: nowrap; }
.dc-sub { font-size: .7rem; opacity: .85; margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.dc-brand { font: italic 900 1.35rem/1 var(--display); letter-spacing: .02em; }
.dcard-sec { display: grid; gap: 16px; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
@media (max-width: 759px) { .dcard-sec { grid-template-columns: 1fr; } }
.dcard-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dcard-acts button { min-height: 36px; padding: 6px 12px; font-size: .86rem; display: inline-flex; align-items: center; gap: 6px; }
.dcard-acts .ico { width: 16px; height: 16px; }
.dc-promo { display: grid; gap: 10px; }
.dc-promo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dc-promo li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; font-size: .92rem; }
.dc-promo li .ico { width: 22px; height: 22px; color: var(--brand); }
.txns { list-style: none; margin: 8px 0 0; padding: 0; }
.txns li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.txns li:last-child { border-bottom: 0; }
.txns .ti { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.txns .ti.ok { background: var(--ok-soft); color: var(--ok); } .txns .ti.no { background: var(--danger-soft); color: var(--danger); }
.txns .tm { font-variant-numeric: tabular-nums; font-weight: 700; } .txns .tm.no { color: var(--muted); text-decoration: line-through; }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 4px; }
.shop-head b { font: 700 1.05rem/1.2 var(--display); }
.shop-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 10px; } .shop-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.sl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sl-row { padding: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; background: var(--card); }
.sl-row:last-child { border-bottom: 0; }
.sl-row.done { background: var(--bg); }
.sl-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sl-name { font-weight: 700; } .sl-meta { font-size: .82rem; color: var(--muted); }
.sl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-acts button { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.sl-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.sl-tag.ok { background: var(--ok-soft); color: var(--ok); } .sl-tag.rep { background: var(--warn-soft); color: var(--warn); } .sl-tag.no { background: var(--danger-soft); color: var(--danger); } .sl-tag.wait { background: var(--info-soft); color: var(--info); }
.sl-repl { display: grid; gap: 8px; grid-template-columns: 1fr 110px; } .sl-repl input { min-height: 40px; }
.stepper { display: inline-flex; align-items: center; gap: 8px; } .stepper button { width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; }
.stepper b { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.shop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.shop-foot .est { font-size: .86rem; color: var(--muted); } .shop-foot .est b { color: var(--ink); font-size: 1.05rem; }
.pay-unlock { display: grid; gap: 14px; justify-items: center; text-align: center; margin: 8px 0 14px; }
.pay-amt { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.pay-amt span { font: 800 1.6rem/1 var(--display); color: var(--muted); }
.pay-amt input { border: 0; background: transparent; font: 800 1.8rem/1 var(--display); padding: 10px 0; min-height: 0; font-variant-numeric: tabular-nums; }
.pay-amt input:focus { outline: none; box-shadow: none; }
.paid-ok { display: flex; gap: 12px; align-items: center; background: var(--ok-soft); color: var(--ok); border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.paid-ok .ico { width: 28px; height: 28px; flex: none; } .paid-ok b { font: 800 1.2rem/1.2 var(--display); display: block; }
.shop-tag { background: var(--brand-2); color: #FFF5E8; }
.shop-note { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-size: .9rem; color: var(--brand-2); }
.shop-note .ico { width: 22px; height: 22px; flex: none; color: var(--brand); }
.cl-lines { list-style: none; margin: 0; padding: 0; } .cl-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; align-items: center; } .cl-lines li:last-child { border-bottom: 0; }
.cl-lines .st { font-size: .76rem; font-weight: 700; }
.repl-card { border: 2px solid var(--warn); background: var(--warn-soft); border-radius: 16px; padding: 14px; margin: 10px 0; }
.repl-card .row { margin-top: 8px; }

/* ---------- opciones del menú: tamaños, extras e instrucciones ---------- */
.two .span2 { grid-column: 1 / -1; }
@media (max-width: 759px) { .two .span2 { grid-column: auto; } }
/* lo que eligió el cliente, debajo del producto */
.ln-opts { font-size: .84rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.ln-opts > span { display: block; } .ln-opts b { color: var(--text); font-weight: 600; }
.ln-note { display: flex; gap: 5px; align-items: flex-start; font-size: .84rem; line-height: 1.35; margin-top: 3px; color: var(--ink); background: var(--brand-soft); border-radius: 8px; padding: 3px 8px; width: fit-content; max-width: 100%; }
.ln-note .ico { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--brand); }
.lines td:first-child { padding-right: 10px; vertical-align: top; } .lines td:last-child { vertical-align: top; }
body.kiosk .ln-opts { font-size: 1rem; } body.kiosk .ln-note { font-size: 1rem; }
/* menú del cliente */
.item.tap { cursor: pointer; transition: background .15s; }
.item.tap:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.it-txt { min-width: 0; } .it-meta { margin-top: 2px; font-weight: 600; }
.it-custom { color: var(--muted); font-weight: 400; font-size: .85rem; }
.it-n { min-width: 26px; height: 26px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 700 .82rem/26px var(--display); text-align: center; padding: 0 7px; }
/* ficha del producto */
.item-sheet .sh-body { padding-bottom: 0; }
.it-desc { color: var(--muted); margin: 0 0 4px; line-height: 1.45; }
.it-base { font: 700 1.15rem/1.2 var(--display); color: var(--ink); margin-bottom: 6px; }
.opt-g { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.opt-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin: 0 0 4px; background: var(--bg); border-radius: 12px; }
.opt-gn { font: 700 1rem/1.25 var(--display); color: var(--ink); }
.opt-rule { flex: none; font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.opt-rule.req { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: var(--brand-soft); }
.opt-rule.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.opt-rule.done::before { content: '✓ '; }
.opt-c { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; font-weight: 400; }
.opt-c:last-child { border-bottom: 0; }
.opt-c input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-mark { width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; display: grid; place-items: center; transition: background .15s, border-color .15s; background: var(--card); }
.opt-c.one .opt-mark { border-radius: 50%; }
.opt-c input:checked + .opt-mark { background: var(--brand); border-color: var(--brand); }
.opt-c input:checked + .opt-mark::after { content: ''; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.opt-c.one input:checked + .opt-mark::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.opt-c input:focus-visible + .opt-mark { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.opt-n { line-height: 1.3; } .opt-p { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.opt-c.off, .opt-c.dim { opacity: .45; cursor: not-allowed; } .opt-c.off .opt-n { text-decoration: line-through; }
.opt-note-l { display: block; margin-top: 18px; font-weight: 600; }
.it-hint { margin: 4px 0 0; }
.it-foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; background: var(--card); padding: 12px 0 16px; margin-top: 12px; border-top: 1px solid var(--line); }
.it-add { flex: 1; min-height: 50px; font-size: 1rem; }
.it-add:disabled { background: var(--line); color: var(--muted); opacity: 1; }
/* tu pedido (pagar) */
.cart-lines { display: grid; }
.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cl-row:last-child { border-bottom: 0; }
.cl-main { display: block; text-align: left; background: transparent; color: var(--text); padding: 0; min-height: 0; font-weight: 400; border-radius: 8px; }
.cl-main:hover b { color: var(--brand); }
.cl-side { display: grid; justify-items: end; gap: 6px; }
.qty.sm button { width: 30px; height: 30px; min-height: 30px; font-size: .95rem; } .qty.sm button .ico { width: 15px; height: 15px; } .qty.sm b { min-width: 16px; font-size: .92rem; }
/* editor del comercio */
.opt-ed { border-top: 1px solid var(--line); padding-top: 12px; }
.opt-ed-h p { margin: 2px 0 8px; }
.opt-ed-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.opt-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: var(--card); box-shadow: var(--shadow); }
.opt-card-h { display: grid; grid-template-columns: 1fr 44px; gap: 6px; align-items: center; }
.opt-card-h .og-name { font-weight: 600; }
.opt-rule-ed { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.seg.sm button { min-height: 32px; font-size: .85rem; padding: 4px 12px; }
.og-max-l { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; } .og-max { width: 64px; min-height: 36px; padding: 4px 8px; }
.oc-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px auto 36px; gap: 6px; align-items: center; margin-bottom: 6px; }
.oc-row input { min-height: 40px; padding: 6px 10px; }
.oc-price { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: .88rem; } .oc-price input { min-width: 0; }
.oc-av { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.oc-av input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tg { width: 34px; height: 20px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.tg::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.oc-av input:checked + .tg { background: var(--ok); } .oc-av input:checked + .tg::after { transform: translateX(14px); }
.oc-av input:focus-visible + .tg { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.oc-row .sh-ib { width: 36px; height: 36px; min-height: 36px; } .oc-row .sh-ib .ico { width: 16px; height: 16px; }
.it-opts-sum { display: flex; gap: 5px; align-items: center; color: var(--muted); margin-top: 2px; } .it-opts-sum .ico { width: 14px; height: 14px; flex: none; }
@media (max-width: 560px) {
  .oc-row { grid-template-columns: 120px 1fr 36px; row-gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
  .oc-row .oc-name { grid-column: 1 / -1; }
  .oc-av { justify-self: start; }
}

/* ---------- llamadas enmascaradas ---------- */
.call-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.call-btn .ico { width: 18px; height: 18px; flex: none; }
.call-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.call-bar .call-btn { flex: 1 1 120px; }
.call-bar .call-btn.small { flex: 0 0 auto; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact-card h3 { margin: 0 0 2px; } .cc-who { min-width: 0; }
body.call-open { overflow: hidden; }
.callui { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; color: #FFF5E8;
  background: radial-gradient(120% 75% at 50% 0%, #6E1C47 0%, #400D29 48%, #1A0711 100%); animation: cuFade .18s ease-out; }
@keyframes cuFade { from { opacity: 0; } to { opacity: 1; } }
.cu-in { width: 100%; max-width: 440px; display: flex; flex-direction: column; padding: max(18px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom)); }
.cu-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: rgba(255,245,232,.78); }
.cu-lock { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,245,232,.1); border: 1px solid rgba(255,245,232,.2); padding: 5px 11px; border-radius: 99px; font-weight: 600; }
.cu-lock .ico { width: 14px; height: 14px; }
.cu-ord { font-variant-numeric: tabular-nums; }
.cu-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 20px 0; }
.cu-av { position: relative; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  font: 800 2.4rem/1 var(--display); color: #fff; background: linear-gradient(145deg, #F04446, #C42B48); box-shadow: 0 18px 50px rgba(240,68,70,.35); }
.cu-av.pulse::before, .cu-av.pulse::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,213,194,.5); animation: cuPulse 1.8s ease-out infinite; }
.cu-av.pulse::after { animation-delay: .9s; }
@keyframes cuPulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.cu-av .ico { width: 48px; height: 48px; } .cl-av .ico { width: 32px; height: 32px; }
.cu-name { font: 800 1.95rem/1.15 var(--display); letter-spacing: -.01em; color: #FFF5E8; max-width: 100%; overflow-wrap: anywhere; }
.cu-role { color: #FFD5C2; font-weight: 600; }
.cu-st { margin-top: 10px; font-size: 1.05rem; color: rgba(255,245,232,.85); min-height: 1.5em; font-variant-numeric: tabular-nums; }
.callui.on .cu-st { font: 600 1.45rem/1.2 var(--display); color: #fff; letter-spacing: .02em; }
.callui.done .cu-av { filter: saturate(.35); opacity: .85; }
.cu-note { text-align: center; font-size: .8rem; color: rgba(255,245,232,.62); margin: 0 auto 22px; max-width: 320px; line-height: 1.45; }
.cu-acts { display: flex; justify-content: space-evenly; align-items: flex-start; gap: 18px; }
.cu-b { display: grid; justify-items: center; gap: 8px; padding: 0; min-height: 0; border: 0; background: transparent; color: #FFF5E8; font-weight: 500; box-shadow: none; }
.cu-b:hover { background: transparent; }
.cu-i { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,245,232,.14); transition: transform .12s, background .15s; }
.cu-b:hover .cu-i { background: rgba(255,245,232,.22); }
.cu-b:active .cu-i { transform: scale(.93); }
.cu-b:focus-visible { outline: none; } .cu-b:focus-visible .cu-i { outline: 3px solid #FFD5C2; outline-offset: 3px; }
.cu-b .ico { width: 28px; height: 28px; }
.cu-b.red .cu-i, .cu-b.red:hover .cu-i { background: #E5383B; } .cu-b.green .cu-i, .cu-b.green:hover .cu-i { background: #1FA463; }
.cu-b.sel .cu-i, .cu-b.sel:hover .cu-i { background: #FFF5E8; color: #400D29; }
.cu-l { font-size: .82rem; color: rgba(255,245,232,.85); }
.callui.incoming .cu-b.green .cu-i { animation: cuNudge 1.3s ease-in-out infinite; }
@keyframes cuNudge { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .cu-av.pulse::before, .cu-av.pulse::after, .callui.incoming .cu-b.green .cu-i { animation: none; } }
/* número protegido para llamar desde el teléfono (con Twilio) */
.cl-sheet { display: grid; justify-items: center; text-align: center; gap: 12px; padding-top: 4px; }
.cl-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 800 1.5rem/1 var(--display); }
.cl-to b { display: block; font: 700 1.2rem/1.2 var(--display); color: var(--ink); } .cl-to span { color: var(--muted); font-size: .9rem; }
.cl-num { display: grid; gap: 2px; width: 100%; padding: 12px 18px; background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; }
.cl-num b { font: 800 1.65rem/1.2 var(--display); color: var(--ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cl-go { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.cl-go .ico { width: 20px; height: 20px; }
.cl-facts { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; width: 100%; text-align: left; }
.cl-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; align-items: start; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.cl-facts .ico { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.cl-code { grid-column: 2; font: 800 1.35rem/1.1 var(--display); letter-spacing: .28em; color: var(--ink); }
@media (max-width: 520px) { .contact-card .call-btn { width: 100%; } }

/* ---------- buscar, fotos, favoritos y pedir de nuevo ---------- */
.search-box { position: relative; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 8px 0 14px; margin: 4px 0 16px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.search-box .sb-i .ico { width: 20px; height: 20px; color: var(--muted); }
.search-box input { border: 0; background: transparent; min-height: 52px; padding: 0; outline: none; box-shadow: none; font-size: 1rem; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box.sm { margin: 0 0 12px; box-shadow: none; } .search-box.sm input { min-height: 44px; }
.q-clear { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.q-clear .ico { width: 16px; height: 16px; }
.sr-h { font: 700 .82rem/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 2px 8px; }
.sr-list { padding: 4px 14px; }
.sr-store, .sr-item { display: grid; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sr-store:last-child, .sr-item:last-child { border-bottom: 0; }
.sr-store { grid-template-columns: 56px minmax(0, 1fr) auto; }
.sr-item { grid-template-columns: minmax(0, 1fr) auto; }
.sr-store.closed, .sr-item.closed { opacity: .65; }
.sr-thumb { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--peach)); color: var(--brand); }
.sr-thumb .ico { width: 26px; height: 26px; }
.sr-txt { display: grid; gap: 2px; min-width: 0; } .sr-txt b { font-family: var(--display); font-weight: 700; color: var(--ink); }
.sr-desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sr-photo { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--bg); }
.sr-photo img, .sr-thumb img, .mini-img img, .ban img, .store-hero img, .it-hero img, .it-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 16px; color: var(--muted); }
.sr-empty .ico { width: 34px; height: 34px; color: var(--brand); } .sr-empty b { color: var(--ink); font-family: var(--display); font-size: 1.1rem; }
.sr-recent .chip { display: inline-flex; align-items: center; gap: 6px; } .sr-recent .chip .ico { width: 14px; height: 14px; color: var(--muted); }
/* filas del inicio */
.home-row { margin-top: 24px; } .home-row h2 { margin: 0 0 10px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .hscroll { grid-auto-columns: 280px; } }
.mini { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); cursor: pointer; }
.mini.closed { opacity: .7; }
.mini-img { position: relative; height: 110px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--peach)); color: var(--brand); }
.mini-img .ico { width: 36px; height: 36px; stroke-width: 1.6; }
.mini-txt { display: grid; gap: 2px; min-width: 0; padding: 0 2px; }
.mini-txt b { font-family: var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-txt .item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.again-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .again-btn .ico { width: 16px; height: 16px; }
/* corazón de favoritos */
.fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 8px rgba(26,7,17,.18); border: 0; }
.fav .ico { width: 19px; height: 19px; transition: transform .15s; }
.fav.on { color: var(--brand); } .fav.on .ico { fill: currentColor; } .fav:active .ico { transform: scale(.85); }
.fav.sm { width: 32px; height: 32px; min-height: 32px; } .fav.sm .ico { width: 16px; height: 16px; }
.sr-store .fav { position: static; box-shadow: none; background: var(--bg); }
.fav.lg { position: static; width: 44px; height: 44px; min-height: 44px; background: var(--card); border: 1px solid var(--line); box-shadow: none; flex: none; } .fav.lg .ico { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .fav { background: rgba(38,9,26,.92); } }
/* tarjeta del comercio con portada */
.storecard .ban { position: relative; overflow: hidden; }
.storecard .ban.has-img { height: 120px; background: var(--bg); }
.storecard .ban img { position: absolute; inset: 0; }
/* página del comercio */
.store-hero { height: 150px; border-radius: 18px; overflow: hidden; margin: 6px 0 12px; background: var(--bg); box-shadow: var(--shadow); }
@media (min-width: 760px) { .store-hero { height: 220px; } }
.store-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .store-title h1 { margin: 0; }
.menu-sec { margin: 12px 0 2px; }
.menu-sec:first-child { margin-top: 2px; }
.it-desc-1 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.has-photo { align-items: stretch; }
.it-photo { position: relative; flex: none; width: 104px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--bg); }
.it-photo .qty { position: absolute; right: 6px; bottom: 6px; background: var(--card); border-radius: 99px; padding: 2px; box-shadow: 0 2px 8px rgba(26,7,17,.2); gap: 4px; }
.it-photo .qty button { width: 32px; height: 32px; min-height: 32px; }
.it-photo .qty b { min-width: 14px; font-size: .9rem; }
.it-photo .it-n { min-width: 24px; height: 24px; line-height: 24px; font-size: .78rem; margin-left: 2px; }
.it-hero { margin: -14px -16px 12px; height: 220px; overflow: hidden; background: var(--bg); }
@media (min-width: 760px) { .it-hero { height: 260px; } }
/* editor del comercio: foto del producto y portada */
.ph-field { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.ph-box { position: relative; width: 120px; height: 90px; border-radius: 12px; overflow: hidden; border: 1.5px dashed var(--line); background: var(--bg); display: grid; place-items: center; color: var(--muted); cursor: pointer; padding: 0; min-height: 0; }
.ph-box:hover { border-color: var(--brand); color: var(--brand); }
.ph-box.has { border-style: solid; }
.ph-box img { width: 100%; height: 100%; object-fit: cover; }
.ph-box .ico { width: 26px; height: 26px; }
.ph-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cover-box { position: relative; aspect-ratio: 12 / 5; max-width: 560px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--brand-soft), var(--peach)); display: grid; place-items: center; color: var(--brand); margin: 8px 0 10px; }
.cover-box img { width: 100%; height: 100%; object-fit: cover; } .cover-box .ico { width: 40px; height: 40px; stroke-width: 1.6; }
.prod-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: var(--bg); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-row { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }

/* ---------- pedidos agrupados ---------- */
.route-card { padding: 14px; border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.rt-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.rt-ico, .sb-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.rt-ico .ico, .sb-ico .ico { width: 22px; height: 22px; }
.rt-title { display: grid; min-width: 0; } .rt-title b { font: 700 1.1rem/1.2 var(--display); color: var(--ink); }
.rt-earn { display: grid; justify-items: end; } .rt-earn b { font: 800 1.25rem/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.rt-stops { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.rt-stops li { position: relative; }
.rt-stops li:not(:last-child)::after { content: ''; position: absolute; left: 25px; top: 44px; bottom: -6px; width: 2px; background: var(--line); }
.rt-stop { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; background: transparent; color: var(--text); padding: 9px 10px; min-height: 56px; border-radius: 12px; font-weight: 400; }
.rt-stop:hover { background: var(--bg); } .rt-stop.sel { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.rt-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem/1 var(--display); background: var(--card); border: 2px solid var(--line); color: var(--muted); }
.rt-stop.now .rt-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.rt-stop.done .rt-dot { background: var(--ok); border-color: var(--ok); color: #fff; } .rt-dot .ico { width: 16px; height: 16px; }
.rt-stop.done .rt-txt b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.rt-txt { display: grid; gap: 1px; min-width: 0; } .rt-txt b { font-family: var(--display); font-weight: 700; color: var(--ink); }
.rt-txt .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-now { font-size: .72rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: 3px 9px; }
.route-note, .stack-note { display: flex; gap: 8px; align-items: flex-start; } .route-note .ico, .stack-note .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand); }
.stack-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 12px 0 4px; padding: 12px; border-radius: 14px; background: var(--brand-soft); }
.stack-banner b { display: block; font-family: var(--display); color: var(--ink); } .stack-banner .small { color: var(--text); }
.stack-banner .sb-ico { background: var(--card); }
.stack-total { margin: -2px 0 8px; }
.stack-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .84rem; color: var(--ink); background: var(--brand-soft); border-radius: 99px; padding: 4px 10px; }
.stack-tag .ico { width: 15px; height: 15px; color: var(--brand); }

/* ---------- mudanzas: tamaño, vehículo, ayudantes y el contador de tiempo ---------- */
.mv-h { margin-top: 18px; }
.mv-sizes { display: grid; gap: 8px; }
.mv-size { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; background: var(--card); color: var(--text); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 400; min-height: 60px; }
.mv-size:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.mv-size.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.mv-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.mv-ico .ico { width: 22px; height: 22px; }
.mv-size.on .mv-ico, .mv-veh.on .mv-ico { background: var(--brand); color: #fff; }
.mv-txt { display: grid; min-width: 0; } .mv-txt b { font: 700 1rem/1.2 var(--display); color: var(--ink); } .mv-txt small { color: var(--muted); }
.mv-time { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mv-time .ico { width: 13px; height: 13px; }
@media (max-width: 520px) { .mv-size { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; } .mv-time { grid-column: 2; } .mv-size .mv-ico { grid-row: 1 / 3; } }
.mv-vehs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mv-veh { position: relative; display: grid; justify-items: start; align-content: start; gap: 4px; text-align: left; background: var(--card); color: var(--text); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 10px 10px; font-weight: 400; min-height: 170px; }
.mv-veh b { font: 700 .98rem/1.2 var(--display); color: var(--ink); } .mv-veh small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.mv-veh.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.mv-veh:disabled { opacity: .5; cursor: not-allowed; }
.mv-veh .mv-ico { margin-bottom: 4px; }
.mv-rate { display: flex; align-items: baseline; gap: 1px; margin-top: auto; padding-top: 4px; } .mv-rate b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mv-cap { font-size: .74rem !important; }
.mv-tag { position: absolute; top: -9px; right: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .01em; color: #fff; background: var(--brand); border-radius: 99px; padding: 2px 8px; }
.mv-tag.off { background: var(--muted); }
.mv-row > div:first-child { min-width: 0; } .mv-row b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.mv-row b .ico { width: 18px; height: 18px; color: var(--brand); }
.mv-row:last-child { border-bottom: 0; }
.mv-note { display: flex; gap: 8px; align-items: flex-start; } .mv-note .ico { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--brand); }
.mv-note.ok { color: var(--ok); }
@media (max-width: 420px) { .mv-vehs { grid-template-columns: 1fr; } .mv-veh { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; min-height: 0; align-items: center; column-gap: 12px; }
  .mv-veh .mv-ico { grid-row: 1 / 3; margin: 0; } .mv-veh > b { grid-column: 2; } .mv-veh > small:not(.mv-cap) { grid-column: 2; }
  .mv-veh .mv-rate { grid-column: 3; grid-row: 1; margin: 0; padding: 0; justify-self: end; } .mv-veh .mv-cap { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; } }

.wmeter { border-radius: 18px; padding: 16px; margin: 12px 0; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wmeter.on { background: #400D29; border-color: #400D29; color: #FFF5E8; }
.mt-head { display: flex; align-items: center; gap: 8px; } .mt-head > .ico { width: 20px; height: 20px; color: var(--brand); }
.wmeter.on .mt-head > .ico { color: #FFD5C2; }
.mt-head b { font-family: var(--display); font-size: 1rem; color: inherit; flex: 1; }
.wmeter.wait .mt-head b { color: var(--ink); }
.mt-state { font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 3px 10px; }
.mt-state.live { display: inline-flex; align-items: center; gap: 6px; color: #400D29; background: #FFD5C2; }
.mt-state.live i { width: 7px; height: 7px; border-radius: 50%; background: #F04446; animation: mtPulse 1.4s ease-in-out infinite; }
@keyframes mtPulse { 50% { opacity: .35; } }
.mt-clock { font: 800 2.6rem/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 14px 0 6px; }
.mt-now { font-size: .95rem; color: #FFD5C2; } .mt-now b { font: 800 1.35rem/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; margin-left: 2px; }
.mt-earn { white-space: nowrap; } .mt-earn b { font-size: 1.05rem; }
.mt-bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 245, 232, .16); margin: 14px 0 4px; }
.mt-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #F04446; transition: width .6s ease; }
.mt-bar em { position: absolute; top: -4px; width: 2px; height: 16px; background: #FFF5E8; border-radius: 2px; transform: translateX(-1px); }
.mt-cap { color: #FFD5C2; margin: 6px 0 0; font-weight: 600; }
.mt-foot { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wmeter.on .mt-foot { border-top-color: rgba(255, 245, 232, .16); }
.mt-foot span { display: grid; } .mt-foot small { font-size: .74rem; color: var(--muted); } .wmeter.on .mt-foot small { color: #E9C9BC; }
.mt-foot b { font: 700 1.02rem/1.2 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); } .wmeter.on .mt-foot b { color: #fff; }
.mt-hint { margin: 8px 0 0; color: var(--muted); } .wmeter.on .mt-hint { color: #E9C9BC; }
.mt-crew { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .mt-crew .chip { display: inline-flex; align-items: center; gap: 6px; cursor: default; min-height: 32px; }
.mt-crew .chip .ico { width: 16px; height: 16px; color: var(--brand); }
.mv-offer { margin: -4px 0 8px; }
.mv-done { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 8px; text-align: center; }
.mv-done > div { background: var(--bg); border-radius: 12px; padding: 10px 6px; display: grid; gap: 2px; }
.mv-done small { font-size: .74rem; color: var(--muted); } .mv-done b { font: 800 1.1rem/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.mv-cash { text-align: center; font-size: 1.05rem; }
@media (prefers-color-scheme: dark) { .wmeter.on { background: #2E0A1D; border-color: #5A1A3B; } }
.mv-admin { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg); overflow-x: auto; }
.mv-admin h4 { margin: 0 0 6px; font-family: var(--display); color: var(--ink); }
.mv-tbl td { padding: 4px; vertical-align: middle; } .mv-tbl input { width: 100%; min-width: 74px; margin: 0; }
.mv-tbl td:first-child input { min-width: 130px; }

/* ---------- pagos con tarjeta (Stripe) ---------- */
.pay-sheet { display: grid; gap: 12px; }
.pay-amt { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.pay-amt b { font: 800 1.35rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-el { min-height: 120px; }
.pay-secure { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 0; } .pay-secure .ico { width: 14px; height: 14px; }
.pay-due { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.sh-ico.warn { background: var(--warn-soft); color: var(--warn); } .sh-ico.ok { background: var(--ok-soft); color: var(--ok); }
.cards-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.cards-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.cl-brand { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); } .cl-brand .ico { width: 20px; height: 20px; }
.cl-txt { display: grid; min-width: 0; } .cl-txt b { color: var(--ink); } .cl-txt small { color: var(--muted); }
.wallet-bank .bank-card { margin-top: 12px; }

/* ---------- notificaciones y buscador de direcciones ---------- */
.pushbar { background: var(--ink); color: #FFF5E8; }
.pushbar .in { max-width: 980px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.pushbar .in > span { flex: 1; } .pushbar .ico { width: 18px; height: 18px; flex: none; color: #FFD5C2; }
.pushbar button.small { min-height: 34px; } .pushbar .ghost { color: #FFF5E8; }
@media (prefers-color-scheme: dark) { .pushbar { background: #3A1027; } }
.addr-sug { display: grid; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.addr-sug:empty { display: none; }
.addr-sug button { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; background: transparent; color: var(--text); font-weight: 400; padding: 10px 12px; border-radius: 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.addr-sug button:last-child { border-bottom: 0; } .addr-sug button:hover { background: var(--bg); }
.addr-sug .ico { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }

/* ---------- para recoger, programados, en grupo, favoritos, alcohol y grabación ---------- */
.pick-box { margin-top: 12px; }
.pick-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.pick-row > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); box-sizing: border-box; }
.pick-row b { font-family: var(--display); color: var(--ink); }
.pick-card { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.sched-note, .return-note { display: flex; gap: 8px; align-items: flex-start; } .sched-note .ico, .return-note .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand); }
.return-note { align-items: center; } .return-note > span { flex: 1; }
.store-actions { display: flex; gap: 8px; margin: 2px 0 10px; } .store-actions .ico { width: 16px; height: 16px; }
.groupbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #FFF5E8; font-weight: 400; }
.groupbar > .ico { width: 22px; height: 22px; color: #FFD5C2; } .groupbar b { display: block; font-family: var(--display); color: #fff; } .groupbar small { color: #E9C9BC; }
.gb-go { font-weight: 700; color: #FFD5C2; }
.grp-sheet { display: grid; gap: 12px; }
.grp-link { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); }
.grp-link > span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .86rem; color: var(--ink); }
.grp-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.grp-members li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.gm-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 700 1rem var(--display); text-transform: uppercase; }
.gm-txt { display: grid; min-width: 0; } .gm-txt b { color: var(--ink); } .gm-txt small { color: var(--muted); }
.gm-ok { color: var(--ok); } .gm-ok .ico { width: 18px; height: 18px; }
.ride-desc { color: var(--brand); font-weight: 500; }
.fav-card .row { gap: 8px; flex-wrap: wrap; } .fav-card .ico { width: 16px; height: 16px; }
.drv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.drv-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.drv-list li > span:nth-child(2) { display: grid; } .drv-list small { color: var(--muted); }
.drv-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); } .drv-ico.block { background: var(--bg); color: var(--muted); } .drv-ico .ico { width: 18px; height: 18px; }
.ver-badge { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.ord-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .ord-tags:empty { display: none; }
.otag { display: inline-flex; gap: 5px; align-items: center; font-size: .8rem; font-weight: 600; border-radius: 99px; padding: 3px 10px; background: var(--bg); color: var(--ink); }
.otag .ico { width: 14px; height: 14px; } .otag.pick { background: var(--brand-soft); color: var(--brand-2); } .otag.sched { background: var(--info-soft); } .otag.alc { background: var(--warn-soft); color: var(--warn); }
.pick-hand { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--brand-soft); }
.alc-note { display: flex; gap: 10px; align-items: flex-start; } .alc-note > .ico { width: 22px; height: 22px; flex: none; }
.alc-chk { margin: 10px 0 6px; font-weight: 600; color: var(--ink); }
.rec-box { margin-top: 10px; }
.rec-start .ico { width: 18px; height: 18px; } .rec-hint { margin: 6px 0 0; }
.rec-on { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); }
.rec-on b { flex: 1; } .rec-t { font-variant-numeric: tabular-nums; font-weight: 700; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: mtPulse 1.2s ease-in-out infinite; }
.rec-done { padding: 12px; border-radius: 14px; background: var(--bg); } .rec-done .row { gap: 8px; } .rec-done .ico { width: 16px; height: 16px; }
.grp-lines { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.grp-lines-h { display: flex; gap: 6px; align-items: center; } .grp-lines-h .ico { width: 15px; height: 15px; }
.grp-line { position: relative; padding-right: 70px; } .grp-line b { color: var(--ink); } .grp-line .gm-ok .ico { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.grp-line-t { position: absolute; right: 0; top: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
[data-prem], [data-bg] { white-space: nowrap; }

/* ---------- bonos y retos, zonas con demanda y asistente (choferes) ---------- */
.growth-card { padding: 6px 8px; } .growth-card .sh-list { gap: 0; }
.gr-row .sh-txt > span { display: block; }
.sh-ico.gift { background: #F3E6EE; color: var(--brand-2); }
.sh-ico.flame { background: var(--warn-soft); color: var(--warn); } .sh-ico.flame.alta { background: var(--brand-soft); color: var(--brand); }
.sh-ico.brand { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .sh-ico.gift { background: #3A1027; color: #FFD5C2; } }
.qbar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.qbar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #FF7A5C); transition: width .4s; }
.quest { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: var(--card); }
.quest.paid { background: var(--ok-soft); border-color: transparent; } .quest.paid .qbar span { background: var(--ok); }
.quest-rw { font: 800 1.05rem var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }
.ok-t { color: var(--ok); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; } .ok-t .ico { width: 15px; height: 15px; }
.zone-map { height: 230px; border-radius: 14px; margin-bottom: 12px; }
.zone-mk { border-radius: 50%; display: grid; place-items: center; font: 800 .82rem var(--display); color: #fff; background: rgba(240, 68, 70, .55); border: 2px solid rgba(240, 68, 70, .95); box-shadow: 0 0 0 6px rgba(240, 68, 70, .18); }
.zone-mk.media { background: rgba(166, 90, 0, .45); border-color: rgba(166, 90, 0, .9); box-shadow: 0 0 0 6px rgba(166, 90, 0, .15); }
.ask-chips .chip { white-space: normal; text-align: left; }
.ask-log { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.ask-log:empty { display: none; }
.bub { max-width: 86%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: var(--brand-soft); color: var(--text); font-size: .93rem; line-height: 1.45; }
.bub.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--brand-2); color: #FFF5E8; }
.bub .link { display: block; margin-top: 6px; padding: 0; min-height: 0; background: none; border: 0; color: var(--brand); font-weight: 700; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; animation: dot 1s infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-2px); } }
.ask-form { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--card); padding: 8px 0 4px; z-index: 1; box-shadow: 0 22px 0 var(--card), 0 -10px 12px -8px var(--card); }
.ask-form input { flex: 1; }
.ask-form button { width: 48px; padding: 0; display: grid; place-items: center; } .ask-form .ico { width: 20px; height: 20px; }

/* ---------- comercios: importar menú, anuncios y tarjeta de sellos ---------- */
.imp-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.imp-sum > div { flex: 1 1 90px; background: var(--bg); border-radius: 12px; padding: 10px 12px; display: grid; }
.imp-sum b { font: 800 1.3rem var(--display); color: var(--ink); } .imp-sum span { font-size: .8rem; color: var(--muted); }
.imp-sum .warn b { color: var(--warn); } .imp-sum .err b { color: var(--danger); }
#ads-card h3, #stamps-card h3 { display: inline-flex; align-items: center; gap: 8px; } #ads-card h3 .ico, #stamps-card h3 .ico { width: 20px; height: 20px; color: var(--brand); }
.small-kpis .kpi .v { font-size: 1.3rem; }
.stamp-dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.stamp-dots span { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); }
.stamp-dots span.on { border: 0; background: var(--brand); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.stamp-dots span .ico { width: 17px; height: 17px; }
.stamp-dots span:last-child { border-color: var(--brand); color: var(--brand); }

/* ---------- clientes: patrocinado, sellos y pedir con IA ---------- */
.tag.spon { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.stamp-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #400D29, #6B1A3F); color: #FFF5E8; margin: 10px 0 4px; }
.stamp-card .stamp-dots { margin: 6px 0 0; gap: 6px; } .stamp-card .stamp-dots span { width: 24px; height: 24px; border-color: rgba(255,245,232,.4); color: #FFD5C2; } .stamp-card .stamp-dots span.on { background: #F04446; }
.stamp-card .stamp-dots span:last-child { border-color: #FFD5C2; } .stamp-card .stamp-dots span .ico { width: 13px; height: 13px; }
.stamp-card b { color: #fff; } .stamp-card .small { color: #FFD5C2; } .stamp-card.ready { background: linear-gradient(135deg, #F04446, #FF7A5C); }
.ai-btn { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; font: inherit; box-shadow: var(--shadow); }
.ai-btn .ai-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #F04446, #400D29); color: #fff; flex: none; } .ai-btn .ai-ico .ico { width: 21px; height: 21px; }
.ai-btn b { display: block; color: var(--ink); } .ai-btn span.small { color: var(--muted); } .ai-btn .sh-chev { margin-left: auto; color: var(--muted); }
.ai-prop { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--card); margin-top: 4px; align-self: stretch; }
.ai-prop h4 { margin: 0 0 2px; font: 700 1rem var(--display); color: var(--ink); }
.ai-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; } .ai-line:last-of-type { border-bottom: 0; }
.ai-line .opt { color: var(--brand); font-size: .8rem; display: block; }
.ai-tot { display: flex; justify-content: space-between; font-weight: 700; margin: 8px 0 10px; }
.ai-ex { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; } .ai-ex .chip { white-space: normal; text-align: left; font-size: .82rem; }
.plus-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.plus-list li { display: flex; gap: 8px; align-items: flex-start; } .plus-list .ico { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }

/* ---------- Dashwi Carga (empresas y transportistas) ---------- */
.fr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; } .fr-filters select { width: auto; flex: 1 1 170px; min-height: 42px; }
@media (max-width: 560px) { .fr-filters select { flex: 1 1 calc(50% - 4px); font-size: .86rem; padding-left: 10px; } .fr-filters select:first-child { flex-basis: 100%; } }
.fr-card { display: grid; gap: 10px; } .fr-card.tap { cursor: pointer; } .fr-card.tap:hover { box-shadow: 0 2px 4px rgba(64,13,41,.06), 0 10px 26px rgba(64,13,41,.1); }
.fr-card-h { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; } .fr-card-h > div:first-child { flex: 1; min-width: 0; }
.fr-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.fr-pt { display: flex; gap: 8px; align-items: flex-start; min-width: 0; } .fr-pt > div { display: grid; min-width: 0; } .fr-pt b { color: var(--ink); font-family: var(--display); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex: none; } .fr-dot.a { background: var(--brand-2); } .fr-dot.b { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fr-mid { position: relative; text-align: center; min-width: 74px; } .fr-mid::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line); }
.fr-mid span { position: relative; background: var(--card); padding: 0 8px; font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.fr-pay { text-align: right; display: grid; flex: none; } .fr-pay b { font: 800 1.35rem var(--display); color: var(--ink); font-variant-numeric: tabular-nums; } .fr-pay span { font-size: .82rem; color: var(--muted); }
.fr-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .86rem; color: var(--muted); align-items: center; }
.fr-tag { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; font-size: .78rem; color: var(--text); } .fr-tag.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); font-weight: 700; }
.fr-acts { padding-top: 8px; border-top: 1px solid var(--line); }
.fr-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; } .fr-sum > div { background: var(--bg); border-radius: 12px; padding: 10px; display: grid; } .fr-sum span { font-size: .78rem; color: var(--muted); } .fr-sum b { font: 700 1.05rem var(--display); color: var(--ink); }
.fr-units { display: grid; gap: 8px; margin: 6px 0 10px; }
.fr-unit { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; } .fr-unit:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.fr-unit > span { display: grid; } .fr-unit input { width: auto; min-height: 0; }
.fr-stops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .fr-stops > div { display: grid; gap: 2px; background: var(--bg); border-radius: 12px; padding: 10px 12px; } .fr-stops b { color: var(--ink); font-size: .93rem; }
@media (max-width: 560px) { .fr-stops { grid-template-columns: 1fr; } .fr-card-h { flex-direction: column; } .fr-pay { text-align: left; } }
.fr-tl { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.fr-tl li { display: grid; gap: 6px; font-size: .78rem; } .fr-tl li > span { height: 5px; border-radius: 99px; background: var(--line); }
.fr-tl li.done > span { background: var(--brand-2); } .fr-tl li.now > span { background: var(--brand); } .fr-tl li b { font-weight: 600; color: var(--muted); line-height: 1.2; } .fr-tl li.done b, .fr-tl li.now b { color: var(--ink); }
.fr-tl li div { display: grid; }
@media (max-width: 560px) { .fr-tl { grid-template-columns: 1fr; gap: 8px; } .fr-tl li { grid-template-columns: 5px 1fr; gap: 10px; } .fr-tl li > span { height: auto; min-height: 30px; width: 5px; } }
.fr-step { display: grid; gap: 8px; } .fr-step .btn, .fr-step button { min-height: 52px; font-size: 1rem; } .fr-photo { cursor: pointer; }
.fr-pay-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .fr-pay-row b { font: 800 1.2rem var(--display); color: var(--ink); }
.fr-extras { display: grid; gap: 4px; font-size: .88rem; } .fr-extras > div { display: flex; justify-content: space-between; gap: 10px; }
.fr-links { display: flex; flex-wrap: wrap; gap: 6px; } .fr-links .ico { width: 16px; height: 16px; }
.fr-docimg { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.fr-form .two { gap: 10px 12px; } .fr-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; } .fr-opts .chk { margin: 0; }
.fr-fs { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; margin: 12px 0; } .fr-fs legend { font: 700 1rem var(--display); color: var(--ink); padding: 0 6px; }
.fr-fs .map { height: 170px; }
.fr-quote { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 12px 0; background: var(--card); }
.fr-ql { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; align-items: center; } .fr-ql:last-of-type { border-bottom: 0; }
.fr-ql.tot { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 4px; font-size: 1rem; color: var(--ink); }
.fr-carrier { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; } .fr-carrier > div { display: grid; gap: 2px; background: var(--bg); border-radius: 12px; padding: 10px 12px; } .fr-carrier b { color: var(--ink); }
.fr-carrier .ico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; color: var(--ok); }
@media (max-width: 560px) { .fr-carrier { grid-template-columns: 1fr; } }
.fr-map { height: 200px; border-radius: 14px; margin: 10px 0; }
.danger-t { color: var(--danger); margin-top: 10px; }
.empty-big { text-align: center; padding: 34px 18px; display: grid; justify-items: center; gap: 6px; } .empty-big .ico { width: 44px; height: 44px; color: var(--brand); } .empty-big p { max-width: 460px; }

/* En pantallas angostas y en las hojas: origen arriba, destino abajo */
@media (max-width: 560px) { .fr-route { grid-template-columns: 1fr; gap: 0; } }
.hsheet .fr-route { grid-template-columns: 1fr; gap: 0; }
@media (max-width: 560px) { .fr-mid { text-align: left; min-width: 0; padding: 4px 0 4px 22px; } .fr-mid::before { left: 5px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--line); } .fr-mid span { background: transparent; padding: 0; } .fr-pt b { white-space: normal; } }
.hsheet .fr-mid { text-align: left; min-width: 0; padding: 4px 0 4px 22px; } .hsheet .fr-mid::before { left: 5px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--line); } .hsheet .fr-mid span { background: transparent; padding: 0; } .hsheet .fr-pt b { white-space: normal; }
.fr-pt > div { grid-template-columns: auto; } .fr-pt .small { line-height: 1.3; }
