/* Goodbike - Tienda · mismo lenguaje visual que el tablero Good Bike 360 (12-nov-2026):
   pantalla negra con bisel plateado, logo plateado, tarjetas grises con borde cromado, títulos en serif,
   etiquetas en mayúsculas plateadas y pestañas/botones como las pestañas activas del 360. Un solo tema oscuro. */
[hidden] { display: none !important; }
:root {
  --bg: #050505; --screen: #1c1c1c; --panel: linear-gradient(180deg, #3a3a3a 0%, #2b2b2b 100%); --panel2: #262626;
  --fg: #ffffff; --muted: #c9c8c2; --silver-text: #e6e5e0; --line: #3a3a37; --chip-line: #5f5e5a;
  --silver: linear-gradient(135deg, #ffffff 0%, #d6d6d3 8%, #8a8a85 22%, #4a4a46 36%, #f7f7f5 50%, #9a9a95 62%, #5a5a56 76%, #e2e2df 90%, #ffffff 100%);
  --silver-h: linear-gradient(90deg, transparent, #8e8e89 15%, #f2f2ef 50%, #8e8e89 85%, transparent);
  --chrome: linear-gradient(180deg, #ffffff, #c4c4c0 55%, #9a9a95);
  --amber: #ffb340; --ok: #8fd18a; --bad: #f08a72;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--fg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marco { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
.gb { max-width: 1480px; margin: 0 auto; border: 12px solid transparent; border-radius: 24px;
  background: linear-gradient(var(--screen), var(--screen)) padding-box, var(--silver) border-box;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.9), inset 0 0 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.25), 0 0 26px rgba(240,240,235,.22), 0 22px 50px rgba(0,0,0,.8);
  padding: 20px clamp(14px, 3vw, 34px) 28px; display: flex; flex-direction: column; gap: 18px; min-height: calc(100vh - 50px); }

/* Encabezado: logo plateado como el 360 */
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.marca { text-decoration: none; display: grid; justify-items: start; gap: 4px; }
.logo { display: block; width: min(18rem, 70vw); aspect-ratio: 420 / 99;
  background: linear-gradient(180deg, #ffffff 0%, #dcdcd8 40%, #8e8d88 58%, #e9e9e6 100%);
  -webkit-mask: url("logo.png") center / contain no-repeat; mask: url("logo.png") center / contain no-repeat; }
.slogan { font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: .08em; color: var(--silver-text); padding-left: 4px; }
.regla { height: 2px; background: var(--silver-h); }
.acciones-cab { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Pestañas como en el 360: chip plateado la activa */
.pestanas { display: flex; flex-wrap: wrap; gap: 8px; }
.pestana { font-size: .95rem; letter-spacing: .02em; border-radius: 999px; padding: 8px 18px; text-decoration: none;
  border: 1px solid var(--chip-line); color: var(--silver-text); background: transparent; transition: border-color .2s, box-shadow .2s; }
.pestana:hover { border-color: #e6e6e3; box-shadow: 0 0 12px rgba(255,255,255,.18); }
.pestana.activa { background: var(--chrome); color: #0a0a0a; border-color: #ffffff; font-weight: 700; }
.pestana.pronto { color: #8e8d88; border-style: dashed; }

/* Botones */
.btn, button { font: inherit; font-size: .92rem; letter-spacing: .02em; color: var(--silver-text); background: transparent;
  border: 1px solid var(--chip-line); border-radius: 999px; padding: 7px 16px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; transition: border-color .2s, box-shadow .2s; }
.btn:hover, button:hover { border-color: #e6e6e3; box-shadow: 0 0 12px rgba(255,255,255,.18); }
.btn.primario { background: var(--chrome); color: #0a0a0a; border-color: #ffffff; font-weight: 700; padding: 9px 22px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 14px rgba(255,255,255,.22); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
button:disabled { opacity: .5; cursor: wait; }
.btn-tenue { color: var(--muted); }
.sesion { cursor: default; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #0a0a0a; background: var(--chrome); }
.insignia { background: var(--amber); color: #1a1206; border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 700; min-width: 20px; text-align: center; }
.btn.hay-nuevos { border-color: var(--amber); box-shadow: 0 0 12px rgba(255,179,64,.35); }

/* Títulos de sección */
.titulo-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
h2 { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--silver-text); margin: 0; display: flex; align-items: center; gap: 10px; }
.titulo-sec h2 { flex: 1; }
.titulo-sec h2::after { content: ""; flex: 1; height: 2px; background: var(--silver-h); }
.tenue { color: var(--muted); }
.nota { font-size: .82rem; margin: 4px 0; }
.error { color: var(--bad); margin: 6px 0 0; font-size: .9rem; }

/* Cuadros de números (venta y caja del día) */
.hoy { display: grid; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile, .panel, .producto, .tarjeta { border: 3px solid transparent; border-radius: 16px;
  background: var(--panel) padding-box, var(--silver) border-box;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.85), inset 0 2px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.12), 0 0 14px rgba(230,230,225,.12), 0 14px 34px rgba(0,0,0,.6); }
.tile { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-l { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--silver-text); }
.tile-n { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: #ffffff; font-variant-numeric: tabular-nums; }
.tile.principal .tile-n { font-size: 2.3rem; }
.tile-u { font-size: .78rem; color: var(--muted); }

/* Buscador */
.buscador { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buscador input[type="search"], .buscador input:not([type]), .buscador input[name="q"] { flex: 1 1 320px; min-width: 0; font: inherit; font-size: 1.1rem; color: #ffffff;
  background: #121212; border: 2px solid #8a8a85; border-radius: 999px; padding: 12px 20px; }
.buscador input[name="q"]:focus { outline: none; border-color: #ffffff; box-shadow: 0 0 14px rgba(255,255,255,.2); }
.chk { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .9rem; }

/* Paneles de Inicio */
.rejilla { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.6fr); gap: 18px; align-items: start; }
.panel { padding: 16px 18px; min-width: 0; }
.panel h2 { margin-bottom: 8px; }
.panel h3 { font-weight: 600; font-size: .75rem; letter-spacing: .08em; color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; }
.cuenta { border: 1px solid var(--chip-line); border-radius: 999px; padding: 0 8px; margin-left: 4px; color: #ffffff; }
.tarjetas { display: flex; flex-direction: column; gap: 10px; }
.tarjeta { padding: 10px 14px; border-width: 2px; }
.tarjeta p { margin: 4px 0 0; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tarjeta .etiqueta { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.tarjeta.duda .etiqueta { color: var(--amber); }
.tarjeta.correccion .etiqueta { color: var(--ok); }
.tarjeta.vacia { color: var(--muted); font-size: .9rem; }

/* Chat */
.chat { display: flex; flex-direction: column; min-height: 60vh; }
.mensajes { flex: 1; min-height: 44vh; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 4px 6px 0; }
.msg { max-width: 82%; background: #1a1a1a; border: 1px solid #4a4a46; border-radius: 12px; padding: 8px 12px; }
.msg .cab { font-size: .76rem; color: var(--muted); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.msg .cab b { color: #ffffff; font-weight: 600; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.msg.mio { align-self: flex-end; border-color: #8a8a85; }
.msg.soporte { border: 2px solid #c4c4c0; background: #202020; }
.msg.decide { border-color: var(--amber); }
.msg .marca-decide { font-size: .7rem; color: var(--amber); border: 1px solid var(--amber); border-radius: 999px; padding: 0 7px; }
.msg.nuevo { box-shadow: 0 0 0 1px #ffffff, 0 0 10px rgba(255,255,255,.2); }
.msg .marca-nuevo { font-size: .7rem; color: #0a0a0a; background: var(--chrome); border-radius: 999px; padding: 0 7px; }
.pensando { color: var(--muted); font-size: .85rem; font-style: italic; padding: 6px 2px; }
.escribir { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.escribir textarea { flex: 1; font: inherit; color: #ffffff; background: #121212; border: 2px solid #8a8a85; border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 52px; }
.escribir textarea:focus { outline: none; border-color: #ffffff; }

/* Productos */
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 14px; }
.producto { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px; }
.foto { border-radius: 10px; background: #121212; border: 1px dashed #5f5e5a; display: grid; place-items: center; min-height: 110px; color: #6d6c67; font-size: .72rem; text-align: center; padding: 6px; }
.p-cuerpo { min-width: 0; display: grid; gap: 6px; align-content: start; }
.p-nombre { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.p-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--muted); }
.p-clave { font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--silver-text); }
.p-fila { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; }
.p-precio { display: grid; }
.p-l { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--silver-text); }
.p-n { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.p-exist { display: grid; justify-items: end; gap: 4px; text-align: right; }
.chip-ex { font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.chip-ex.si { color: #0b1f0d; background: linear-gradient(180deg, #b8f0b3, #8fd18a 55%, #5fae5a); }
.chip-ex.otro { color: #1a1206; background: linear-gradient(180deg, #ffd27a, #ffb340 55%, #e8920f); }
.chip-ex.no { color: #f2f2ef; background: #3a3a3a; border: 1px solid #6d6c67; }
.chip-ex.serv { color: #0a0a0a; background: var(--chrome); }
.p-otros { font-size: .76rem; color: var(--muted); }
.p-ficha { margin: 0; font-size: .78rem; color: #8e8d88; font-style: italic; }

/* Entrar y en construcción */
.entrar { max-width: 360px; margin: 30px auto; display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border: 3px solid transparent; border-radius: 16px; background: var(--panel) padding-box, var(--silver) border-box; }
.entrar h2 { margin: 0; }
.entrar label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.entrar input { font: inherit; color: #ffffff; background: #121212; border: 2px solid #8a8a85; border-radius: 10px; padding: 10px 12px; }
.entrar input:focus { outline: none; border-color: #ffffff; }
.entrar .btn { justify-content: center; background: var(--chrome); color: #0a0a0a; font-weight: 700; border-color: #ffffff; }
.pronto-panel { max-width: 560px; display: grid; gap: 10px; justify-items: start; }
.pronto-panel p { margin: 0; color: var(--muted); }

@media (max-width: 1000px) { .rejilla { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gb { border-width: 7px; padding: 14px 12px 20px; } .producto { grid-template-columns: 72px minmax(0, 1fr); } .foto { min-height: 72px; } .tile-n { font-size: 1.5rem; } .tile.principal .tile-n { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Pedidos (4 pasos) y depósitos del día · 12-nov-2026 ---------- */
.pasos-barra { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.paso-b { border: 2px solid #4a4a46; border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; background: #202020; min-width: 0; position: relative; }
.paso-b:not(:last-child)::after { content: "›"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: #8e8d88; font-size: 1.3rem; }
.paso-num { grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #0a0a0a; background: var(--chrome); }
.paso-t { font-weight: 700; color: #ffffff; }
.paso-d { font-size: .76rem; color: var(--muted); }
.paso-c { font-size: .8rem; color: var(--muted); }
.paso-b.con { border-color: var(--amber); }
.paso-b.con .paso-c { color: var(--amber); font-weight: 700; }
.ped-acciones-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ped-form { display: grid; gap: 10px; }
.ped-form form { display: grid; gap: 12px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.campo { display: grid; gap: 6px; font-size: .85rem; color: var(--silver-text); min-width: 0; }
.campo input[type="text"], .campo input[type="search"], .campo select, .campo textarea, .campo input[type="file"] { font: inherit; font-size: 1rem; color: #ffffff; background: #121212; border: 2px solid #8a8a85; border-radius: 10px; padding: 9px 12px; min-width: 0; width: 100%; }
.campo textarea { min-height: 70px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: #ffffff; }
.campo select:disabled { opacity: .7; }
.pf-resultados { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 6px; }
.pf-art { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; text-align: left; border-radius: 10px; padding: 7px 12px; min-height: 0; background: #1a1a1a; }
.pf-art .clave { grid-row: span 2; align-self: center; }
.pf-art-d { color: #ffffff; overflow-wrap: anywhere; }
.pf-art .tenue { font-size: .76rem; }
.pf-tabla-w { overflow-x: auto; }
.pf-tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pf-tabla th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--silver-text); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid #5f5e5a; }
.pf-tabla td { padding: 6px 8px; border-bottom: 1px solid #3a3a37; vertical-align: middle; }
.pf-tabla .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-tabla .clave, .pf-art .clave { font-variant-numeric: tabular-nums; letter-spacing: .03em; color: var(--silver-text); white-space: nowrap; }
.pf-tabla tr.vacio td { color: var(--muted); font-style: italic; }
.pf-tabla input.pz { width: 5.5em; font: inherit; color: #ffffff; background: #121212; border: 2px solid #8a8a85; border-radius: 8px; padding: 4px 8px; text-align: right; }
.btn.quitar { min-height: 30px; padding: 2px 10px; }
.pf-botones { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn.peligro { border-color: var(--bad); color: var(--bad); }
.btn.tenue-b { color: var(--muted); border-style: dashed; }
.ped-listas { display: grid; gap: 18px; }
.ped-grupo h3, .ped-grupo summary { font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--silver-text); margin: 0; text-transform: uppercase; cursor: default; }
.ped-grupo summary { cursor: pointer; }
.ped-grupo > .nota { margin: 2px 0 10px; }
.ped-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); gap: 14px; }
.ped-card { border: 3px solid transparent; border-radius: 16px; background: var(--panel) padding-box, var(--silver) border-box; padding: 14px 16px; display: grid; gap: 8px; min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.85), inset 0 2px 0 rgba(255,255,255,.14), 0 14px 34px rgba(0,0,0,.6); }
.ped-card.est-por_autorizar { background: var(--panel) padding-box, linear-gradient(135deg, #ffd27a, #ffb340 50%, #a86a0c) border-box; }
.ped-card.est-rechazado { background: var(--panel) padding-box, linear-gradient(135deg, #f7b3a3, #f08a72 50%, #9e4632) border-box; }
.ped-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.ped-tit { display: grid; min-width: 0; }
.ped-folio { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.ped-prov { color: var(--silver-text); font-size: .9rem; overflow-wrap: anywhere; }
.ped-der { display: flex; gap: 10px; align-items: center; }
.ped-dots { display: inline-flex; gap: 5px; }
.ped-dots .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #8e8d88; background: transparent; }
.ped-dots .dot.ok { background: var(--ok); border-color: var(--ok); }
.ped-dots .dot.aqui { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 8px rgba(255,179,64,.6); }
.ped-dots .dot.mal { background: var(--bad); border-color: var(--bad); }
.ped-dots .dot.x { border-style: dashed; }
.chip-est { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; color: #0a0a0a; background: var(--chrome); }
.chip-est.por_autorizar { background: linear-gradient(180deg, #ffd27a, #ffb340 55%, #e8920f); color: #1a1206; }
.chip-est.rechazado { background: linear-gradient(180deg, #f7b3a3, #f08a72); color: #2a0d06; }
.chip-est.recibido { background: linear-gradient(180deg, #b8f0b3, #8fd18a 55%, #5fae5a); color: #0b1f0d; }
.chip-est.cancelado { background: #3a3a3a; color: #c9c8c2; border: 1px solid #6d6c67; }
.ped-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); }
.ped-meta .ped-total { color: #ffffff; font-weight: 700; }
.ped-meta .ok { color: var(--ok); }
.ped-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ped-pasos li { border: 1px solid #4a4a46; border-radius: 10px; padding: 5px 8px; display: grid; font-size: .76rem; min-width: 0; }
.ped-pasos li b { font-weight: 600; color: var(--silver-text); }
.ped-pasos li span { overflow-wrap: anywhere; }
.ped-pasos li.hecho { border-color: #6d8f6a; }
.ped-pasos li.falta span { color: #6d6c67; }
.ped-nota { margin: 0; font-size: .88rem; border-left: 3px solid #8e8d88; padding-left: 10px; overflow-wrap: anywhere; }
.ped-nota.mal { border-color: var(--bad); color: #ffd6cc; }
.ped-adj { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; }
.ped-adj a { color: #ffffff; overflow-wrap: anywhere; }
.ped-det summary { cursor: pointer; font-size: .84rem; color: var(--silver-text); }
.ped-botones { display: flex; gap: 8px; flex-wrap: wrap; }
.ped-panel { border-top: 1px solid #5f5e5a; padding-top: 10px; display: grid; gap: 10px; }
.ped-panel h4 { margin: 0; font-size: .9rem; }
.ped-ayuda { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ped-ayuda p { flex-basis: 100%; }

/* Depósitos del día en Inicio */
.depositos { display: grid; gap: 8px; }
.dep-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dep-total { font-family: var(--serif); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.dep-lista { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.dep { display: grid; grid-template-columns: 4.2em 1fr auto; gap: 10px; align-items: baseline; border: 1px solid #4a4a46; border-radius: 10px; padding: 6px 10px; }
.dep .hora { font-variant-numeric: tabular-nums; color: var(--silver-text); }
.dep .quien { overflow-wrap: anywhere; font-size: .88rem; }
.dep .monto { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dep.reciente { border-color: var(--ok); box-shadow: 0 0 10px rgba(143,209,138,.35); }
.dep .marca-nuevo { font-size: .7rem; color: #0b1f0d; background: var(--ok); border-radius: 999px; padding: 0 7px; margin-left: 6px; }
.dep-aviso { border: 2px solid var(--ok); border-radius: 12px; padding: 8px 12px; color: #dff5dc; background: #16241a; font-weight: 600; }

@media (max-width: 1000px) { .pasos-barra { grid-template-columns: repeat(2, minmax(0, 1fr)); } .paso-b::after { display: none; } .ped-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pasos-barra { grid-template-columns: 1fr; } .dep { grid-template-columns: 3.6em 1fr; } .dep .monto { grid-column: 2; } }

/* Marco plateado de orilla a orilla, sin franjas negras (pedido de Fernando, 12-nov-2026) */
html, body { background: var(--screen); }
.marco { padding: 0; }
.gb { max-width: none; min-height: 100vh; margin: 0; border-radius: 18px; }
@media (max-width: 520px) { .gb { border-radius: 12px; } }

/* ---------- Agenda (Fit y Taller) · 12-nov-2026 ---------- */
.ag-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn.ag-big { font-size: 1.05rem; padding: 12px 28px; }
.ag-buscar { flex: 1 1 240px; min-width: 0; font: inherit; color: #fff; background: #121212; border: 2px solid #8a8a85; border-radius: 999px; padding: 10px 18px; }
.ag-buscar:focus { outline: none; border-color: #fff; }
.ag-form form, .ag-det { display: grid; gap: 12px; }
.ag-pin-panel form { align-items: end; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip { border-radius: 999px; padding: 7px 14px; min-height: 36px; }
.ag-chip.sel { background: var(--chrome); color: #0a0a0a; border-color: #fff; font-weight: 700; }
.btn.sel-b { border-color: var(--ok); color: var(--ok); }
.ag-clires { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 6px; }
.ag-lista { display: grid; gap: 6px; }
.ag-fila { display: grid; grid-template-columns: 8.5em 4.5em minmax(0, 1fr) auto auto; gap: 10px; align-items: center; text-align: left;
  border-radius: 12px; padding: 9px 14px; background: #202020; min-height: 46px; width: 100%; }
.ag-fila.activa { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.25); }
.ag-fila .ag-hora { font-variant-numeric: tabular-nums; color: var(--silver-text); }
.ag-fila .ag-cli { min-width: 0; overflow-wrap: anywhere; }
.ag-fila .ag-entrega { grid-column: 3 / -1; font-size: .78rem; color: var(--muted); }
.ag-fila .ag-entrega.tarde { color: var(--bad); font-weight: 700; }
.chip-tipo { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; text-align: center; border: 1px solid var(--chip-line); }
.chip-tipo.fit { color: #cfe3ff; border-color: #7aa7e0; }
.chip-tipo.taller { color: #ffe0b3; border-color: #d39a4a; }
.chip-est.ag-agendada { background: #3a3a3a; color: #f2f2ef; border: 1px solid #6d6c67; }
.chip-est.ag-recibida, .chip-est.ag-en_proceso { background: linear-gradient(180deg, #ffd27a, #ffb340 55%, #e8920f); color: #1a1206; }
.chip-est.ag-lista, .chip-est.ag-por_cobrar { background: linear-gradient(180deg, #b8f0b3, #8fd18a 55%, #5fae5a); color: #0b1f0d; }
.chip-est.ag-no_vino, .chip-est.ag-cancelada { background: transparent; color: var(--muted); border: 1px dashed #6d6c67; }
.ag-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ag-pasos li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #4a4a46; border-radius: 999px; padding: 4px 12px 4px 4px; font-size: .84rem; color: var(--muted); }
.ag-pasos li .paso-num { width: 24px; height: 24px; font-size: .78rem; grid-row: auto; background: #3a3a3a; color: #f2f2ef; }
.ag-pasos li.hecho { border-color: #6d8f6a; color: #dff5dc; }
.ag-pasos li.hecho .paso-num { background: var(--ok); color: #0b1f0d; }
.ag-pasos li.aqui { border-color: var(--amber); color: #fff; font-weight: 700; }
.ag-pasos li.aqui .paso-num { background: var(--amber); color: #1a1206; }
.ag-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 8px 16px; }
.ag-dato { display: grid; gap: 2px; min-width: 0; }
.ag-dato b { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--silver-text); font-weight: 600; }
.ag-dato span { white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-exp summary, .ag-hist summary { cursor: pointer; color: var(--silver-text); font-size: .88rem; }
.ag-exp { display: grid; gap: 6px; } .ag-exp .btn { justify-self: start; }
.ag-hist ul { margin: 6px 0 0; padding-left: 18px; font-size: .82rem; color: var(--muted); }
.ag-cuenta tr.serv td { color: #fff; font-weight: 600; }
.ag-cuenta tfoot td { padding: 6px 8px; }
.ag-cuenta tfoot tr.desc td { color: var(--amber); }
.ag-cuenta tfoot tr.tot td { font-weight: 700; color: #fff; font-size: 1.05rem; border-top: 1px solid #8a8a85; }
.ag-agregar { display: grid; gap: 8px; } .ag-agregar > .btn { justify-self: start; }
.ag-desc { display: grid; gap: 8px; justify-items: start; }
.ag-desc-caja { display: grid; gap: 10px; border: 1px solid #5f5e5a; border-radius: 12px; padding: 12px; width: 100%; max-width: 560px; }
.ag-desc-caja input[readonly] { opacity: .85; }
.ag-cobro { border: 2px solid var(--ok); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; background: #16241a; }
.ag-cobro h4 { margin: 0; color: #dff5dc; }
.ag-caja-lista { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-variant-numeric: tabular-nums; }
.ag-caja-lista li.desc { color: var(--amber); } .ag-caja-lista li.tot { font-weight: 700; color: #fff; list-style: none; margin-left: -18px; }
.ag-cobro .btn { justify-self: start; }
.ag-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.campo textarea { min-height: 70px; }
.campo input[type="tel"], .campo input[type="number"], .campo input[type="date"], .campo input[type="datetime-local"], .campo input[type="password"] {
  font: inherit; font-size: 1rem; color: #fff; background: #121212; border: 2px solid #8a8a85; border-radius: 10px; padding: 9px 12px; min-width: 0; width: 100%; color-scheme: dark; }
@media (max-width: 760px) {
  .ag-fila { grid-template-columns: 1fr auto; }
  .ag-fila .ag-hora { grid-column: 1; } .ag-fila .chip-tipo { grid-column: 2; grid-row: 1; }
  .ag-fila .ag-cli { grid-column: 1 / -1; } .ag-fila .ag-at { grid-column: 1; } .ag-fila .chip-est { grid-column: 2; }
  .ag-fila .ag-entrega { grid-column: 1 / -1; }
}

.ag-chip.principal { border-color: #c4c4c0; color: #fff; }

/* ---------- Pedidos: las 4 estaciones de la bici, lenguaje simple · 12-nov-2026 ---------- */
.pasos-barra { display: none; }
.ruta { position: relative; padding-top: 4px; }
.ruta::before { content: ""; position: absolute; left: 22px; right: 22px; top: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, #6d6c67 0 10px, transparent 10px 18px); }
.ruta-est { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; }
.est { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 0 4px; }
.est .est-ico, .guia .est-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--screen);
  border: 2px solid #6d6c67; color: var(--silver-text); }
.est .est-ico svg, .guia .est-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.est-txt { display: grid; min-width: 0; padding-top: 2px; }
.est-txt b { font-size: .9rem; color: #fff; }
.est-txt span { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.est-c { grid-column: 2; font-size: .76rem; color: var(--muted); }
.est.con .est-ico { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 10px rgba(255,179,64,.35); }
.est.con .est-c { color: var(--amber); font-weight: 700; }
.guia { border: 1px solid #4a4a46; border-radius: 12px; padding: 8px 14px; background: #1a1a1a; }
.guia summary { cursor: pointer; color: var(--silver-text); font-weight: 600; font-size: .9rem; }
.guia-c { display: grid; gap: 12px; padding: 10px 0 4px; }
.guia-intro { margin: 0; color: #fff; }
.guia-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.guia-pasos li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.guia-pasos p { margin: 2px 0 0; font-size: .86rem; line-height: 1.45; color: var(--silver-text); }
.guia-pasos em, .guia-nunca em { font-style: normal; color: #fff; font-weight: 700; }
.guia-nunca { border-left: 3px solid var(--bad); padding: 2px 0 2px 12px; font-size: .86rem; }
.guia-nunca b { color: var(--bad); }
.guia-nunca ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; color: var(--silver-text); }
.ped-ruta { display: inline-flex; gap: 6px; align-items: center; }
.ped-ruta .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #8e8d88; position: relative; }
.ped-ruta .dot.ok { background: var(--ok); border-color: var(--ok); }
.ped-ruta .dot.aqui { background: var(--amber); border-color: var(--amber); }
.ped-ruta .dot.mal { background: var(--bad); border-color: var(--bad); }
.ped-ruta .dot.x { border-style: dashed; }
.ped-ruta .dot.con-bici svg { position: absolute; width: 22px; height: 14px; left: 50%; bottom: 12px; transform: translateX(-50%);
  fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ped-ruta { padding-top: 12px; }
.tu-pedido { border: 2px solid #8a8a85; border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; background: #181818; }
.tu-pedido.pulso { animation: tuPulso .9s ease-out; }
@keyframes tuPulso { 0% { border-color: var(--ok); box-shadow: 0 0 16px rgba(143,209,138,.45); } 100% { border-color: #8a8a85; box-shadow: none; } }
.tu-cab { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tu-cab b { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.tu-aviso { margin-left: auto; color: var(--ok); font-weight: 700; font-size: .88rem; opacity: 0; }
.tu-aviso.ver { animation: tuAviso 2.6s ease-out forwards; }
@keyframes tuAviso { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.pf-tabla tr.nueva td { background: rgba(143,209,138,.14); }
@media (max-width: 1000px) { .ruta-est { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; } .ruta::before { display: none; } }
@media (max-width: 520px) { .ruta-est { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tu-pedido.pulso, .tu-aviso.ver { animation: none; } .tu-aviso.ver { opacity: 1; } }
/* la línea punteada de la ruta pasa por detrás del texto, no encima (est-txt tapa la ruta) */
.est .est-ico, .est-txt { position: relative; z-index: 1; }
.est-txt { background: var(--screen); justify-self: start; padding-right: 10px; }

/* ---------- Clientes · 12-nov-2026 ---------- */
.cl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: 8px; margin-bottom: 12px; }
.cl-stat { border: 1px solid #4a4a46; border-radius: 12px; padding: 10px 12px; background: #1a1a1a; display: grid; gap: 2px; }
.cl-stat b { font-size: 1.45rem; color: #fff; font-variant-numeric: tabular-nums; }
.cl-stat span { font-size: .78rem; color: var(--silver-text); }
.cl-aviso { margin-bottom: 12px; } .cl-aviso summary { cursor: pointer; } .cl-aviso p { margin: 8px 0 0; }
.cl-filtros { margin: 10px 0 12px; }
.cl-lista { display: grid; gap: 6px; }
.cl-fila { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center;
  text-align: left; width: 100%; border-radius: 12px; padding: 9px 14px; background: #202020; min-height: 54px; }
.cl-fila.activa { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.25); }
.cl-fila > span { display: grid; gap: 1px; min-width: 0; }
.cl-fila b, .cl-fila small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-fila small { font-size: .76rem; }
.cl-anio b, .cl-ult b { font-variant-numeric: tabular-nums; }
.cl-marcas { display: flex !important; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.cl-tag { font-size: .72rem; border: 1px solid var(--chip-line); border-radius: 999px; padding: 2px 8px; color: #e8e8e4; white-space: nowrap; }
.cl-tag.ok { background: linear-gradient(180deg, #b8f0b3, #8fd18a 55%, #5fae5a); color: #0b1f0d; border-color: #5fae5a; font-weight: 700; }
.cl-mas { display: flex; justify-content: center; margin: 12px 0; }
.cl-ficha { display: grid; gap: 14px; }
.cl-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cl-cab h2 { margin: 0; }
.cl-sec { border-top: 1px solid #3a3a37; padding-top: 12px; display: grid; gap: 8px; }
.cl-sec h3 { margin: 0; font-size: 1rem; color: #fff; }
.cl-tabla { width: 100%; }
.cl-tabla td.num, .cl-tabla th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-total { margin: 0; font-weight: 700; color: #fff; text-align: right; }
.cl-prog { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-punto { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8a8a85; }
.cl-punto.lleno { background: var(--ok); border-color: var(--ok); }
.cl-prog-txt { font-weight: 600; color: #fff; }
.cl-usar { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.cl-usar .campo { flex: 1 1 240px; }
.cl-mini { margin: 0; padding-left: 18px; font-size: .84rem; color: var(--muted); }
.cl-si { margin: 0; color: #dff5dc; font-weight: 700; } .cl-no { margin: 0; color: var(--amber); font-weight: 600; }
.cl-ig { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; } .cl-ig .campo { flex: 1 1 220px; }
.cl-check { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.cl-check input, .cl-permisos input { width: 20px; height: 20px; accent-color: var(--ok); }
.cl-permisos { border: 1px solid #5f5e5a; border-radius: 10px; padding: 8px 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.cl-permisos label { display: flex; gap: 8px; align-items: center; }
.campo input[type="email"] { font: inherit; font-size: 1rem; color: #fff; background: #121212; border: 2px solid #8a8a85; border-radius: 10px; padding: 9px 12px; min-width: 0; width: 100%; }
@media (max-width: 860px) {
  .cl-fila { grid-template-columns: 1fr auto; }
  .cl-fila .cl-nom { grid-column: 1 / -1; }
  .cl-fila .cl-bici { grid-column: 1 / -1; }
  .cl-fila .cl-marcas { grid-column: 1 / -1; justify-content: flex-start; }
}
