/* Gastrometrics · estilos compartidos
   Identidad visual oficial: Negro Ónix #111111, Verde Esmeralda #10B981, Blanco Puro #FFFFFF y Gris
   Tecnológico #6B7280. Tipografía sans-serif limpia (Inter) y cifras en mono. El verde es acento:
   botones de acción, puntos clave y crecimiento en gráficas. En el menú manda el color de cada restaurante. */
:root {
  --bg: #F6F7F7;
  --surface: #FFFFFF;
  --paper: #FAFAFA;
  --ink: #111111;
  --muted: #6B7280;
  --line: #E5E7EB;
  --accent: #10B981;
  --accent-txt: #047857;
  --accent-soft: #E7F8F1;
  --accent-ink: #111111;
  --marca: #111111;
  --good: #047857;
  --warn: #A15C07;
  --bad: #B42318;
  --bad-soft: #FBE7E4;
  --warn-soft: #FBF0DD;
  --shadow: 0 1px 2px rgb(17 17 17 / 0.05), 0 8px 24px rgb(17 17 17 / 0.06);
  --f-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0B; --surface: #161616; --paper: #1B1B1B; --ink: #F5F5F5; --muted: #9CA3AF; --line: #2A2A2A;
    --accent: #10B981; --accent-txt: #34D399; --accent-soft: #0F2A21; --accent-ink: #111111; --marca: #047857;
    --good: #34D399; --warn: #E7A54A; --bad: #F2735F;
    --bad-soft: #3A1F1B; --warn-soft: #3A2C17; --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0B; --surface: #161616; --paper: #1B1B1B; --ink: #F5F5F5; --muted: #9CA3AF; --line: #2A2A2A;
  --accent: #10B981; --accent-txt: #34D399; --accent-soft: #0F2A21; --accent-ink: #111111; --marca: #047857;
  --good: #34D399; --warn: #E7A54A; --bad: #F2735F;
  --bad-soft: #3A1F1B; --warn-soft: #3A2C17; --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--accent-txt); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.eyebrow { font: 600 0.72rem/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Controles */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 0.95rem/1 var(--f-body); padding: 0.8em 1.1em; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; min-height: 44px;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.secundario { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secundario:hover { border-color: var(--muted); filter: none; }
.btn.peligro { background: var(--bad); color: #fff; }
.btn.chico { padding: 0.5em 0.85em; min-height: 34px; font-size: 0.85rem; }
.btn.bloque { width: 100%; }
.btn.marca { background: var(--marca); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
input, textarea, select {
  font: 400 1rem/1.3 var(--f-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.7em 0.8em; width: 100%; min-height: 44px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.check input { width: 1.1rem; height: 1.1rem; min-height: 0; margin-top: 0.15rem; accent-color: var(--accent); flex: none; }

.pill { display: inline-flex; align-items: center; gap: 0.35em; font: 600 0.75rem/1 var(--f-body); padding: 0.35em 0.65em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-txt); white-space: nowrap; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.gris { background: var(--line); color: var(--muted); }

.aviso { padding: 0.75rem 1rem; border-radius: var(--r); background: var(--warn-soft); color: var(--ink); font-size: 0.88rem; }
.error { padding: 0.75rem 1rem; border-radius: var(--r); background: var(--bad-soft); color: var(--bad); font-size: 0.9rem; }

.toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 600; z-index: 50;
  box-shadow: var(--shadow); max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Marca Gastrometrics */
.logo-marca { display: inline-flex; align-items: center; line-height: 0; }
.logo-marca img { height: 26px; width: auto; }
.logo-marca .oscuro { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-marca .claro { display: none; } :root:not([data-theme="light"]) .logo-marca .oscuro { display: inline; } }
:root[data-theme="dark"] .logo-marca .claro { display: none; }
:root[data-theme="dark"] .logo-marca .oscuro { display: inline; }
.eslogan { font: 400 0.95rem var(--f-body); color: var(--muted); letter-spacing: 0; }
.con-tecnologia { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding-block: 1.6rem 0.6rem; font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.con-tecnologia img { height: 16px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .con-tecnologia img, :root:not([data-theme="light"]) .qr-card .qr-logo, :root:not([data-theme="light"]) .pie-logo { filter: invert(1) hue-rotate(180deg); } }
:root[data-theme="dark"] .con-tecnologia img, :root[data-theme="dark"] .qr-card .qr-logo, :root[data-theme="dark"] .pie-logo { filter: invert(1) hue-rotate(180deg); }
@media print { .qr-card .qr-logo { filter: none !important; } }
