/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #F3F4F8;
  --card: #FFFFFF;
  --card-2: #F6F7FB;
  --text: #0F1220;
  --muted: #6B7185;
  --line: #E6E8F0;
  --btn-bg: #0F1220;
  --btn-fg: #FFFFFF;
  --lime: #C6F135;
  --lime-ink: #11140A;
  --ok: #16A34A;
  --ok-soft: #DCF5E5;
  --plan: #5B5BF0;
  --plan-soft: #E8E8FD;
  --warn: #D97706;
  --warn-soft: #FDF0D8;
  --danger: #DC2626;
  --hero-1: #12141F;
  --hero-2: #232845;
  --shadow: 0 1px 2px rgba(15, 18, 32, .04), 0 8px 24px rgba(15, 18, 32, .06);
  --r: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D14;
    --card: #151824;
    --card-2: #1B1F2E;
    --text: #F2F3F8;
    --muted: #8E94AB;
    --line: #242839;
    --btn-bg: #C6F135;
    --btn-fg: #11140A;
    --ok: #4ADE80;
    --ok-soft: #14301F;
    --plan: #8B8BFF;
    --plan-soft: #23264A;
    --warn: #FBBF24;
    --warn-soft: #3A2D10;
    --danger: #F87171;
    --hero-1: #1A1E33;
    --hero-2: #2A2F55;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { display: block; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--plan); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.shell { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: 0 16px calc(96px + var(--safe-b)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + var(--safe-t)) 2px 14px; }
.topbar h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.topbar .sub { font-size: 14px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.section-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 10px 2px -4px; }

.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }

/* ── Bottom nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + var(--safe-b));
}
.nav-inner { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nav button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0; border-radius: 14px; font-size: 12px; font-weight: 600; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav button[aria-current="page"] { color: var(--text); background: var(--card-2); }
.nav button[aria-current="page"] svg { color: var(--plan); }
@media (prefers-color-scheme: dark) { .nav button[aria-current="page"] svg { color: var(--lime); } }

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 16px;
  transition: transform .12s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.soft { background: var(--card-2); color: var(--text); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { background: transparent; color: var(--danger); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.ok { background: var(--ok); color: #fff; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--muted); background: var(--card); box-shadow: var(--shadow); }
.icon-btn:active { transform: scale(.94); }

/* ── Hero (plan activo) ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 20px;
  background: radial-gradient(120% 90% at 100% 0%, var(--hero-2) 0%, var(--hero-1) 60%);
  box-shadow: 0 14px 34px rgba(18, 20, 31, .28);
}
.hero-top { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255, 255, 255, .12); }
.ring .prog  { stroke: var(--lime); opacity: .38; transition: stroke-dasharray .9s cubic-bezier(.2, .8, .2, 1); }
.ring .done  { stroke: var(--lime); transition: stroke-dasharray .9s cubic-bezier(.2, .8, .2, 1); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.ring-lbl { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .65); margin-top: 4px; }
.hero-info .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.hero-info h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 4px 0 6px; }
.hero-info p { font-size: 14px; color: rgba(255, 255, 255, .7); font-weight: 500; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.hero-stat { background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 10px 8px 9px 12px; }
.hero-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.hero-stat span { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.hero-tip { margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .78); font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.hero-tip svg { color: var(--lime); margin-top: 1px; }

.empty-hero { text-align: center; padding: 26px 20px; }
.empty-hero .badge { width: 64px; height: 64px; border-radius: 20px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; margin: 0 auto 14px; }
.empty-hero h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.empty-hero p { color: rgba(255, 255, 255, .7); margin: 6px 0 18px; font-size: 15px; }
.empty-hero .btn { background: var(--lime); color: var(--lime-ink); }

/* ── Chips / etiquetas ──────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--card-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--card-2); border: 1.5px solid transparent; font-weight: 600; font-size: 15px;
  transition: all .12s;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.chip .x { display: none; }
.chip[aria-pressed="true"] .x { display: block; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 3px 9px 3px 7px; border-radius: 999px; }
.status.programada { color: var(--plan); background: var(--plan-soft); }
.status.asistida { color: var(--ok); background: var(--ok-soft); }
.status.pendiente { color: var(--warn); background: var(--warn-soft); }

/* ── Clase de hoy / listas ──────────────────────────────────────────────── */
.today-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.today-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.cta-empty { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-empty p { color: var(--muted); font-size: 15px; }

.item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow);
}
.item:active { transform: scale(.985); }
.date-box {
  width: 52px; height: 56px; border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0; line-height: 1.1;
}
.date-box small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.date-box b { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.what { font-weight: 700; font-size: 16px; }
.what.empty { color: var(--muted); font-weight: 500; }
.meta { font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 500; }

.pending-card { border: 1.5px solid var(--warn); background: var(--warn-soft); box-shadow: none; }
.pending-card h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.pending-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

/* ── Semana ─────────────────────────────────────────────────────────────── */
.week-bar { display: flex; align-items: center; gap: 10px; }
.week-label { flex: 1; text-align: center; }
.week-label b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.week-label span { font-size: 13px; color: var(--muted); font-weight: 500; }
.day { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: left; min-height: 76px; }
.day:active { transform: scale(.985); }
.day.today { outline: 2px solid var(--plan); outline-offset: -2px; }
@media (prefers-color-scheme: dark) { .day.today { outline-color: var(--lime); } }
.day.off { opacity: .45; box-shadow: none; background: transparent; border: 1px dashed var(--line); pointer-events: none; }
.day .plus { width: 34px; height: 34px; border-radius: 11px; background: var(--card-2); display: grid; place-items: center; color: var(--muted); }
.day.today .date-box { background: var(--btn-bg); color: var(--btn-fg); }
.day.today .date-box small { color: inherit; opacity: .7; }
.day.done .date-box { background: var(--ok-soft); color: var(--ok); }
.day.done .date-box small { color: inherit; }

/* ── Plan ───────────────────────────────────────────────────────────────── */
.plan-card { display: flex; align-items: center; gap: 12px; position: relative; }
.plan-card .months { width: 52px; height: 52px; border-radius: 17px; background: var(--plan-soft); color: var(--plan); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.plan-card .months b { font-size: 22px; font-weight: 800; }
.plan-card .months small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.plan-card h3 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.plan-card .meta { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.plan-card.current { outline: 2px solid var(--ok); outline-offset: -2px; }
.plan-card .edit { width: 36px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.add-plan { width: 100%; border: 1.5px dashed var(--line); border-radius: var(--r); padding: 16px; color: var(--muted); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pill-current { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.hist-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hist-row:last-child { border-bottom: 0; }
.hist-row small { display: block; color: var(--muted); font-size: 13px; }

/* ── Formularios ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; background: var(--card-2);
  border: 1.5px solid transparent; font-size: 16px; transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--plan); }
.error-msg { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Login ──────────────────────────────────────────────────────────────── */
.login { max-width: 400px; margin: 0 auto; min-height: 100dvh; padding: 0 22px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.login .logo { width: 68px; height: 68px; border-radius: 22px; background: #0B0D14; display: grid; place-items: center; box-shadow: var(--shadow); }
.login h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.login p.lead { color: var(--muted); margin-top: 8px; font-size: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-wrap button { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--muted); border-radius: 12px; }

/* ── Bottom sheet ───────────────────────────────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 18, .55); animation: fade .2s both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 520px; margin: 0 auto;
  background: var(--card); border-radius: 28px 28px 0 0; padding: 10px 20px calc(22px + var(--safe-b));
  max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; animation: up .28s cubic-bezier(.2, .8, .2, 1) both;
}
.sheet.closing { animation: down .2s ease-in both; }
.backdrop.closing { animation: fadeout .2s both; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.sheet .sub { color: var(--muted); font-size: 14.5px; font-weight: 500; margin-top: 2px; }
.sheet .body { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.sheet .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.summary { background: var(--card-2); border-radius: 16px; padding: 4px 16px; }
.summary div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary div:last-child { border-bottom: 0; }
.summary b { font-weight: 700; }
.notice { display: flex; gap: 10px; background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--card-2); padding: 4px; border-radius: 14px; }
.seg button { min-height: 44px; border-radius: 11px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }

/* ── Toast ──────────────────────────────────────────────────────────────── */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(92px + var(--safe-b)); z-index: 80; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: pop .25s both; max-width: 420px; text-align: center; }
.toast.err { background: var(--danger); color: #fff; }
.toast.out { animation: fadeout .25s both; }

.loader { display: grid; place-items: center; min-height: 100dvh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--line); border-top-color: var(--plan); animation: spin .8s linear infinite; }

@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.view.anim > * { animation: rise .35s both; }
.view.anim > *:nth-child(2) { animation-delay: .04s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.notice.info { background: var(--ok-soft); color: var(--ok); }
.pill-current { margin-left: 8px; }
button.hist-row { color: inherit; }
button.hist-row > span { display: flex; align-items: center; gap: 6px; }

.chip.small { min-height: 34px; padding: 0 13px; font-size: 14px; }

/* ═══ v5: reservas por bloque, nutrición y panel de administración ═══════════ */
.loader-inline { display: grid; place-items: center; padding: 36px 0; }
.h3 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.topbar .btn.small { flex-shrink: 0; }
.chip-sub { margin-left: 6px; font-size: 11.5px; font-weight: 600; opacity: .7; }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 12px; box-shadow: none; background: var(--card-2); }

/* Selector de bloques horarios */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 2px 8px; border-radius: 14px; background: var(--card-2); border: 1.5px solid transparent; transition: transform .1s; }
.slot:active { transform: scale(.96); }
.slot b { font-size: 15px; font-weight: 700; }
.slot small { font-size: 11px; font-weight: 600; color: var(--muted); }
.slot[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.slot[aria-pressed="true"] small { color: inherit; opacity: .75; }
.slot.off { opacity: .4; }
@media (max-width: 340px) { .slots { grid-template-columns: repeat(3, 1fr); } }

/* Tarjetas de cifras */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tiles.t3 { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.tile span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tile b { font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.tile b small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.delta.bien { color: var(--ok); }
.delta.ojo { color: var(--warn); }

/* Acordeones y tablas */
details.acc { padding: 0; overflow: hidden; }
details.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 15px 16px; font-weight: 700; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary svg { transition: transform .2s; color: var(--muted); }
details.acc[open] summary svg { transform: rotate(180deg); }
.acc-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.acc-body p { line-height: 1.5; }
.tbl-wrap { overflow-x: auto; padding: 0 8px 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td, .tbl th { padding: 8px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td:first-child, .tbl th:first-child { text-align: left; }
.acc-body .tbl td { white-space: normal; text-align: left; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 700; }
.tbl-grupo td { text-align: left; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--card-2); border: 0; }
.lista { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* Plan nutricional */
.plan-nut .kcal { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 12px; }
.plan-nut .kcal b { font-size: 46px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.plan-nut .kcal span { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .65); }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macros > div { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 8px 9px 12px; display: flex; flex-direction: column; }
.macros b { font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.macros span { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.comida h3 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; }
.grupo { margin-top: 10px; }
.grupo-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--plan); margin-bottom: 5px; }
@media (prefers-color-scheme: dark) { .grupo-t { color: var(--lime); } }
.grupo ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.grupo li { background: var(--card-2); border-radius: 10px; padding: 6px 10px; font-size: 14px; font-weight: 500; }
.comida-nota { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Agenda (administrador) */
.slot-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.slot-card.bloq { opacity: .75; border: 1.5px dashed var(--warn); box-shadow: none; }
.slot-h { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.coach-row { display: flex; flex-direction: column; gap: 6px; }
.coach-head { display: flex; align-items: center; gap: 8px; }
.coach-head .muted { margin-left: auto; font-weight: 700; font-size: 14px; }
.obar { height: 7px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.obar i { display: block; height: 100%; border-radius: 4px; background: var(--ok); transition: width .5s; }
.obar i.high { background: var(--warn); }
.obar i.full { background: var(--danger); }
.tag.cli { cursor: pointer; font-weight: 600; gap: 4px; }
.tag.cli.asistida { background: var(--ok-soft); color: var(--ok); }
.tag.cli:active { transform: scale(.96); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-h { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.cal-c { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: color-mix(in srgb, var(--ok) calc(var(--p) * 55%), var(--card-2)); font-size: 14px; }
.cal-c b { font-weight: 700; }
.cal-c small { font-size: 11px; font-weight: 700; min-height: 13px; opacity: .8; }
.cal-c.otro { opacity: .35; }
.cal-c.hoy { outline: 2px solid var(--plan); outline-offset: -2px; }
.cal-c.cerrado { background: repeating-linear-gradient(135deg, var(--card-2), var(--card-2) 4px, transparent 4px, transparent 8px); }
@media (prefers-color-scheme: dark) { .cal-c.hoy { outline-color: var(--lime); } }

/* Clientes */
.avatar { width: 46px; height: 46px; border-radius: 15px; background: var(--plan-soft); color: var(--plan); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.avatar.sm { width: 38px; height: 38px; border-radius: 12px; font-size: 14px; }
.pill-demo { margin-left: 8px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--warn); background: var(--warn-soft); padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.item.cliente { align-items: flex-start; }
.item.cliente .obar { margin: 6px 0 5px; }
.item.inactivo, .inactivo { opacity: .55; }
.item.sm { padding: 9px 12px; }
.item.sm .date-box { width: 44px; height: 46px; }
.item.sm .date-box b { font-size: 17px; }
.item.turno { cursor: default; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 16px; color: var(--muted); }
.search .input { padding-left: 42px; }
.plan-opt { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1.5px solid transparent; }
.plan-opt small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-opt svg { opacity: 0; color: var(--ok); }
.plan-opt[aria-pressed="true"] { border-color: var(--ok); background: var(--ok-soft); }
.plan-opt[aria-pressed="true"] svg { opacity: 1; }

/* Horarios y ajustes */
.dias-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dias-tabs button { min-height: 44px; border-radius: 12px; background: var(--card); font-weight: 800; box-shadow: var(--shadow); }
.dias-tabs button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--plan); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.hor-row { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 8px; align-items: center; }
.hor-row .input { min-height: 44px; font-size: 15px; padding: 0 30px 0 12px; }
.hor-row b { font-size: 13px; color: var(--muted); }

[hidden] { display: none !important; }
