/* ==========================================================================
   HairVoice by Zentria · sistema visual
   ========================================================================== */

:root {
    --brand: #3b5bff;
    --brand-2: #2742d8;
    --brand-soft: #edf1ff;
    --brand-ink: #1f34a8;
    --accent: #0fb5a6;
    --accent-soft: #e6fbf8;
    --ink: #0b1226;
    --ink-2: #1d2939;
    --muted: #667085;
    --muted-2: #98a2b3;
    --bg: #f4f6fb;
    --panel: #ffffff;
    --panel-2: #fbfcfe;
    --line: #e7eaf1;
    --line-strong: #d6dbe7;
    --ok: #087443;
    --ok-soft: #e7f8ef;
    --warn: #b54708;
    --warn-soft: #fff4e5;
    --err: #b42318;
    --err-soft: #fdecea;
    --vip: #7c3aed;
    --vip-soft: #f3e8ff;
    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 18px 40px -24px rgba(16, 24, 40, .3);
    --sidebar-w: 254px;
    --hour-h: 68px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

html[data-theme="dark"] {
    --brand: #7f97ff;
    --brand-2: #5a78ff;
    --brand-soft: #17224a;
    --brand-ink: #c7d3ff;
    --accent: #2ee3ce;
    --accent-soft: #0d2b2a;
    --ink: #e8eefb;
    --ink-2: #d5def0;
    --muted: #9aa8bf;
    --muted-2: #76859c;
    --bg: #070c17;
    --panel: #0e1526;
    --panel-2: #111a2c;
    --line: #1f2a40;
    --line-strong: #2b3853;
    --ok: #6ee7b7;
    --ok-soft: #0d2a1f;
    --warn: #fec84b;
    --warn-soft: #2e230c;
    --err: #fda29b;
    --err-soft: #331412;
    --vip: #c4a5ff;
    --vip-soft: #251743;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 18px 40px -24px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 14.5px/1.55 var(--font);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 8px; }
img, svg { vertical-align: middle; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
::selection { background: rgba(59, 91, 255, .18); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------- Shell ---------------------------------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar {
    width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
    background:
        radial-gradient(520px 240px at 10% -5%, rgba(70, 105, 255, .35), transparent 65%),
        radial-gradient(380px 200px at 110% 40%, rgba(15, 181, 166, .16), transparent 60%),
        linear-gradient(180deg, #0a1020 0%, #0a1122 55%, #070d1a 100%);
    color: #fff; display: flex; flex-direction: column;
    padding: 18px 12px 12px; position: sticky; top: 0; height: 100vh;
    z-index: 60; border-right: 1px solid rgba(255, 255, 255, .04);
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 14px; }
.side-brand { text-decoration: none; display: block; }
.side-brand .brandmark strong { color: #fff !important; }
.side-brand .brandmark span span { color: rgba(255, 255, 255, .55) !important; }
.side-close { display: none; border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; }
.side-salon { padding: 0 4px 12px; }
.salon-switch {
    display: flex; align-items: center; gap: 6px; position: relative;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px; padding: 0 8px; color: #dfe7ff;
}
.salon-switch:hover { background: rgba(255, 255, 255, .1); }
.salon-switch-icon { display: inline-flex; opacity: .8; }
.salon-switch select {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent;
    color: #eef2ff; font: inherit; font-size: .8rem; font-weight: 600;
    padding: 9px 20px 9px 2px; width: 100%; min-width: 0; cursor: pointer;
}
.salon-switch select option { color: #101828; background: #fff; }
.salon-switch-caret { position: absolute; right: 8px; pointer-events: none; opacity: .7; }
.side-nav { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding-right: 2px; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 6px; }
.nav-group { padding: 6px 0 2px; }
.nav-label {
    font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255, 255, 255, .34); padding: 7px 12px 5px; font-weight: 700;
}
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px;
    border-radius: 9px; color: #a9b6cd; text-decoration: none;
    font-size: .83rem; font-weight: 500; transition: background .15s, color .15s, transform .1s;
    position: relative; margin: 1px 0;
}
.nav-item .ico { opacity: .85; flex: 0 0 auto; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.on {
    background: linear-gradient(90deg, rgba(59, 91, 255, .44), rgba(59, 91, 255, .1));
    color: #fff; box-shadow: inset 3px 0 0 #7d9bff;
}
.nav-item.on .ico { opacity: 1; color: #b9c8ff; }
.nav-badge:empty { display: none; }
.nav-badge {
    margin-left: auto; background: #ff6b57; color: #fff; font-size: .62rem; font-weight: 800;
    min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center; padding: 0 5px;
}
.side-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; margin-top: 8px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 2px 8px 8px; min-width: 0; }
.side-user-info { min-width: 0; }
.side-user-info strong { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-info span { display: block; font-size: .67rem; color: rgba(255, 255, 255, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-actions { display: flex; gap: 6px; padding: 0 6px; }
.side-actions .icon-btn { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #dfe7ff; flex: 1; }
.side-actions .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.inline-form { display: contents; }
.sidebar-overlay { display: none; }

/* -------------------------------- Topbar -------------------------------- */
.topbar {
    display: flex; align-items: center; gap: 12px; padding: 11px 24px;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
    min-height: 60px;
}
.menu-btn { display: none; }
.crumb { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: .8rem; color: var(--muted); }
.crumb a { text-decoration: none; font-weight: 600; color: var(--ink); white-space: nowrap; }
.crumb a:hover { color: var(--brand); }
.crumb-sep { opacity: .5; }
.crumb-current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 36px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--panel); color: var(--ink); cursor: pointer; font: inherit;
    text-decoration: none; position: relative; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--panel-2); border-color: var(--line-strong); }
.top-queue.has-dot { border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.dot-count {
    position: absolute; top: -6px; right: -6px; background: #ff5a4d; color: #fff;
    font-size: .6rem; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
    box-shadow: 0 0 0 2px var(--panel);
}
.top-user { text-decoration: none; }
.top-cta { height: 34px; }
.only-dark { display: none; }
[data-theme="dark"] .only-light { display: none; }
[data-theme="dark"] .only-dark { display: inline-flex; }

/* -------------------------------- Content ------------------------------- */
.content { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px 26px 60px; }
.app-footer {
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 14px 26px 22px; color: var(--muted-2); font-size: .72rem;
    border-top: 1px solid var(--line); max-width: 1480px; margin: 0 auto; width: 100%;
}
.app-footer small { opacity: .75; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

.page-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.page-head-text { min-width: 0; }
.page-head h1 { font-size: 1.55rem; line-height: 1.2; font-weight: 750; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px; color: var(--brand);
    font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 6px;
}
.sub { color: var(--muted); font-size: .88rem; margin: 5px 0 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------- Buttons -------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font: inherit; font-size: .8rem; font-weight: 650; padding: 8px 13px;
    border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel);
    color: var(--ink); text-decoration: none; cursor: pointer; line-height: 1.3;
    transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
    white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn .ico { flex: 0 0 auto; }
.btn-p {
    background: linear-gradient(180deg, #4c6bff, var(--brand)); border-color: var(--brand);
    color: #fff; box-shadow: 0 6px 16px -8px rgba(59, 91, 255, .7);
}
.btn-p:hover { background: linear-gradient(180deg, #4162ff, var(--brand-2)); border-color: var(--brand-2); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel-2); color: var(--ink); }
.btn-d { color: var(--err); border-color: color-mix(in srgb, var(--err) 28%, var(--line)); background: var(--panel); }
.btn-d:hover { background: var(--err-soft); }
.btn-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, var(--line)); }
.btn-sm { padding: 5px 9px; font-size: .73rem; border-radius: 8px; gap: 5px; }
.btn-lg { padding: 11px 18px; font-size: .88rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-group { display: inline-flex; gap: 0; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 9px 0 0 9px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 9px 9px 0; }

/* -------------------------------- Cards --------------------------------- */
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden;
}
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.card-head h2 { font-size: .92rem; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.card-head h2 .ico { color: var(--brand); }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card-body { padding: 16px 18px 18px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-2); }
.card.accent { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title-row h2 { font-size: .95rem; }

.grid { display: grid; gap: 13px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.grid-2-1 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; align-items: start; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .wrap { flex-wrap: wrap; }
.ml-auto { margin-left: auto; } .text-right { text-align: right; } .text-center { text-align: center; }
.muted { color: var(--muted); } .small { font-size: .78rem; } .tiny { font-size: .69rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------- Stats -------------------------------- */
.stat {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 15px; position: relative; overflow: hidden; min-height: 96px;
    box-shadow: var(--shadow-sm);
}
.stat::after {
    content: ""; position: absolute; right: -32px; top: -38px; width: 96px; height: 96px;
    border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 14%, transparent), transparent 68%);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 750; }
.stat-icon { color: var(--brand); opacity: .7; display: inline-flex; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.15; margin: 7px 0 1px; letter-spacing: -.035em; font-weight: 750; }
.stat small { font-size: .72rem; color: var(--muted); display: block; }
.stat .trend { font-size: .7rem; font-weight: 700; margin-top: 4px; display: inline-flex; align-items: center; gap: 3px; }
.trend.up { color: var(--ok); } .trend.down { color: var(--err); } .trend.flat { color: var(--muted); }
.stat.brand { background: linear-gradient(135deg, #1b2f7a, var(--brand)); border-color: transparent; color: #fff; }
.stat.brand .stat-label, .stat.brand small { color: rgba(255, 255, 255, .72); }
.stat.brand .stat-icon { color: #fff; opacity: .85; }

/* -------------------------------- Pills --------------------------------- */
.pill {
    display: inline-flex; align-items: center; gap: 4px; font-size: .64rem;
    font-weight: 750; padding: 2.5px 8px; border-radius: 999px;
    background: var(--panel-2); color: var(--muted); white-space: nowrap;
    border: 1px solid transparent; line-height: 1.5;
}
.pill.ok, .pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.danger { background: var(--err-soft); color: var(--err); }
.pill.warn, .pill.warning { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--brand-soft); color: var(--brand-ink); }
.pill.vip { background: var(--vip-soft); color: var(--vip); }
.pill.muted { background: var(--panel-2); color: var(--muted); border-color: var(--line); }
.pill.progress { background: #eef7ff; color: #0b63b8; }
[data-theme="dark"] .pill.progress { background: #0e2440; color: #8cc7ff; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* -------------------------------- Tables -------------------------------- */
.table-wrap { overflow-x: auto; margin: 0; border-radius: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .82rem; }
table.data th {
    text-align: left; font-size: .63rem; text-transform: uppercase; letter-spacing: .09em;
    color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line);
    font-weight: 750; background: var(--panel-2); white-space: nowrap; position: sticky; top: 0;
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--panel-2); }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data .cell-main { font-weight: 650; color: var(--ink); text-decoration: none; }
table.data .cell-main:hover { color: var(--brand); }
table.data .cell-sub { font-size: .7rem; color: var(--muted); }
.row-actions { display: inline-flex; gap: 4px; }
.list-plain { list-style: none; margin: 0; padding: 0; }

.pager { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.pager .btn { min-width: 32px; padding: 4px 8px; }
.pager .btn.cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-info { margin-left: auto; font-size: .72rem; color: var(--muted); }

/* -------------------------------- Forms --------------------------------- */
.field { margin-bottom: 12px; min-width: 0; }
.field > label, .field-label {
    display: block; font-weight: 650; font-size: .75rem; margin: 0 0 5px; color: var(--ink-2);
}
.field .hint { display: block; font-size: .69rem; color: var(--muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="time"], input[type="search"],
input[type="datetime-local"], input[type="url"], select, textarea {
    font: inherit; font-size: .84rem; padding: 8.5px 11px; border: 1px solid var(--line-strong);
    border-radius: 9px; width: 100%; background: var(--panel); color: var(--ink);
    transition: border-color .15s, box-shadow .15s; min-height: 38px;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
input[readonly], input[disabled], select[disabled], textarea[readonly] { background: var(--panel-2); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .span-2, .form-grid-3 .span-2 { grid-column: span 2; }
.form-grid-3 .span-3 { grid-column: span 3; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.form-actions .ml-auto { margin-left: auto; }
.inline-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-fields > * { flex: 1; min-width: 120px; }
.form-note { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .76rem; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 14px; }
legend { font-size: .78rem; font-weight: 700; padding: 0 6px; color: var(--ink-2); }

.switch { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: .8rem; margin: 8px 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
    width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong);
    position: relative; flex: 0 0 auto; transition: background .18s; margin-top: 1px;
}
.switch-thumb {
    position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(16px); }
.switch-label { line-height: 1.35; }
.switch-label small { display: block; color: var(--muted); font-size: .7rem; }

.range-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.range-row input { width: 110px; }
.range-row .range-dash { color: var(--muted); }

/* ------------------------------- Alerts --------------------------------- */
.alert {
    display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px;
    border-radius: 11px; font-size: .82rem; margin-bottom: 14px;
    border: 1px solid var(--line); background: var(--panel); color: var(--ink);
}
.alert .ico { flex: 0 0 auto; margin-top: 1px; }
.alert > span { flex: 1; }
.alert-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 22%, var(--line)); color: var(--ok); }
.alert-err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 22%, var(--line)); color: var(--err); }
.alert-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 22%, var(--line)); color: var(--warn); }
.alert-info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 20%, var(--line)); color: var(--brand-ink); }
.alert-close { border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; padding: 0; display: inline-flex; }
.alert-close:hover { opacity: 1; }

/* ------------------------------- Empty ---------------------------------- */
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty-icon {
    width: 52px; height: 52px; border-radius: 15px; display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: 10px;
    background: var(--brand-soft); color: var(--brand);
}
.empty strong { display: block; color: var(--ink); font-size: .92rem; margin-bottom: 4px; }
.empty p { font-size: .8rem; max-width: 420px; margin: 0 auto 12px; }

/* -------------------------------- Tabs ---------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a {
    padding: 9px 12px; color: var(--muted); text-decoration: none; font-weight: 650;
    font-size: .8rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }

/* -------------------------------- List ---------------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
    display: flex; align-items: center; gap: 11px; padding: 10px 0;
    border-bottom: 1px solid var(--line); min-width: 0;
}
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }
.li-main { min-width: 0; flex: 1; }
.li-title { font-weight: 650; font-size: .83rem; color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-title:hover { color: var(--brand); }
.li-sub { font-size: .71rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.li-side { text-align: right; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.li-amount { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }

.avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--av, var(--brand)), color-mix(in srgb, var(--av, var(--brand)) 60%, #000));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 750; letter-spacing: .02em; text-transform: uppercase;
}
.avatar.sm { width: 27px; height: 27px; font-size: .64rem; }
.avatar.lg { width: 44px; height: 44px; font-size: .9rem; }
.avatar.xl { width: 60px; height: 60px; font-size: 1.15rem; }

/* ------------------------------ Timeline -------------------------------- */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 14px; }
.tl-item::before {
    content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--panel); border: 2px solid var(--brand);
}
.tl-item.sale::before { border-color: var(--ok); }
.tl-item.call::before { border-color: var(--accent); }
.tl-item.note::before { border-color: var(--warn); }
.tl-when { font-size: .68rem; color: var(--muted-2); }
.tl-title { font-size: .82rem; font-weight: 650; }
.tl-meta { font-size: .73rem; color: var(--muted); }

/* ------------------------------- Progress ------------------------------- */
.progress { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #7b95ff); }
.progress.ok > span { background: linear-gradient(90deg, #12b981, #6ee7b7); }
.progress.warn > span { background: linear-gradient(90deg, #f79009, #fec84b); }

/* -------------------------------- Charts -------------------------------- */
.bars { display: flex; align-items: flex-end; gap: 4px; padding: 6px 2px 0; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar-col .bar {
    width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #7b95ff, var(--brand)); min-height: 2px;
    transition: height .4s cubic-bezier(.4, 0, .2, 1);
}
.bar-col:hover .bar { filter: brightness(1.1); }
.bar-col small { font-size: .6rem; color: var(--muted-2); white-space: nowrap; height: 12px; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.mini-bars span { flex: 1; background: color-mix(in srgb, var(--brand) 70%, transparent); border-radius: 3px 3px 0 0; min-height: 2px; }
.donut {
    width: 120px; height: 120px; border-radius: 50%; position: relative;
    background: conic-gradient(var(--brand) 0 60%, var(--accent) 60% 80%, #f79009 80% 100%);
}
.donut::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--panel); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; font-size: .72rem; color: var(--muted); }
.donut-center b { display: block; font-size: 1.05rem; color: var(--ink); }

/* ------------------------------- Calendar ------------------------------- */
.cal-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav h2 { font-size: 1.05rem; font-weight: 750; margin: 0 6px; }
.cal-nav .btn { padding: 5px 9px; }
.cal-views { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.cal-views a {
    padding: 7px 12px; font-size: .76rem; font-weight: 650; color: var(--muted);
    text-decoration: none; border-right: 1px solid var(--line);
}
.cal-views a:last-child { border-right: 0; }
.cal-views a.on { background: var(--brand-soft); color: var(--brand-ink); }
.cal-toolbar .spacer { flex: 1; }
.cal-filters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cal-filters select, .cal-filters input { min-height: 34px; font-size: .78rem; padding: 6px 9px; width: auto; }

.cal-day { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.cal-head-row {
    display: grid; border-bottom: 1px solid var(--line); background: var(--panel-2);
    position: sticky; top: 59px; z-index: 12;
}
.cal-head-gutter { border-right: 1px solid var(--line); }
.cal-staff-head { display: grid; }
.cal-staff-cell {
    padding: 9px 10px; border-right: 1px solid var(--line); min-width: 0;
    display: flex; align-items: center; gap: 8px;
}
.cal-staff-cell:last-child { border-right: 0; }
.cal-staff-cell .name { font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-staff-cell .hours { font-size: .65rem; color: var(--muted); white-space: nowrap; }
.cal-staff-cell .status-note { font-size: .62rem; color: var(--err); }

.cal-body-row { display: grid; }
.cal-time-axis { border-right: 1px solid var(--line); position: relative; }
.cal-time-label {
    position: absolute; right: 8px; font-size: .64rem; color: var(--muted-2);
    transform: translateY(-50%); font-variant-numeric: tabular-nums;
}
.cal-cols { display: grid; }
.cal-col {
    position: relative; border-right: 1px solid var(--line);
    background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour-h));
    cursor: crosshair;
}
.cal-col:last-child { border-right: 0; }
.cal-col.closed { background-color: color-mix(in srgb, var(--muted) 6%, transparent); cursor: not-allowed; }
.cal-col .cal-block { cursor: pointer; }
.cal-block {
    position: absolute; left: 4px; right: 4px; border-radius: 8px;
    background: color-mix(in srgb, var(--c, var(--brand)) 15%, var(--panel));
    border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 42%, var(--line));
    border-left: 3px solid var(--c, var(--brand));
    padding: 4px 6px; overflow: hidden; z-index: 3;
    font-size: .7rem; line-height: 1.3; min-height: 22px;
    transition: box-shadow .15s, transform .1s;
    display: flex; flex-direction: column; gap: 1px;
}
.cal-block:hover { box-shadow: var(--shadow-md); z-index: 8; }
.cal-block .cb-time { font-weight: 750; font-size: .66rem; color: color-mix(in srgb, var(--c, var(--brand)) 70%, var(--ink)); }
.cal-block .cb-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.cal-block .cb-svc { font-size: .62rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.cal-block .cb-detail { display: flex; align-items: baseline; gap: 2px; min-width: 0; overflow: hidden; }
.cal-block.status-cancelled { opacity: .5; text-decoration: line-through; }
.cal-block.status-no_show { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.cal-block.status-completed { opacity: .82; }
.cal-block.status-in_service { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent); }
.cal-block.is-dragging { opacity: .45; }
.cal-col.drop-target { background-color: color-mix(in srgb, var(--brand) 7%, transparent); }
.cal-now {
    position: absolute; left: 0; right: 0; height: 2px; background: #f04438;
    z-index: 6; pointer-events: none;
}
.cal-now::before {
    content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px;
    border-radius: 50%; background: #f04438;
}
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: .7rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-scroll {
    overflow: auto;
    max-height: calc(100vh - 190px);
    min-height: 360px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.cal-scroll .cal-day { overflow: visible; min-width: 660px; }
.cal-scroll .cal-head-row { top: 0; }
.cal-mobile { display: none; }

/* Week view */
.cal-week { border: 1px solid var(--line); border-radius: 14px; overflow: auto; background: var(--panel); max-height: calc(100vh - 190px); }
.week-grid { display: grid; grid-template-columns: 130px repeat(7, minmax(120px, 1fr)); min-width: 900px; }
.week-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; min-height: 92px; }
.week-cell:last-child { border-right: 0; }
.week-head-cell {
    background: var(--panel-2); font-size: .7rem; font-weight: 700; padding: 8px;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 3;
}
.week-head-cell .dow { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.week-head-cell.today { background: var(--brand-soft); color: var(--brand-ink); }
.week-staff {
    background: var(--panel-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 8px; font-size: .74rem; font-weight: 700; display: flex; align-items: center; gap: 6px;
    position: sticky; left: 0; z-index: 2;
}
.week-chip {
    display: block; text-decoration: none; color: var(--ink); font-size: .68rem;
    background: color-mix(in srgb, var(--c, var(--brand)) 13%, var(--panel));
    border-left: 3px solid var(--c, var(--brand)); border-radius: 6px;
    padding: 2px 5px; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.week-chip:hover { background: color-mix(in srgb, var(--c, var(--brand)) 22%, var(--panel)); }
.week-chip .t { font-weight: 750; }
.week-empty { color: var(--muted-2); font-size: .66rem; text-align: center; padding-top: 18px; }

/* Month view */
.cal-month { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month-dow {
    background: var(--panel-2); padding: 7px 8px; font-size: .62rem; text-transform: uppercase;
    letter-spacing: .09em; color: var(--muted); font-weight: 750; border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.month-day {
    min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 5px; position: relative; text-decoration: none; color: inherit; display: block;
    transition: background .12s;
}
.month-day:nth-child(7n) { border-right: 0; }
.month-day:hover { background: var(--panel-2); }
.month-day.out { background: color-mix(in srgb, var(--muted) 5%, transparent); color: var(--muted-2); }
.month-day.today { background: color-mix(in srgb, var(--brand) 7%, var(--panel)); }
.month-day .dnum { font-size: .76rem; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; }
.month-day.today .dnum { background: var(--brand); color: #fff; }
.month-day .m-count { font-size: .6rem; color: var(--muted); float: right; margin-top: 3px; }
.month-ev {
    display: block; font-size: .62rem; margin-top: 2px; padding: 1px 4px; border-radius: 4px;
    background: color-mix(in srgb, var(--c, var(--brand)) 15%, var(--panel));
    border-left: 2px solid var(--c, var(--brand));
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink);
}
.month-more { font-size: .6rem; color: var(--muted); margin-top: 2px; display: block; }

/* Agenda list (mobile / stylist) */
.agenda { display: flex; flex-direction: column; gap: 8px; }
.agenda-item {
    display: flex; gap: 10px; padding: 11px 12px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--panel); text-decoration: none; color: inherit;
    border-left: 4px solid var(--c, var(--brand)); align-items: center;
}
.agenda-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.agenda-time { font-weight: 750; font-size: .8rem; width: 44px; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.agenda-main { flex: 1; min-width: 0; }
.agenda-main strong { display: block; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-main small { color: var(--muted); font-size: .7rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.agenda-day-label {
    font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
    font-weight: 750; margin: 12px 0 2px;
}

/* ------------------------------- Booking -------------------------------- */
.booking-shell { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }
.booking-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.booking-step {
    font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--panel);
    border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.booking-step.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 7px; }
.slot {
    display: block; text-align: center; padding: 8px 4px; border: 1px solid var(--line-strong);
    border-radius: 9px; font: inherit; font-size: .8rem; font-weight: 650; text-decoration: none; color: var(--ink);
    background: var(--panel); cursor: pointer; width: 100%;
}
.slot:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.slot.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot.full { opacity: .35; pointer-events: none; text-decoration: line-through; }
.slot input { display: none; }
.slot-label { display: block; }
.day-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pill {
    min-width: 72px; text-align: center; padding: 7px 10px; border-radius: 10px;
    border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--panel);
    font-size: .74rem;
}
.day-pill small { display: block; font-size: .64rem; color: var(--muted); }
.day-pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.day-pill.on small { color: rgba(255, 255, 255, .8); }
.services-pick { display: flex; flex-direction: column; gap: 7px; }
.service-choice {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer; background: var(--panel);
}
.service-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.service-choice input { flex: 0 0 auto; }
.service-choice .sc-main { flex: 1; min-width: 0; }
.service-choice .sc-main strong { display: block; font-size: .82rem; }
.service-choice .sc-main small { color: var(--muted); font-size: .7rem; }
.service-choice .sc-price { font-weight: 700; font-size: .8rem; }

/* Service picker (admin) */
.service-picker { display: grid; gap: 12px; }
.sp-cat-title { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 750; margin-bottom: 5px; }
.sp-item {
    display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line);
    border-radius: 8px; margin-bottom: 5px; cursor: pointer; background: var(--panel); font-size: .78rem;
}
.sp-item:hover { background: var(--panel-2); }
.sp-item input { flex: 0 0 auto; }
.sp-main { flex: 1; min-width: 0; }
.sp-main strong { display: block; font-weight: 650; }
.sp-main small { color: var(--muted); font-size: .66rem; }
.sp-price { color: var(--muted); font-size: .74rem; white-space: nowrap; }

/* -------------------------------- Queue --------------------------------- */
.queue-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.queue-card {
    border: 1px solid var(--line); border-radius: 13px; background: var(--panel);
    padding: 13px; display: flex; flex-direction: column; gap: 10px;
    border-top: 3px solid var(--c, var(--brand));
}
.queue-card .qc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.queue-card .qc-name { font-weight: 750; font-size: .86rem; }
.queue-card .qc-meta { font-size: .7rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.queue-card .qc-note { font-size: .74rem; background: var(--panel-2); border-radius: 7px; padding: 6px 8px; color: var(--ink-2); }
.qc-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.wait-badge { font-size: .68rem; font-weight: 750; padding: 2px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.wait-badge.calm { background: var(--ok-soft); color: var(--ok); }

/* -------------------------------- Toast --------------------------------- */
.toast-root { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
    background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
    font-size: .8rem; box-shadow: var(--shadow-md); animation: toast-in .25s ease;
    display: flex; align-items: center; gap: 8px; max-width: 340px;
}
.toast.err { background: var(--err); }
.toast.ok { background: #065f46; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* -------------------------------- Modal --------------------------------- */
.modal-root:empty { display: none; }
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(6, 12, 26, .55); z-index: 150;
    display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px);
}
.modal {
    background: var(--panel); border-radius: 16px; max-width: 520px; width: 100%;
    max-height: 88vh; overflow: auto; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
    border: 1px solid var(--line);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: .98rem; }
.modal-body { padding: 16px 18px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }

/* -------------------------------- Login --------------------------------- */
.auth-wrap {
    min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
    background: var(--bg);
}
.auth-side {
    position: relative; padding: 48px; color: #fff; overflow: hidden;
    background:
        radial-gradient(600px 400px at 15% 10%, rgba(90, 125, 255, .55), transparent 60%),
        radial-gradient(500px 360px at 90% 80%, rgba(15, 181, 166, .3), transparent 65%),
        linear-gradient(150deg, #080e1d 0%, #101d42 55%, #1b2f7a 100%);
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side h2 { font-size: 2rem; line-height: 1.15; letter-spacing: -.03em; margin: 28px 0 12px; max-width: 420px; }
.auth-side p { color: rgba(255, 255, 255, .72); max-width: 420px; font-size: .92rem; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: rgba(255, 255, 255, .85); }
.auth-points .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: 0 0 auto; }
.auth-main { display: grid; place-items: center; padding: 28px 22px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-card .sub { margin-bottom: 18px; }
.auth-card .card { padding: 22px; }
.auth-foot { margin-top: 16px; font-size: .74rem; color: var(--muted); text-align: center; }
.demo-creds { background: var(--panel-2); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 9px 11px; font-size: .7rem; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.demo-creds code { background: var(--brand-soft); padding: 1px 5px; border-radius: 4px; color: var(--brand-ink); }

/* ------------------------------- Public --------------------------------- */
.public-body { background: var(--bg); }
.public-nav {
    display: flex; align-items: center; gap: 14px; padding: 14px 22px;
    max-width: 1120px; margin: 0 auto; width: 100%;
}
.public-nav .links { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: .82rem; }
.public-nav a { text-decoration: none; }
.public-nav a:hover { color: var(--brand); }
.hero {
    max-width: 1120px; margin: 0 auto; padding: 40px 22px 20px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.04em; }
.hero .lead { font-size: 1.02rem; color: var(--muted); margin: 16px 0 22px; max-width: 520px; }
.hero .badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand-ink); font-size: .72rem; font-weight: 750; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
    padding: 18px; box-shadow: 0 40px 80px -50px rgba(16, 24, 40, .5);
}
.mock-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-col { background: var(--panel-2); border-radius: 10px; padding: 7px; min-height: 190px; display: flex; flex-direction: column; gap: 5px; }
.mock-col .mh { font-size: .62rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mock-ev { border-radius: 6px; padding: 3px 5px; font-size: .58rem; background: var(--brand-soft); border-left: 2px solid var(--brand); }
.mock-ev.g { background: var(--ok-soft); border-color: var(--ok); }
.mock-ev.o { background: var(--warn-soft); border-color: var(--warn); }
.feature-grid { max-width: 1120px; margin: 0 auto; padding: 34px 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feature .fi { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.feature h3 { font-size: .95rem; margin-bottom: 4px; }
.feature p { font-size: .8rem; color: var(--muted); margin: 0; }
.section { max-width: 1120px; margin: 0 auto; padding: 22px; }
.section h2 { font-size: 1.5rem; margin-bottom: 6px; }
.site-foot { border-top: 1px solid var(--line); padding: 22px; text-align: center; color: var(--muted); font-size: .76rem; margin-top: 26px; }
.public-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.summary-line:last-child { border-bottom: 0; }
.summary-total { font-weight: 800; font-size: 1rem; }
.public-header {
    display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto;
    padding: 16px 20px; width: 100%;
}
.public-header .salon-id { display: flex; flex-direction: column; line-height: 1.2; }
.public-header .salon-id strong { font-size: .95rem; }
.public-header .salon-id small { color: var(--muted); font-size: .72rem; }

/* ------------------------------- Profile -------------------------------- */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.profile-card { text-align: center; padding: 22px; }
.profile-card .avatar { margin-bottom: 10px; }
.profile-card h2 { font-size: 1.05rem; }
.profile-card p { color: var(--muted); font-size: .78rem; margin: 2px 0 0; }
.role-badge { display: inline-flex; margin-top: 8px; }

/* ------------------------------ Forbidden ------------------------------- */
.forbidden { max-width: 480px; margin: 10vh auto; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 34px; }
.forbidden .ico { color: var(--muted); margin-bottom: 10px; }
.forbidden h1 { font-size: 1.3rem; margin-bottom: 6px; }
.forbidden p { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }

/* ------------------------------- Receipt -------------------------------- */
.receipt { max-width: 420px; margin: 0 auto; background: #fff; color: #101828; border: 1px solid #e7eaf1; border-radius: 12px; padding: 22px; }
.receipt h2 { text-align: center; font-size: 1rem; margin-bottom: 2px; }
.receipt .muted { color: #667085; }
.receipt table { width: 100%; font-size: .8rem; border-collapse: collapse; margin: 12px 0; }
.receipt td { padding: 5px 0; }
.receipt .rline { border-top: 1px dashed #d0d5dd; margin: 8px 0; }
.receipt .rtotal { font-size: 1.15rem; font-weight: 800; }

/* -------------------------------- Misc ---------------------------------- */
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b.money, .money.lg { font-size: 1.55rem; font-weight: 750; letter-spacing: -.03em; }
.chip {
    display: inline-flex; align-items: center; gap: 5px; font-size: .69rem; font-weight: 650;
    background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
    padding: 3px 8px; color: var(--muted); text-decoration: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: .8rem; }
.kv dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kv dd { margin: 0; font-weight: 550; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.dot-sep { color: var(--muted-2); }
.badge-count {
    background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px;
    font-size: .64rem; font-weight: 750; padding: 1px 7px;
}
.callout { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 10px 12px; border-radius: 0 9px 9px 0; font-size: .8rem; }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout.ok { border-color: var(--ok); background: var(--ok-soft); }
.code-block { background: #0b1226; color: #dbe4ff; border-radius: 10px; padding: 12px; font-family: ui-monospace, monospace; font-size: .72rem; overflow: auto; max-height: 320px; white-space: pre-wrap; }
.scroll-y { max-height: 340px; overflow-y: auto; }
.sticky-col { position: sticky; top: 72px; }
.hidden { display: none !important; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 11px; }
.tile {
    border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: var(--panel);
    text-decoration: none; color: var(--ink); display: flex; gap: 10px; align-items: flex-start;
}
.tile:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--panel-2); }
.tile .ti { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.tile strong { display: block; font-size: .82rem; }
.tile small { color: var(--muted); font-size: .7rem; }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.mini-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-cal .dow { font-size: .58rem; color: var(--muted); padding: 3px 0; text-transform: uppercase; }
.mini-cal a, .mini-cal span {
    display: block; font-size: .68rem; padding: 5px 0; border-radius: 6px; text-decoration: none; color: var(--ink);
}
.mini-cal a:hover { background: var(--panel-2); }
.mini-cal .today { background: var(--brand); color: #fff; font-weight: 700; }
.mini-cal .has { font-weight: 700; color: var(--brand); }
.mini-cal .out { color: var(--muted-2); opacity: .4; }
.salon-hero {
    border-radius: 18px; padding: 22px; color: #fff; margin-bottom: 16px;
    background:
        radial-gradient(420px 200px at 88% 10%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(135deg, #101d42 0%, #1e3a8a 50%, #3b5bff 100%);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.salon-hero h1 { color: #fff; font-size: 1.45rem; }
.salon-hero .sub { color: rgba(255, 255, 255, .72); }
.salon-hero .hero-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.salon-hero .hero-stats b { display: block; font-size: 1.15rem; }
.salon-hero .hero-stats span { font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .62); }
.salon-hero .hero-actions { display: flex; gap: 7px; flex-wrap: wrap; align-content: flex-start; }
.salon-hero .hero-actions .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); color: #fff; }
.salon-hero .hero-actions .btn:hover { background: rgba(255, 255, 255, .2); }
.salon-hero .hero-actions .btn-p { background: #fff; border-color: #fff; color: var(--brand-ink); }
.salon-hero .hero-actions .btn-p:hover { background: #eef2ff; color: var(--brand-ink); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1180px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .hero { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .sidebar {
        position: fixed; left: 0; top: 0; transform: translateX(-102%);
        transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .35);
        height: 100dvh;
    }
    .sidebar.open { transform: none; }
    .side-close { display: inline-flex; }
    .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(3, 8, 20, .55); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
    .sidebar-overlay.on { opacity: 1; pointer-events: auto; }
    .menu-btn { display: inline-flex; }
    .content { padding: 18px 16px 70px; }
    .topbar { padding: 10px 14px; }
    .app-footer { padding: 12px 16px 20px; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cal-mobile { display: block; }
    .cal-desktop { display: none; }
    .cal-head-row { top: 55px; }
    .mobile-tabs { display: flex; }
    .sticky-col { position: static; }
}
@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .form-grid .span-2, .form-grid-3 .span-2, .form-grid-3 .span-3 { grid-column: auto; }
    .page-head h1 { font-size: 1.32rem; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat b { font-size: 1.35rem; }
    .card-body { padding: 14px; }
    .btn { font-size: .78rem; }
    .top-cta span { display: none; }
    .top-cta { width: 36px; padding: 0; }
    .crumb-current { display: none; }
    .crumb-sep { display: none; }
    .feature-grid, .row-split { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .kv dd { margin-bottom: 6px; }
    .modal { max-height: 92vh; }
    .agenda-time { width: 40px; font-size: .76rem; }
}
@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .day-pill { min-width: 62px; padding: 6px; }
    .slot-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}

/* Stylist mobile tabs */
.mobile-tabs {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    border-top: 1px solid var(--line); padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    backdrop-filter: blur(12px); justify-content: space-around;
}
.mobile-tabs a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: .58rem; color: var(--muted); text-decoration: none; padding: 5px 8px; border-radius: 8px;
}
.mobile-tabs a.on { color: var(--brand); background: var(--brand-soft); }

/* Print */
@media print {
    .sidebar, .topbar, .app-footer, .mobile-tabs, .page-actions, .no-print, .tabs,
    .form-actions, .toast-root, .modal-root { display: none !important; }
    body, .content { background: #fff !important; color: #000 !important; padding: 0 !important; }
    .card { border: 1px solid #ddd !important; box-shadow: none !important; break-inside: avoid; }
    .app-shell { display: block; }
    .content { max-width: none; }
    a { color: #000 !important; text-decoration: none; }
    .print-only { display: block !important; }
}
.print-only { display: none; }

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------- Ampliaciones v1 --------------------------------- */
.checkout-total {
    background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; margin-top: 14px;
}
.checkout-total .summary-line { padding: 5px 0; }
.checkout-total .summary-total { font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.agenda-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.agenda-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.agenda-actions form { margin: 0; }
.agenda-open { color: var(--muted-2); text-decoration: none; display: inline-flex; align-items: center; padding-left: 2px; }
.agenda-open:hover { color: var(--brand); }
.agenda-item.next { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); background: color-mix(in srgb, var(--brand) 4%, var(--panel)); }
.faq summary { cursor: pointer; font-weight: 650; font-size: .84rem; padding: 7px 0; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 800; }
.faq[open] summary::after { content: "−"; }
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.hours-row:last-of-type { border-bottom: 0 !important; }
.public-card h1, .public-card h2, .public-card h3 { letter-spacing: -.02em; }
.stat b.money, .stat b .money { font-size: 1.45rem; font-weight: 750; }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; }
.badge-count .ico { margin: 0; }
.tile-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.empty .btn { margin-top: 6px; }
.card + .card { margin-top: 0; }
.cal-legend .muted { flex: 1; min-width: 220px; }
.my-week .card { margin-bottom: 12px; }
.salon-hero h1 { letter-spacing: -.03em; }
.receipt .summary-line { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: .8rem; border: 0; }
.checkout-total .summary-line { border-bottom: 0; }
[data-theme="dark"] .mock-col, [data-theme="dark"] .mock-ev { color: var(--ink); }
[data-theme="dark"] .cal-block { color: var(--ink); }
[data-theme="dark"] .bar-col .bar { background: linear-gradient(180deg, #8fa6ff, var(--brand)); }
.scroll-y { scrollbar-width: thin; }
.alert a { color: inherit; font-weight: 700; }
.alert form { margin: 0; }
.danger-panel .btn { justify-content: flex-start; }
.form-note a { color: var(--brand); font-weight: 650; text-decoration: none; }
.form-note a:hover { text-decoration: underline; }
.card-body > .grid:last-child, .card-body > .grid-2:last-child { margin-bottom: 0; }
.slot-grid form { margin: 0; }
@media (max-width: 720px) {
    .agenda-side { align-items: flex-end; }
    .agenda-item { gap: 7px; padding: 10px; }
    .agenda-open { display: none; }
    .agenda-actions .btn { padding: 4px 7px; font-size: .68rem; }
    .cal-toolbar { gap: 6px; }
    .cal-nav h2 { font-size: .9rem; }
    .cal-views a { padding: 6px 9px; font-size: .72rem; }
    .public-nav { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
    .public-nav .links { width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
    .public-nav .links a:not(.btn) { display: none; }
    .public-nav .links .btn { flex: 1; }
    .hero { padding: 26px 16px 8px; }
    .hero h1 { font-size: 2rem; }
    .feature-grid { padding: 20px 16px; grid-template-columns: 1fr; }
    .section { padding: 18px 16px; }
    .public-card { padding: 16px; }
    .booking-shell { padding: 16px 12px 50px; }
    .salon-hero { padding: 18px; }
    .salon-hero h1 { font-size: 1.25rem; }
    .salon-hero .hero-actions { width: 100%; }
    .salon-hero .hero-actions .btn { flex: 1; }
    .receipt { padding: 16px; }
    .profile-card { padding: 18px; }
    .modal-backdrop { padding: 8px; align-items: end; }
    .modal { border-radius: 16px 16px 0 0; max-height: 92dvh; }
    .app-footer { font-size: .66rem; }
    .stat { min-height: 88px; }
    .day-pill { flex: 1 0 28%; }
    .day-pills { flex-wrap: wrap; }
    .topbar { gap: 8px; }
    .top-actions { gap: 5px; }
    .icon-btn { width: 33px; height: 32px; }
    .salon-switch select { font-size: .76rem; }
}
@media (max-width: 420px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .stat b { font-size: 1.35rem; }
    .top-cta { display: none; }
    .crumb { font-size: .72rem; }
}

/* ==========================================================================
   v2 · acabado visual profesional (2026)
   Capa de refinamiento: profundidad, jerarquía, densidad y móvil.
   ========================================================================== */
:root {
    --gold: #b9893a;
    --gold-soft: #fbf3e4;
    --teal: #0f8f7f;
    --teal-soft: #e7f7f3;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 12px 28px -18px rgba(16, 24, 40, .28), 0 2px 8px -4px rgba(16, 24, 40, .08);
    --shadow-lg: 0 30px 60px -32px rgba(16, 24, 40, .34);
    --radius: 18px;
    --radius-sm: 12px;
}
[data-theme="dark"] {
    --gold: #e0b56a;
    --gold-soft: #2a2113;
    --teal: #5fd6c3;
    --teal-soft: #0d2a26;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);
    --shadow-md: 0 18px 40px -24px rgba(0, 0, 0, .7);
    --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
body {
    background:
        radial-gradient(1000px 500px at 12% -8%, rgba(59, 91, 255, .07), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(15, 143, 127, .05), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}
[data-theme="dark"] body {
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(90, 120, 255, .12), transparent 60%),
        radial-gradient(700px 400px at 100% 0%, rgba(95, 214, 195, .07), transparent 55%),
        var(--bg);
}

/* Sidebar */
.sidebar {
    background:
        radial-gradient(400px 300px at 0% 0%, rgba(93, 123, 255, .18), transparent 70%),
        linear-gradient(180deg, #0b1226 0%, #0a1020 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
}
.side-brand { padding: 2px 4px 14px; }
.side-nav { padding-top: 4px; }
.side-nav .nav-label {
    font-size: .61rem; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255, 255, 255, .34); padding: 14px 12px 6px;
}
.side-nav a {
    border-radius: 11px; padding: 9px 11px; margin: 1px 0;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.side-nav a:hover { background: rgba(255, 255, 255, .07); transform: translateX(2px); }
.side-nav a.on {
    background: linear-gradient(90deg, rgba(93, 123, 255, .28), rgba(93, 123, 255, .10));
    box-shadow: inset 0 0 0 1px rgba(140, 162, 255, .18);
}
.side-foot { border-top-color: rgba(255, 255, 255, .08); }

/* Topbar */
.topbar {
    background: color-mix(in srgb, var(--panel) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
}
.crumb-current { font-weight: 650; }

/* Cards + stats */
.card {
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-head { padding-bottom: 10px; }
.card-head h2 { letter-spacing: -.015em; }
.kpi-grid { gap: 12px; }
.stat {
    border-radius: 16px; min-height: 104px; padding: 15px 16px;
    background: linear-gradient(180deg, var(--panel) 0%, color-mix(in srgb, var(--panel) 92%, var(--brand-soft)) 100%);
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
    position: relative; overflow: hidden;
}
.stat::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
    background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 10%, transparent));
    opacity: .7;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .stat-top { margin-bottom: 8px; }
.stat b { font-size: 1.5rem; letter-spacing: -.035em; }
.stat small { font-size: .69rem; }
.stat .stat-icon { width: 34px; height: 34px; border-radius: 10px; }

/* Hero */
.salon-hero {
    border-radius: 22px; padding: 24px 26px;
    box-shadow: 0 24px 50px -30px rgba(20, 36, 90, .65);
    align-items: stretch;
}
.salon-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .25; mask-image: linear-gradient(120deg, #000, transparent 65%);
}
.salon-hero > * { position: relative; z-index: 1; }
.hero-ring {
    --p: 0;
    width: 108px; height: 108px; border-radius: 50%; flex: 0 0 auto; align-self: center;
    background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.16) 0);
    display: grid; place-items: center; position: relative;
}
.hero-ring::before {
    content: ""; position: absolute; inset: 8px; border-radius: 50%;
    background: rgba(9, 18, 42, .82); border: 1px solid rgba(255,255,255,.14);
}
.hero-ring-in { position: relative; text-align: center; color: #fff; }
.hero-ring-in b { display: block; font-size: 1.45rem; letter-spacing: -.04em; line-height: 1; }
.hero-ring-in b small { font-size: .7rem; font-weight: 700; margin-left: 1px; }
.hero-ring-in span { display: block; font-size: .55rem; text-transform: uppercase; letter-spacing: .1em; opacity: .68; margin-top: 4px; }
.salon-hero .hero-actions { margin-left: auto; align-self: center; }

/* Goal */
.goal-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.goal-line strong { font-size: 1.3rem; letter-spacing: -.03em; }
.goal-line span { font-size: .74rem; color: var(--muted); }
.goal-bar { height: 9px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin: 10px 0 7px; border: 1px solid var(--line); }
.goal-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--teal)); transition: width .5s ease; }
.goal-foot { display: flex; justify-content: space-between; gap: 8px; font-size: .68rem; color: var(--muted); }

/* Birthdays */
.birthday-date {
    width: 38px; height: 44px; border-radius: 10px; flex: 0 0 auto;
    background: var(--gold-soft); color: var(--gold); display: grid; place-items: center;
    line-height: 1; border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.birthday-date b { font-size: .95rem; }
.birthday-date span { font-size: .55rem; text-transform: uppercase; letter-spacing: .06em; }
.birthday-list .list-item { gap: 10px; }

/* Formulas */
.formula-form { background: var(--panel-2); border: 1px solid var(--line); border-radius: 13px; padding: 12px; margin-bottom: 12px; }
.formula-grid { display: grid; grid-template-columns: 1.4fr .9fr .9fr .6fr 1fr; gap: 8px; }
.formula-form .field { margin: 0; }
.formula-form .field label { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.formula-form .field input, .formula-form .field select { padding: 8px 9px; font-size: .8rem; }
.formula-form > .btn { margin-top: 9px; }
.formula-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.formula-item {
    border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
    background: var(--panel); position: relative;
}
.formula-item:first-child { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); box-shadow: 0 0 0 3px var(--brand-soft); }
.formula-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.formula-top code { font-size: .86rem; font-weight: 750; color: var(--brand-ink); background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; }
.formula-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: .67rem; color: var(--muted); margin-top: 5px; }
.formula-meta span:nth-child(even) { opacity: .4; }
.formula-item p { margin: 6px 0 0; color: var(--muted); }
.formula-del { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity .15s; }
.formula-item:hover .formula-del { opacity: 1; }

/* Tables */
.table-wrap { border-radius: 12px; }
.data thead th {
    font-size: .64rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted); background: var(--panel-2); position: sticky; top: 0; z-index: 2;
}
.data tbody tr { transition: background .12s ease; }
.data tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.data td { padding-top: 11px; padding-bottom: 11px; }

/* Forms */
.field input, .field select, .field textarea { border-radius: 10px; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.form-grid { gap: 13px 16px; }
.form-actions {
    position: sticky; bottom: 0; z-index: 5; padding: 12px 0 2px;
    background: linear-gradient(180deg, transparent, var(--panel) 38%);
}

/* Calendar */
.cal-block {
    box-shadow: 0 2px 6px -2px rgba(16, 24, 40, .25);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.cal-block:hover { transform: translateY(-1px) scale(1.008); box-shadow: 0 8px 18px -8px rgba(16, 24, 40, .45); filter: saturate(1.08); z-index: 8; }
.cal-staff-cell { background: var(--panel); }
.cal-now::after {
    content: ""; position: absolute; right: 0; top: -1px; width: 7px; height: 7px;
    border-radius: 50%; background: #f04438; box-shadow: 0 0 0 3px rgba(240, 68, 56, .14);
}

/* Mobile refinements */
@media (max-width: 1180px) {
    .salon-hero { padding: 20px; }
    .hero-ring { width: 92px; height: 92px; }
}
@media (max-width: 980px) {
    .content { padding-left: 14px; padding-right: 14px; }
    .stat { min-height: 92px; padding: 12px 13px; }
    .stat b { font-size: 1.3rem; }
    .hero-ring { display: none; }
    .salon-hero .hero-actions { width: 100%; margin-left: 0; }
    .card-head { align-items: flex-start; }
}
@media (max-width: 760px) {
    .formula-grid { grid-template-columns: 1fr 1fr; }
    .formula-grid .field:nth-child(1), .formula-grid .field:nth-child(5) { grid-column: 1 / -1; }
    .formula-del { opacity: 1; position: static; margin-top: 6px; }
    .formula-item { padding-right: 10px; }
    .data td, .data th { white-space: nowrap; }
    .stat::after { opacity: .45; }
    .card { border-radius: 15px; }
}
@media (max-width: 480px) {
    .formula-grid { grid-template-columns: 1fr; }
    .formula-grid .field:nth-child(1), .formula-grid .field:nth-child(5) { grid-column: auto; }
}

/* Utilities */
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
.mono { font-variant-numeric: tabular-nums; }
/* Topbar search */
.top-search {
    display: flex; align-items: center; gap: 7px; margin-left: auto; margin-right: 4px;
    background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
    padding: 0 9px; height: 34px; min-width: 240px; max-width: 330px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.top-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.top-search-ico { color: var(--muted); display: flex; }
.top-search input[type="search"] {
    border: 0 !important; background: transparent !important; box-shadow: none !important;
    padding: 0 !important; height: 30px; font-size: .78rem; width: 100%; outline: none;
}
.top-search kbd {
    font: 600 .58rem/1 var(--font); color: var(--muted); background: var(--panel);
    border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; white-space: nowrap;
}
@media (max-width: 1080px) { .top-search { display: none; } }
/* Mobile tabs: botón "Más" */
.mobile-tabs button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font: inherit; font-size: .58rem; color: var(--muted); background: transparent;
    border: 0; padding: 5px 8px; border-radius: 8px; cursor: pointer;
}
.mobile-tabs button:active { background: var(--brand-soft); color: var(--brand); }
/* Reseñas */
.review-card { max-width: 480px; }
.review-card h1 { font-size: 1.55rem; margin: 4px 0 6px; letter-spacing: -.03em; }
.review-stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 14px 0 16px; }
.review-stars input { position: absolute; opacity: 0; pointer-events: none; }
.review-stars label { cursor: pointer; color: var(--line-strong); transition: color .12s ease, transform .12s ease; }
.review-stars label:hover, .review-stars label:hover ~ label,
.review-stars input:checked ~ label { color: #e0a526; }
.review-stars label:hover { transform: translateY(-1px) scale(1.06); }
.review-stars.static { justify-content: flex-start; flex-direction: row; gap: 3px; }
.review-stars.static span { color: var(--line-strong); display: inline-flex; }
.review-stars.static span.on { color: #e0a526; }
.review-thanks { text-align: center; padding: 6px 0; }
.review-big { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: var(--gold-soft); color: var(--gold); }
.review-thanks blockquote { margin: 12px 0 16px; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--panel-2); border-radius: 0 10px 10px 0; color: var(--muted); font-size: .86rem; text-align: left; }
.review-form .field textarea { min-height: 100px; }
.review-form .btn { margin-top: 4px; }
/* Rating rows */
.rating-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.rating-label { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; color: var(--muted); width: 34px; }
.rating-row .goal-bar { flex: 1; margin: 0; height: 8px; }
/* Marketing, logos y fotos de equipo */
.brand-logo { max-height: 34px; width: auto; max-width: 190px; display: block; }
.tenant-logo { max-height: 34px; width: auto; max-width: 190px; display: block; }
.product-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 8px; }
.product-row { display: grid; grid-template-columns: 1.4fr .8fr 1.5fr auto; gap: 7px; align-items: center; }
.product-row input { padding: 8px 9px; font-size: .8rem; }
.marketing-logo { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; place-items: center; min-height: 84px; }
.marketing-logo img { max-width: 100%; max-height: 70px; width: auto; }
.mail-preview { width: 100%; min-height: 620px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.marketing-preview-content h2 { letter-spacing: -.025em; }
.code-box { font: 600 .74rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; overflow-wrap: anywhere; }
.avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.avatar-img.sm { width: 30px; height: 30px; }
.avatar-img.lg { width: 58px; height: 58px; }
.staff-photo-preview { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); background: var(--panel-2); }
.staff-photo-preview.empty { display: grid; place-items: center; color: var(--muted); }
.logo-preview { max-width: 240px; max-height: 80px; width: auto; border-radius: 8px; background: #fff; padding: 6px; border: 1px solid var(--line); }
@media (max-width: 760px) {
    .product-row { grid-template-columns: 1fr; }
    .product-row .icon-btn { justify-self: end; }
    .mail-preview { min-height: 480px; }
}
.avatar-img.xl { width: 96px; height: 96px; }
/* Precio único */
.pricing-single { max-width: 620px; margin: 0 auto; }
.pricing-card { padding: 30px; border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 30px 70px -40px rgba(44,70,214,.55); }
.pricing-card .price-big { font-size: 3rem; font-weight: 820; letter-spacing: -.05em; color: var(--ink); margin: 10px 0 0; line-height: 1; }
.pricing-card .price-big span { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
@media (max-width: 720px) { .pricing-card { padding: 22px; } .pricing-card .price-big { font-size: 2.4rem; } }
.service-durations { margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel-2); }
.service-durations summary { cursor: pointer; font-weight: 700; font-size: .82rem; }
.service-durations[open] summary { margin-bottom: 6px; }
/* Buscador público y ficha de salón */
.salon-finder-hero { padding-bottom: 10px; }
.salon-search { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: end; max-width: 820px; margin: 18px 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.salon-search .field { margin: 0; }
.salon-search .btn { min-height: 44px; }
.salon-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.salon-result { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.salon-result-head { display: flex; gap: 12px; align-items: center; }
.salon-result-logo { max-width: 150px; max-height: 54px; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 5px; border: 1px solid var(--line); }
.salon-result-mark { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg,#3B5BFF,#7C3AED); color: #fff; font-weight: 800; }
.salon-result-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.salon-public { max-width: 1160px; margin: 0 auto; padding: 18px 16px 10px; }
.salon-public-hero { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #0B1226 0%, #16244d 55%, #3B5BFF 100%); color: #fff; border-radius: 22px; padding: 26px; }
.salon-public-brand img { max-width: 220px; max-height: 90px; width: auto; height: auto; background: #fff; border-radius: 10px; padding: 8px 12px; }
.salon-public-hero h1 { color: #fff; margin: 4px 0 6px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.salon-public-hero .sub, .salon-public-hero .eyebrow { color: #cdd9ff; }
.salon-public-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; color: #e4ebff; font-size: .82rem; }
.salon-public-meta span, .salon-public-meta a { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.salon-public-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 18px; align-items: start; }
.public-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.public-panel h2 { font-size: 1.2rem; }
.public-service-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.public-service-row:last-child { border-bottom: 0; }
.public-service-price { font-weight: 800; white-space: nowrap; }
.public-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.public-team-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.public-hours-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 7px 0; font-size: .82rem; }
.public-hours-row:last-child { border-bottom: 0; }
.public-contact { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 3px; }
.public-contact a { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.public-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.public-offer { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.public-book-panel { position: sticky; top: 16px; }
@media (max-width: 900px) { .salon-public-grid { grid-template-columns: 1fr; } .salon-public-hero { grid-template-columns: 1fr; } .salon-public-brand img { max-height: 64px; } .salon-search { grid-template-columns: 1fr; } .public-book-panel { position: static; } }
.slot .slot-staff { display:block; font-size:.58rem; line-height:1.15; color:var(--muted); margin-top:2px; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.slot { flex-direction: column; align-items: flex-start; justify-content: center; }
.alert-warn { background: #fff8e8; border-color: #e9c77a; color: #7a5a1e; }
.public-staff-availability { margin-top:12px; border-top:1px dashed var(--line); padding-top:10px; }
.staff-avail-row { display:flex; justify-content:space-between; gap:10px; font-size:.72rem; padding:3px 0; color:var(--muted); }
.staff-avail-row strong { color:var(--ink); font-size:.75rem; }
.salon-result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.salon-result-actions .btn { flex: 1 1 140px; justify-content: center; }

/* Notificaciones */
.readonly { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft, #f7f9fc); font-size: .84rem; }
.email-text { white-space: pre-wrap; word-break: break-word; font-size: .78rem; line-height: 1.55; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 640px; overflow: auto; }

/* Marca oficial Zentria y tema público */
.zentria-official { object-fit: contain; }
.zentria-theme-logo { display: inline-flex; align-items: center; }
.zentria-theme-logo .only-dark { display: none; }
[data-theme="dark"] .zentria-theme-logo .only-light { display: none; }
[data-theme="dark"] .zentria-theme-logo .only-dark { display: block; }
.app-footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.theme-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 42px; height: 42px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-fab:hover { border-color: var(--brand); color: var(--brand); }
.booking-zentria { display: flex; align-items: center; padding-left: 10px; }
@media (max-width: 680px) { .booking-zentria { display: none; } .theme-fab { right: 12px; bottom: 12px; } }

/* Fichaje */
.clock-panel { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.clock-status { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.clock-status-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.clock-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-danger { color: #b42318; border-color: #f3b6ae; }
.btn-danger:hover { background: #fff1f0; border-color: #d92d20; color: #b42318; }
[data-theme="dark"] .btn-danger { color: #ff9b91; border-color: #6d2b26; }
@media (max-width: 680px) { .clock-panel { align-items: flex-start; } .clock-actions { width: 100%; } .clock-actions .btn, .clock-actions form { flex: 1; } .clock-actions form .btn { width: 100%; } }

/* Detalle flotante de citas */
.cal-popover {
    position: fixed; z-index: 120; display: none;
    min-width: 190px; max-width: 285px; padding: 10px 12px;
    border: 1px solid var(--line-strong); border-radius: 10px;
    background: var(--panel); color: var(--ink);
    box-shadow: var(--shadow-md); font-size: .76rem; line-height: 1.5;
    white-space: pre-line; pointer-events: none;
}
.cal-block:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }


/* Código visual de estados */
.status-confirmed { --s: #0f9f6e; }
.status-arrived { --s: #0b63b8; }
.status-in_service { --s: #3b5bff; }
.status-completed { --s: #0b8f6a; }
.status-no_show { --s: #d92d20; }
.status-cancelled { --s: #b42318; }
.status-pending { --s: #dc6803; }
.status-waiting { --s: #dc6803; }
.cal-block { border-left-color: var(--s, var(--c)); background: color-mix(in srgb, var(--s, var(--c)) 10%, var(--panel)); padding-left: 14px; }
.cal-block .cb-status { position: absolute; left: 5px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--s, var(--c)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--s, var(--c)) 18%, transparent); }
.cal-legend .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.cal-legend .status-dot.status-confirmed { background: #0f9f6e; }
.cal-legend .status-dot.status-arrived { background: #0b63b8; }
.cal-legend .status-dot.status-in_service { background: #3b5bff; }
.cal-legend .status-dot.status-completed { background: #0b8f6a; }
.cal-legend .status-dot.status-no_show { background: #d92d20; }
.cal-legend .status-dot.status-cancelled { background: #b42318; }

.cal-order-form { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cal-order-form .btn { padding: 5px 8px; font-size: .7rem; }
.cal-order-form .btn.btn-p { color: #fff; }
/* Citas cortas: una sola línea con hora y cliente */
.cal-block.is-short {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 2px 5px 2px 14px; min-height: 20px;
    font-size: .66rem; line-height: 1.1; overflow: hidden;
}
.cal-block.is-short .cb-time { flex: none; font-size: .56rem; line-height: 1.05; }
.cal-block.is-short .cb-detail { gap: 2px; line-height: 1.05; }
.cal-block.is-short .cb-name { font-size: .6rem; }
.cal-block.is-short .cb-svc { font-size: .56rem; }
.cal-block.is-short .cb-status { top: 6px; transform: none; }

/* Planificador visual de turnos */
.shift-board { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: var(--panel); }
.sb-head, .sb-row { display: grid; grid-template-columns: 150px minmax(520px, 1fr); }
.sb-head { position: sticky; top: 0; z-index: 4; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.sb-person { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 10px; font-size: .72rem; font-weight: 700; border-right: 1px solid var(--line); }
.sb-person > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-axis { position: relative; height: 30px; }
.sb-hour { position: absolute; top: 8px; font-size: .6rem; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.sb-row { border-bottom: 1px solid var(--line); }
.sb-row:last-child { border-bottom: 0; }
.sb-track { position: relative; min-height: 52px; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--hours)) 100%; }
.sb-shift { position: absolute; top: 8px; height: 34px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 50%, var(--line)); border-left: 4px solid var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 16%, var(--panel)); color: var(--ink); padding: 2px 6px; overflow: hidden; display: flex; align-items: center; gap: 5px; cursor: grab; font-size: .66rem; }
.sb-shift:active { cursor: grabbing; }
.sb-shift strong { white-space: nowrap; font-size: .64rem; }
.sb-shift small { margin: 0; overflow: hidden; white-space: nowrap; }
.sb-shift small .pill { font-size: .54rem; padding: 1px 5px; }
.sb-track.drop-target { background-color: color-mix(in srgb, var(--brand) 8%, var(--panel)); outline: 2px dashed var(--brand); outline-offset: -3px; }
.sb-track.drop-target::after { content: 'Suelta aquí'; position: absolute; right: 8px; top: 4px; font-size: .58rem; color: var(--brand); }

.check-grid { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; color: var(--ink); }
.check input { width: auto; min-height: auto; margin: 0; }
.sb-shift.is-dragging { opacity: .4; cursor: grabbing; }
.sb-shift:hover { box-shadow: var(--shadow-md); z-index: 3; }
/* ============================================================
   HairVoice 2026 · lenguaje visual tipo app de belleza
   Inspirado en la claridad, tarjetas y navegación de Booksy.
   ============================================================ */
:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --panel-2: #f1f3f8;
    --panel-3: #e9edf5;
    --ink: #121826;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #e8ecf3;
    --line-strong: #d9e0ea;
    --brand: #2563eb;
    --brand-2: #ff5c7a;
    --brand-ink: #1d4ed8;
    --brand-soft: #edf4ff;
    --ok: #078a62;
    --ok-soft: #e8f8f1;
    --warn: #b54708;
    --warn-soft: #fff7e8;
    --err: #c4322b;
    --err-soft: #fff0ef;
    --radius: 20px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -14px rgba(16, 24, 40, .18);
    --shadow-md: 0 18px 45px -28px rgba(16, 24, 40, .28), 0 4px 12px -8px rgba(16, 24, 40, .12);
    --font-sans: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(900px 500px at 85% -10%, #e9f0ff 0, transparent 65%), radial-gradient(700px 400px at -10% 20%, #fff0f4 0, transparent 60%); opacity: .8; }
[data-theme="dark"] body::before { background: radial-gradient(900px 500px at 85% -10%, #12234a 0, transparent 65%), radial-gradient(700px 400px at -10% 20%, #2b1722 0, transparent 60%); opacity: .55; }
a { color: var(--brand-ink); }
h1, h2, h3, .page-head h1 { letter-spacing: -.035em; }
.page-head { margin-bottom: 20px; align-items: flex-end; }
.page-head h1 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.12; }
.page-head .sub, .page-head-text .sub { color: var(--muted); font-size: .88rem; }
.eyebrow { letter-spacing: .12em; font-weight: 800; color: var(--brand); font-size: .64rem; }
.app-shell { max-width: 1600px; margin: 0 auto; }
.app-main { background: transparent; }
.content { padding: 26px 30px 34px; max-width: 1320px; margin: 0 auto; }
.card { border-radius: var(--radius); border: 1px solid rgba(232, 236, 243, .9); background: var(--panel); box-shadow: var(--shadow-sm); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); }
.card-head { padding: 17px 20px 0; }
.card-body { padding: 18px 20px 20px; }
.card-title { font-weight: 800; font-size: .95rem; letter-spacing: -.015em; }
.card-sub { color: var(--muted); }
.btn { border-radius: 12px; font-weight: 750; letter-spacing: -.01em; border-color: var(--line-strong); background: var(--panel); box-shadow: 0 1px 1px rgba(16,24,40,.03); }
.btn:hover { border-color: #b9c6da; transform: translateY(-1px); }
.btn-p { background: linear-gradient(135deg, #2563eb, #1746c7); border-color: #1746c7; box-shadow: 0 8px 18px -12px rgba(37, 99, 235, .8); }
.btn-p:hover { background: linear-gradient(135deg, #1d4ed8, #1239a8); }
.btn-p .ico, .btn-p { color: #fff; }
.btn-ghost { box-shadow: none; }
.btn-lg { border-radius: 15px; padding: 13px 20px; }
.btn-sm { border-radius: 9px; }
.icon-btn { border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.kpi-grid { gap: 14px; }
.stat, .kpi { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-sm); padding: 16px; }
.stat:hover { transform: translateY(-2px); }
.stat b { letter-spacing: -.045em; }
.stat-label { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.stat .stat-ico { width: 36px; height: 36px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.list-item { border-radius: 14px; padding: 10px 12px; }
.list-item:hover { background: #f8faff; }
.pill { border-radius: 999px; padding: 4px 9px; font-size: .66rem; }
.pill.ok, .pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.info { background: var(--brand-soft); color: var(--brand-ink); }
.pill.progress { background: #eaf2ff; color: #1554b7; }
.form-grid { gap: 14px; }
.field input, .field select, .field textarea, .inline-fields input, .inline-fields select { border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); min-height: 42px; padding: 9px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8db0ff; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.field label { font-weight: 750; color: #344054; font-size: .73rem; }
.topbar { background: rgba(255,255,255,.86); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(232,236,243,.9); }
.top-search { border-radius: 13px; background: #f4f6fa; border-color: transparent; }
.top-search:focus-within { background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.09); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; }
.side-brand { padding: 4px 8px 16px; }
.side-brand img { max-height: 38px; width: auto; }
.side-salon { background: #f7f9fd; border: 1px solid var(--line); border-radius: 14px; padding: 7px 9px; margin: 0 2px 12px; }
.side-nav { padding-bottom: 20px; }
.nav-label { padding: 14px 12px 6px; font-size: .59rem; letter-spacing: .13em; color: #98a2b3; }
.nav-item { margin: 2px 4px; padding: 9px 11px; border-radius: 12px; color: #475467; font-size: .79rem; gap: 9px; }
.nav-item .ico { width: 18px; height: 18px; opacity: .82; }
.nav-item:hover { background: #f4f7fd; color: #1d4ed8; }
.nav-item.on { background: linear-gradient(90deg, #eef4ff, #f6f9ff); color: #1746c7; font-weight: 800; box-shadow: inset 3px 0 0 #2563eb; }
.side-foot { border-top: 1px solid var(--line); padding: 12px 4px 0; }
.side-user { border-radius: 14px; background: #fafbfe; }
.side-user-info strong { font-weight: 800; }
.public-card { border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.public-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.salon-hero, .hero-panel { border-radius: 24px; }
.salon-hero { background: linear-gradient(110deg, rgba(9, 24, 60, .96), rgba(20, 62, 150, .82)), var(--cover, linear-gradient(135deg,#0b1738,#234bb5)); background-size: cover; background-position: center; box-shadow: 0 24px 55px -28px rgba(11, 30, 75, .75); }
.salon-hero h1 { letter-spacing: -.05em; }
.hero-ring { background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.hero-ring-in { background: rgba(8, 22, 55, .8); backdrop-filter: blur(8px); }
.day-pill, .chip { border-radius: 999px; }
.day-pill { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.day-pill.on { background: #121826; color: #fff; border-color: #121826; }
.chip.on { background: #121826; color: #fff; border-color: #121826; }
.cal-day { border-radius: 20px; border-color: var(--line); }
.cal-block { border-radius: 9px; }
.cal-toolbar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 9px 11px; box-shadow: var(--shadow-sm); }
.cal-filter, .cal-filters { gap: 7px; }
.data th { background: #f8fafd; color: #8a94a6; font-size: .61rem; letter-spacing: .08em; }
.data td { border-bottom-color: #eef1f6; padding-top: 11px; padding-bottom: 11px; }
.data tr:hover td { background: #fafcff; }
.table-wrap { border-radius: 14px; }
.empty { border-radius: 16px; background: #fafbfe; border: 1px dashed #dbe3ee; }
.alert { border-radius: 14px; border-width: 1px; }
.progress { height: 8px; border-radius: 999px; background: #edf1f7; }
.progress span { border-radius: 999px; background: linear-gradient(90deg, #2563eb, #7c3aed); }
.feature, .public-card { transition: transform .18s ease, box-shadow .18s ease; }
.feature { border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 18px; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .fi { width: 42px; height: 42px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.hero h1, .public-hero h1 { letter-spacing: -.055em; }
.public-nav { background: rgba(255,255,255,.86); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.hero { background: radial-gradient(700px 380px at 80% 0%, #eaf0ff, transparent 65%); border-radius: 0 0 36px 36px; }
.hero-panel { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.hero-photo { border-radius: 28px; overflow: hidden; position: relative; min-height: 420px; background: #0b1738; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,40,.02), rgba(6,16,40,.62)); }
.hero-photo-card { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; border-radius: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.hero-photo-card .avatar { flex: none; }
.category-row { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 12px; }
.category-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 74px; font-size: .66rem; font-weight: 800; color: #344054; text-decoration: none; }
.category-chip .cat-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: #edf4ff; color: #2563eb; border: 1px solid #e1ebff; box-shadow: var(--shadow-sm); }
.category-chip:nth-child(2n) .cat-icon { background: #fff0f4; color: #e0446a; border-color: #ffe1e8; }
.category-chip:nth-child(3n) .cat-icon { background: #eefaf5; color: #078a62; border-color: #dcf5eb; }
.category-chip:nth-child(4n) .cat-icon { background: #f7f0ff; color: #7c3aed; border-color: #ede0ff; }
.salon-result { overflow: hidden; padding: 0; }
.salon-result-cover { height: 168px; background-size: cover; background-position: center; position: relative; }
.salon-result-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,15,40,.38)); }
.salon-result-body { padding: 14px 16px 16px; }
.salon-result-logo { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; border: 2px solid #fff; margin-top: -34px; position: relative; z-index: 2; background: #fff; }
.salon-result-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-top: -34px; position: relative; z-index: 2; border: 2px solid #fff; background: linear-gradient(135deg,#2563eb,#7c3aed); color: #fff; font-weight: 800; }
.mobile-tabs { background: rgba(255,255,255,.92); backdrop-filter: blur(20px); border-top: 1px solid var(--line); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.mobile-tabs a, .mobile-tabs button { font-weight: 750; color: #667085; border-radius: 12px; }
.mobile-tabs a.on { color: #1746c7; }
.mobile-tabs a.on svg { filter: drop-shadow(0 4px 8px rgba(37,99,235,.25)); }
.app-footer { border-top: 1px solid var(--line); background: transparent; }
@media (max-width: 1100px) {
    .content { padding: 20px 20px 96px; }
    .salon-hero { border-radius: 20px; }
}
@media (max-width: 760px) {
    .content { padding: 16px 14px 96px; }
    .card-body { padding: 15px; }
    .card-head { padding: 14px 15px 0; }
    .page-head { margin-bottom: 16px; gap: 12px; }
    .page-head h1 { font-size: 1.5rem; }
    .page-actions { gap: 7px; }
    .page-actions .btn { flex: 1 1 auto; }
    .kpi-grid { gap: 10px; }
    .stat { padding: 13px; border-radius: 16px; }
    .stat b { font-size: 1.25rem; }
    .topbar { padding: 9px 13px; }
    .top-search { display: none; }
    .mobile-tabs { display: flex; }
    .hero-photo { min-height: 320px; }
    .hero { border-radius: 0 0 26px 26px; }
    .public-nav { padding: 10px 14px; }
    .public-nav .links a:not(.btn) { display: none; }
    .hero-actions .btn { flex: 1; }
}

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/visuals/manrope-400.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/visuals/manrope-600.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/visuals/manrope-800.ttf") format("truetype"); }
.salon-public-hero { background-image: linear-gradient(105deg, rgba(7, 18, 45, .96), rgba(11, 35, 82, .74)), var(--cover, linear-gradient(135deg,#0B1226,#3B5BFF)); background-size: cover; background-position: center; border-radius: 26px; box-shadow: 0 28px 60px -34px rgba(7,18,45,.75); }
.salon-public-brand img { box-shadow: 0 12px 30px -20px rgba(0,0,0,.4); }
.stylist-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; align-items: end; background-image: linear-gradient(105deg, rgba(7,18,45,.95), rgba(20,52,125,.72)), var(--cover); background-size: cover; background-position: center; border-radius: 24px; padding: 24px; color: #fff; margin-bottom: 16px; box-shadow: 0 24px 55px -30px rgba(7,18,45,.7); overflow: hidden; }
.stylist-hero h1 { color: #fff; font-size: clamp(1.55rem, 3vw, 2.2rem); margin: 8px 0 6px; }
.stylist-hero p { color: #dbe6ff; margin: 0; max-width: 560px; font-size: .9rem; }
.stylist-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.btn-light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.stylist-hero-next { background: rgba(255,255,255,.94); color: var(--ink); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 3px; align-self: stretch; justify-content: center; box-shadow: 0 12px 30px -22px rgba(0,0,0,.6); }
.stylist-hero-next strong { font-size: 2rem; letter-spacing: -.05em; line-height: 1; }
.stylist-hero-next span:not(.tiny) { font-weight: 800; }
.stylist-hero-next small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .stylist-hero { grid-template-columns: 1fr; padding: 18px; } .stylist-hero-next { display: none; } }
.booking-shell { max-width: 1140px; padding-top: 18px; }
.booking-cover { min-height: 210px; border-radius: 24px; margin-bottom: 18px; padding: 24px; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; background-image: linear-gradient(105deg, rgba(7,18,45,.94), rgba(20,52,125,.55)), var(--cover); background-size: cover; background-position: center; box-shadow: 0 24px 55px -32px rgba(7,18,45,.7); }
.booking-cover h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 6px 0; letter-spacing: -.05em; }
.booking-cover p { color: #dbe6ff; margin: 0; max-width: 560px; font-size: .9rem; }
.booking-cover-card { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 18px; padding: 14px 18px; min-width: 150px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 18px 38px -26px rgba(0,0,0,.8); }
.booking-cover-card strong { font-size: 1.55rem; letter-spacing: -.05em; }
.service-choice { border-radius: 14px; padding: 13px 14px; gap: 12px; transition: .15s ease; }
.service-choice:hover { border-color: #b9ccff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.service-choice:has(input:checked) { border-color: #7fa6ff; background: #f1f6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.service-choice .sc-main strong { font-size: .86rem; }
.service-choice .sc-price { font-size: .88rem; color: #1746c7; }
.slot { min-height: 58px; border-radius: 14px; padding: 9px 5px; transition: .15s ease; }
.slot .slot-label { display: block; font-size: .92rem; font-weight: 800; letter-spacing: -.02em; }
.slot .slot-staff { display: block; font-size: .58rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.slot.on .slot-staff { color: rgba(255,255,255,.8); }
.booking-steps { gap: 6px; }
.booking-step { padding: 6px 12px; font-weight: 800; }
.booking-shell > .public-card { border-radius: 20px; }
@media (max-width: 720px) { .booking-cover { min-height: 180px; padding: 18px; align-items: flex-start; flex-direction: column; } .booking-cover-card { display: none; } }
.app-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.app-action { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: .16s ease; min-width: 0; }
.app-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d4e0f2; }
.app-action strong { font-size: .78rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-action small { font-size: .62rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 3px; }
.aa-blue { background: #edf4ff; color: #2563eb; }
.aa-coral { background: #fff0f4; color: #e0446a; }
.aa-green { background: #e9f9f2; color: #078a62; }
.aa-amber { background: #fff7e8; color: #b54708; }
.aa-purple { background: #f5efff; color: #7c3aed; }
@media (max-width: 760px) { .app-actions { grid-template-columns: repeat(3, 1fr); } .app-action { padding: 10px; } }
.service-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: #eef3fb; }
.service-choice { position: relative; }
.service-choice .service-thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
@media (max-width: 720px) { .service-thumb { width: 38px; height: 38px; } }
.auth-side { background-image: linear-gradient(150deg, rgba(7,14,35,.94), rgba(18,40,95,.7)), url("/assets/visuals/salon-hero.jpg"); background-size: cover; background-position: center; }
.auth-side h2 { font-weight: 800; }
.auth-card .card { border-radius: 22px; padding: 26px; box-shadow: 0 30px 70px -42px rgba(16,24,40,.45); }
.auth-card h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; }
.auth-main { background: radial-gradient(500px 300px at 70% 0%, #eef3ff, transparent 70%); }
[data-theme="dark"] .sidebar { background: #0e1524; border-color: #1d2940; }
[data-theme="dark"] .topbar { background: rgba(14,21,36,.86); border-color: #1d2940; }
[data-theme="dark"] .top-search { background: #131d30; }
[data-theme="dark"] .side-salon { background: #111b2d; border-color: #1d2940; }
[data-theme="dark"] .nav-item { color: #aebbd0; }
[data-theme="dark"] .nav-item:hover { background: #15213a; color: #dbe8ff; }
[data-theme="dark"] .nav-item.on { background: linear-gradient(90deg, #14284d, #101d34); color: #9dc0ff; }
[data-theme="dark"] .nav-label { color: #64748b; }
[data-theme="dark"] .side-user { background: #111b2d; }
[data-theme="dark"] .card, [data-theme="dark"] .stat, [data-theme="dark"] .app-action, [data-theme="dark"] .public-card, [data-theme="dark"] .cal-toolbar, [data-theme="dark"] .day-pill { background: var(--panel); border-color: #1d2940; }
[data-theme="dark"] .data th { background: #111b2d; color: #7f8da3; }
[data-theme="dark"] .data td { border-color: #1d2940; }
[data-theme="dark"] .data tr:hover td, [data-theme="dark"] .list-item:hover { background: #141f34; }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { background: #0f192a; border-color: #26344c; color: var(--ink); }
[data-theme="dark"] .mobile-tabs { background: rgba(14,21,36,.94); border-color: #1d2940; }
[data-theme="dark"] .hero-photo-card { background: rgba(16,25,42,.94); }
[data-theme="dark"] .cal-block { color: var(--ink); }
[data-theme="dark"] .day-pill.on, [data-theme="dark"] .chip.on { background: #e8eefb; color: #101a2d; }
[data-theme="dark"] .btn-light { background: rgba(255,255,255,.12); color: #fff; }
[data-theme="dark"] .stylist-hero-next { background: rgba(16,25,42,.94); color: var(--ink); }
[data-theme="dark"] .booking-cover-card { background: rgba(16,25,42,.94); color: var(--ink); }
.visual-showcase { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 14px; }
.showcase-card { position: relative; min-height: 260px; border-radius: 22px; overflow: hidden; background: #0b1738; box-shadow: var(--shadow-md); }
.showcase-card.showcase-tall { min-height: 310px; }
.showcase-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.showcase-card:hover img { transform: scale(1.035); }
.showcase-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,14,36,.88)); }
.showcase-card > div { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 15px; color: #fff; display: flex; flex-direction: column; gap: 3px; }
.showcase-card span { font-size: .62rem; text-transform: uppercase; letter-spacing: .13em; color: #cfe0ff; font-weight: 800; }
.showcase-card strong { font-size: 1.05rem; letter-spacing: -.025em; }
.showcase-card small { color: rgba(255,255,255,.75); font-size: .72rem; }
@media (max-width: 900px) { .visual-showcase { grid-template-columns: 1fr 1fr; } .showcase-card.showcase-tall { grid-row: span 2; } }
@media (max-width: 620px) { .visual-showcase { grid-template-columns: 1fr; } .showcase-card, .showcase-card.showcase-tall { min-height: 230px; } }
.mobile-fab { display: none; }
@media (max-width: 760px) {
    .mobile-fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 46; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#2563eb,#1746c7); box-shadow: 0 12px 28px -10px rgba(37,99,235,.8), 0 4px 10px rgba(16,24,40,.12); text-decoration: none; border: 3px solid rgba(255,255,255,.9); }
    .mobile-fab:hover { color: #fff; transform: translateY(-2px); }
}
.pro-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pro-choice { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; text-decoration: none; color: var(--ink); background: var(--panel); transition: .15s ease; }
.pro-choice:hover { border-color: #a9c2ff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pro-choice.on { border-color: #7fa6ff; background: #f1f6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.pro-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--av, #2563eb) 18%, var(--panel)); color: var(--av, #2563eb); font-weight: 800; font-size: .7rem; }
.pro-any { background: #edf4ff; color: #2563eb; }
.pro-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.pro-copy strong { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-copy small { font-size: .6rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-slots { font-size: .58rem; font-weight: 800; color: #078a62; background: #e9f9f2; border-radius: 999px; padding: 3px 6px; flex: none; }
.pro-slots.empty { color: var(--muted); background: var(--panel-2); }
@media (max-width: 520px) { .pro-picker { grid-template-columns: 1fr; } }
.contract-box { background: #f8faff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; font-size: .8rem; line-height: 1.6; }
.contract-box h3 { margin: 0 0 8px; font-size: 1rem; }
.contract-box p { margin: 6px 0; color: var(--muted); }
.contract-box strong { color: var(--ink); }
[data-theme="dark"] .contract-box { background: #101a2b; }
.offer-badge { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #b42318; border-radius: 999px; padding: 4px 8px; font-size: .6rem; font-weight: 800; box-shadow: var(--shadow-sm); }
.fav-btn { position: absolute; z-index: 2; top: 9px; right: 9px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: #667085; box-shadow: var(--shadow-sm); }
.fav-btn.on { color: #e0446a; }
.fav-btn:hover { color: #e0446a; transform: scale(1.06); }
.salon-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ad-banner { max-width: 1000px; margin: 10px auto 0; padding: 0 18px; position: relative; }
.ad-banner > a { display: flex; align-items: center; gap: 8px; border: 1px solid #e7ebf4; border-radius: 13px; background: linear-gradient(90deg,#f7f9ff,#fff7f8); padding: 8px 12px; color: #344054; text-decoration: none; font-size: .72rem; box-shadow: var(--shadow-sm); }
.ad-banner strong { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-kicker { font-size: .52rem; letter-spacing: .1em; font-weight: 800; color: #98a2b3; border-right: 1px solid var(--line); padding-right: 8px; }
.ad-more { color: #2563eb; display: inline-flex; }
.ad-close { position: absolute; right: 24px; top: 7px; border: 0; background: transparent; color: #98a2b3; cursor: pointer; padding: 3px; }
.ad-close:hover { color: var(--ink); }
@media (max-width: 720px) { .ad-banner { padding: 0 12px; } .ad-kicker { display: none; } }
.swipe-deck { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; touch-action: pan-x; }
.swipe-deck .salon-result { flex: 0 0 min(86vw, 360px); scroll-snap-align: center; }
.swipe-deck::-webkit-scrollbar { height: 6px; }
/* ===== Tema oscuro · cobertura final de componentes ===== */
[data-theme="dark"] body,
[data-theme="dark"] .app-main,
[data-theme="dark"] .content { background-color: var(--bg); color: var(--ink); }
[data-theme="dark"] .public-nav,
[data-theme="dark"] .topbar,
[data-theme="dark"] .sidebar { background-color: rgba(14,21,36,.94); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .top-search { background: #111b2d; border-color: #26344c; color: var(--ink); }
[data-theme="dark"] .top-search input { color: var(--ink); }
[data-theme="dark"] .card,
[data-theme="dark"] .stat,
[data-theme="dark"] .app-action,
[data-theme="dark"] .public-card,
[data-theme="dark"] .feature,
[data-theme="dark"] .empty,
[data-theme="dark"] .cal-toolbar,
[data-theme="dark"] .day-pill,
[data-theme="dark"] .ad-banner > a,
[data-theme="dark"] .pro-choice,
[data-theme="dark"] .service-choice,
[data-theme="dark"] .contract-box,
[data-theme="dark"] .modal,
[data-theme="dark"] .modal-card { background: var(--panel); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .hero-photo-card,
[data-theme="dark"] .stylist-hero-next,
[data-theme="dark"] .booking-cover-card { background: rgba(17,27,45,.96); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .service-choice:has(input:checked),
[data-theme="dark"] .pro-choice.on,
[data-theme="dark"] .day-pill.on,
[data-theme="dark"] .chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
[data-theme="dark"] .day-pill.on,
[data-theme="dark"] .chip.on { color: #dbe8ff; }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .inline-fields input,
[data-theme="dark"] .inline-fields select { background: #0f192a; border-color: #2b3853; color: var(--ink); }
[data-theme="dark"] .field label { color: #c7d2e4; }
[data-theme="dark"] .data th { background: #111b2d; color: #93a4bd; }
[data-theme="dark"] .data td { border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .data tr:hover td,
[data-theme="dark"] .list-item:hover { background: #14213a; }
[data-theme="dark"] .btn { background: var(--panel); border-color: var(--line-strong); color: var(--ink); }
[data-theme="dark"] .btn:hover { border-color: #46618d; }
[data-theme="dark"] .btn-p { background: linear-gradient(135deg,#315ee8,#1b3fb0); border-color: #315ee8; color: #fff; }
[data-theme="dark"] .btn-light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
[data-theme="dark"] .stat-label,
[data-theme="dark"] .small.muted,
[data-theme="dark"] .muted { color: var(--muted); }
[data-theme="dark"] .page-head h1,
[data-theme="dark"] .page-head .sub,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--ink); }
[data-theme="dark"] .public-hero,
[data-theme="dark"] .hero,
[data-theme="dark"] .public-body { background-color: var(--bg); color: var(--ink); }
[data-theme="dark"] .auth-main { background: radial-gradient(500px 300px at 70% 0%, #111d35, transparent 70%); }
[data-theme="dark"] .category-chip { color: #c9d6ea; }
[data-theme="dark"] .category-chip .cat-icon { border-color: var(--line); }
[data-theme="dark"] .ad-banner strong,
[data-theme="dark"] .ad-banner > a { color: var(--ink); }
[data-theme="dark"] .ad-kicker { color: #93a4bd; border-color: var(--line); }
[data-theme="dark"] .contract-box p { color: var(--muted); }
[data-theme="dark"] .public-service-row { border-color: var(--line); }
[data-theme="dark"] .booking-step { background: var(--panel); border-color: var(--line); color: var(--muted); }
[data-theme="dark"] .slot { background: var(--panel); border-color: var(--line-strong); color: var(--ink); }
[data-theme="dark"] .btn-danger { color: #ff9b91; border-color: #6d2b26; }
[data-theme="dark"] .salon-public-hero { color: #fff; }
[data-theme="dark"] .salon-public-hero h1 { color: #fff; }
[data-theme="dark"] .salon-public-meta,
[data-theme="dark"] .salon-public-hero .sub,
[data-theme="dark"] .salon-public-hero .eyebrow { color: #dbe6ff; }
[data-theme="dark"] .showcase-card > div { color: #fff; }
/* Login · lockup BWMS */
.auth-brand-lockup { width: 100%; max-width: 400px; display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.auth-zentria { display: inline-flex; align-items: center; min-width: 0; }
.auth-zentria img { max-width: 135px; height: auto; }
.auth-voice { font-size: 1.55rem; line-height: 1; font-weight: 800; letter-spacing: -.055em; color: var(--ink); }
.auth-bwms { margin-left: auto; font-size: .56rem; letter-spacing: .11em; font-weight: 800; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); border-radius: 999px; padding: 4px 7px; white-space: nowrap; }
.auth-card .card { padding: 26px; }
.auth-card h1 { font-size: 1.65rem; }
.auth-foot { letter-spacing: .01em; }
[data-theme="dark"] .auth-voice { color: var(--ink); }
[data-theme="dark"] .auth-bwms { color: #a9c2ff; background: #14284d; border-color: #2a4a86; }
@media (max-width: 520px) { .auth-brand-lockup { max-width: 400px; } .auth-zentria img { max-width: 120px; } .auth-voice { font-size: 1.35rem; } }
.brand-bwms { font-style: normal; font-size: .52rem; letter-spacing: .09em; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 2px 4px; vertical-align: 2px; margin-left: 2px; }
[data-theme="dark"] .brand-bwms { color: #b7ccff; background: #1a2f58; }
.auth-side .brand-bwms { color: #fff; background: rgba(255,255,255,.14); }
/* Ajustes finales de contraste · tema oscuro */
[data-theme="dark"] .alert-warn { background: var(--warn-soft); border-color: #6b5418; color: var(--warn); }
[data-theme="dark"] .alert-err { background: var(--err-soft); border-color: #6e2d29; color: var(--err); }
[data-theme="dark"] .alert-ok { background: var(--ok-soft); border-color: #1d5a43; color: var(--ok); }
[data-theme="dark"] .alert-info { background: var(--brand-soft); border-color: #2c477d; color: var(--brand-ink); }
[data-theme="dark"] .btn-danger:hover { background: #2d1715; border-color: #b5473d; color: #ffb0a7; }
[data-theme="dark"] .top-search:focus-within { background: #111b2d; box-shadow: 0 0 0 4px rgba(127,151,255,.12); }
[data-theme="dark"] .hero-panel { background: var(--panel); border-color: var(--line); }
[data-theme="dark"] .category-chip:nth-child(2n) .cat-icon { background: #2b1b2c; color: #ff9db5; border-color: #4a2b3b; }
[data-theme="dark"] .category-chip:nth-child(3n) .cat-icon { background: #1b2b3a; color: #8ed8ff; border-color: #2b4459; }
[data-theme="dark"] .offer-badge { background: #111b2d; color: #ffb1c0; }
[data-theme="dark"] .salon-result-logo { border-color: var(--panel); background: var(--panel); }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: #6f809a; }
[data-theme="dark"] .field select option { background: #0f192a; color: var(--ink); }
[data-theme="dark"] .pager .btn.cur { color: #fff; }
[data-theme="dark"] .auth-card { color: var(--ink); }
.auth-main { align-content: center; justify-items: center; }
.auth-brand-lockup { flex: none; }
[data-theme="dark"] .hero { background: radial-gradient(700px 380px at 80% 0%, #101b31, transparent 65%); }
[data-theme="dark"] .auth-wrap { background: var(--bg); }
[data-theme="dark"] .site-foot { background: transparent; }
.sidebar .brand-bwms { color: #b9ccff; background: rgba(255,255,255,.1); }
html[data-theme="dark"] { color-scheme: dark; }
:root { color-scheme: light; }
.pricing-card { text-align: center; }
.pricing-card .pill { margin: 0 auto; }
.pricing-card .auth-points { max-width: 460px; margin-left: auto; margin-right: auto; text-align: left; }
.pricing-card .auth-points li { align-items: center; }
.pricing-card .price-big { text-align: center; }
.pricing-card .btn { margin-top: 4px; }
#planes .section-head, #planes .text-center { justify-content: center; }
#centros-prueba .list-cards { max-width: 980px; margin: 0 auto; }
.auth-wordmark { font-size: 1.55rem; line-height: 1; font-weight: 800; letter-spacing: -.055em; color: var(--ink); }
[data-theme="dark"] .auth-wordmark { color: var(--ink); }
@media (max-width: 520px) { .auth-wordmark { font-size: 1.35rem; } }
.pricing-card .auth-points li { color: var(--ink); font-size: .86rem; }
.pricing-card .auth-points .ic { background: var(--brand-soft); color: var(--brand); }
.pricing-card .auth-points .ic svg { stroke: currentColor; }
/* Preferencias del Salón */
.settings-block { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 18px; margin-bottom: 14px; }
.settings-block-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.settings-block-head h3 { margin: 3px 0 2px; font-size: 1rem; letter-spacing: -.02em; }
.settings-block-head p { margin: 0; color: var(--muted); font-size: .76rem; }
.settings-block .eyebrow { display: inline-flex; align-items: center; gap: 4px; font-size: .55rem; letter-spacing: .1em; color: var(--brand); font-weight: 800; }
.input-like { min-height: 42px; display: flex; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--ink); font-weight: 700; font-size: .82rem; }
[data-theme="dark"] .settings-block { background: var(--panel); border-color: var(--line); }
[data-theme="dark"] .input-like { background: #111b2d; border-color: #2b3853; }
@media (max-width: 680px) { .settings-block { padding: 14px; } .settings-block-head { flex-direction: column; } }
/* Sidebar · contraste correcto en claro y oscuro */
.sidebar { color: var(--ink-2); }
.side-brand .brandmark strong { color: var(--ink) !important; }
.side-brand .brandmark span span { color: var(--muted) !important; }
.side-close { color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); }
.salon-switch { background: var(--panel-2); border-color: var(--line); color: var(--muted); }
.salon-switch:hover { background: var(--brand-soft); }
.salon-switch select { color: var(--ink); }
.salon-switch select option { color: var(--ink); background: var(--panel); }
.nav-label { color: var(--muted-2); }
.nav-item { color: var(--muted); }
.nav-item:hover { background: var(--brand-soft); color: var(--brand-ink); }
.nav-item.on { background: linear-gradient(90deg, var(--brand-soft), var(--panel-2)); color: var(--brand-ink); box-shadow: inset 3px 0 0 var(--brand); }
.nav-item.on .ico { color: var(--brand); }
.side-foot { border-color: var(--line); }
.side-user-info strong { color: var(--ink); }
.side-user-info span { color: var(--muted); }
.side-actions .icon-btn { border-color: var(--line); background: var(--panel-2); color: var(--ink); }
.side-actions .icon-btn:hover { background: var(--brand-soft); color: var(--brand-ink); }
[data-theme="dark"] .sidebar { color: var(--ink); }
[data-theme="dark"] .side-brand .brandmark strong { color: #fff !important; }
[data-theme="dark"] .side-brand .brandmark span span { color: rgba(255,255,255,.55) !important; }
[data-theme="dark"] .side-close { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .salon-switch { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: #dfe7ff; }
[data-theme="dark"] .salon-switch select { color: #eef2ff; }
[data-theme="dark"] .nav-label { color: rgba(255,255,255,.34); }
[data-theme="dark"] .nav-item { color: #a9b6cd; }
[data-theme="dark"] .nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
[data-theme="dark"] .nav-item.on { background: linear-gradient(90deg, rgba(59,91,255,.44), rgba(59,91,255,.1)); color: #fff; box-shadow: inset 3px 0 0 #7d9bff; }
[data-theme="dark"] .nav-item.on .ico { color: #b9c8ff; }
[data-theme="dark"] .side-user-info span { color: rgba(255,255,255,.45); }
[data-theme="dark"] .side-user-info strong { color: #fff; }
[data-theme="dark"] .side-actions .icon-btn { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #dfe7ff; }
/* Ficha de profesional · diseño editorial */
.staff-profile-head { display: flex; align-items: center; gap: 16px; padding: 20px; margin-bottom: 16px; border-radius: 22px; background: linear-gradient(120deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.staff-profile-photo { width: 88px; height: 88px; flex: 0 0 auto; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--vip)); display: grid; place-items: center; color: #fff; font-size: 1.5rem; font-weight: 800; border: 3px solid var(--panel); box-shadow: 0 10px 24px -16px rgba(37,99,235,.7); }
.staff-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-profile-copy { flex: 1; min-width: 0; }
.staff-profile-copy h1 { margin: 3px 0 2px; font-size: clamp(1.25rem, 2.5vw, 1.65rem); letter-spacing: -.04em; }
.staff-profile-copy p { margin: 0; color: var(--muted); font-size: .8rem; }
.staff-profile-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 8px; }
.staff-profile-actions { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; }
.staff-photo-editor { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; padding: 20px; margin: 16px 0; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.staff-photo-large { width: 150px; height: 150px; border-radius: 28px; overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); border: 1px solid var(--line); }
.staff-photo-large img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-photo-placeholder { display: grid; place-items: center; }
.staff-photo-copy h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.staff-photo-copy p { margin: 0 0 10px; color: var(--muted); font-size: .78rem; max-width: 560px; }
.staff-photo-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.photo-drop { flex: 1 1 260px; min-height: 66px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--panel-2); cursor: pointer; transition: border-color .15s, background .15s; }
.photo-drop:hover, .photo-drop.dragging { border-color: var(--brand); background: var(--brand-soft); }
.photo-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-drop-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--panel); color: var(--brand); border: 1px solid var(--line); flex: 0 0 auto; }
.photo-drop strong { display: block; font-size: .78rem; color: var(--ink); }
.photo-drop small { display: block; color: var(--muted); font-size: .67rem; margin-top: 2px; }
.staff-photo-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) {
    .staff-profile-head { align-items: flex-start; padding: 15px; }
    .staff-profile-photo { width: 66px; height: 66px; border-radius: 20px; }
    .staff-profile-actions { width: 100%; }
    .staff-photo-editor { grid-template-columns: 1fr; padding: 15px; }
    .staff-photo-large { width: 100%; height: 190px; }
}
[data-theme="dark"] .staff-profile-head { background: linear-gradient(120deg, var(--panel), #111b2d); }
[data-theme="dark"] .photo-drop-icon { background: #111b2d; }
/* Tienda online del Salón */
.store-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px 40px; }
.store-hero { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 12px 0 18px; padding: 26px; border-radius: 24px; background: linear-gradient(120deg, #0b1738, #234bb5); color: #fff; }
.store-hero h1 { margin: 8px 0 6px; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.05em; }
.store-hero p { margin: 0; color: #d9e5ff; max-width: 620px; }
.store-hero .eyebrow { color: #bcd0ff; }
.store-hero-mark { width: 92px; height: 92px; border-radius: 28px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.store-grid { display: grid; grid-template-columns: 1fr 370px; gap: 18px; align-items: start; }
.store-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.store-product { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.store-product-img { height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--panel-2)); color: var(--brand); }
.store-product-body { padding: 13px; display: flex; flex-direction: column; gap: 4px; }
.store-product-body h2 { font-size: .95rem; margin: 0; }
.store-price { font-size: 1.15rem; letter-spacing: -.04em; }
.store-cart { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; position: sticky; top: 16px; }
.store-cart h2 { margin: 0 0 10px; font-size: 1rem; }
.store-cart-empty { text-align: center; padding: 22px 8px; color: var(--muted); }
.store-lines { display: flex; flex-direction: column; gap: 8px; }
.store-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.store-line strong { display: block; font-size: .8rem; }
.store-line-right { display: flex; align-items: center; gap: 6px; }
.store-line-right input { width: 48px; min-height: 34px; padding: 4px 6px; }
.store-total { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-size: 1.1rem; }
.store-checkout-form { margin-top: 8px; }
.store-checkout-form .field { margin-bottom: 9px; }
@media (max-width: 760px) { .store-grid { grid-template-columns: 1fr; } .store-cart { position: static; } .store-hero { padding: 18px; } .store-hero-mark { width: 62px; height: 62px; border-radius: 18px; } .store-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } .store-product-img { height: 90px; } }
@media (max-width: 420px) { .store-products { grid-template-columns: 1fr; } }
/* Recomendaciones de gestión */
.rec-list { display: flex; flex-direction: column; gap: 9px; }
.rec-item { display: flex; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-2); }
.rec-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.rec-item strong { display: block; font-size: .8rem; }
.rec-item p { margin: 2px 0 0; color: var(--muted); font-size: .74rem; }
/* Directorio de Salones · composición centrada */
.salon-finder-hero { max-width: 1050px; margin: 0 auto; text-align: center; padding-left: 24px; padding-right: 24px; }
.salon-finder-hero .salon-search { margin-left: auto; margin-right: auto; max-width: 1050px; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
.salon-finder-hero .chip-row { justify-content: center; }
.salon-directory-section { max-width: 1180px; margin-left: auto; margin-right: auto; }
.salon-directory-section .section-head { justify-content: center; text-align: center; flex-direction: column; gap: 8px; }
.salon-directory-section .section-head > .flex { justify-content: center; }
.salon-directory-section .salon-results { text-align: left; }
.salon-directory-section .swipe-deck { margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
    .salon-finder-hero .salon-search { grid-template-columns: 1fr 1fr; }
    .salon-finder-hero .salon-search .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .salon-finder-hero { padding-left: 14px; padding-right: 14px; }
    .salon-finder-hero .salon-search { grid-template-columns: 1fr; }
    .salon-finder-hero .salon-search .btn { grid-column: auto; }
}
@media (max-width: 640px) {
    .public-header { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
    .public-header .salon-id { min-width: 0; flex: 1 1 140px; }
    .public-header .salon-id strong, .public-header .salon-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .booking-shell { padding-left: 12px; padding-right: 12px; }
    .booking-steps { gap: 4px; }
    .booking-step { padding: 5px 8px; font-size: .64rem; }
}
/* Disponibilidad en vivo · reserva pública */
.availability-overview { display:flex; align-items:center; gap:10px 18px; flex-wrap:wrap; background:var(--brand-soft); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin:0 0 12px; font-size:.76rem; color:var(--brand-ink); }
.availability-overview b { font-size:1.05rem; margin-right:2px; }
.availability-overview .muted { margin-left:auto; font-size:.68rem; }
.pro-periods { display:flex; gap:5px; flex-wrap:wrap; margin-top:4px; }
.pro-periods span { font-size:.58rem; font-weight:700; border-radius:999px; padding:2px 6px; background:var(--panel-2); color:var(--muted); white-space:nowrap; }
.pro-periods span.ok { background:#e9f9f2; color:#078a62; }
.pro-periods span.no { background:#fff4f2; color:#b42318; }
.slot-selection { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#f0f7ff; border:1px solid #b7d3ff; color:#123a73; border-radius:14px; padding:12px 14px; margin:0 0 14px; font-size:.8rem; }
.slot-selection strong { font-size:.9rem; }
.slot-selection .slot-selection-ok { color:#067647; font-weight:800; }
.slot-selection .slot-selection-bad { color:#b42318; font-weight:800; }
.slot-selection .slot-selection-action { margin-left:auto; }
.booking-call { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:14px; padding-top:12px; border-top:1px dashed var(--line); font-size:.78rem; color:var(--muted); }
.booking-call .btn { flex:none; }
[hidden] { display:none !important; }
@media (max-width: 640px) {
    .availability-overview { gap:4px 12px; padding:9px 10px; }
    .availability-overview .muted { margin-left:0; width:100%; }
    .slot-selection .slot-selection-action { margin-left:0; width:100%; }
    .slot-selection .btn { width:100%; justify-content:center; }
    .booking-call { align-items:flex-start; flex-direction:column; }
    .booking-call .btn { width:100%; justify-content:center; }
    .pro-periods { margin-top:2px; }
}
#booking-days { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
#booking-days .day-pill { display: flex; flex-direction: column; gap: 1px; min-width: 64px; background: var(--panel); }
#booking-days .day-pill strong { font-size: .72rem; }
#booking-days .day-pill span { font-size: .62rem; color: var(--muted); }
#booking-days .day-pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
#booking-days .day-pill.on span { color: rgba(255,255,255,.8); }
/* Evita que el selector de días ensanche la columna en móvil */
.booking-shell .grid-2-1 { grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); }
.booking-shell .grid-2-1 > div, .booking-shell .grid-2-1 > aside { min-width: 0; }
#booking-days { min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
    .booking-shell .grid-2-1 { grid-template-columns: 1fr; }
}
