/* Reservas de barberías — diseño sencillo (se pulirá después) */
:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #161616;
  --muted: #6b6b6b;
  --line: #e2e2de;
  --accent: #161616;
  --accent-ink: #ffffff;
  --ok: #1f8a4c;
  --warn: #a86400;
  --bad: #b3261e;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45; }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
h2 { font-size: 1.05rem; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.foot { color: var(--muted); font-size: .85rem; text-align: center; padding-bottom: 40px; }
.foot a { color: inherit; }

.section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 14px; }
.section.disabled { opacity: .45; pointer-events: none; }

.options { display: grid; gap: 8px; }
.option {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font: inherit; color: inherit; cursor: pointer;
}
.option:hover { border-color: #999; }
.option[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fafafa; }
.option .price { font-weight: 600; white-space: nowrap; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font: inherit; cursor: pointer; text-align: center; min-width: 64px;
}
.chip small { display: block; color: var(--muted); font-size: .75rem; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip[aria-pressed="true"] small { color: #ccc; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.times .chip { min-width: 0; }

label { display: block; font-size: .9rem; margin: 10px 0 4px; }
input[type=text], input[type=tel], input[type=password], input[type=date] {
  width: 100%; padding: 11px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.radio { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 1rem; }

.btn {
  display: inline-block; width: 100%; margin-top: 14px; padding: 13px 16px; border-radius: 10px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.small { width: auto; margin: 0; padding: 7px 10px; font-size: .85rem; font-weight: 500; }

.error { color: var(--bad); margin: 10px 0 0; }
.summary dt { color: var(--muted); font-size: .85rem; }
.summary dd { margin: 0 0 8px; font-weight: 500; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: #eee; }
.badge.confirmada, .badge.completada, .badge.pagado { background: #e3f4ea; color: var(--ok); }
.badge.pendiente_pago, .badge.pendiente, .badge.conflicto { background: #fdf0dc; color: var(--warn); }
.badge.cancelada, .badge.expirada, .badge.no_asistio, .badge.fallido { background: #fbe4e2; color: var(--bad); }

.appt { border-top: 1px solid var(--line); padding: 12px 0; }
.appt:first-child { border-top: 0; }
.appt .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.appt .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar input { flex: 1; }
