/* Tokens y base compartidos por la web pública y la gestión.
   El color del negocio llega desde marca.js como --marca-*; si no hay, se usa el verde por defecto. */
:root {
  color-scheme: light;
  --bg: #f4f5f4;
  --surface: #ffffff;
  --ink: #1b1f1d;
  --muted: #5b6460;
  --line: #dde2df;
  --accent: var(--marca, #1f6f54);
  --accent-ink: var(--marca-ink, #ffffff);
  --accent-texto: var(--marca-texto, #1f6f54);
  --bubble: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --bubble-ink: var(--ink);
  --warn-bg: #fff1c9;
  --warn-ink: #5a4300;
  --bad: #b3261e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141716; --surface: #1d2220; --ink: #ebefed; --muted: #a2aca7; --line: #2f3734;
    --accent: var(--marca-claro, #7fd3ae); --accent-ink: var(--marca-claro-ink, #0e1a14); --accent-texto: var(--marca-claro, #7fd3ae);
    --bubble: color-mix(in srgb, var(--accent) 18%, var(--surface));
    --warn-bg: #3a3010; --warn-ink: #ffe08a; --bad: #ffb4ab;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap {
  max-width: 680px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.boton {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
  font: 700 17px/1.1 var(--font); text-decoration: none; cursor: pointer;
}
.boton:disabled { opacity: 0.6; cursor: default; }
.boton.wa { background: #1f8f4e; color: #ffffff; }
.copiar {
  min-height: 40px; padding: 0 12px; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; font: 500 15px/1 var(--font); cursor: pointer;
}
