:root {
  color-scheme: dark;
  --bg: #0b1014;
  --c: #141e27;
  --t: #f4f7f9;
  --m: #b9c7d1;
  --p: #b6ed75;
  --b: #33444f;
  --ok: #74d89d;
  --no: #ff9292;
  --w: #f3cd75;
  --layout: min(1180px, calc(100% - 36px));
}

body { font-family: "Instrument Sans", system-ui, sans-serif; }
.brand-shell { padding: 12px max(18px, calc((100% - 1180px) / 2)); background: #0b1014; border-bottom: 1px solid var(--b); }
.brand-link { display: grid; gap: 3px; width: min(225px, 46vw); flex-shrink: 0; text-decoration: none; text-align: center; color: var(--m); }
.brand-link .brand-images { display: flex; align-items: center; gap: 8px; }
.brand-link img { display: block; object-fit: contain; height: auto; }
.brand-link img:first-child { width: calc(100% - 58px); }
.brand-link img:last-child { width: 50px; }
.brand-link small { letter-spacing: .12em; font-weight: 650; }
.brand-shell .brand-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }
.brand-nav { display: flex; gap: 14px; align-items: center; }
.brand-nav a { color: var(--m); text-decoration: none; }
.brand-nav a:hover { color: var(--p); }
.brand-heading { padding: clamp(20px, 5vw, 42px); border: 1px solid var(--b); border-radius: 18px; margin: 0 0 18px; background: radial-gradient(ellipse at 95% 25%, #17324b, transparent 72%), var(--c); }
.brand-heading h1 { margin: 0; color: var(--p); font-size: clamp(1.9rem, 5vw, 3.45rem); letter-spacing: -.055em; line-height: 1.05; }
.brand-heading p { margin: 10px 0 0; color: var(--m); line-height: 1.5; }

.section-panel main, .section-store main { width: var(--layout); max-width: none; padding: 18px 0; }
.section-panel nav.panel-nav { padding-inline: max(18px, calc((100% - 1180px) / 2)); }
.section-panel .login { width: min(430px, calc(100% - 36px)); max-width: none; background: var(--c); border: 1px solid var(--b); border-radius: 16px; padding: 24px; }
.section-panel .login button { width: 100%; }
.section-panel .card, .section-store .card, .section-store .box, .section-lookup .card { border-radius: 14px; }
.section-panel button.p, .section-panel nav button.on, .section-store button.p, .section-store .tabs button.on,
.section-lookup button { background: var(--p); border-color: var(--p); color: #172414; font-weight: 750; }
.section-panel button.d, .section-lookup .err { color: var(--no); }
.section-panel :focus-visible, .section-store :focus-visible, .section-lookup :focus-visible { outline: 2px solid #7ebefe; outline-offset: 3px; }
.section-store .tabs button { flex: 0 0 auto; }
.section-store .categoria h3 { color: var(--t); font-size: 1.2rem; }
.section-store .cu .pr { color: var(--p); }
.section-store .card .foto { background: #1d2c37; }
.section-store .card img { object-fit: contain; padding: 8px; }
.section-lookup { display: block; padding: 0; }
.section-lookup .brand-shell { display: flex; align-items: center; }
.section-lookup main { width: min(650px, calc(100% - 36px)); max-width: none; margin: 22px auto; }
.section-lookup .brand-heading p { color: var(--m); }
.section-panel .pos-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,1fr); gap: 18px; align-items: start; }
.section-panel .pos-cart { position: sticky; top: 12px; }
.section-panel .pos-cart h2 { margin-top: 0; }
.section-panel .barcode { font: 1.05rem "IBM Plex Mono", monospace; padding: 13px; }
.section-panel .sales-list h4 { margin: 14px 0 7px; }
.section-panel .sales-list .pos-resultado-activo,
.section-panel .stock-resultado-activo { outline: 2px solid #4889df; outline-offset: -2px; }
.section-panel .pos-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.banner-admin-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr)); gap:12px; }
.banner-admin h3 { margin:0 0 8px; }
.banner-admin img { display:block; width:100%; min-height:58px; aspect-ratio:4/1; object-fit:contain; background:#0b1014; border-radius:6px; }
.promo-linea { display:grid; grid-template-columns:minmax(0,1fr) 70px auto; align-items:end; gap:6px; margin-bottom:6px; }
.pos-precio { min-width:0; max-width:108px; }
.pos-linea { margin-bottom:6px; }
.pos-promos { color:var(--p); }
.actividad-equipo { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(295px,100%),1fr)); gap:10px; }
.actividad-equipo .card > p { margin:6px 0; }
.actividad-equipo .card > button { margin-top:8px; }
.actividad-en-linea,.actividad-fuera { width:fit-content; flex:0 0 auto; min-width:0; }
.actividad-en-linea { color:#d9ffe4; background:#205b3f; }
.actividad-fuera { color:#ffe8ac; background:#654312; }
.pedidos-sin-ver,.pedido-recien-ingresado { display:inline-block; color:#fff; background:#ad303c; font-weight:750; }
.pedidos-sin-ver { min-width:1.4em; margin-left:7px; padding:1px 5px; border-radius:12px; text-align:center; }
.pedidos-sin-ver[hidden] { display:none; }
.pedido-recien-ingresado { flex:0 0 auto; min-width:0; }
.bandejas-pedidos { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.bandejas-pedidos button { display:inline-flex; align-items:center; gap:8px; text-align:left; }
.bandejas-pedidos button[aria-pressed="true"] { border-color:currentColor; font-weight:750; }
.contador-bandeja { border:1px solid currentColor; border-radius:12px; min-width:1.65em; padding:0 5px; text-align:center; }
.contador-bandeja.con-novedades { background:#ad303c; color:#fff; border-color:#ad303c; font-weight:750; }
.pedido-seguimiento { margin:10px 0; padding:8px 10px; border:1px solid var(--b); border-radius:8px; }
.pedido-seguimiento a { color:var(--p); font-weight:750; }
.pedido-instrucciones { white-space:pre-wrap; overflow-wrap:anywhere; margin-block:4px; }
.section-panel main > .card > .actividad-fuera { margin-left:10px; }
@media(max-width:720px) {
  .section-panel .pos-layout { grid-template-columns: 1fr; }
  .section-panel .pos-cart { position: static; grid-row: 1; }
  .brand-shell .brand-tools { gap: 7px; }
  .brand-link img:first-child { width: calc(100% - 39px); }
  .brand-link img:last-child { width: 31px; }
}
