/* Citas del salón — esmalte: ciruela y frambuesa */
:root {
  --bg: #fbf5f9;
  --card: #ffffff;
  --ink: #2a1a33;
  --muted: #6f6177;
  --brand: #b8326f;
  --brand-ink: #ffffff;
  --soft: #f3e6f0;
  --line: #e7d5e3;
  --ok: #23703a;
  --bad: #b42323;
  --font-title: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1220;
    --card: #261a2d;
    --ink: #f6eef8;
    --muted: #bdaec4;
    --brand: #e0629b;
    --brand-ink: #1b1220;
    --soft: #34243d;
    --line: #433050;
    --ok: #6fcf8a;
    --bad: #ff8a8a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--font-body);
}
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font: 400 clamp(1.9rem, 8vw, 2.6rem)/1.1 var(--font-title); margin: 10px 0 8px; }
h2 { font-size: 1.05rem; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--soft); color: var(--brand); font: 400 .95rem var(--font-title);
}
.lead, .sub { color: var(--muted); margin: 0 0 8px; max-width: 60ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; }
label { display: block; font-weight: 600; margin: 14px 0 5px; font-size: .92rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px;
}
input[type=checkbox] { width: 22px; height: 22px; padding: 0; accent-color: var(--brand); flex: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
button, .btn {
  font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 14px 18px; min-height: 48px;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none;
  display: inline-block; text-align: center;
}
button.block, .btn.block { display: block; width: 100%; }
button.ghost, .btn.ghost { background: var(--soft); color: var(--ink); }
button.danger { background: var(--bad); color: #fff; }
button.small, .btn.small { padding: 8px 12px; font-size: .9rem; min-height: 38px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1; }
.hide { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 8px; }

/* Servicios */
.svc {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line); margin: 8px 0; font-weight: 700;
}
.svc span { color: var(--muted); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.svc.sel { border-color: var(--brand); background: var(--soft); }

/* Días en forma de uña: lo memorable de la página */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.chip {
  flex: 0 0 auto; width: 62px; padding: 10px 0 9px; min-height: 0; display: grid; gap: 1px; justify-items: center;
  border-radius: 31px 31px 14px 14px; background: var(--card); border: 1.5px solid var(--line);
  color: var(--ink); position: relative; overflow: hidden; scroll-snap-align: start; font-weight: 500;
}
.chip small { font-size: .74rem; color: var(--muted); text-transform: capitalize; }
.chip b { font: 400 1.4rem/1.1 var(--font-title); }
.chip em { font-style: normal; font-size: .72rem; color: var(--muted); }
.chip.sel { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip.sel small, .chip.sel em { color: inherit; opacity: .9; }
.chip.sel::after {
  content: ""; position: absolute; top: 8px; left: 12px; width: 6px; height: 22px; border-radius: 6px;
  background: rgba(255, 255, 255, .38); transform: rotate(8deg); pointer-events: none;
}
.chip:disabled { opacity: .38; }

/* Horas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.grid button { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.grid button.sel { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Consentimiento, anticipo y mensajes */
.tick { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; margin: 16px 0 6px; }
.tick a, .foot a, .doc a { color: var(--brand); font-weight: 600; }
.note { background: var(--soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; margin: 18px 0 0; }
.msg { padding: 12px 14px; border-radius: 12px; margin: 12px 0; background: var(--soft); }
.msg.err { background: #ffe3e3; color: #7d1f1f; }
@media (prefers-color-scheme: dark) { .msg.err { background: #4a2328; color: #ffd6d6; } }
.big { font: 400 1.8rem var(--font-title); margin: 4px 0; color: var(--brand); }
.pay { background: var(--soft); border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-weight: 600; word-break: break-word; }

/* Barra fija inferior */
.dock {
  position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line);
  margin: 22px -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
}
.summary { margin: 0 0 8px; color: var(--muted); font-size: .92rem; min-height: 1.4em; }
.foot { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 28px; }

/* Páginas legales */
.doc h2 { display: block; margin: 26px 0 6px; font: 400 1.25rem var(--font-title); }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 20px; }
.doc .meta { color: var(--muted); font-size: .9rem; }

/* Panel de la dueña (admin.html) */
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.badge.pendiente { background: #fff3bf; color: #6b4e00; }
.badge.confirmada { background: #d3f9d8; color: #1b5e20; }
.badge.cancelada { background: #ffe3e3; color: #7d1f1f; }
.badge.vencida { background: #ffe8cc; color: #7a3b00; }
.tabs { display: flex; gap: 6px; margin: 10px 0; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.tabs button { flex: 1; background: var(--soft); color: var(--ink); padding: 10px 6px; }
.tabs button.sel { background: var(--brand); color: var(--brand-ink); }
.appt { display: grid; gap: 4px; }
.appt .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.appt .time { font-weight: 800; font-size: 1.1rem; }
.appt .who { font-weight: 700; }
.appt .meta { color: var(--muted); font-size: .88rem; }
.appt a { color: var(--brand); font-weight: 600; }
.day-h { margin: 18px 0 4px; font-weight: 800; text-transform: capitalize; }
.hours-row { display: grid; grid-template-columns: 78px 1fr 1fr; gap: 6px; align-items: center; margin: 6px 0; }
.hours-row .d { font-weight: 600; }
.hours-row.closed input[type=time] { opacity: .35; }

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