/* =====================================================================
   Valentina Beauty Care · Fidelización v2
   Paleta de marca: #bea380 · #dec5a2 · #dfceb9 · #efe8de · marrón del logo #644633
   ===================================================================== */
:root {
  --bg: #f7f2eb;
  --surface: #ffffff;
  --cream: #efe8de;
  --beige: #dfceb9;
  --gold-l: #dec5a2;
  --gold: #bea380;
  --brown: #644633;
  --ink: #3b2a20;
  --muted: #7d6b5e;
  --line: #e6dccf;
  --ok: #4f7a4a;
  --warn: #b86a2c;
  --bad: #b24b4b;
  --shadow: 0 14px 34px -20px rgba(100, 70, 51, .45);
  --r: 18px;
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.1; text-wrap: balance; }
h2 { font-size: 1.25rem; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hand { font-family: var(--f-hand); color: var(--gold); font-size: 1.35rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Botones y campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1.5px solid var(--brown); background: var(--surface);
  color: var(--brown); font: 600 .95rem/1 var(--f-body); padding: .8rem 1.1rem; border-radius: 999px; cursor: pointer; text-decoration: none; }
.btn.primary { background: linear-gradient(120deg, var(--gold), var(--gold-l) 50%, var(--gold)); border-color: transparent; color: var(--ink); box-shadow: 0 3px 0 #9c8360; }
.btn.ghost { background: transparent; }
.btn.small { padding: .55rem .85rem; font-size: .85rem; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.wa { background: #e7f3e6; border-color: #9cc39a; color: #2f5a2c; }
.btn:disabled { opacity: .45; cursor: default; }
.linkish { background: none; border: 0; padding: 0; color: var(--brown); font: inherit; text-decoration: underline; cursor: pointer; }
.field { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .search {
  width: 100%; font: 400 1rem var(--f-body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .85rem; }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { border-color: var(--gold); outline: none; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.stack { display: grid; gap: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.form-error { color: var(--bad); font-size: .9rem; margin-top: .8rem; text-align: center; }

/* ---------- Barra de demostración ---------- */
.demo-bar { position: sticky; top: 0; z-index: 30; background: var(--brown); color: var(--cream); font-size: .8rem; text-align: center;
  padding: .45rem max(16px, env(safe-area-inset-left)) .45rem; display: flex; gap: .8rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.demo-bar button { background: transparent; border: 1px solid var(--gold-l); color: var(--cream); border-radius: 999px; padding: .2rem .7rem; font: inherit; cursor: pointer; }

/* ---------- Ingreso ---------- */
.view { padding: 2rem max(16px, env(safe-area-inset-left)) 3rem max(16px, env(safe-area-inset-right)); }
#loginView { min-height: 90vh; display: grid; place-items: center; }
.login-card { width: min(420px, 100%); background: var(--surface); border-radius: 26px; padding: 2rem 1.6rem; box-shadow: var(--shadow); }
.logo { display: block; width: 230px; max-width: 80%; height: auto; margin: 0 auto 1.4rem; }
.logo.small { width: 170px; margin-bottom: 1rem; }
.logo.tiny { width: 120px; margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 4px; margin-bottom: 1.3rem; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: .6rem; font: 600 .9rem var(--f-body); color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--brown); box-shadow: 0 2px 8px rgba(100,70,51,.15); }

/* ---------- Tarjeta de la clienta ---------- */
.client-wrap { width: min(460px, 100%); margin: 0 auto; display: grid; gap: 1rem; text-align: center; }
.hello { font-size: 2rem; color: var(--brown); }
.loyalty { position: relative; background: linear-gradient(135deg, var(--cream), var(--beige) 60%, var(--gold-l)); border-radius: 24px; padding: 1.3rem 1.2rem 1.2rem; box-shadow: var(--shadow); text-align: left; overflow: hidden; }
.loyalty::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.35); }
.loyalty-head { display: flex; justify-content: space-between; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); position: relative; z-index: 1; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1rem 0 .8rem; position: relative; z-index: 1; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--gold); display: grid; place-items: center; text-align: center;
  font-size: .68rem; font-weight: 700; color: var(--brown); line-height: 1.05; padding: 4px; background: rgba(255,255,255,.4); }
.stamp.on { border: 0; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--brown); color: var(--cream); }
.stamp.on::before { content: "✓"; font-size: 1.2rem; display: block; }
.stamp.prize { border-style: solid; background: var(--surface); }
.stamp.prize.on { background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--gold); color: var(--ink); }
.stamp.prize.on::before { content: none; }
.stamp.used { opacity: .55; text-decoration: line-through; }
.loyalty-next { font-size: .9rem; color: var(--brown); position: relative; z-index: 1; }
.panel { background: var(--surface); border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); text-align: left; }
.panel h2 { margin-bottom: .6rem; }
.panel.miss { background: #f6e9e2; border: 1.5px solid #e2b9a6; }
.countdown { font-family: var(--f-display); font-size: 1.8rem; color: var(--brown); margin-top: .2rem; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
ul.plain li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .45rem; font-size: .92rem; }
.row-btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Panel admin ---------- */
#adminView { max-width: 980px; margin: 0 auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.admin-top-actions { display: flex; gap: .5rem; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border-radius: 16px; padding: .85rem .9rem; box-shadow: var(--shadow); border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.kpi b { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--brown); line-height: 1.1; }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi.alert b { color: var(--warn); }
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: .7rem .9rem; font: 600 .95rem var(--f-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brown); border-bottom-color: var(--gold); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: .8rem; flex-wrap: wrap; }
.search { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .4rem .8rem; font: 600 .82rem var(--f-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--cream); }

/* Agenda */
.day { margin-bottom: 1.1rem; }
.day h3 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.day h3.today { color: var(--brown); }
.appt { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .8rem; align-items: center; background: var(--surface); border-radius: 14px; padding: .75rem .9rem; box-shadow: var(--shadow); margin-bottom: .5rem; border-left: 4px solid var(--gold); }
.appt.st-asistio { border-left-color: var(--ok); }
.appt.st-cancelado, .appt.st-no_vino { border-left-color: var(--bad); opacity: .7; }
.appt .time { font-family: var(--f-display); font-size: 1.15rem; color: var(--brown); }
.appt .who { font-weight: 700; overflow-wrap: anywhere; }
.appt .what { font-size: .85rem; color: var(--muted); }
.appt .acts { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .appt { grid-template-columns: 54px minmax(0, 1fr); } .appt .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--cream); color: var(--brown); vertical-align: middle; }
.tag.warn { background: #f8e3d2; color: var(--warn); }
.tag.bad { background: #f5dcdc; color: var(--bad); }
.tag.ok { background: #e2efdf; color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; background: var(--surface); border-radius: var(--r); }

/* Lista de clientas */
.list { display: grid; gap: .5rem; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; background: var(--surface); border: 0; border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.crow .nm { font-weight: 700; overflow-wrap: anywhere; }
.crow .meta { font-size: .8rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .15rem; }
.mini { display: flex; gap: 3px; }
.mini i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--gold); display: block; }
.mini i.on { background: var(--brown); border-color: var(--brown); }

/* Importador */
.steps-list { margin: .3rem 0 1rem; padding-left: 1.2rem; display: grid; gap: .35rem; }
.drop { display: grid; place-items: center; gap: .2rem; border: 2px dashed var(--gold); border-radius: 16px; padding: 1.6rem 1rem; text-align: center; cursor: pointer; background: var(--cream); margin-bottom: .6rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop span { font-size: .85rem; color: var(--muted); }
.drop.over { background: var(--beige); }
.mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; margin: .8rem 0 1rem; }
.tablewrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .84rem; background: var(--surface); }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--cream); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
td.bad { color: var(--bad); }

/* ---------- Ventana emergente ---------- */
dialog { overflow-y: auto; overscroll-behavior: contain; border: 0; padding: 0; border-radius: 22px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px -20px rgba(59,42,32,.5); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(59, 42, 32, .45); }
.modal-inner { padding: 1.4rem 1.3rem 1.2rem; display: grid; gap: 1rem; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h2 { font-size: 1.45rem; color: var(--brown); }
.x { border: 0; background: var(--cream); width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--brown); flex: none; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.section-t { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: .3rem; }
.prizes { display: flex; gap: .5rem; flex-wrap: wrap; }
.code-box { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.code-box code { font: 700 1.2rem var(--f-body); letter-spacing: .2em; background: var(--cream); padding: .35rem .7rem; border-radius: 10px; color: var(--brown); }
.wa-row { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- Aviso flotante ---------- */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--brown); color: var(--cream);
  padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.bad { background: var(--bad); }

/* =====================================================================
   TURNERO: calendario, reservas y configuración
   ===================================================================== */
#adminView { max-width: 1240px; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--brown); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .6rem; }
.cal-nav, .cal-opts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cal-title { position: relative; font-family: var(--f-display); font-size: 1.15rem; color: var(--brown); cursor: pointer; padding: 0 .3rem; }
.cal-title input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cal-opts select { font: 600 .85rem var(--f-body); border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem .8rem; background: var(--surface); color: var(--ink); }
.seg.mini { margin: 0; display: inline-grid; grid-template-columns: auto auto; }
.seg.mini button { padding: .45rem .9rem; font-size: .85rem; }
.cal-legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg.conf { background: #f3ebe0; border-left: 3px solid var(--gold); } .lg.ok { background: #e2efdf; } .lg.ob { background: #fbf3d9; }
.lg.blk { background: repeating-linear-gradient(45deg, #ddd5cc, #ddd5cc 3px, #ece6df 3px, #ece6df 6px); } .lg.can { background: #f5dcdc; }
.cal-wrap { overflow-x: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.cal { display: grid; grid-template-columns: 52px repeat(var(--cols), minmax(150px, 1fr)); min-width: min(100%, calc(52px + var(--cols) * 150px)); }
.cal-head { display: contents; }
.cal-head > div { position: sticky; top: 0; z-index: 3; background: var(--surface); }
.cal-h { padding: .6rem .5rem; text-align: center; font-weight: 700; font-size: .88rem; border-bottom: 3px solid var(--pc); }
.cal-h.today { color: var(--brown); background: var(--cream); }
.cal-body { display: contents; }
.cal-times { position: relative; grid-column: 1; height: inherit; }
.cal-times, .cal-col { height: var(--H); }
.cal-times span { position: absolute; right: 6px; font-size: .72rem; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.cal-times span:first-child { transform: none; }
.cal-col { position: relative; border-left: 1px solid var(--line); cursor: copy;
  background: repeating-linear-gradient(45deg, #ece6df, #ece6df 4px, #f3efe9 4px, #f3efe9 8px); }
.cal-col .work { position: absolute; left: 0; right: 0; background: var(--surface) repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) / 2 - 1px), #f1ebe3 calc(var(--hour) / 2 - 1px), #f1ebe3 calc(var(--hour) / 2)); }
.cal-col .blk { position: absolute; left: 3px; right: 3px; border: 0; border-radius: 6px; text-align: left; padding: 3px 6px; font: 500 .72rem var(--f-body); color: #6d5f55; cursor: pointer; overflow: hidden;
  background: repeating-linear-gradient(45deg, #ddd5cc, #ddd5cc 4px, #e8e2db 4px, #e8e2db 8px); }
.cal-col .ap { position: absolute; left: 3px; right: 3px; border: 0; border-left: 4px solid var(--pc); border-radius: 6px; background: #f6eee3; padding: 3px 6px; text-align: left; cursor: pointer;
  overflow: hidden; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 2px 6px rgba(100,70,51,.12); font-family: var(--f-body); color: var(--ink); z-index: 1; }
.cal-col .ap.st-asistio { background: #e2efdf; }
.cal-col .ap.st-cancelado, .cal-col .ap.st-no_vino { background: #f5dcdc; opacity: .75; text-decoration: line-through; }
.cal-col .ap.ob { background: #fbf3d9; left: 22%; z-index: 2; }
.ap-t { font-size: .7rem; font-weight: 700; color: var(--brown); }
.ap-n { font-size: .78rem; font-weight: 700; line-height: 1.15; }
.ap-s { font-size: .7rem; color: var(--muted); line-height: 1.15; }
.nolink { font-style: normal; font-size: .62rem; background: #f8e3d2; color: var(--warn); border-radius: 999px; padding: 0 .35rem; }
.cal-col .now { position: absolute; left: 0; right: 0; height: 2px; background: #c0533c; z-index: 4; pointer-events: none; }
.cal-col .now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #c0533c; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (max-width: 480px) { .menu-grid { grid-template-columns: 1fr; } }
.picked { background: var(--cream); border-radius: 12px; padding: .6rem .8rem; }
.results { display: grid; gap: .3rem; }
.res { display: flex; justify-content: space-between; gap: .5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: .5rem .7rem; font: inherit; cursor: pointer; text-align: left; }
.res span { color: var(--muted); font-size: .85rem; }
.daystrip { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .3rem; }
.daystrip .chip { white-space: nowrap; flex: none; }
.chip.off, .chip:disabled { opacity: .4; }
.slots { display: flex; flex-wrap: wrap; gap: .35rem; }
.slots .chip { font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.field.small span { font-size: .78rem; }
.check.small { font-size: .85rem; }
.crow.inactive { opacity: .55; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--brown); }
.chip-check { border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .7rem; }
.sched { display: grid; gap: .4rem; }
.sched-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .5rem; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: .4rem; }
.sched-tr { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.tramo { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; }
.tramo input { font: inherit; border: 1.5px solid var(--line); border-radius: 8px; padding: .3rem .4rem; }
.svc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.svc-checks > div { display: grid; gap: .25rem; }
@media (max-width: 560px) { .sched-row { grid-template-columns: 1fr; } .cal-opts { width: 100%; } }

/* Selector de horas grande (bloqueos) */
.tpick { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: center; }
.tp { display: grid; justify-items: center; gap: .1rem; }
.tp > span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.tp-arr { width: 56px; height: 40px; border: 0; background: none; color: var(--brown); font-size: 1.1rem; cursor: pointer; border-radius: 10px; }
.tp-arr:active { background: var(--cream); }
.tp { min-width: 0; }
.tp input { font: 600 clamp(1.9rem, 9vw, 2.4rem)/1.1 var(--f-display); color: var(--ink); border: 0; border-bottom: 2px dashed var(--line); background: transparent;
  text-align: center; width: 5ch; max-width: 100%; font-variant-numeric: tabular-nums; padding: 0; border-radius: 0; }
.tp input:focus { outline: none; border-bottom-color: var(--gold); }
.tp input::-webkit-calendar-picker-indicator { display: none; }
.tp-durs { justify-content: center; }

/* =====================================================================
   RESERVA ONLINE (vista de la clienta)
   ===================================================================== */
.bk-cta { display: flex; margin-top: 1.2rem; }
#bookView { padding-top: 1rem; padding-bottom: 7rem; }
.book-wrap { width: min(640px, 100%); margin: 0 auto; }
.bk-head { text-align: center; display: grid; gap: .6rem; margin-bottom: 1rem; }
.bk-logo img { width: 150px; height: auto; }
.bk-head h1 { font-size: 1.8rem; color: var(--brown); }
.bk-steps { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: .3rem; flex-wrap: wrap; font-size: .75rem; }
.bk-steps li { padding: .25rem .6rem; border-radius: 999px; background: var(--cream); color: var(--muted); }
.bk-steps li.now { background: var(--brown); color: var(--cream); }
.bk-steps li.done { background: var(--gold-l); color: var(--ink); }
.bk-body { display: grid; gap: 1rem; }
/* Categorías: en compu se acomodan en renglones; en celular se deslizan con el dedo, sin barra visible */
.bk-cats { flex-wrap: wrap; }
@media (max-width: 640px) {
  .bk-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent 100%); }
  .bk-cats::-webkit-scrollbar { display: none; }
  .bk-cats .chip { flex: none; }
}
.bk-cats-box { min-width: 0; } /* evita que la fila de categorías ensanche la página */
/* Aviso para deslizar las categorías (solo celular, mientras queden categorías ocultas) */
.bk-hint { display: none; margin: .35rem 0 0; font-size: .8rem; color: var(--muted); text-align: right; }
.bk-hint span { display: inline-block; color: var(--brown); font-weight: 700; animation: bk-nudge 1.4s ease-in-out infinite; }
@keyframes bk-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (max-width: 640px) { .bk-hint.on { display: block; } }
@media (prefers-reduced-motion: reduce) { .bk-hint span { animation: none; } }
.bk-list { display: grid; gap: .5rem; }
.bk-svc { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .7rem; align-items: start; text-align: left; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 16px; padding: .85rem .9rem; font: inherit; color: inherit; cursor: pointer; }
.bk-svc[aria-pressed="true"] { border-color: var(--brown); background: color-mix(in srgb, var(--cream) 60%, var(--surface)); }
.bk-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--gold); margin-top: 2px; display: grid; place-items: center; }
.bk-svc[aria-pressed="true"] .bk-check { background: var(--brown); border-color: var(--brown); }
.bk-svc[aria-pressed="true"] .bk-check::after { content: "✓"; color: var(--cream); font-size: .8rem; font-weight: 700; }
.bk-svc-t { display: grid; gap: .15rem; min-width: 0; }
.bk-desc { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: var(--surface); box-shadow: 0 -10px 30px -12px rgba(100,70,51,.35);
  padding: .8rem max(16px, env(safe-area-inset-right), calc((100% - 640px) / 2)) calc(.8rem + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left), calc((100% - 640px) / 2)); }
.bk-bar span { font-size: .9rem; }
.bk-bar .btn { flex: none; }
.bk-days .chip { display: grid; justify-items: center; gap: 0; padding: .45rem .7rem; min-width: 58px; }
.bk-days .chip small { font-size: .7rem; font-weight: 500; }
.bk-h2 { font-size: 1.25rem; color: var(--brown); }
.bk-slots .chip { min-width: 74px; padding: .65rem .9rem; font-size: .95rem; }
.bk-sum { line-height: 1.5; }
.bk-ok { text-align: center; display: grid; gap: .5rem; justify-items: center; }
.bk-ok-i { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.bk-ok h2 { font-size: 1.7rem; color: var(--brown); }
.bk-code { text-align: center; display: grid; gap: .4rem; justify-items: center; }
.bk-actions .btn { width: 100%; }
.bk-actions .code-box { flex-wrap: nowrap; }
.bk-actions .code-box input { flex: 1; min-width: 0; font-size: .8rem; }

/* Cuentas */
.auth-t { font-size: 1.3rem; color: var(--brown); margin-bottom: .8rem; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: .9rem; }
.auth-mail { text-align: center; display: grid; gap: .5rem; justify-items: center; }
.auth-mail-i { font-size: 2.4rem; }
.invite-hi { background: var(--cream); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .8rem; }
.demo-hint { background: var(--cream); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .6rem; }
.panel.pending { background: #fbf3d9; border: 1.5px solid var(--gold-l); }
.panel.merge { background: #fbf3d9; border: 1.5px solid var(--gold-l); box-shadow: none; }
.bk-user { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9rem; }
