/* Portada */
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login { font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.nav-actions .btn-small { display: inline-flex; }
.hero-inner.hero-solo { grid-template-columns: 1fr; min-height: 0; padding: 60px 24px 40px; }
.hero-solo h1 { font-size: clamp(3.2rem, 9vw, 7.6rem); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.feature-list li { padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.feature-list strong { display: block; margin-bottom: 4px; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.example { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.example p { margin-top: 12px; font-size: 1.15rem; color: var(--muted); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.closing-actions .btn { margin-top: 0; }
.closing .btn-line { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.4); }

@media (max-width: 860px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-login { display: none; }
  .nav-pill { gap: 10px; }
  .nav-actions { margin-left: auto; }
  .hero-inner.hero-solo { padding: 28px 16px 16px; }
}

@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
  .closing-actions .btn { width: 100%; }
}

/* Pantallas de la plataforma: entrar, panel, reservas y administración */
.auth { display: grid; place-items: center; min-height: 100dvh; padding: 24px 16px; background: radial-gradient(50% 45% at 50% 0%, rgb(200 240 74 / 0.1), transparent 70%); }
.auth-card { width: min(100%, 420px); padding: 32px; border-radius: var(--r); background: var(--surface); box-shadow: var(--bezel); }
.auth-card .brand { margin-bottom: 24px; }
.auth-card h1 { font-size: 2rem; letter-spacing: -0.04em; line-height: 1.1; }
.auth-card > p { margin-top: 6px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.form-error { min-height: 1.3em; font-size: 0.9rem; color: #ff8a73; }
.form-ok { min-height: 1.3em; font-size: 0.9rem; color: var(--accent); }
.auth-alt { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }

/* Panel */
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 4px; height: 100dvh; padding: 22px 14px; border-right: 1px solid var(--line); }
.side .brand { margin: 0 10px 22px; }
.side button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 37px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 0.94rem; font-weight: 500; text-align: left; cursor: pointer; transition: background-color 0.25s var(--spring), color 0.25s var(--spring); }
.side #side-nav { display: grid; align-content: start; gap: 14px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.12) transparent; }
.nav-group { display: grid; gap: 2px; }
.nav-title { margin: 0 0 6px; padding: 0 12px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(163 167 156 / 0.6); }
.nav-item { position: relative; }
.nav-label { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-ic { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.side .badge { margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .side button:hover { background: rgb(255 255 255 / 0.04); color: var(--ink); } }
.side button.on { background: rgb(200 240 74 / 0.1); color: var(--ink); }
.side button.on .nav-ic { color: var(--accent); opacity: 1; }
.side button.on::before { content: ""; position: absolute; left: -4px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side .logout { justify-content: center; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; min-height: 48px; }
.side .logout { margin-top: auto; }
.badge { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-weight: 600; line-height: 22px; text-align: center; }
.main { min-width: 0; padding: 34px 40px 80px; }
.view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.view-head h1 { font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1.1; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card { padding: 24px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.card + .card { margin-top: 16px; }
.card h2 { margin-bottom: 14px; font-size: 1.25rem; letter-spacing: -0.02em; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.kpi span { font-size: 0.88rem; color: var(--muted); }
.kpi strong { display: block; font-size: 2.1rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two .card + .card { margin-top: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 16px 20px; border-radius: var(--r); background: rgb(200 240 74 / 0.1); box-shadow: inset 0 0 0 1px rgb(200 240 74 / 0.25); }
.share code { font-family: inherit; font-weight: 500; word-break: break-all; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-main { min-width: 0; flex: 1 1 220px; }
.row-main strong { display: block; font-weight: 600; }
.row-main small { color: var(--muted); font-size: 0.9rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini.link-btn { display: inline-flex; align-items: center; text-decoration: none; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.tag.pending { background: rgb(200 240 74 / 0.12); color: var(--accent); }
.tag.cancelled { color: #ff8a73; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); }
.field select, .field textarea { min-height: 50px; padding: 12px 16px; border: 0; border-radius: var(--r-control); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.field input[type="color"] { padding: 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.hours-row { display: grid; grid-template-columns: 110px 1fr 1fr 110px; align-items: center; gap: 10px; padding: 8px 0; }
.hours-row input[type="time"] { min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-control); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.empty { padding: 30px 0; color: var(--muted); text-align: center; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.chart div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 0.78rem; color: var(--muted); }
.chart i { width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--accent); }
.toast-app { position: fixed; z-index: 30; right: 18px; bottom: 18px; max-width: 320px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 500; animation: rise 0.4s var(--spring) both; }
.tabs-mobile { display: none; }

/* Reserva pública */
.book { --accent: var(--shop, #c8f04a); max-width: 560px; margin: 0 auto; padding: 32px 16px 64px; }
.book-head h1 { font-size: 2.4rem; letter-spacing: -0.04em; line-height: 1.1; }
.book-head p { margin-top: 6px; color: var(--muted); }
.book-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 0.95rem; }
.book .card { margin-top: 20px; }
.book .screen { animation: none; }
.book .screen h2 { font-size: 1.3rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.book .pick-grid.days { grid-template-columns: repeat(4, 1fr); }
.book .pick { color: var(--ink); }
.book .pick.on { color: var(--shop-on, #0c0d0c); }
.book .btn { background: var(--shop, #c8f04a); color: var(--shop-on, #0c0d0c); margin-top: 8px; }
.book-foot { margin-top: 28px; text-align: center; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .dash { display: block; }
  .side { display: none; }
  .tabs-mobile { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 6px; padding: 10px 12px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tabs-mobile button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 500; cursor: pointer; }
  .tabs-mobile button.on { background: var(--accent); color: var(--on-accent); }
  .main { padding: 22px 14px 64px; }
  .kpis, .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row strong, .hours-row .check { grid-column: span 1; }
  .book .pick-grid.days { grid-template-columns: repeat(3, 1fr); }
}

.service-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; align-items: end; gap: 12px; margin-bottom: 14px; }

@media (max-width: 860px) {
  .service-form { grid-template-columns: 1fr 1fr; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .service-form .field:first-child { grid-column: 1 / -1; }
}
.service-form .field, .service-form input { min-width: 0; width: 100%; }
.service-form .check input { width: 20px; }

dialog { width: min(92vw, 380px); margin: auto; padding: 24px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--bezel); }
dialog::backdrop { background: rgb(0 0 0 / 0.6); }
dialog h2 { font-size: 1.3rem; }
select.mini { padding: 0 10px; color: var(--ink); }
.tag.no_show { color: #ff8a73; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stars { display: flex; gap: 6px; }
.stars button { width: 44px; height: 44px; border: 0; border-radius: var(--r-control); background: var(--surface-2); font-weight: 600; cursor: pointer; }
.stars button.on { background: var(--shop, #c8f04a); color: var(--shop-on, #0c0d0c); }

.admin-sub { margin: 32px 0 14px; }
.admin-sub h2 { font-size: 1.5rem; letter-spacing: -0.03em; }

/* Lista de citas */
.appt-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.appt-row:last-child { border-bottom: 0; }
.appt-time strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.appt-time small { color: var(--muted); font-size: 0.78rem; }
.appt-actions-row { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-top: 8px; }
.more { flex: 1 1 auto; }
.more summary { display: inline-flex; align-items: center; list-style: none; color: var(--muted); }
.more summary::-webkit-details-marker { display: none; }
.more .row-actions { margin-top: 8px; }
.fold summary { display: flex; justify-content: space-between; align-items: center; min-height: 28px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; list-style: none; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.fold[open] summary::after { content: '-'; }
.fold[open] summary { margin-bottom: 16px; }
.share-text { min-width: 0; }
.share-text span { display: block; font-size: 0.82rem; color: var(--muted); }
.menu-list { padding: 6px 20px; }
.menu-list button { display: block; width: 100%; min-height: 54px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 1.05rem; font-weight: 500; text-align: left; cursor: pointer; }
.menu-list button:last-child { border-bottom: 0; color: #ff8a73; }
.app-top, .tabbar { display: none; }

@media (max-width: 860px) {
  html:has(.app-page), .app-page { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
  .app-page button, .app-page a, .app-page summary { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
  .app-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgb(11 12 11 / 0.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .app-top .mark { width: 22px; height: 22px; }
  .app-top strong { min-width: 0; overflow: hidden; font-weight: 600; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgb(20 22 19 / 0.94); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 50px; padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 0.72rem; font-weight: 500; cursor: pointer; transition: transform 0.12s ease-out; }
  .tabbar button:active { transform: scale(0.94); }
  .tabbar svg { width: 24px; height: 24px; fill: currentColor; }
  .tabbar button.on { color: var(--accent); }
  .tabbar .badge { position: absolute; top: 0; left: 54%; min-width: 18px; padding: 0 5px; font-size: 0.68rem; line-height: 18px; }
  .main { padding: 18px 16px calc(92px + env(safe-area-inset-bottom, 0px)); }
  .view-head { margin-bottom: 16px; }
  .view-head h1 { font-size: 1.8rem; }
  .card { padding: 18px; }
  .share { flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .share .head-actions { display: grid; grid-template-columns: repeat(4, 1fr); }
  .share .mini { justify-content: center; padding: 0 4px; text-align: center; }
  .kpis { display: flex; gap: 10px; margin: 0 -16px 14px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 150px; padding: 14px 16px; scroll-snap-align: center; }
  .kpi strong { font-size: 1.7rem; }
  .filters .field { flex: 1 1 140px; min-width: 0; }
  .filters input, .filters select { width: 100%; }
  .appt-row { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .appt-actions-row { grid-column: 1 / -1; }
  .appt-actions-row > .row-actions { flex: 1 1 100%; display: flex; }
  .appt-actions-row .primary { flex: 1; }
  .mini { min-height: 42px; }
  .toast-app { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-width: none; }
}

.appt-time small { display: block; white-space: nowrap; font-size: 0.72rem; }
.chart i { max-width: 56px; }
@media (max-width: 860px) {
  .share .mini { font-size: 0.82rem; }
}

/* Entrar y registro en dos paneles */
.split { display: grid; grid-template-columns: minmax(380px, 29%) minmax(0, 1fr); min-height: 100dvh; }
.split-side { display: flex; flex-direction: column; justify-content: space-between; padding: 46px 48px; background: radial-gradient(70% 45% at 85% 0%, rgb(200 240 74 / 0.2), transparent 70%), linear-gradient(180deg, #111310, #1c1f1a); color: #f3f4ef; }
.split-logo { display: block; width: 150px; height: auto; }
.split-pitch h2 { font-size: clamp(2.2rem, 2.7vw, 2.8rem); line-height: 1.1; }
.split-pitch p { max-width: 36ch; margin-top: 16px; color: #c5c8bf; }
.split-stats { display: flex; gap: 20px; margin-top: 34px; font-size: 0.85rem; color: #c5c8bf; }
.split-stats li + li { padding-left: 20px; border-left: 1px solid rgb(255 255 255 / 0.18); }
.split-stats strong { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; color: #c8f04a; }
.split-foot { font-size: 0.85rem; color: #a3a79c; }
.split-main { --bg: #dcdee0; --surface-2: #ffffff; --ink: #111310; --muted: #5a5d55; --line: rgb(0 0 0 / 0.1); position: relative; display: grid; place-items: center; padding: 32px 20px; background: var(--bg); color: var(--ink); color-scheme: light; }
.split.dark .split-main { --bg: #0b0c0b; --surface-2: #1c1e1a; --ink: #f3f4ef; --muted: #a3a79c; --line: rgb(255 255 255 / 0.09); color-scheme: dark; }
.split-theme { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.split-theme svg, .eye svg { width: 18px; height: 18px; fill: currentColor; }
.split-form { width: min(100%, 380px); }
.split-form h1 { font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.2; }
.split-sub { margin-top: 6px; font-size: 0.95rem; color: var(--muted); }
.split-form .stack { margin-top: 24px; gap: 16px; }
.split-form .label { color: var(--ink); font-weight: 500; }
.split-form .field input { width: 100%; min-height: 44px; border-radius: 8px; color: var(--ink); }
.split-form .field input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.split-form .form-error { min-height: 0; color: #c0321c; }
.split.dark .split-form .form-error { color: #ff8a73; }
.split-form .form-error:empty, .split-form .form-ok:empty { display: none; }
.split-form .form-ok { margin-top: 12px; color: var(--ink); font-weight: 500; }
.split-form .btn { min-height: 46px; border-radius: 8px; background: #111310; color: #ffffff; }
.split.dark .split-form .btn { background: #c8f04a; color: #0c0d0c; }
.split-form a { color: var(--ink); font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { font-size: 0.82rem; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px; }
.eye { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.split-form .auth-alt { margin-top: 20px; text-align: center; color: var(--muted); }
.split-mobile-logo { display: none; }

@media (max-width: 860px) {
  .split { display: block; }
  .split-side { display: none; }
  .split-main { min-height: 100dvh; }
  .split-mobile-logo { display: block; margin-bottom: 28px; }
  .split-mobile-logo img { display: block; width: 140px; height: auto; }
  .split.dark .split-mobile-logo img { filter: invert(1); }
}

/* Administración */
.admin-page .side-link { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.94rem; font-weight: 500; text-decoration: none; }
.admin-page .side-link:hover { color: var(--ink); }
.admin-page .kpi small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.admin-page .row-main small { display: block; }
.admin-page .meta { color: var(--muted); font-size: 0.82rem; }
.admin-page .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-gap { margin-top: 16px; }
.admin-page .two + .two { margin-top: 16px; }
.hint { margin-top: 6px; font-size: 0.88rem; color: var(--muted); }
.back { margin-bottom: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.92rem; cursor: pointer; }
.back:hover { color: var(--ink); }
.view-head.small { margin-bottom: 8px; }
.view-head.small h2 { margin: 0; }
.tag.soon { background: rgb(255 196 0 / 0.14); color: #ffc93c; }
.mini.danger { color: #ff8a73; }
.danger-zone { box-shadow: inset 0 0 0 1px rgb(255 138 115 / 0.3); }
.owner-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; }
.owner-facts dt { color: var(--muted); font-size: 0.92rem; }
.owner-facts dd { min-width: 0; overflow-wrap: anywhere; }
.admin-chart b { font-size: 0.72rem; font-weight: 500; color: var(--ink); }
.admin-chart small { color: var(--accent); font-weight: 600; }
.admin-page dialog { width: min(92vw, 440px); }
.admin-page dialog .stack { margin-top: 16px; }
.admin-page dialog .btn { justify-content: center; text-decoration: none; }

@media (max-width: 860px) {
  .admin-page .main { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .admin-page .tabs-mobile { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .owner-facts { grid-template-columns: 1fr; gap: 2px; }
  .owner-facts dd { margin-bottom: 8px; }
}

/* Aviso de activación o pago */
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; padding: 16px 20px; border-radius: var(--r); background: rgb(255 196 0 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 196 0 / 0.3); }
.notice div { flex: 1 1 260px; min-width: 0; }
.notice strong { display: block; font-weight: 600; }
.notice span { display: block; margin-top: 2px; font-size: 0.92rem; color: var(--muted); }
.notice.danger { background: rgb(255 138 115 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 138 115 / 0.35); }
@media (max-width: 860px) { .notice .mini { flex: 1 1 100%; justify-content: center; } }

/* Cómo pagar */
.pay-dialog { width: min(92vw, 440px); }
.pay-method { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-control); background: var(--surface-2); }
.pay-method > strong { display: block; margin-bottom: 6px; }
.pay-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; }
.pay-row span { color: var(--muted); font-size: 0.88rem; }
.pay-row b { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-dialog .stack { margin-top: 18px; }
.pay-dialog .btn { justify-content: center; text-decoration: none; }
.plan-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card h2 { margin-bottom: 4px; }
.plan-card p { color: var(--muted); }

/* Pagar por la web */
.pay-total { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-control); background: rgb(200 240 74 / 0.1); box-shadow: inset 0 0 0 1px rgb(200 240 74 / 0.25); }
.pay-total span { display: block; font-size: 0.82rem; color: var(--muted); }
.pay-total strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pay-dialog h3 { margin-top: 10px; font-size: 1.1rem; }
.pay-dialog .form-grid { gap: 12px; }
.pay-dialog input[type="file"] { padding: 10px; }
.choice b .bs { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.remind-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-control); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.remind-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.remind-row i { font-style: normal; font-weight: 600; color: var(--accent); }
.remind-row.done { opacity: 0.5; }
.remind-row.done i::after { content: ' ✓'; }
#remind-dialog { width: min(92vw, 460px); }
@media (max-width: 860px) { .pay-dialog .form-grid { grid-template-columns: 1fr; } }

/* Funciones extra del panel y de la web de reservas */
.kpi small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.goal { height: 12px; margin-top: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.goal i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.goal-card { margin-bottom: 16px; }
.goal-card .label-row span { color: var(--muted); font-size: 0.9rem; }
.appt-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mini.tip { width: 96px; padding: 0 10px; color: var(--ink); }
.hours-break { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.hours-break input { width: auto; min-height: 38px; }
.service-desc { grid-column: 1 / -1; }
.media-thumb { display: block; width: 100%; max-height: 220px; margin-bottom: 12px; border-radius: var(--r-control); object-fit: cover; }
.media-thumb.logo { width: 120px; height: 120px; object-fit: contain; background: var(--surface-2); }
.file-btn { cursor: pointer; }
.gallery-grid, .book-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.gallery-grid figure { position: relative; margin: 0; }
.gallery-grid img, .book-gallery img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.gallery-grid figure .mini { position: absolute; right: 6px; bottom: 6px; }
.impersonate-bar { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: #ffc93c; color: #111; font-weight: 600; }
.book-cover { width: 100%; max-height: 220px; margin-bottom: 16px; border-radius: var(--r); object-fit: cover; }
.book-title { display: flex; align-items: center; gap: 12px; }
.book-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.lang { margin-top: 8px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; }
.book .staff-pick { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.pick .off { display: block; font-size: 0.7rem; color: var(--accent); }
.waitlist { display: grid; gap: 8px; grid-column: 1 / -1; margin-top: 8px; padding: 14px; border-radius: var(--r-control); background: var(--surface-2); }
.waitlist input, .coupon-row input { min-height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; background: var(--surface-2); }
.summary s { color: var(--muted); }
@media print {
  .side, .tabbar, .app-top, .tabs-mobile, .cy-chat, .head-actions, .notice, .impersonate-bar { display: none !important; }
  .dash { display: block; }
  body, .card, .kpi { background: #fff !important; color: #111 !important; box-shadow: none !important; }
}

/* Directorio de barberías */
.directory { max-width: 960px; padding-top: 40px; padding-bottom: 80px; }
.directory .brand { margin-bottom: 36px; }
.directory h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; }
.directory > .hint { max-width: 52ch; margin-top: 12px; font-size: 1.1rem; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 32px 0; }
.directory-item { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; transition: transform 0.3s var(--spring); }
.directory-item:active { transform: scale(0.98); }
.directory-item img, .directory-initial { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.directory-initial { display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.directory-item strong { display: block; font-weight: 600; }
.directory-item small { display: block; color: var(--muted); font-size: 0.88rem; }
.directory-cta { display: grid; gap: 10px; justify-items: start; }
.directory-cta .btn { margin-top: 6px; text-decoration: none; }

/* Páginas de lectura: términos, privacidad y blog */
.doc { max-width: 720px; padding-top: 40px; padding-bottom: 80px; }
.doc .brand { margin-bottom: 36px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.04em; line-height: 1.08; text-wrap: balance; }
.doc h2 { margin-top: 32px; font-size: 1.3rem; letter-spacing: -0.02em; }
.doc p, .doc li { max-width: 65ch; color: var(--muted); line-height: 1.65; }
.doc p { margin-top: 10px; }
.doc ul { padding-left: 20px; }
.doc-date { font-size: 0.88rem; }
.doc-date a, .doc p a { color: var(--accent); }
.lead-doc { font-size: 1.15rem; }
.post-list { display: grid; gap: 12px; margin-top: 28px; }
.post-item { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.post-item strong { font-size: 1.15rem; }
.post-item small { color: var(--muted); }
.doc-cta { display: grid; gap: 8px; justify-items: start; margin-top: 40px; }
.doc-cta .btn { text-decoration: none; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc-foot a { color: var(--muted); text-decoration: none; }
.legal-note { font-size: 0.85rem; }
.legal-note a { color: var(--accent); }
/* Mis citas */
.wide-card { width: min(100%, 560px); }
.client-h { margin-top: 26px; margin-bottom: 4px; font-size: 1.1rem; }
.client-row { color: var(--ink); text-decoration: none; }
/* Plantillas de la web de reservas */
.theme-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.theme-pick { display: grid; gap: 4px; justify-items: start; padding: 12px; border: 0; border-radius: var(--r-control); background: var(--surface-2); color: var(--ink); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.theme-pick.on { box-shadow: inset 0 0 0 2px var(--accent); }
.theme-pick i { width: 100%; height: 54px; border-radius: 10px; }
.theme-pick small { color: var(--muted); }
.t-oscuro i { background: linear-gradient(135deg, #0c0d0c 60%, #c8f04a 60%); }
.t-claro i { background: linear-gradient(135deg, #f6f6f1 60%, #c8f04a 60%); box-shadow: inset 0 0 0 1px #ddd; }
.t-calido i { background: linear-gradient(135deg, #f3ead9 60%, #b5652c 60%); }
body[data-theme="claro"] { --bg: #f6f6f1; --surface: #ffffff; --surface-2: #eeefe8; --ink: #15170f; --muted: #5d6253; --line: #dfe1d6; background: var(--bg); color: var(--ink); }
body[data-theme="calido"] { --bg: #f3ead9; --surface: #fbf6ec; --surface-2: #efe3cd; --ink: #2b1d12; --muted: #6e5a46; --line: #e2d3b8; background: var(--bg); color: var(--ink); }
.group-box { margin-top: 4px; padding: 12px 14px; border-radius: var(--r-control); background: var(--surface-2); }
.group-box summary { cursor: pointer; font-weight: 600; }
.group-box .person { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.cal-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Chat en vivo del administrador */
.live-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; }
.chat-item { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.chat-item.on, .chat-item:hover { background: var(--surface-2); }
.chat-item small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.chat-thread { display: grid; gap: 10px; min-height: 260px; padding: 12px; border-radius: var(--r-control); background: var(--surface-2); }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chat-head small { color: var(--muted); }
.chat-head .mini { margin-left: auto; }
.chat-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.chat-msg small { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--muted); }
.chat-msg.admin { align-self: flex-end; background: var(--accent); color: var(--on-accent); }
.chat-msg.admin small { color: inherit; opacity: 0.7; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { flex: 1; min-width: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 760px) { .live-grid { grid-template-columns: 1fr; } }

/* WhatsApp conectado por QR */
.wa-card p { line-height: 1.5; color: var(--muted); }
.wa-qr { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.wa-qr img { display: block; width: 260px; height: 260px; padding: 10px; border-radius: 16px; background: #fff; }
.wa-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; line-height: 1.45; }
.wa-on { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.wa-num { display: flex; gap: 14px; align-items: center; }
.wa-num strong { display: block; font-size: 1.25rem; letter-spacing: -0.01em; }
.wa-num small { color: var(--muted); }
.wa-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgb(200 240 74 / 0.15); flex: none; }
.wa-err { color: #ff8a73; }
@media (max-width: 640px) { .wa-qr { grid-template-columns: 1fr; justify-items: center; } .wa-qr img { width: 230px; height: 230px; } }
.wa-inbox { margin-top: 12px; }
.wa-list { display: grid; align-content: start; gap: 2px; max-height: 470px; overflow-y: auto; }
.wa-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.wa-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-row em { flex: none; font-style: normal; font-size: 0.75rem; color: var(--muted); }
.wa-row small { min-width: 0; }
.wa-row .badge { flex: none; }
.wa-msgs { max-height: 420px; }
.wa-search { width: min(100%, 260px); margin-left: auto; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
