@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #f3efe7;
  --cream: #ece6da;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #111113;
  --ink-2: #2b2b30;
  --muted: #6e6d73;
  --faint: #a3a2a8;
  --line: #e6e0d4;
  --line-2: #efeae0;
  --gold: #c9a227;
  --gold-soft: #f6efd9;
  --gold-ink: #8a6d10;
  --ok: #15803d;   --ok-soft: #e7f6ec;
  --info: #1d4ed8; --info-soft: #e8eefc;
  --warn: #b45309; --warn-soft: #fdf1e2;
  --bad: #c62828;  --bad-soft: #fdeaea;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(17,17,19,.04), 0 1px 1px rgba(17,17,19,.03);
  --sh-2: 0 1px 2px rgba(17,17,19,.04), 0 8px 24px -8px rgba(17,17,19,.10);
  --sh-3: 0 12px 40px -12px rgba(17,17,19,.25);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
svg.i { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.xs { font-size: .75rem; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: .95rem; cursor: pointer; background: var(--ink); color: #fff; text-decoration: none; transition: transform .15s var(--ease), background .15s, box-shadow .15s, opacity .15s; white-space: nowrap; }
.btn:hover { background: #26262b; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.lg { padding: 15px 22px; font-size: 1rem; border-radius: 14px; }
.btn.sm { padding: 8px 12px; font-size: .84rem; border-radius: 10px; gap: 6px; }
.btn.gold { background: var(--gold); color: #1a1405; }
.btn.gold:hover { background: #d4ae35; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); border-color: #dcd9d2; }
.btn.ok { background: var(--ok); } .btn.ok:hover { background: #12692f; }
.btn.bad { background: var(--surface); color: var(--bad); border-color: #f3caca; } .btn.bad:hover { background: var(--bad-soft); }
.btn.wa { background: #1fa855; } .btn.wa:hover { background: #1b964b; }
.btn.icon { padding: 10px; border-radius: 12px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(201,162,39,.45); outline-offset: 2px; }

/* ---------- Formularios ---------- */
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,19,.06); }
input::placeholder { color: var(--faint); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- Superficies ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r); padding: 12px 14px; font-size: .92rem; font-weight: 500; }
.alert svg { margin-top: 1px; }
.alert.err { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--gold-soft); color: var(--gold-ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.booked { background: var(--info-soft); color: var(--info); }
.badge.confirmed { background: var(--ok-soft); color: var(--ok); }
.badge.completed { background: var(--ink); color: #fff; }
.badge.no_show, .badge.black { background: var(--bad-soft); color: var(--bad); }
.badge.cancelled { background: var(--line-2); color: var(--faint); }
.badge.risk { background: var(--warn-soft); color: var(--warn); }
.badge.plain::before { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, #3a3a42, #17171a); }
.avatar.gold { background: linear-gradient(135deg, #e0bf55, #b38b17); color: #1a1405; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.skeleton { background: linear-gradient(90deg, #efede8 25%, #f7f6f3 50%, #efede8 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .35s var(--ease) both; }

/* ======================================================
   RESERVAS
   ====================================================== */
.hero { position: relative; overflow: hidden; background: #0e0e10; color: #fff; padding: 28px 20px 84px; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(201,162,39,.28), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.monogram { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: #141414; font-weight: 800; font-size: .95rem; letter-spacing: -.03em; box-shadow: 0 0 0 3px rgba(201,162,39,.55), 0 10px 28px -8px rgba(0,0,0,.6); overflow: hidden; flex: 0 0 auto; }
.monogram img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; color: rgba(255,255,255,.7); font-size: .88rem; }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero .meta svg { color: var(--gold); }

.booking { position: relative; z-index: 2; max-width: 1040px; margin: -60px auto 0; padding: 0 16px 140px; display: grid; gap: 20px; }
@media (min-width: 900px) { .booking { grid-template-columns: 1fr 340px; align-items: start; padding-bottom: 60px; } }
.booking > * , .steps > * { min-width: 0; }
.steps { display: grid; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-2); transition: opacity .25s var(--ease); }
.step.locked { opacity: .5; pointer-events: none; box-shadow: var(--sh-1); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--line-2); color: var(--muted); flex: 0 0 auto; transition: background .2s, color .2s; }
.step.done .step-num { background: var(--ink); color: #fff; }
.step-head .pick { margin-left: auto; font-size: .82rem; color: var(--muted); font-weight: 600; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.services { display: grid; gap: 10px; }
@media (min-width: 560px) { .services { grid-template-columns: 1fr 1fr; } }
.svc { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.svc:hover { border-color: #d6d3cc; }
.svc .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); flex: 0 0 auto; }
.svc b { display: block; font-size: .95rem; }
.svc .d { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); }
.svc .p { margin-left: auto; font-weight: 800; font-size: 1rem; }
.svc[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,19,.08); }
.svc[aria-pressed="true"] .ico { background: var(--ink); color: var(--gold); border-color: var(--ink); }

.barbers { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.barbers::-webkit-scrollbar, .days::-webkit-scrollbar { display: none; }
.barber { flex: 0 0 auto; width: 96px; padding: 14px 8px 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.barber .avatar { margin: 0 auto 8px; width: 48px; height: 48px; }
.barber > span:not(.avatar) { display: block; font-size: .84rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barber small { display: block; font-size: .7rem; color: var(--muted); }
.barber[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,19,.08); }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.day { flex: 0 0 auto; width: 64px; padding: 10px 0; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); text-align: center; cursor: pointer; scroll-snap-align: start; transition: all .15s; }
.day small { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.day em { display: block; font-style: normal; font-size: .7rem; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] em { color: rgba(255,255,255,.65); }
.day.closed { opacity: .4; }

.slot-group + .slot-group { margin-top: 16px; }
.slot-group h3 { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 11px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; cursor: pointer; font-variant-numeric: tabular-nums; transition: all .15s; }
.slot:hover { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 10px; color: var(--muted); font-size: .92rem; }
.empty svg { color: var(--faint); width: 32px; height: 32px; }

.summary { position: sticky; top: 20px; display: none; }
@media (min-width: 900px) { .summary { display: block; } }
.summary .card { padding: 22px; box-shadow: var(--sh-2); }
.sum-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.sum-row:first-of-type { border-top: 0; }
.sum-row svg { color: var(--muted); margin-top: 2px; }
.sum-row small { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; }
.sum-row b { font-size: .95rem; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sum-total b { font-size: 1.35rem; font-weight: 800; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bar-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar-info { flex: 1; min-width: 0; }
.bar-info b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-info small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) { .bar { display: none; } }

.done-wrap { max-width: 520px; margin: -60px auto 0; padding: 0 16px 60px; position: relative; z-index: 2; }
.done-card { text-align: center; padding: 32px 24px; }
.check-anim { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--ease) both; }
.check-anim svg { width: 36px; height: 36px; stroke-width: 2.4; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.ticket { margin: 20px 0; text-align: left; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.ticket .sum-row { padding: 12px 16px; }
.footer-note { text-align: center; font-size: .78rem; color: var(--faint); padding: 8px 0 24px; }

/* ======================================================
   PANEL
   ====================================================== */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #0e0e10; position: relative; overflow: hidden; }
.login::before { content: ''; position: absolute; width: 600px; height: 600px; top: -200px; right: -200px; background: radial-gradient(closest-side, rgba(201,162,39,.25), transparent 70%); }
.login-card { position: relative; width: 100%; max-width: 340px; text-align: center; color: #fff; }
.login-card .monogram { margin: 0 auto 18px; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 26px 0 8px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); transition: all .15s; }
.pin-dots i.on { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.key { height: 64px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: #fff; font-size: 1.5rem; font-weight: 600; cursor: pointer; display: grid; place-items: center; transition: background .12s, transform .12s; }
.key:hover { background: rgba(255,255,255,.1); }
.key:active { transform: scale(.94); background: rgba(255,255,255,.16); }
.key.fn { background: transparent; border-color: transparent; font-size: .9rem; color: rgba(255,255,255,.6); }
.login-err { min-height: 22px; color: #ff8a8a; font-size: .88rem; font-weight: 600; }

.app { min-height: 100vh; }
@media (min-width: 960px) { .app { display: grid; grid-template-columns: 248px 1fr; } }
.side { display: none; }
@media (min-width: 960px) {
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: #0e0e10; color: #fff; padding: 22px 14px; }
  .side .brand { padding: 0 8px 24px; }
  .side .monogram { width: 42px; height: 42px; font-size: .72rem; }
  .side nav { display: grid; gap: 4px; }
  .side nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 0; background: none; color: rgba(255,255,255,.65); font-weight: 600; cursor: pointer; text-align: left; }
  .side nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
  .side nav button[aria-selected="true"] { background: rgba(255,255,255,.1); color: #fff; }
  .side nav button[aria-selected="true"] svg { color: var(--gold); }
  .side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
}
.main { min-width: 0; padding-bottom: 96px; }
@media (min-width: 960px) { .main { padding-bottom: 40px; } }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: rgba(243,239,231,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .topbar { display: none; } .content { padding-top: 28px; } }
.topbar .who { display: flex; align-items: center; gap: 10px; }
.topbar .who .avatar { width: 36px; height: 36px; font-size: .82rem; }
.topbar .who b { display: block; font-size: .95rem; line-height: 1.2; }
.topbar .who small { display: block; font-size: .76rem; color: var(--muted); }
.content { max-width: 920px; margin: 0 auto; padding: 18px 16px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
.page-title h1 { font-size: 1.45rem; }

.datebar { display: flex; align-items: center; gap: 8px; }
.datebar .label { min-width: 0; flex: 1; }
.select-pill { width: auto; padding: 9px 36px 9px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6d73' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--sh-1); }
.kpi small { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.kpi b { display: block; font-size: 1.5rem; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
@media (max-width: 480px) { .kpi small svg { display: none; } .kpi b { font-size: 1.3rem; } }
.kpi.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi.dark small { color: rgba(255,255,255,.6); }
.kpi.dark b { color: var(--gold); }

.timeline { display: grid; gap: 10px; }
.appt { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 14px 0; box-shadow: var(--sh-1); overflow: hidden; }
.appt::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--info); }
.appt.confirmed::before { background: var(--ok); } .appt.completed::before { background: var(--ink); }
.appt.no_show::before { background: var(--bad); } .appt.cancelled::before { background: var(--line); }
.appt.cancelled { opacity: .55; }
.appt .t { text-align: right; padding-top: 1px; }
.appt .t b { display: block; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.appt .t small { display: block; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.appt .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.appt .top b { font-size: 1rem; }
.appt .sub { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .84rem; color: var(--muted); }
.appt .sub span { display: inline-flex; align-items: center; gap: 5px; }
.appt .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.appt.block { background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, #f2f0eb 10px 20px); box-shadow: none; }
.appt.block::before { background: var(--faint); }
.now-line { display: flex; align-items: center; gap: 8px; color: var(--bad); font-size: .74rem; font-weight: 700; }
.now-line::after { content: ''; flex: 1; height: 2px; background: var(--bad); border-radius: 2px; opacity: .6; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .86rem; cursor: pointer; transition: all .15s; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick button { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; transition: all .15s; box-shadow: var(--sh-1); }
.quick button:hover { border-color: var(--ink); }
.quick button .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.quick button b { font-size: .95rem; }
.quick button small { color: var(--muted); font-size: .8rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.earn-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.earn-row:first-child { border-top: 0; }
.earn-row .name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.earn-row .name .avatar { width: 34px; height: 34px; font-size: .78rem; }
.earn-row .amt { text-align: right; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.earn-row .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.meter { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #e3c35c); transition: width .5s var(--ease); }
.earn-total { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.earn-total small { display: block; color: rgba(255,255,255,.6); font-size: .76rem; font-weight: 600; }
.earn-total b { font-size: 1.6rem; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.list-item:first-child { border-top: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .grow small { display: block; color: var(--muted); font-size: .8rem; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 42px; border-radius: 999px; }

.qr-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .qr-grid { grid-template-columns: 1fr 1fr; } }
.qr-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; background: var(--surface-2); }
.qr-card img { width: 100%; max-width: 200px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.copy { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: left; }
.hours-row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 8px; align-items: center; margin: 6px 0; }
.hours-row .check { margin: 0; font-weight: 600; }
.hours-row input[type=time] { padding: 8px 10px; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 15; display: flex; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 7px 2px; border-radius: 12px; font-size: .7rem; font-weight: 600; color: var(--faint); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"] svg { color: var(--gold-ink); }
@media (min-width: 960px) { .tabs { display: none; } }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); width: max-content; box-shadow: var(--sh-3); animation: rise .25s var(--ease); }
@media (min-width: 960px) { .toast { bottom: 28px; } }
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(14,14,16,.45); backdrop-filter: blur(2px); display: grid; align-items: end; justify-items: center; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } }
.sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: rise .25s var(--ease); }
@media (min-width: 640px) { .sheet { border-radius: 24px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }

/* Simulador (herramienta de pruebas) */
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
