/* Base compartida: tokens (los sobrescribe el tema de cada barbería), botones y formularios */
:root {
  --bg: #0c0b0a;
  --surface: #16140f;
  --raised: #1e1b15;
  --ink: #f2ece1;
  --muted: #a59d8e;
  --line: #2e2a22;
  --accent: #c9a45c;
  --accent-ink: #14110b;
  --soft: #221e16;
  --ok: #3fae6a;
  --warn: #d79a2b;
  --bad: #d4544c;
  --wa: #1fa855;
  --f-display: "Bodoni Moda", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display-case: none;
  --display-style: normal;
  --r: 12px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  background: var(--bg);
  color: var(--ink);
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.display {
  font-family: var(--f-display);
  text-transform: var(--display-case);
  font-style: var(--display-style);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-wrap: balance;
  line-height: 1.05;
}
.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font: 700 15px var(--f-body);
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.12s,
    filter 0.12s;
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:active {
  transform: translateY(1px);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--accent);
}
.btn.wa {
  background: var(--wa);
  color: #fff;
}
.btn.small {
  padding: 7px 14px;
  font-size: 13px;
}
.btn.block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--accent);
  font: 600 14px var(--f-body);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field > label,
.field > .lbl {
  font-size: 13px;
  font-weight: 600;
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
}
input[type="color"] {
  padding: 2px;
  height: 42px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft);
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.err {
  color: var(--bad);
  font-size: 13px;
  font-weight: 600;
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(14px + env(safe-area-inset-top, 0px));
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: calc(100% - 32px);
}
.msgbox {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
