/* Estilos compartidos: app del mostrador y panel de e-commerce.
   Columna única de mostrador, cabezal negro con el logo, botones grandes. */
:root {
  --ink: #121417; --paper: #f3f4f2; --surface: #ffffff; --line: #d9dcd8; --muted: #5c625f;
  --accent: #0b5c78; --accent-ink: #ffffff; --accent-soft: #e2eef2;
  --ok: #1f7a45; --ok-soft: #e3f2e8; --warn: #9a5b00; --warn-soft: #fbf0dc; --bad: #b3261e; --bad-soft: #fbe5e3;
  --head: #0d0e10; --head-ink: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --narrow: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "Roboto Mono", "SF Mono", Menlo, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceeec; --paper: #121416; --surface: #1b1e21; --line: #30353a; --muted: #a3aaa6;
    --accent: #5fb3d0; --accent-ink: #06222c; --accent-soft: #16303a;
    --ok: #5cc489; --ok-soft: #14301f; --warn: #e7ad4f; --warn-soft: #33270f; --bad: #f08a80; --bad-soft: #3a1714;
    --head: #000000; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 17px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.cabezal { position: sticky; top: 0; z-index: 5; background: var(--head); color: var(--head-ink);
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cabezal img { height: 24px; width: auto; display: block; }
.cabezal .lugar { text-align: right; font-size: 13px; line-height: 1.25; opacity: .85; }
.cabezal .lugar b { display: block; font-size: 16px; opacity: 1; letter-spacing: .02em; }

h1 { font-size: 26px; line-height: 1.15; margin: 0; text-wrap: balance; font-family: var(--narrow); font-weight: 700; }
h2 { font-size: 20px; margin: 0; font-family: var(--narrow); }
p { margin: 0; }
.lead { color: var(--muted); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.grande { font-size: 22px; font-weight: 600; }

.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fila { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fila > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }

.btn { appearance: none; border: 0; border-radius: var(--r); min-height: 56px; padding: 12px 18px; font-weight: 600; font-size: 18px; line-height: 1.2;
  cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none; }
.btn.primario { background: var(--accent); color: var(--accent-ink); }
.btn.ok { background: var(--ok); color: var(--surface); }
.btn.mal { background: var(--bad); color: var(--surface); }
.btn.borde { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.chico { min-height: 44px; font-size: 16px; padding: 8px 14px; width: auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.enlace { appearance: none; background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 15px; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 52px; border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 8px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
input.numero { font-family: var(--mono); font-size: 22px; letter-spacing: .04em; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.error { color: var(--bad); font-weight: 600; font-size: 15px; }

.aviso { border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border: 2px solid; }
.aviso strong { font-family: var(--narrow); font-size: 22px; line-height: 1.15; }
.aviso.mal { background: var(--bad-soft); border-color: var(--bad); } .aviso.mal strong { color: var(--bad); }
.aviso.cuidado { background: var(--warn-soft); border-color: var(--warn); } .aviso.cuidado strong { color: var(--warn); }
.aviso.ok { background: var(--ok-soft); border-color: var(--ok); } .aviso.ok strong { color: var(--ok); }

.pastilla { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pastilla.mal { background: var(--bad-soft); color: var(--bad); }
.pastilla.cuidado { background: var(--warn-soft); color: var(--warn); }
.pastilla.ok { background: var(--ok-soft); color: var(--ok); }

.oculto-accesible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
