:root {
  --brand: #a8801a;        /* dorado Belloora (legible sobre blanco) */
  --brand-dark: #8a6813;
  --brand-light: #fbf2dc;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --green: #059669;
  --green-light: #d1fae5;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --gray-light: #f3f4f6;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --radius: 12px;
  --hour-h: 60px; /* px por hora en la grilla */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Secciones colapsables de Informes ---------- */
.report-collapse {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 12px; overflow: hidden;
}
.report-collapse > summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 15px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.report-collapse > summary::-webkit-details-marker { display: none; }
.report-collapse > summary::after { content: "▸"; color: var(--text-muted); font-size: 13px; transition: transform .2s ease; }
.report-collapse[open] > summary::after { transform: rotate(90deg); }
.report-collapse > .table-wrap { padding: 0 10px 12px; }

/* ---------- Administración: paneles desplegables (acordeón) ---------- */
#view-admin .admin-grid { grid-template-columns: 1fr; }   /* una columna: acordeón en todas las pantallas */
#view-admin .panel.admin-collapsible { margin-bottom: 12px; }
#view-admin .panel.admin-collapsible > .panel-head {
  cursor: pointer; user-select: none; justify-content: flex-start; gap: 10px; margin: 0;
}
#view-admin .panel.admin-collapsible > .panel-head > .btn { margin-left: auto; }
#view-admin .panel-head h2 .acc-ico { margin-right: 8px; }
.acc-caret { color: var(--text-muted); font-size: 13px; transition: transform .2s ease; flex-shrink: 0; }
#view-admin .panel.admin-collapsible:not(.collapsed) > .panel-head .acc-caret { transform: rotate(90deg); }
#view-admin .panel.admin-collapsible.collapsed > *:not(.panel-head) { display: none !important; }
#view-admin .panel.admin-collapsible.collapsed > .panel-head { padding-bottom: 0; }

/* ---------- Panel de gráficas (Informes) ---------- */
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-pick { max-width: 320px; }
.bar-chart { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 12px; }
.bar-label { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--gray-light); border-radius: 999px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; min-width: 8px; transition: width .4s ease; }
.bar-val { font-weight: 700; font-size: 13px; min-width: 64px; text-align: right; }
@media (max-width: 560px) {
  .bar-row { grid-template-columns: 110px 1fr auto; gap: 8px; }
  .bar-label { font-size: 12px; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -.3px; line-height: 1.15; word-break: break-word; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.location-switch { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.location-switch select { width: 100%; font-size: 13px; font-weight: 600; }

.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: none; background: none; cursor: pointer;
  border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-align: left;
}
.nav-item:hover { background: var(--gray-light); color: var(--text); }
.nav-item.active { background: var(--brand-light); color: var(--brand); font-weight: 700; }
.nav-icon { font-size: 16px; }
.nav-more { display: none; }          /* solo aparece en la barra del celular */

/* ---------- Hoja "Más" (celular): mosaico con el resto de las secciones ---------- */
.mas-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15, 15, 20, .45);
  display: flex; align-items: flex-end;
}
.mas-hoja {
  width: 100%; background: var(--surface-solid, var(--surface));
  border-radius: 20px 20px 0 0; border-top: 1px solid var(--border);
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .28);
}
.mas-tirador { width: 42px; height: 4px; border-radius: 99px; background: var(--border); margin: 2px auto 14px; }
.mas-hoja h3 { font-size: 15px; margin: 0 0 12px; }
.mas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mas-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 10px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: center;
}
.mas-tile .mas-ico { display: flex; color: var(--brand); }
.mas-tile .mas-ico svg { width: 25px; height: 25px; }
.mas-tile.activo { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .mas-hoja { animation: masSube .18s ease; }
  @keyframes masSube { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); }

/* ---------- Main / topbar ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.stats { display: flex; gap: 14px; }
.stat { text-align: right; }
.stat b { display: block; font-size: 15px; }
.stat small { color: var(--text-muted); }

.view { padding: 20px 24px; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }

/* ---------- Botones e inputs ---------- */
.btn {
  border: 1px solid transparent; border-radius: 8px;
  padding: 9px 14px; font-size: 14px; font-weight: 600;
  cursor: pointer; background: var(--gray-light); color: var(--text);
  transition: filter .12s;
}
.btn:hover { filter: brightness(.96); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); filter: none; }
.btn-outline { background: var(--surface); border-color: var(--border); }
.btn-ghost { background: none; color: var(--text-muted); }
.btn-danger { background: var(--red-light); color: var(--red); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; filter: none; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-icon {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 16px; border-radius: 8px; cursor: pointer;
}
.btn-icon:hover { background: var(--gray-light); }

.input {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; background: var(--surface);
  color: var(--text); font-family: inherit;
}
.input:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); }
.search-input { width: 280px; }

/* ---------- Agenda ---------- */
.agenda-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.date-nav { display: flex; align-items: center; gap: 8px; }
.date-label { font-weight: 700; font-size: 15px; text-transform: capitalize; margin-left: 6px; }
.agenda-filter { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }

.agenda-layout { display: flex; gap: 16px; align-items: flex-start; }
.calendar-wrap {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: auto; max-height: calc(100vh - 210px);
}

.cal-grid { display: flex; min-width: fit-content; }
.cal-times { width: 56px; flex-shrink: 0; border-right: 1px solid var(--border); }
.cal-times .cal-head { height: 52px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 5; }
.cal-time-cell {
  height: var(--hour-h);
  font-size: 11px; color: var(--text-muted);
  text-align: right; padding: 2px 6px 0 0;
  border-bottom: 1px solid var(--gray-light);
}
.cal-col { flex: 1; min-width: 170px; border-right: 1px solid var(--border); }
.cal-col:last-child { border-right: none; }
.cal-head {
  height: 52px; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 5;
}
.cal-head .avatar { width: 30px; height: 30px; font-size: 12px; }
.cal-head-name { font-weight: 700; font-size: 13px; line-height: 1.1; }
.cal-head-role { font-size: 11px; color: var(--text-muted); }
.cal-body { position: relative; }
.cal-hour-line { height: var(--hour-h); border-bottom: 1px solid var(--gray-light); }
.cal-off {
  position: absolute; left: 0; right: 0;
  background: repeating-linear-gradient(-45deg, #f3f4f6, #f3f4f6 6px, #fafafa 6px, #fafafa 12px);
  z-index: 1;
}
.cal-body { cursor: pointer; }
.appt {
  position: absolute; left: 4px; right: 4px;
  border-radius: 8px; padding: 4px 8px;
  font-size: 12px; overflow: hidden; cursor: pointer;
  border-left: 4px solid; z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.appt b { display: block; font-size: 12px; }
.appt small { opacity: .85; }
.appt.cancelada { opacity: .45; text-decoration: line-through; }
.appt.block {
  background: repeating-linear-gradient(-45deg, #e5e7eb, #e5e7eb 6px, #f3f4f6 6px, #f3f4f6 12px);
  border-left-color: #6b7280; color: #374151; z-index: 3;
}
.now-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--red); z-index: 4; pointer-events: none;
}
.now-line::before {
  content: ""; position: absolute; left: -1px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}

/* Panel de disponibilidad */
.availability-panel {
  width: 250px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; max-height: calc(100vh - 210px); overflow: auto;
}
.availability-panel h3 { font-size: 14px; margin-bottom: 4px; }
.availability-panel .sub { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 4px; font-size: 12px; font-weight: 600;
  background: var(--surface); cursor: pointer; text-align: center;
  color: var(--brand);
}
.slot:hover { background: var(--brand-light); border-color: var(--brand); }
.slot.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.avail-pro { margin-bottom: 14px; }
.avail-pro-name {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px; margin-bottom: 6px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- Listas / tablas ---------- */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--text-muted); padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: #fafafa;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafaff; }
.td-actions { text-align: right; white-space: nowrap; }
.td-actions .btn { margin-left: 6px; }

/* ---------- Cards profesionales ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.pro-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.pro-card-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.pro-card-top b { font-size: 15px; display: block; }
.pro-card-top small { color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--gray-light); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.pro-schedule { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.pro-card-actions { display: flex; gap: 8px; margin-top: auto; }

/* ---------- Reservas (lista) ---------- */
.booking-group h3 {
  font-size: 13px; text-transform: capitalize; color: var(--text-muted);
  margin: 18px 0 8px;
}
.booking-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 8px;
  cursor: pointer;
}
.booking-row:hover { border-color: var(--brand); }
.booking-time { font-weight: 800; font-size: 15px; width: 90px; }
.booking-time small { display: block; font-weight: 500; color: var(--text-muted); }
.booking-info { flex: 1; min-width: 0; }
.booking-info b { display: block; }
.booking-info small { color: var(--text-muted); }
.badge {
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700;
}
.badge.pendiente { background: var(--st-pendiente-bg, var(--amber-light)); color: var(--st-pendiente, var(--amber)); }
.badge.confirmada { background: var(--st-confirmada-bg, var(--brand-light)); color: var(--st-confirmada, var(--brand)); }
.badge.completada { background: var(--st-completada-bg, var(--green-light)); color: var(--st-completada, var(--green)); }
.badge.cancelada { background: var(--red-light); color: var(--red); }
/* panel de colores de estado (Administración) */
.status-color-list { display: flex; flex-direction: column; gap: 12px; }
.status-color-row { display: flex; align-items: center; gap: 12px; }
.status-color-row .badge { min-width: 108px; text-align: center; }
.status-color-row .color-hex { max-width: 120px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(17,24,39,.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 100; overflow: auto;
}
.modal {
  background: var(--surface); border-radius: 16px;
  width: 100%; max-width: 560px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 17px; }
.modal-body { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.form-field .input { width: 100%; }
.form-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.form-actions .spacer { margin-right: auto; }
.form-actions .btn { white-space: nowrap; }
/* En tablet/celular los botones se reparten en una grilla de 2 columnas para
   que nunca se salgan del modal (importante en el detalle de la reserva, que
   tiene varios botones). */
@media (max-width: 820px) {
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .form-actions .btn { width: 100%; white-space: normal; padding: 10px 8px; }
  .form-actions .spacer { margin-right: 0; }
}
@media (max-width: 380px) {
  .form-actions { grid-template-columns: 1fr; }
}
/* Detalle de reserva: muchos botones. Grilla pareja (mismo ancho y alto) en
   TODAS las pantallas para que se vea ordenado. La doble clase gana sobre las
   reglas genéricas de .form-actions de arriba. */
.form-actions.form-actions-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.form-actions.form-actions-grid .btn {
  width: 100%; white-space: normal; padding: 11px 10px; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.form-actions.form-actions-grid .spacer { margin-right: 0; }
.hint { font-size: 12px; color: var(--text-muted); }

/* Restaurar datos de empresa (zona peligrosa) */
.danger-panel { border-color: var(--red-light); }
.danger-panel .panel-head h2 { color: var(--red); }
.reset-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.reset-list .reset-row { justify-content: flex-start; width: 100%; }

.checkbox-list { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-pill { position: relative; }
.checkbox-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.checkbox-pill span {
  display: inline-block; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer;
}
.checkbox-pill input:checked + span {
  background: var(--brand-light); border-color: var(--brand); color: var(--brand);
}

.schedule-editor { display: flex; flex-direction: column; gap: 8px; }
.schedule-row { display: flex; align-items: center; gap: 10px; }
.schedule-row .day-name { width: 84px; font-weight: 600; font-size: 13px; }
.schedule-row input[type="time"] { padding: 6px 8px; }
.schedule-row .sep { color: var(--text-muted); }
.schedule-row.off .day-name { color: var(--text-muted); }

.portal-links { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-links .btn { text-decoration: none; }
@media (max-width: 767px) {
  .portal-links { flex-direction: column; }
  .portal-links .btn { width: 100%; text-align: left; }
}

.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent;
}
.color-swatch.selected { border-color: var(--text); }

/* Color personalizado (código de marca) */
.color-custom {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px;
}
.color-custom-label { font-size: 13px; color: var(--text-muted); }
.color-picker {
  width: 40px; height: 34px; padding: 2px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); cursor: pointer;
}
.color-hex { width: 110px; text-transform: uppercase; }
.color-preview-dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); flex-shrink: 0;
}

.detail-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.detail-list .row { display: flex; justify-content: space-between; gap: 12px; }
.detail-list .row span:first-child { color: var(--text-muted); }

.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.empty-state .big { font-size: 34px; margin-bottom: 8px; }

/* ---------- Administración ---------- */
.share-banner {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--brand-light); border: 1px solid #ddd6fe;
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px;
}
.share-banner:empty { display: none; }
.share-row { display: flex; align-items: center; gap: 14px; }
.local-warning {
  background: var(--amber-light); color: #92400e;
  border: 1px solid #fcd34d; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; line-height: 1.5;
}
.local-tag {
  color: var(--amber); font-size: 12px; font-weight: 700;
  padding: 4px 10px 8px;
}
.share-icon { font-size: 26px; }
.share-text { flex: 1; min-width: 0; }
.share-text b { display: block; font-size: 14px; }
.share-text small { color: var(--text-muted); }
.share-text a { color: var(--brand); font-weight: 700; word-break: break-all; }

.admin-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px;
  align-items: start;
}
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 16px; }
.panel-sub { font-size: 13px; margin: 6px 0 16px; }

.brand-preview {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--border); border-radius: 10px;
  padding: 10px 14px; background: var(--bg);
  font-size: 16px; font-weight: 800;
}
.loc-logo {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; overflow: hidden;
}
.loc-logo img { width: 100%; height: 100%; object-fit: cover; }

.location-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-light);
}
.location-row:last-child { border-bottom: none; }
.location-row .loc-info { flex: 1; min-width: 0; }
.location-row .loc-info b { display: block; font-size: 14px; }
.location-row .loc-info small { color: var(--text-muted); }
.location-row .loc-actions { display: flex; gap: 6px; }

@media (max-width: 1100px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---------- Página pública de reservas ---------- */
.booking-page { background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg) 240px); min-height: 100vh; }
.bk-cover {
  height: 200px; background-size: cover; background-position: center;
  background-color: var(--brand); display: none;
}
.bk-wrap { max-width: 640px; margin: 0 auto; padding: 32px 16px 48px; }
.bk-cover + .bk-wrap { padding-top: 20px; }

/* con portada, la cabecera (logo + nombre) va DEBAJO de ella en todos los tamaños,
   para que el título se lea con cualquier color (sobre el fondo claro, no sobre la portada) */
.bk-cover:not([style*="display: none"]) + .bk-wrap .bk-header { margin-top: 16px; }

/* botón flotante de WhatsApp */
.bk-whatsapp {
  position: fixed; right: 14px; bottom: 22px; z-index: 50;
  background: #25d366; color: #fff; font-weight: 700; text-decoration: none;
  padding: 9px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.22);
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
}
.bk-whatsapp span { font-size: 16px; }
/* En móvil el flotante tapaba el botón de abajo: se achica y se apoya justo encima de él.
   La altura depende del paso: barra "Continuar" (servicios) o botón "Confirmar reserva". */
@media (max-width: 767px) {
  .bk-whatsapp {
    bottom: 78px; right: 12px;
    padding: 7px 12px; font-size: 13px; gap: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,.22);
  }
  .bk-whatsapp span { font-size: 15px; }
  /* paso de confirmar: el botón está más arriba, así que el flotante sube con él */
  body.bk-step-details .bk-whatsapp { bottom: 176px; }
}
.bk-whatsapp-inline {
  display: block; width: 100%; background: #25d366; color: #fff;
  padding: 12px; margin: 10px 0; text-align: center; text-decoration: none;
  border-radius: 8px; font-weight: 700;
}

/* mapa en la confirmación */
.bk-map { border-radius: 12px; overflow: hidden; margin: 14px 0 8px; border: 1px solid var(--border); }
.bk-map iframe { width: 100%; height: 220px; border: 0; display: block; }
.bk-map-btn { display: block; text-align: center; text-decoration: none; margin-bottom: 6px; }

/* promociones y fotos en la reserva */
.bk-cat.promo-cat { color: #b45309; }
.bk-option.promo { border-color: #f59e0b; background: #fffbeb; position: relative; }
.promo-flag {
  position: absolute; top: -9px; left: 12px; background: #f59e0b; color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.bk-price s { color: var(--text-muted); font-weight: 500; margin-right: 2px; }
.pro-photo, .bk-option .pro-photo {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.pro-photo img { width: 100%; height: 100%; object-fit: cover; }
.promo-badge {
  background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
}
.pro-photo-preview {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--gray-light); display: flex; align-items: center; justify-content: center;
}
.pro-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview {
  border: 1px dashed var(--border); border-radius: 10px; overflow: hidden;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.cover-preview img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.bk-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bk-header .loc-logo { width: 54px; height: 54px; font-size: 27px; background: var(--surface); box-shadow: var(--shadow); }
.bk-header h1 { font-size: 22px; letter-spacing: -.4px; }
/* Botones de redes sociales en la página de reservas */
.bk-social { display: flex; gap: 8px; margin-left: auto; flex: none; }
.bk-soc {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  box-shadow: var(--shadow); transition: transform .12s, color .12s, border-color .12s;
}
.bk-soc svg { width: 20px; height: 20px; }
.bk-soc:hover { transform: translateY(-2px); border-color: currentColor; }
.bk-soc.instagram:hover { color: #E1306C; }
.bk-soc.tiktok:hover { color: #000; }
.bk-soc.facebook:hover { color: #1877F2; }
@media (max-width: 560px) {
  .bk-header { flex-wrap: wrap; }
  .bk-social { margin-left: 0; width: 100%; }
}

.bk-bio {
  margin: -6px 0 18px; color: var(--text); font-size: 14px; line-height: 1.5;
  white-space: pre-line; /* respeta saltos de línea escritos por el negocio */
}

.bk-selections { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 26px; }
.bk-selections .chip { background: var(--surface); box-shadow: var(--shadow); color: var(--text); }

.bk-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow); padding: 24px;
}
.bk-card h2 { font-size: 18px; margin-bottom: 16px; }
.bk-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 16px 0 8px; }
.bk-back { margin-bottom: 10px; padding-left: 0; }

.bk-options { display: flex; flex-direction: column; gap: 8px; }
.bk-option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 12px 14px;
  cursor: pointer; text-align: left; font-family: inherit; font-size: 14px;
}
.bk-option:hover { border-color: var(--brand); background: #fdfcff; }
.bk-option .avatar { width: 38px; height: 38px; font-size: 13px; }
/* top 3 profesionales: solo resaltado, sin medalla ni texto */
.bk-option.bk-top { border-color: #f5d98b; background: linear-gradient(180deg,#fffdf6,var(--surface)); }
.bk-option.bk-top:hover { border-color: #e6b800; }
.bk-option-info { flex: 1; min-width: 0; }
.bk-option-info b { display: block; }
.bk-option-info small { color: var(--text-muted); }
.bk-price { font-weight: 800; color: var(--brand); }
.bk-desc-btn {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 6px;
  padding: 1px 8px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand);
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  cursor: pointer; vertical-align: middle;
}
.bk-desc-btn:hover { background: var(--brand); color: #fff; }
.bk-desc-text {
  margin: 6px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.45;
}
.bk-desc-text.hidden { display: none; }

/* aviso de abono / seña en la pantalla de éxito */
.bk-deposit {
  margin: 16px 0; padding: 16px 18px; border-radius: 14px;
  background: #fffbeb; border: 1px solid #fde68a; text-align: left;
}
.bk-deposit-title { font-weight: 800; color: #92400e; margin-bottom: 6px; font-size: 15px; }
.bk-deposit-msg { color: #78350f; font-size: 14px; line-height: 1.5; margin: 0; white-space: pre-line; }
.bk-deposit-wa { display: block; width: 100%; margin-top: 14px; text-align: center; box-sizing: border-box; }

/* selección múltiple de servicios */
.bk-option.bk-multi.selected { border-color: var(--brand); background: var(--brand-light); }
.bk-check {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
}
.bk-option.bk-multi.selected .bk-check { background: var(--brand); border-color: var(--brand); }
.bk-continue-bar {
  position: sticky; bottom: 0; z-index: 5; margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.bk-continue-info { display: flex; flex-direction: column; line-height: 1.3; }
.bk-continue-info b { font-size: 14px; }
.bk-continue-info span { color: var(--brand); font-weight: 800; }
.bk-arrow { color: var(--text-muted); font-size: 18px; }

.bk-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; }
.bk-day {
  flex-shrink: 0; width: 58px; padding: 8px 4px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; text-align: center;
  font-family: inherit;
}
.bk-day small { display: block; font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.bk-day b { display: block; font-size: 17px; margin: 2px 0; }
.bk-day.selected { border-color: var(--brand); background: var(--brand-light); }
.bk-day.selected b { color: var(--brand); }
.bk-day:disabled { opacity: .35; cursor: not-allowed; }

.bk-slots { grid-template-columns: repeat(4, 1fr); margin-top: 4px; }
.bk-slots .slot { padding: 10px 4px; font-size: 13px; }

.bk-summary {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg); border-radius: 12px; padding: 14px 16px;
  margin-bottom: 18px; font-size: 14px;
}
.bk-summary .row { display: flex; justify-content: space-between; gap: 12px; }
.bk-summary .row span:first-child { color: var(--text-muted); }
/* .form-actions es una grilla de 2 columnas: sin esto el botón ocupa solo una */
.bk-confirm { width: 100%; padding: 12px; font-size: 15px; grid-column: 1 / -1; }

.bk-success { text-align: center; padding: 12px 0; }
.bk-success-icon { font-size: 44px; margin-bottom: 8px; color: var(--brand); line-height: 0; }
.bk-success-icon svg { display: inline-block; vertical-align: middle; }
.bk-success h2 { margin-bottom: 6px; }
.bk-success > .muted { margin-bottom: 16px; }
.bk-success .bk-summary { text-align: left; }

.bk-footer { text-align: center; margin-top: 18px; font-size: 13px; }
.bk-footer a { color: var(--text-muted); text-decoration: none; }
.bk-footer a:hover { color: var(--brand); }

/* ---------- Informes ---------- */
.report-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.segmented {
  display: inline-flex; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.segmented button {
  border: none; background: none; padding: 9px 16px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; font-family: inherit;
}
.segmented button + button { border-left: 1px solid var(--border); }
.segmented button.active { background: var(--brand); color: #fff; }

.report-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.report-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px;
}
.report-card small { color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 6px; }
.report-card b { font-size: 22px; letter-spacing: -.5px; }

.report-grids { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.report-grids .panel { padding: 16px 0 4px; overflow: hidden; }
.report-grids .panel-head { padding: 0 20px 10px; }
@media (max-width: 1000px) { .report-grids { grid-template-columns: 1fr; } }

.steps-list { margin: 0 0 14px 18px; font-size: 13px; color: var(--text); line-height: 1.9; }

.warn-badge {
  background: var(--amber-light); color: #92400e; font-size: 11px;
  font-weight: 800; padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Informe por sucursal ---------- */
.section-title {
  font-size: 17px; font-weight: 800; letter-spacing: -.3px;
  margin: 22px 0 12px;
}
.loc-report {
  border-left: 4px solid var(--brand);
  margin-bottom: 18px; padding: 20px;
}
.loc-report .panel-head h2 { font-size: 16px; }
.loc-report .report-cards { margin-bottom: 14px; }
.loc-report .bk-cat { margin: 14px 0 8px; }
.loc-report .panel { box-shadow: none; border: 1px solid var(--border); }

/* ---------- Categorías ---------- */
.cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray-light); border-radius: 999px;
  padding: 5px 6px 5px 12px; font-size: 13px; font-weight: 600;
}
.cat-pill button {
  border: none; background: none; cursor: pointer; color: var(--red);
  font-size: 12px; font-weight: 800; padding: 0 4px;
}

/* ---------- Copia de seguridad ---------- */
.panel-wide { grid-column: 1 / -1; }
.backup-status {
  font-size: 13px; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; line-height: 1.5;
}
.backup-status:empty { display: none; }
.backup-status.ok { background: var(--green-light); color: #065f46; }
.backup-status.warn { background: var(--amber-light); color: #92400e; }
.backup-counts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.backup-count { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.backup-count b { display: block; font-size: 16px; }
.backup-count small { color: var(--text-muted); }
.backup-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cobro / métodos de pago ---------- */
.pay-head { text-align: center; margin-bottom: 18px; }
.pay-service { font-size: 17px; font-weight: 800; }
.pay-client { color: var(--text-muted); font-size: 14px; }
.pay-amount-wrap {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 10px; padding: 4px 14px;
}
.pay-amount-wrap span { font-size: 20px; font-weight: 800; color: var(--text-muted); }
.pay-amount {
  border: none; padding: 10px 0; font-size: 22px; font-weight: 800;
  width: 100%; background: none;
}
.pay-amount:focus { outline: none; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.pay-method {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; border: 2px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.pay-method:hover { border-color: var(--brand-light); background: #fdfcff; }
.pay-method.selected { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.pay-ico { font-size: 26px; }

.pay-breakdown { font-size: 14px; }
.pay-breakdown .row { display: flex; justify-content: space-between; padding: 2px 0; }
.pay-breakdown .row span { color: var(--text-muted); }
.sale-add { display: flex; gap: 8px; margin-bottom: 10px; }
.sale-add select { flex: 1; min-width: 0; }
.sale-add .pk-qty { width: 64px; flex-shrink: 0; }
/* fila de escaneo (pistola o cámara) */
.scan-row { display: flex; gap: 8px; margin-bottom: 10px; }
.scan-row .scan-input { flex: 1; min-width: 0; }
.scan-row .scan-cam { flex-shrink: 0; padding: 9px 14px; font-size: 16px; }
.scan-row .scan-input:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); }

/* ventana de la cámara para escanear */
.scan-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10, 10, 14, .82); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.scan-modal {
  background: var(--surface); border-radius: 16px; width: 100%; max-width: 420px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.scan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.scan-head b { font-size: 15px; }
.scan-close {
  flex: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 15px; cursor: pointer; line-height: 1;
}
.scan-close:hover { background: var(--gray-light); }
.scan-video-wrap { position: relative; background: #000; aspect-ratio: 3 / 4; max-height: 60vh; }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame {
  position: absolute; inset: 32% 10%; border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .22); pointer-events: none;
}
.scan-torch {
  position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, .5); color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.scan-controls { padding: 10px 16px 0; }
.scan-cam-select { width: 100%; }
.scan-msg { margin: 0; padding: 10px 16px 16px; font-size: 13px; color: var(--text-muted); text-align: center; }
.sale-lines { display: flex; flex-direction: column; gap: 6px; }
.sale-line {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 14px;
}
.sale-line span { flex: 1; min-width: 0; }
.sale-rm {
  border: none; background: none; color: var(--red); cursor: pointer;
  font-size: 14px; font-weight: 700; padding: 2px 6px;
}

.pay-summary-panel { padding: 20px; margin-bottom: 16px; }

/* globos de reparto profesional (verde) / local (azul) */
.bubble {
  display: inline-block; border-radius: 999px; padding: 4px 12px;
  font-weight: 800; font-size: 13px;
}
.bubble.green { background: #d1fae5; color: #047857; }
.bubble.blue { background: #dbeafe; color: #1d4ed8; }
.split-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bubble-card {
  border-radius: 12px; padding: 14px 18px; text-align: center;
}
.bubble-card.green { background: #d1fae5; }
.bubble-card.blue { background: #dbeafe; }
.bubble-card small { display: block; font-weight: 700; margin-bottom: 4px; }
.bubble-card.green small { color: #047857; }
.bubble-card.blue small { color: #1d4ed8; }
.bubble-card b { font-size: 22px; letter-spacing: -.5px; }
.bubble-card.green b { color: #065f46; }
.bubble-card.blue b { color: #1e3a8a; }
.pay-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pay-stat {
  background: var(--bg); border-radius: 10px; padding: 12px 14px;
}
.pay-stat span { display: block; font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.pay-stat b { font-size: 18px; }

/* ---------- Portal del profesional ---------- */
.pro-portal { background: var(--bg); min-height: 100vh; }
.pro-login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.pro-login-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 32px 26px; width: 100%; max-width: 380px; text-align: center;
}
.pro-login-card .loc-logo { width: 60px; height: 60px; font-size: 30px; margin: 0 auto 12px; }
.pro-login-card h1 { font-size: 20px; margin-bottom: 4px; }
.pro-login-card .form-field { text-align: left; margin-top: 12px; }
.pro-login-card .input { width: 100%; }

.pro-app { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.pro-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.pro-header-info { display: flex; align-items: center; gap: 12px; }
.pro-header .avatar { width: 44px; height: 44px; }
.pro-header h1 { font-size: 17px; }
.pro-header small { color: var(--text-muted); }
.pro-tabs {
  display: flex; gap: 4px; overflow-x: auto; padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 77px; z-index: 9;
}
.pro-tabs button {
  flex-shrink: 0; border: none; background: none; cursor: pointer; font-family: inherit;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-muted);
}
.pro-tabs button.active { background: var(--brand-light); color: var(--brand); }
.pro-main { padding: 18px 16px; }

/* ---------- Suscripción (bloqueo / banner) ---------- */
.sub-banner {
  position: sticky; top: 0; z-index: 90;
  background: #fef3c7; color: #92400e; text-align: center;
  font-size: 13px; font-weight: 700; padding: 8px 12px;
  border-bottom: 1px solid #fcd34d;
}
.sub-gate {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(14,14,14,.94); color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.sub-gate-card {
  max-width: 400px; text-align: center; background: #171512;
  border: 1px solid #2b271f; border-radius: 18px; padding: 34px 28px;
}
.sub-gate-logo { font-weight: 800; letter-spacing: .14em; font-size: 22px; margin-bottom: 18px; }
.sub-gate-logo span { color: #e8c979; font-weight: 400; }
.sub-gate-card h2 { font-size: 20px; margin-bottom: 10px; }
.sub-gate-card p { color: #b9b3a7; font-size: 15px; margin-bottom: 20px; }
.sub-gate-card .btn { background: linear-gradient(100deg,#b8862a,#c6982b); color: #1a1200; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 12px 20px;
  border-radius: 10px; font-weight: 600; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* ---------- Tablet y móvil: sin panel lateral de disponibilidad ---------- */
@media (max-width: 900px) {
  .availability-panel { display: none; }
}

/* ---------- Tablet (vertical): barra lateral compacta de iconos ---------- */
@media (min-width: 768px) and (max-width: 900px) {
  .sidebar { width: 64px; }
  .brand-name, .nav-label, .sidebar-footer, .location-switch { display: none; }
  .nav-item { justify-content: center; }
}

/* ---------- Celular: navegación inferior estilo app ---------- */
@media (max-width: 767px) {
  .app { flex-direction: column; }

  /* el menú lateral pasa a ser una barra flotante, despegada del borde */
  .sidebar {
    position: fixed; top: auto; height: auto; z-index: 60;
    left: 12px; right: 12px; width: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0));
    flex-direction: row;
    border: 1px solid var(--border); border-radius: 22px;
    box-shadow: 0 10px 28px -8px rgba(16, 24, 40, .28);
    padding-bottom: 0; overflow: hidden;
  }
  html[data-theme="belloora"] .sidebar {
    border: 1px solid var(--line); border-radius: 22px;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.12), 0 14px 34px -10px rgba(0,0,0,.6);
  }
  .brand, .sidebar-footer, .sidebar .location-switch { display: none; }
  .nav { flex-direction: row; flex: 1; padding: 4px 2px; gap: 0; justify-content: space-around; }
  .nav-item {
    flex-direction: column; gap: 2px; padding: 6px 1px;
    flex: 1; align-items: center; min-width: 0;
    border-radius: 10px;
  }
  .nav-icon { font-size: 18px; }
  .nav-label { font-size: 0; }
  .nav-label::after { content: attr(data-short); font-size: 9px; font-weight: 700; }

  .main { padding-bottom: 102px; }

  /* barra superior compacta; el selector de local se reubica aquí (app.js) */
  .topbar { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .topbar h1 { font-size: 17px; }
  .stats { gap: 10px; }
  .stat b { font-size: 13px; }
  .stat small { font-size: 10px; }
  .topbar .btn-primary { padding: 8px 12px; font-size: 13px; }
  .topbar .location-switch { display: block; width: 100%; padding: 0; border: none; }

  .view { padding: 12px; }
  .input, select.input { font-size: 16px; } /* evita el zoom automático de iOS */
  .date-label { display: none; }
  .search-input { width: 100%; }

  .calendar-wrap { max-height: calc(100vh - 260px); }
  .cal-col { min-width: 150px; }

  /* tablas anchas: se deslizan horizontalmente */
  .table-wrap { overflow-x: auto; }
  .table { min-width: 620px; }
  /* las de informes solo tienen 3 columnas: caben sin deslizar */
  .report-grids .table { min-width: 0; }
  .report-grids .table th, .report-grids .table td { padding: 10px 12px; }

  /* Productos y Servicios: compactos, SIN scroll horizontal.
     Se ocultan columnas secundarias y los botones; al tocar la fila se
     abre un detalle con toda la info y los botones Editar/Eliminar. */
  #productTable, #serviceTable { min-width: 0; }
  #productTable th:nth-child(2), #productTable td:nth-child(2),
  #productTable th:nth-child(3), #productTable td:nth-child(3),
  #productTable th:nth-child(5), #productTable td:nth-child(5),
  #productTable th:nth-child(6), #productTable td:nth-child(6),
  #serviceTable th:nth-child(2), #serviceTable td:nth-child(2),
  #serviceTable th:nth-child(3), #serviceTable td:nth-child(3),
  #serviceTable th:nth-child(4), #serviceTable td:nth-child(4),
  #serviceTable th:nth-child(6), #serviceTable td:nth-child(6) { display: none; }
  #productTable tbody tr, #serviceTable tbody tr { cursor: pointer; }
  #productTable tbody td:nth-child(4), #serviceTable tbody td:nth-child(5) { text-align: right; white-space: nowrap; }
  #productTable tbody td:nth-child(4)::after,
  #serviceTable tbody td:nth-child(5)::after { content: " ›"; color: var(--text-muted); font-weight: 700; }

  /* Clientes: compacto (Nombre + Teléfono); al tocar la fila abre el detalle. */
  #clientTable { min-width: 0; }
  #clientTable th:nth-child(3), #clientTable td:nth-child(3),
  #clientTable th:nth-child(4), #clientTable td:nth-child(4),
  #clientTable th:nth-child(5), #clientTable td:nth-child(5),
  #clientTable th:nth-child(6), #clientTable td:nth-child(6) { display: none; }
  #clientTable tbody tr { cursor: pointer; }
  #clientTable tbody td:nth-child(2) { text-align: right; white-space: nowrap; }
  #clientTable tbody td:nth-child(2)::after { content: " ›"; color: var(--text-muted); font-weight: 700; }

  /* Informes: ninguna tabla ancha debe desbordar la pantalla (si no, en iOS la
     barra inferior fija pierde los iconos de la derecha). Cada panel desliza
     su propio contenido y la página nunca se corre en horizontal. */
  #view-informes .panel { overflow-x: auto; }
  .main { overflow-x: hidden; }

  .booking-row { padding: 10px 12px; gap: 10px; }
  .booking-time { width: 56px; font-size: 13px; }
  .badge { font-size: 11px; padding: 3px 8px; }

  .modal-overlay { padding: 12px 8px; }
  .modal-body { padding: 16px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .schedule-row .day-name { width: 74px; font-size: 12px; }

  .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0)); left: 16px; right: 16px; transform: none; text-align: center; }
  .segmented { flex-wrap: wrap; }
  .segmented button { padding: 8px 10px; font-size: 12px; }
  .report-card b { font-size: 18px; }
  .report-grids { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }

  /* Barra inferior: cinco accesos con aire; los otros, en la hoja "Más" */
  .nav-item.nav-en-hoja { display: none; }
  .nav-more { display: flex; }
  .nav { gap: 4px; padding: 4px 8px; justify-content: space-around; }
  .nav-item { flex: 1 1 0; max-width: 92px; }
  .nav-label::after { font-size: 11px; }

}


/* ---------- Celular: Administración en mosaico de dos columnas ----------
   Igual que en pantallas grandes, pero centrado y más compacto: cada sección
   es una tarjeta con su icono y su nombre, y al tocarla se abre a lo ancho.
   (De 620 px para arriba manda el mosaico de moderno.css.) */
@media (max-width: 619px) {
  #view-admin .admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: start; }
  #view-admin .panel.admin-collapsible { margin-bottom: 0; }
  #view-admin .panel.admin-collapsible.collapsed {
    min-height: 110px; padding: 14px 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  #view-admin .panel.admin-collapsible.collapsed > .panel-head {
    flex-direction: column; justify-content: center; gap: 8px; width: 100%; padding: 0;
  }
  #view-admin .panel.admin-collapsible.collapsed > .panel-head > .btn,
  #view-admin .panel.admin-collapsible.collapsed .acc-caret { display: none; }
  #view-admin .panel.admin-collapsible.collapsed h2 {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 13px; line-height: 1.25; text-align: center;
  }
  /* el icono arriba y el nombre debajo (emoji o icono de línea) */
  #view-admin .panel.admin-collapsible.collapsed .acc-ico { font-size: 26px; margin: 0; }
  #view-admin .panel.admin-collapsible.collapsed h2 > .ico { width: 27px; height: 27px; margin: 0; color: var(--brand); }
  /* los paneles anchos, cerrados, son un mosaico más; abiertos ocupan todo */
  #view-admin .panel.panel-wide.admin-collapsible.collapsed { grid-column: auto; }
  #view-admin .panel.admin-collapsible:not(.collapsed) { grid-column: 1 / -1; }
}

/* ---------- Portal de ranking ---------- */
.rk-hero {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 2px solid var(--brand); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 20px; position: relative;
}
.rk-hero-crown { position: absolute; top: -12px; left: 18px; font-size: 26px; }
.rk-hero-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 22px;
}
.rk-hero-info { display: flex; flex-direction: column; }
.rk-hero-info small { color: var(--text-muted); font-size: 13px; }
.rk-hero-info b { font-size: 22px; line-height: 1.2; }
.rk-hero-info span { color: var(--text-muted); font-size: 14px; }

.rk-loc-title { margin: 22px 0 10px; font-size: 15px; }
.rk-loc-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }

.rk-bars { display: flex; flex-direction: column; gap: 14px; }
.rk-bar-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.rk-bar-row.me { border-color: var(--brand); background: var(--brand-light); }
.rk-bar-head { display: flex; align-items: center; gap: 10px; }
.rk-pos { font-size: 18px; min-width: 26px; text-align: center; font-weight: 800; color: var(--text-muted); }
.rk-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.rk-name { flex: 1; display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.rk-name .rk-role { font-weight: 500; color: var(--text-muted); font-size: 12px; }
.rk-amount { font-weight: 800; font-size: 16px; white-space: nowrap; }
.rk-bar-track { margin-top: 10px; height: 10px; background: var(--gray-light); border-radius: 6px; overflow: hidden; }
.rk-bar-fill { height: 100%; border-radius: 6px; transition: width .4s ease; min-width: 3px; }
.rk-bar-sub { margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* ---- ventana flotante de ranking (widget reutilizable) ---- */
.rkw-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 15, 20, .55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
}
.rkw-modal {
  background: var(--surface); border-radius: 18px; width: 100%; max-width: 560px;
  margin: auto; padding: 20px 22px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.rkw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rkw-head h2 { font-size: 19px; margin: 0; }
.rkw-head small { color: var(--text-muted); font-size: 13px; }
.rkw-close {
  flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 15px; cursor: pointer; line-height: 1;
}
.rkw-close:hover { background: var(--gray-light); }
.rkw-range { margin-bottom: 14px; }
.rkw-loc { margin-bottom: 14px; }
.rkw-loc label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .rkw-modal { animation: rkwIn .18s ease; }
  @keyframes rkwIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ============================================================
   TEMA BELLOORA — liquid glass (negro · dorado · cristal)
   Lo elige cada negocio en Administración; se activa con el
   atributo data-theme="belloora" en <html> (ver theme.js).
   Rendimiento: usa solo capas GPU baratas (gradientes + blur en
   pocas superficies grandes). El fondo animado se apaga en
   móviles y con "reducir movimiento".
   ============================================================ */
html[data-theme="belloora"] {
  --gold: #c6982b;
  --gold-2: #e8c979;
  --gold-3: #f3e3bb;
  --brand: #e8c979;
  --brand-dark: #c6982b;
  --brand-light: rgba(232, 201, 121, .16);
  --bg: #07070b;
  --surface: rgba(255, 255, 255, .065);
  --surface-solid: #14141b;
  --line: rgba(255, 255, 255, .13);
  --border: rgba(255, 255, 255, .13);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, .62);
  --gray-light: rgba(255, 255, 255, .06);
  --green: #8ef0bb;  --green-light: rgba(90, 220, 150, .14);
  --amber: #e8c979;  --amber-light: rgba(232, 201, 121, .14);
  --red: #ffb4a2;    --red-light: rgba(255, 122, 92, .14);
  --shadow: inset 1px 1px 0 rgba(255,255,255,.20), 0 24px 60px rgba(0,0,0,.38);
  --radius: 22px;
}
html[data-theme="belloora"] body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
html[data-theme="belloora"] * {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}
/* fondo líquido: una sola capa fija, sin repintar el layout */
html[data-theme="belloora"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -5%, #2a1f08 0%, transparent 55%),
    radial-gradient(100% 80% at 88% 8%, #2b1226 0%, transparent 52%),
    radial-gradient(130% 120% at 50% 105%, #071e24 0%, transparent 60%),
    var(--bg);
}
html[data-theme="belloora"] body::after {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  opacity: .5; filter: blur(70px);
  background:
    radial-gradient(28vmin 28vmin at 10% 12%, #d9a13a 0%, transparent 70%),
    radial-gradient(22vmin 22vmin at 78% 6%, #e0806c 0%, transparent 70%),
    radial-gradient(30vmin 30vmin at 40% 78%, #6b4ff0 0%, transparent 70%),
    radial-gradient(20vmin 20vmin at 92% 66%, #e8c979 0%, transparent 70%);
  animation: belFloat 32s ease-in-out infinite;
  will-change: transform;
}
@keyframes belFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2%, -2%, 0) scale(1.06); }
}
@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  html[data-theme="belloora"] body::after { animation: none; opacity: .38; }
}

/* ---------- Cristal (una sola regla para todas las superficies) ---------- */
html[data-theme="belloora"] .panel,
html[data-theme="belloora"] .report-card,
html[data-theme="belloora"] .table-wrap,
html[data-theme="belloora"] .report-collapse,
html[data-theme="belloora"] .bubble-card,
html[data-theme="belloora"] .pro-card,
html[data-theme="belloora"] .calendar-wrap,
html[data-theme="belloora"] .availability-panel,
html[data-theme="belloora"] .extras-box,
html[data-theme="belloora"] .bk-card,
html[data-theme="belloora"] .modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* brillo especular: pseudo-elemento barato, sin filtros */
html[data-theme="belloora"] .panel,
html[data-theme="belloora"] .modal,
html[data-theme="belloora"] .bk-card,
html[data-theme="belloora"] .report-card { position: relative; }
html[data-theme="belloora"] .panel::before,
html[data-theme="belloora"] .modal::before,
html[data-theme="belloora"] .bk-card::before,
html[data-theme="belloora"] .report-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,0) 34%,
              rgba(255,255,255,0) 70%, rgba(255,255,255,.06));
}
html[data-theme="belloora"] .panel > *,
html[data-theme="belloora"] .modal > *,
html[data-theme="belloora"] .bk-card > * { position: relative; z-index: 1; }

/* blur real solo en 4 superficies grandes (barato para la GPU) */
html[data-theme="belloora"] .sidebar,
html[data-theme="belloora"] .topbar,
html[data-theme="belloora"] .modal,
html[data-theme="belloora"] .pro-header {
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}

/* ---------- Barra lateral / cabeceras ---------- */
html[data-theme="belloora"] .sidebar,
html[data-theme="belloora"] .pro-header {
  background: rgba(255, 255, 255, .05);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
html[data-theme="belloora"] .topbar {
  background: rgba(10, 10, 14, .55);
  border-bottom: 1px solid var(--line);
}
html[data-theme="belloora"] .brand-name {
  letter-spacing: .14em; font-weight: 700;
  background: linear-gradient(100deg, var(--gold), var(--gold-2) 45%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="belloora"] .nav-item { color: rgba(255,255,255,.72); border-radius: 999px; font-weight: 500; }
html[data-theme="belloora"] .nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
html[data-theme="belloora"] .nav-item.active {
  color: #1a1200; font-weight: 650;
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 24px rgba(198,152,43,.30), inset 0 1px 0 rgba(255,255,255,.5);
}
/* en el celular el activo se marca suave: la píldora dorada entera quedaba
   como un bulto dentro de la barra flotante */
@media (max-width: 767px) {
  html[data-theme="belloora"] .nav-item { border-radius: 14px; }
  html[data-theme="belloora"] .nav-item.active {
    background: rgba(232, 201, 121, .16); color: var(--gold-2); box-shadow: none;
  }
}
html[data-theme="belloora"] .stat b, html[data-theme="belloora"] .report-card b { color: var(--gold-2); }
html[data-theme="belloora"] .section-title, html[data-theme="belloora"] .topbar h1 { letter-spacing: -.02em; }

/* ---------- Botones tipo píldora ---------- */
html[data-theme="belloora"] .btn { border-radius: 999px; font-weight: 600; }
html[data-theme="belloora"] .btn-primary {
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  color: #191200; border: none;
  box-shadow: 0 10px 30px rgba(198,152,43,.32), inset 0 1px 0 rgba(255,255,255,.5);
}
html[data-theme="belloora"] .btn-primary:hover { transform: translateY(-2px); }
html[data-theme="belloora"] .btn-outline,
html[data-theme="belloora"] .btn-ghost {
  background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.20);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.18);
}
html[data-theme="belloora"] .btn-outline:hover,
html[data-theme="belloora"] .btn-ghost:hover {
  background: rgba(255,255,255,.13); border-color: rgba(232,201,121,.55); color: var(--gold-2);
}
html[data-theme="belloora"] .btn-danger {
  background: rgba(255,122,92,.10); color: var(--red); border: 1px solid rgba(255,122,92,.35);
}

/* ---------- Formularios ---------- */
html[data-theme="belloora"] .input,
html[data-theme="belloora"] select.input,
html[data-theme="belloora"] textarea.input {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  color: #fff; border-radius: 14px;
}
html[data-theme="belloora"] .input::placeholder { color: rgba(255,255,255,.38); }
html[data-theme="belloora"] .input:focus {
  outline: none; border-color: rgba(232,201,121,.6);
  box-shadow: 0 0 0 3px rgba(232,201,121,.16);
}
html[data-theme="belloora"] .chip {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.8);
}

/* ---------- Tablas y listas ---------- */
html[data-theme="belloora"] .table th {
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px;
}
html[data-theme="belloora"] .table td { border-bottom-color: rgba(255,255,255,.07); }
html[data-theme="belloora"] .table tr:hover td { background: rgba(232,201,121,.07); }
html[data-theme="belloora"] .detail-list .row { border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="belloora"] .detail-list .row span { color: var(--text-muted); }
html[data-theme="belloora"] .sale-line,
html[data-theme="belloora"] .pay-stat,
html[data-theme="belloora"] .mini {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 14px;
}

/* ---------- Segmentado ---------- */
html[data-theme="belloora"] .segmented {
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
html[data-theme="belloora"] .segmented button { color: rgba(255,255,255,.65); }
html[data-theme="belloora"] .segmented button.active {
  background: linear-gradient(100deg, var(--gold), var(--gold-2)); color: #191200; font-weight: 700;
}

/* ---------- Modales ---------- */
html[data-theme="belloora"] .modal-overlay { background: rgba(4, 4, 8, .62); }
html[data-theme="belloora"] .modal { border-radius: 26px; }

/* ---------- Agenda ---------- */
html[data-theme="belloora"] .cal-hour-line { border-bottom-color: rgba(255,255,255,.07); }
html[data-theme="belloora"] .cal-time-cell,
html[data-theme="belloora"] .cal-head-role { color: rgba(255,255,255,.45); }
html[data-theme="belloora"] .cal-off {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 5px, transparent 5px 10px) !important;
}
html[data-theme="belloora"] .cal-times .cal-head,
html[data-theme="belloora"] .cal-col .cal-head { background: rgba(255,255,255,.04); }

/* ---------- Página pública de reservas ---------- */
html[data-theme="belloora"] .bk-header h1,
html[data-theme="belloora"] .bk-biz-name { color: #fff; }
html[data-theme="belloora"] .slot {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  color: #fff; border-radius: 14px;
}
html[data-theme="belloora"] .slot:hover { border-color: rgba(232,201,121,.55); background: rgba(232,201,121,.12); }
html[data-theme="belloora"] .slot.selected {
  background: linear-gradient(100deg, var(--gold), var(--gold-2)); color: #191200; border-color: transparent;
}
html[data-theme="belloora"] .bk-day {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); color: #fff; border-radius: 16px;
}
html[data-theme="belloora"] .bk-day.selected { border-color: var(--gold-2); background: rgba(232,201,121,.16); }
html[data-theme="belloora"] .bk-cat { color: var(--gold-2); letter-spacing: .14em; }

/* ---------- Login de los portales ---------- */
html[data-theme="belloora"] .pro-login-wrap { background: transparent; }
html[data-theme="belloora"] .pro-login-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35);
}

/* citas en la agenda: el color del profesional se mantiene en el borde,
   pero el texto va claro para que se lea sobre el fondo oscuro */
html[data-theme="belloora"] .appt { color: #fff !important; border-left-width: 3px; }
html[data-theme="belloora"] .appt b { color: #fff; }
html[data-theme="belloora"] .appt small { color: rgba(255,255,255,.66); }
html[data-theme="belloora"] .appt.block { background: rgba(255,255,255,.06) !important; }
html[data-theme="belloora"] .now-line { background: var(--gold-2); }
html[data-theme="belloora"] .avail-pro-name { color: rgba(255,255,255,.9); }
html[data-theme="belloora"] .empty-state { color: var(--text-muted); }
html[data-theme="belloora"] .badge { border: 1px solid rgba(255,255,255,.14); }

/* avisos (servidor local, prueba gratis, enlace para clientes) en oscuro */
html[data-theme="belloora"] .share-banner {
  background: rgba(232,201,121,.07); border: 1px solid rgba(232,201,121,.22);
}
html[data-theme="belloora"] .local-warning {
  background: rgba(232,201,121,.10); border: 1px solid rgba(232,201,121,.30); color: #f3e3bb;
}
html[data-theme="belloora"] .local-warning b { color: var(--gold-2); }
html[data-theme="belloora"] .local-tag { color: var(--gold-2); }
html[data-theme="belloora"] .share-row a { color: var(--gold-2); }
html[data-theme="belloora"] .sub-banner,
html[data-theme="belloora"] .trial-bar {
  background: rgba(232,201,121,.10); border-bottom: 1px solid rgba(232,201,121,.28); color: #f3e3bb;
}

/* ranking flotante en cristal */
html[data-theme="belloora"] .rkw-overlay { background: rgba(4,4,8,.62); }
html[data-theme="belloora"] .rkw-modal {
  background: rgba(20,20,26,.86); border: 1px solid var(--line); border-radius: 26px;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.16), 0 30px 70px rgba(0,0,0,.55);
}
html[data-theme="belloora"] .rkw-close { color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
html[data-theme="belloora"] .rkw-close:hover { background: rgba(255,255,255,.16); }
html[data-theme="belloora"] .rk-hero {
  background: linear-gradient(120deg, rgba(198,152,43,.22), rgba(232,201,121,.08));
  border: 1px solid rgba(232,201,121,.42);
}
html[data-theme="belloora"] .rk-hero-info b { color: #fff; }
html[data-theme="belloora"] .rk-bar-row { background: rgba(255,255,255,.05); border: 1px solid var(--line); }
html[data-theme="belloora"] .rk-bar-row.me { border-color: rgba(232,201,121,.55); background: rgba(232,201,121,.12); }
html[data-theme="belloora"] .rk-bar-fill, html[data-theme="belloora"] .rk-bar > i {
  background: linear-gradient(90deg, var(--gold), var(--gold-2)) !important;
}

/* opciones de la página de reservas (son <button>: no heredan color) */
html[data-theme="belloora"] .bk-option,
html[data-theme="belloora"] .bk-day,
html[data-theme="belloora"] .slot { color: #fff; }
html[data-theme="belloora"] .bk-option {
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 16px;
}
html[data-theme="belloora"] .bk-option:hover {
  background: rgba(232,201,121,.10); border-color: rgba(232,201,121,.5);
}
html[data-theme="belloora"] .bk-option.bk-top {
  background: linear-gradient(120deg, rgba(198,152,43,.18), rgba(255,255,255,.05));
  border-color: rgba(232,201,121,.45);
}
html[data-theme="belloora"] .bk-option.promo {
  background: linear-gradient(120deg, rgba(224,128,108,.16), rgba(255,255,255,.05));
  border-color: rgba(232,201,121,.45);
}
html[data-theme="belloora"] .bk-option-info small,
html[data-theme="belloora"] .bk-desc-text { color: rgba(255,255,255,.62); }
html[data-theme="belloora"] .bk-price { color: var(--gold-2); }
html[data-theme="belloora"] .bk-desc-btn {
  background: rgba(232,201,121,.14); color: var(--gold-2); border: 1px solid rgba(232,201,121,.3);
}
html[data-theme="belloora"] .bk-summary {
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 18px;
}
/* Confirmar reserva conserva el dorado de .btn-primary: con el fondo de vidrio
   quedaba texto oscuro sobre fondo oscuro y no se leía. Solo hereda el radio. */
html[data-theme="belloora"] .bk-confirm { border-radius: 18px; }
html[data-theme="belloora"] .bk-cover { filter: brightness(.85) saturate(1.05); }

/* verdes y azules del informe: en oscuro van claros para que se lean */
html[data-theme="belloora"] .bubble-card.green { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.28); }
html[data-theme="belloora"] .bubble-card.blue  { background: rgba(232,201,121,.12); border: 1px solid rgba(232,201,121,.30); }
html[data-theme="belloora"] .bubble-card.green small { color: #6ee7b7; }
html[data-theme="belloora"] .bubble-card.blue  small { color: var(--gold-3); }
html[data-theme="belloora"] .bubble-card.green b { color: #8ef0bb; }
html[data-theme="belloora"] .bubble-card.blue  b { color: var(--gold-2); }
html[data-theme="belloora"] .bubble.green { background: rgba(52,211,153,.16); color: #8ef0bb; border: 1px solid rgba(52,211,153,.30); }
html[data-theme="belloora"] .bubble.blue  { background: rgba(232,201,121,.14); color: var(--gold-2); border: 1px solid rgba(232,201,121,.30); }
html[data-theme="belloora"] .table td b { color: #fff; }
html[data-theme="belloora"] .pay-stat b, html[data-theme="belloora"] .hx-row b { color: var(--gold-2); }

html[data-theme="belloora"] .hx-overlay { background: rgba(4,4,8,.62); }
html[data-theme="belloora"] .hx-widget {
  background: rgba(20,20,26,.88); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.16), 0 30px 70px rgba(0,0,0,.55);
}
html[data-theme="belloora"] .hx-close { background: rgba(255,255,255,.08); border-color: var(--line); color: #fff; }
html[data-theme="belloora"] .hx-close:hover { background: rgba(255,255,255,.18); }

html[data-theme="belloora"] .bk-credit { border-top-color: rgba(255,255,255,.10); }
html[data-theme="belloora"] .bk-credit a { color: var(--gold-2); }
html[data-theme="belloora"] .hx-month { background: rgba(255,255,255,.04); border-color: var(--line); }
html[data-theme="belloora"] .hx-month-name { color: #fff; }
html[data-theme="belloora"] .hx-visit { background: rgba(255,255,255,.05); border-color: var(--line); }
html[data-theme="belloora"] .hx-visit-head { border-bottom-color: rgba(255,255,255,.12); }
html[data-theme="belloora"] .hx-visit-head b { color: #fff; }
html[data-theme="belloora"] .hx-svc b { color: var(--gold-2); }

/* aviso de confirmación (toast): en claro usa el color de texto como fondo,
   que en el tema oscuro es blanco y lo dejaba ilegible */
html[data-theme="belloora"] .toast {
  background: rgba(24, 24, 30, .92); color: #fff;
  border: 1px solid rgba(232, 201, 121, .45);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
}

html[data-theme="belloora"] ::selection { background: rgba(232, 201, 121, .32); }

/* Valores rápidos de duración (modal de servicio) */
.dur-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dur-presets .btn { padding: 4px 10px; font-size: 12px; min-width: 40px; }

/* Hora fuera del horario del local (solo la ve el equipo interno) */
.slot.slot-off { border-style: dashed; color: var(--text-muted); }
.slot.slot-off.selected { color: #fff; border-style: solid; }

/* Buscador de cliente con lupa */
.client-search { position: relative; margin-bottom: 8px; }
.client-search .input { padding-left: 34px; }
.client-search::before {
  content: "🔍"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: .7; pointer-events: none;
}

/* Servicios agregados durante la atención (detalle de la reserva) */
.extras-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin: 14px 0; background: var(--gray-light);
}
.extras-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.extras-head b { font-size: 14px; }
.extras-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 8px;
}
.extras-total b { font-size: 16px; color: var(--brand); }
.extras-box .sale-line { background: var(--surface); }

/* ---------- Widget "Mi historial" (página del cliente) ---------- */
/* ventana flotante */
.hx-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(15, 15, 20, .55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
}
.hx-widget {
  position: relative; width: 100%; max-width: 460px; margin: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 26px; box-shadow: var(--shadow); padding: 22px;
}
.hx-widget h2 { font-size: 19px; margin-bottom: 6px; }
.hx-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--gray-light);
  color: inherit; cursor: pointer; font-size: 14px; line-height: 1;
}
.hx-close:hover { background: var(--border); }
.hx-ask.hidden { display: none; }
.hx-widget .hx-head { padding-right: 44px; }
.hx-msg { color: var(--text-muted); margin-top: 12px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .hx-widget { animation: hxIn .18s ease; }
  @keyframes hxIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.bk-hist-btn { margin-left: auto; white-space: nowrap; }
.hx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hx-name { font-size: 15px; font-weight: 700; }
.hx-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.hx-tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(90, 220, 150, .14); border: 1px solid rgba(90, 220, 150, .35); color: #17976a;
}
.hx-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.hx-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hx-stat {
  flex: 1; min-width: 90px; padding: 11px 13px; border-radius: 16px;
  background: var(--gray-light); border: 1px solid var(--border);
}
.hx-stat span { display: block; font-size: 9.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-muted); }
.hx-stat b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.hx-rows { display: flex; flex-direction: column; gap: 7px; }

/* Historial agrupado por mes (plegable) */
.hx-months { display: flex; flex-direction: column; gap: 8px; }
.hx-month { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.hx-month > summary {
  cursor: pointer; list-style: none; padding: 11px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px;
}
.hx-month > summary::-webkit-details-marker { display: none; }
.hx-month-name { font-weight: 700; text-transform: capitalize; }
.hx-month-sum { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.hx-month > summary::after { content: "▸"; color: var(--text-muted); font-size: 12px; transition: transform .2s ease; }
.hx-month[open] > summary::after { transform: rotate(90deg); }
.hx-month .hx-rows { padding: 0 10px 10px; }

/* Cada visita (un día) con el detalle de sus servicios */
.hx-visits { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 10px; }
.hx-visit { border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; background: var(--gray-light); }
.hx-visit-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 7px; margin-bottom: 6px; border-bottom: 1px dashed var(--border);
}
.hx-visit-head b { font-size: 13px; text-transform: capitalize; }
.hx-visit-head span { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.hx-svc {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; padding: 3px 0;
}
.hx-svc span { color: var(--text-muted); }
.hx-svc b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 14px; font-size: 13px;
  background: var(--gray-light); border: 1px solid var(--border);
}
.hx-row span { color: var(--text-muted); }
.hx-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-footer { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Crédito de la marca al final de la página de reservas */
.bk-credit {
  text-align: center; font-size: 12.5px; color: var(--text-muted);
  margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--border);
}
.bk-credit a { color: var(--brand); font-weight: 600; text-decoration: none; }
.bk-credit a:hover { text-decoration: underline; }

/* En tema Belloora el widget usa cristal dorado */
html[data-theme="belloora"] .hx-tag { color: #8ef0bb; }
html[data-theme="belloora"] .hx-stat b, html[data-theme="belloora"] .hx-row b { color: var(--gold-2); }

/* Vista previa del mensaje de WhatsApp: legible en ambos temas */
.wa-preview {
  white-space: pre-wrap;
  background: #f3f4f6;
  color: #111827;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
}
html[data-theme="belloora"] .wa-preview {
  background: rgba(255, 255, 255, .06);
  color: #f4f4f5;
  border: 1px solid rgba(232, 201, 121, .22);
}

/* Pastillas de datos obligatorios en la reserva */
.req-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Informe por sucursal: cada local es un desplegable */
.loc-collapse > summary > .loc-sum { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.loc-collapse > summary { gap: 12px; }
.loc-collapse > summary > span:first-child { flex: 1; }
.loc-collapse > summary::after { margin-left: 4px; }
.loc-collapse > .loc-report { margin: 0; border: none; box-shadow: none; background: transparent; }

/* Funciones del plan Pro bloqueadas en el plan Lite */
.panel.plan-locked > *:not(.panel-head):not(.plan-lock-note) { opacity: .45; pointer-events: none; }
.panel.plan-locked > .panel-head h2::after { content: " 🔒"; font-size: 13px; }
.plan-lock-note {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px;
  background: var(--brand-light); color: var(--brand); border: 1px solid var(--border);
}
html[data-theme="belloora"] .plan-lock-note {
  background: rgba(232, 201, 121, .12); color: var(--gold-2);
  border: 1px solid rgba(232, 201, 121, .3);
}
.plan-locked-btn::after { content: " 🔒"; font-size: 12px; }

/* ---------- Informes: análisis para tomar decisiones ---------- */
.report-collapse > summary > .col-sum { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ins-body { padding: 0 16px 16px; }
.ins-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 10px; }
.ins-actions label { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* variación contra el período anterior */
.delta { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.delta.up { background: rgba(16, 185, 129, .14); color: #047857; }
.delta.down { background: rgba(244, 63, 94, .14); color: #be123c; }
.delta.flat { background: rgba(107, 114, 128, .14); color: var(--text-muted); }
html[data-theme="belloora"] .delta.up { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
html[data-theme="belloora"] .delta.down { background: rgba(244, 63, 94, .18); color: #fda4af; }

/* horas muertas */
.dead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.dead-cell {
  display: flex; flex-direction: column; gap: 3px; padding: 12px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.dead-pct { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.dead-pct.bad { color: #be123c; }
.dead-pct.mid { color: #b45309; }
html[data-theme="belloora"] .dead-cell { background: rgba(255, 255, 255, .05); }
html[data-theme="belloora"] .dead-pct.bad { color: #fda4af; }
html[data-theme="belloora"] .dead-pct.mid { color: var(--gold-2); }

/* barras de ocupación dentro de las tablas */
.mini-bar { display: inline-block; vertical-align: middle; width: 110px; height: 8px; border-radius: 999px; background: rgba(127, 127, 127, .22); overflow: hidden; }
.mini-fill { height: 100%; border-radius: 999px; }
.mini-fill.bad { background: #f43f5e; }
.mini-fill.mid { background: #d97706; }
.mini-fill.good { background: #10b981; }
.mini-num { margin-left: 8px; font-weight: 700; }
.row-total td { border-top: 2px solid var(--border); }
.stock-bad { font-weight: 800; color: #be123c; }
html[data-theme="belloora"] .stock-bad { color: #fda4af; }

@media (max-width: 640px) {
  .ins-body { padding: 0 10px 14px; }
  .mini-bar { width: 64px; }
}

/* Link personal de reserva de un profesional */
.bk-pro-tag { margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.bk-pro-tag b { color: var(--text); }
.pro-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pro-link-row .pro-link-url {
  flex: 1; min-width: 0; font-size: 12px; font-family: ui-monospace, monospace;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-theme="belloora"] .pro-link-row .pro-link-url { background: rgba(255,255,255,.05); }

/* ---------- Gift cards ---------- */
.gc-canvas-wrap { margin-top: 8px; overflow-x: auto; }
.gc-canvas-wrap canvas {
  width: 100%; max-width: 520px; height: auto; display: block;
  border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}
.gc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gc-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: capitalize;
}
.gc-activa { background: rgba(16, 185, 129, .16); color: #047857; }
.gc-usada { background: rgba(107, 114, 128, .16); color: var(--text-muted); }
.gc-vencida { background: rgba(217, 119, 6, .16); color: #b45309; }
.gc-anulada { background: rgba(244, 63, 94, .16); color: #be123c; }
html[data-theme="belloora"] .gc-activa { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
html[data-theme="belloora"] .gc-vencida { background: rgba(232, 201, 121, .16); color: var(--gold-2); }
html[data-theme="belloora"] .gc-anulada { background: rgba(244, 63, 94, .18); color: #fda4af; }

/* ---------- Cobro en el tema Belloora ---------- */
/* El hover traía #fdfcff fijo: en oscuro quedaba caja blanca con letra blanca. */
html[data-theme="belloora"] .pay-method {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
html[data-theme="belloora"] .pay-method:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(232, 201, 121, .45);
  color: #fff;
}
html[data-theme="belloora"] .pay-method.selected {
  background: rgba(232, 201, 121, .16);
  border-color: var(--gold-2);
  color: var(--gold-2);
}

/* El monto es .input, así que en Belloora dibujaba su propia caja DENTRO del
   recuadro: se veía un cuadro sobre otro y el número descentrado. */
html[data-theme="belloora"] .pay-amount-wrap {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
}
html[data-theme="belloora"] input.pay-amount {
  background: none; border: none; border-radius: 0; box-shadow: none;
}
html[data-theme="belloora"] input.pay-amount:focus {
  outline: none; box-shadow: none; border: none;
}
html[data-theme="belloora"] .pay-amount-wrap:focus-within {
  border-color: rgba(232, 201, 121, .6);
  box-shadow: 0 0 0 3px rgba(232, 201, 121, .16);
}
html[data-theme="belloora"] .pay-amount-wrap span { color: var(--gold-3); }

/* ---------- Pagos divididos ---------- */
.pay-line {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px;
}
.pay-line-ico { font-size: 20px; }
.pay-line-name { flex: 1; font-weight: 700; font-size: 14px; }
.pay-line-amt { flex-shrink: 0; width: 150px; padding: 0 10px; }
.pay-line-amt .pay-amount { font-size: 17px; padding: 6px 0; text-align: right; }
.pay-line-gift { margin: 8px 0 0 34px; }
.pay-line-gift .scan-row { margin-bottom: 4px; }
.pay-balance { margin-top: 12px; font-size: 14px; font-weight: 700; }
.pay-ok { color: #047857; }
.pay-falta { color: #be123c; }
html[data-theme="belloora"] .pay-line { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
html[data-theme="belloora"] .pay-ok { color: #6ee7b7; }
html[data-theme="belloora"] .pay-falta { color: #fda4af; }
@media (max-width: 560px) {
  .pay-line { flex-wrap: wrap; }
  .pay-line-amt { width: 120px; }
  .pay-line-gift { margin-left: 0; }
}

/* Monto que la gift card calcula sola (no se escribe a mano) */
.pay-line-auto {
  flex-shrink: 0; width: 150px; text-align: right;
  font-size: 17px; font-weight: 800; padding: 6px 10px;
}
@media (max-width: 560px) { .pay-line-auto { width: 120px; } }

/* Reservas agrupadas por visita */
.bk-count {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; vertical-align: middle;
  background: var(--brand-light); color: var(--brand);
}
html[data-theme="belloora"] .bk-count { background: rgba(232,201,121,.16); color: var(--gold-2); }
.bk-svc-line { cursor: pointer; }
.bk-svc-line:hover { background: rgba(127,127,127,.08); }
.bk-svc-line .sale-rm { font-size: 18px; line-height: 1; }

/* Hora actual marcada al mover una reserva */
.slot.slot-actual { border-color: var(--brand); font-weight: 800; }
html[data-theme="belloora"] .slot.slot-actual { border-color: var(--gold-2); color: var(--gold-2); }

/* Cabecera del cobro: manda el nombre del cliente */
.pay-client-big { font-size: 22px; font-weight: 800; text-align: center; line-height: 1.25; }
html[data-theme="belloora"] .pay-client-big { color: var(--gold-2); }

/* ---------- Arrastrar una cita a otro profesional ---------- */
.cal-body .appt[data-appt] { touch-action: pan-y; }   /* deja hacer scroll vertical */
.appt-arrastrando { opacity: .3; filter: grayscale(.6); }

.appt-fantasma {
  position: fixed; z-index: 9999; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-2deg);
  padding: 8px 14px; border-radius: 12px; font-size: 13px; white-space: nowrap;
  background: var(--brand); color: #fff; border: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.appt-fantasma b { display: block; font-size: 14px; font-weight: 800; }
.appt-fantasma small { opacity: .9; }
html[data-theme="belloora"] .appt-fantasma {
  background: linear-gradient(100deg, var(--gold), var(--gold-2)); color: #191200;
}

/* Columnas durante el arrastre: tienen que verse SIN DUDA, también en oscuro */
.cal-body.cal-drop-origen { opacity: .5; }
.cal-body.cal-drop-ok {
  background: rgba(16, 185, 129, .16);
  box-shadow: inset 0 0 0 2px rgba(16, 185, 129, .5);
}
.cal-body.cal-drop-no {
  background: rgba(244, 63, 94, .14);
  box-shadow: inset 0 0 0 2px rgba(244, 63, 94, .4);
}
.cal-body.cal-drop-ok.cal-drop-activo {
  background: rgba(16, 185, 129, .34);
  box-shadow: inset 0 0 0 3px #10b981;
}
.cal-body.cal-drop-no.cal-drop-activo {
  background: rgba(244, 63, 94, .30);
  box-shadow: inset 0 0 0 3px #f43f5e;
}
/* en el tema oscuro hay que subir bastante la intensidad para que se distinga */
html[data-theme="belloora"] .cal-body.cal-drop-ok { background: rgba(16, 185, 129, .22); }
html[data-theme="belloora"] .cal-body.cal-drop-no { background: rgba(244, 63, 94, .20); }
html[data-theme="belloora"] .cal-body.cal-drop-ok.cal-drop-activo { background: rgba(16, 185, 129, .42); }
html[data-theme="belloora"] .cal-body.cal-drop-no.cal-drop-activo { background: rgba(244, 63, 94, .38); }

/* ---------- Pantalla táctil del local (kiosco) ----------
   Pensado para pantallas VERTICALES (tablet en vertical o tótem de pie).
   Dos reglas mandan el diseño:
   1. Todo mide en vmin/vh, así el mismo layout sirve en una tablet de 10"
      y en un tótem de 43" sin tocar nada.
   2. Arriba solo se MIRA (marca, título, progreso); abajo se TOCA. En un
      tótem el borde superior queda sobre la cabeza del cliente: ningún
      botón puede vivir ahí. */
body.kiosco {
  margin: 0; height: 100vh; height: 100dvh; overflow: hidden;
  background: var(--bg, #0f0f14); color: var(--text, #fff);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}

/* ----- Bienvenida ----- */
.ki-bienvenida {
  position: fixed; inset: 0; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 6vh, 80px); padding: 4vh 6vw;
  background: radial-gradient(circle at 50% 50%, var(--ki-marca-suave, #6d28d922), transparent 62%);
}
.ki-marca-bloque { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.2vh, 18px); }
.ki-logo {
  width: clamp(88px, 16vmin, 200px); height: clamp(88px, 16vmin, 200px);
  border-radius: clamp(20px, 3.6vmin, 42px); font-size: clamp(42px, 8vmin, 100px);
  display: flex; align-items: center; justify-content: center;
  background: var(--ki-marca-suave, #6d28d922); overflow: hidden;
}
.ki-logo img { width: 100%; height: 100%; object-fit: cover; }
.ki-bienvenida h1 { font-size: clamp(27px, 5.4vmin, 68px); margin: 0; font-weight: 800; line-height: 1.15; }
.ki-negocio {
  font-size: clamp(17px, 3.4vmin, 42px); margin: 0; font-weight: 700;
  color: var(--ki-marca, #6d28d9); letter-spacing: .5px;
}
/* Discreto a propósito: lo usa el local, no el cliente. */
.ki-config {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: 22px; opacity: .18; color: inherit;
  background: transparent; border: 1px solid currentColor;
}
.ki-config:active { opacity: .6; }
.ki-sucursal { font-size: clamp(14px, 2.2vmin, 26px); margin: 0; opacity: .6; font-weight: 600; }
.ki-toque {
  display: flex; flex-direction: column; align-items: center; gap: clamp(4px, .8vh, 12px);
  font-size: clamp(15px, 2.4vmin, 30px); font-weight: 600;
  padding: clamp(12px, 1.8vmin, 26px) clamp(24px, 4vmin, 54px);
  border-radius: 999px; border: 2px solid var(--ki-marca, #6d28d9);
  animation: kiLatido 2.2s ease-in-out infinite;
}
.ki-flecha { font-size: clamp(17px, 2.8vmin, 36px); }
@keyframes kiLatido { 0%,100% { opacity: .55 } 50% { opacity: 1 } }

/* ----- Armazón de los pasos ----- */
.ki-app { position: fixed; inset: 0; display: flex; flex-direction: column; }

/* Cabecera: solo informativa, nada que tocar. */
.ki-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(12px, 2vh, 30px) clamp(18px, 4vw, 56px);
  padding-top: max(clamp(12px, 2vh, 30px), env(safe-area-inset-top));
  border-bottom: 1px solid var(--border, #2a2a35);
}
.ki-header-marca {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  font-size: clamp(15px, 2.4vmin, 30px); font-weight: 700; opacity: .8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ki-logo-mini {
  flex: none; width: clamp(30px, 4.6vmin, 62px); height: clamp(30px, 4.6vmin, 62px);
  border-radius: 30%; overflow: hidden; display: flex;
  align-items: center; justify-content: center; font-size: clamp(16px, 2.6vmin, 34px);
  background: var(--ki-marca-suave, #6d28d922);
}
.ki-logo-mini img { width: 100%; height: 100%; object-fit: cover; }
.ki-pasos { display: flex; gap: clamp(8px, 1.2vmin, 16px); flex: none; }
.ki-punto {
  width: clamp(10px, 1.5vmin, 20px); height: clamp(10px, 1.5vmin, 20px);
  border-radius: 50%; background: var(--border, #2a2a35);
}
.ki-punto.activo { background: var(--ki-marca, #6d28d9); }

.ki-main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
/* La hoja ocupa como mínimo todo el alto visible: así el contenido corto se
   puede repartir en la pantalla, y el largo la desborda y hace scroll normal. */
.ki-hoja {
  min-height: 100%; display: flex; flex-direction: column;
  padding: clamp(20px, 3.5vh, 60px) clamp(18px, 4vw, 56px) clamp(10px, 2vh, 30px);
}
.ki-titulo { font-size: clamp(26px, 5.4vmin, 72px); margin: 0 0 .15em; font-weight: 800; line-height: 1.15; }
.ki-sub { font-size: clamp(16px, 2.9vmin, 38px); opacity: .7; margin: 0 0 clamp(18px, 3vh, 46px); }
.ki-cat {
  font-size: clamp(13px, 2vmin, 26px); letter-spacing: 2px; text-transform: uppercase;
  opacity: .55; margin: clamp(18px, 2.6vh, 40px) 0 clamp(8px, 1.2vh, 18px);
}
.ki-vacio {
  font-size: clamp(18px, 3.2vmin, 40px); opacity: .7;
  padding: clamp(30px, 6vh, 90px) 0; text-align: center; line-height: 1.6;
}

/* ----- Tarjetas ----- */
.ki-grid {
  display: grid; gap: clamp(10px, 1.6vh, 22px);
  grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 30vw, 420px), 1fr));
}
.ki-card, .ki-pro {
  position: relative; font: inherit; text-align: left; cursor: pointer; color: inherit;
  padding: clamp(16px, 2.4vh, 34px) clamp(18px, 3vw, 40px);
  border-radius: clamp(16px, 2.4vmin, 30px);
  min-height: clamp(88px, 11vh, 170px);
  border: 2px solid var(--border, #2a2a35); background: var(--surface, #1a1a22);
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
  transition: transform .08s ease;
}
.ki-card:active, .ki-pro:active { transform: scale(.97); }
.ki-card b, .ki-pro b { font-size: clamp(19px, 3.2vmin, 42px); font-weight: 700; line-height: 1.25; }
.ki-card small, .ki-pro small { font-size: clamp(15px, 2.5vmin, 32px); opacity: .7; }
.ki-card.elegida, .ki-pro.elegida {
  border-color: var(--ki-marca, #6d28d9); background: var(--ki-marca-suave, #6d28d922);
}
.ki-card-check {
  position: absolute; top: clamp(12px, 1.8vh, 26px); right: clamp(14px, 2vw, 30px);
  width: clamp(28px, 4vmin, 52px); height: clamp(28px, 4vmin, 52px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: clamp(16px, 2.4vmin, 30px); font-weight: 800; opacity: 0;
  background: var(--ki-marca, #6d28d9); color: #fff;
}
.ki-card.elegida .ki-card-check { opacity: 1; }

.ki-grid-pros { grid-template-columns: repeat(auto-fill, minmax(clamp(190px, 24vw, 340px), 1fr)); }
.ki-pro { align-items: center; text-align: center; padding: clamp(20px, 3vh, 44px) 14px; }
.ki-foto {
  width: clamp(92px, 15vmin, 210px); height: clamp(92px, 15vmin, 210px);
  border-radius: 50%; overflow: hidden; margin-bottom: clamp(8px, 1.4vh, 20px);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(32px, 6vmin, 80px); font-weight: 800; color: #fff;
}
.ki-foto img { width: 100%; height: 100%; object-fit: cover; }
/* la tarjeta "Cualquiera" no tiene foto: se marca con el color de la marca */
.ki-foto-auto {
  background: var(--ki-marca-suave, #6d28d922);
  box-shadow: inset 0 0 0 3px var(--ki-marca, #6d28d9);
}

/* ----- Formulario ----- */
.ki-form { max-width: clamp(560px, 78vw, 900px); }
.ki-form label {
  display: block; font-weight: 700; font-size: clamp(16px, 2.6vmin, 34px);
  margin: clamp(14px, 2.4vh, 34px) 0 clamp(6px, 1vh, 14px);
}
.ki-input {
  width: 100%; font: inherit; font-size: clamp(22px, 3.6vmin, 48px);
  padding: clamp(16px, 2.4vh, 34px) clamp(18px, 2.6vw, 34px);
  border-radius: clamp(14px, 2vmin, 24px);
  border: 2px solid var(--border, #2a2a35); background: var(--surface, #1a1a22); color: inherit;
}
.ki-input:focus { outline: none; border-color: var(--ki-marca, #6d28d9); }
.ki-error {
  color: #f43f5e; font-size: clamp(16px, 2.6vmin, 32px);
  min-height: 1.5em; margin: clamp(10px, 1.6vh, 22px) 0 0;
}

/* ----- Pie: la única zona que se toca ----- */
.ki-pie {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  padding: clamp(14px, 2.2vh, 30px) clamp(18px, 4vw, 56px);
  padding-bottom: max(clamp(14px, 2.2vh, 30px), env(safe-area-inset-bottom));
  border-top: 1px solid var(--border, #2a2a35);
  background: var(--surface-2, transparent);
}
.ki-pie-centro { flex: 1; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-width: 0; }
.ki-nav {
  flex: none; font: inherit; font-weight: 700; cursor: pointer; color: inherit;
  font-size: clamp(16px, 2.6vmin, 32px);
  padding: clamp(14px, 2.2vh, 28px) clamp(20px, 2.8vw, 40px);
  border-radius: 999px; border: 1px solid var(--border, #2a2a35); background: transparent;
}
.ki-nav:active { transform: scale(.96); }
.ki-nav-tenue { opacity: .45; padding-inline: clamp(16px, 2vw, 28px); }
.ki-pista { margin: 0; font-size: clamp(15px, 2.4vmin, 30px); opacity: .55; }
.ki-resumen { display: flex; flex-direction: column; min-width: 0; }
.ki-resumen b { font-size: clamp(18px, 3vmin, 38px); }
.ki-resumen span { font-size: clamp(15px, 2.4vmin, 30px); opacity: .7; white-space: nowrap; }
.ki-btn {
  font: inherit; font-weight: 800; cursor: pointer; margin-left: auto; border: none;
  font-size: clamp(20px, 3.2vmin, 42px);
  padding: clamp(16px, 2.6vh, 34px) clamp(32px, 5vw, 72px);
  border-radius: 999px; background: var(--ki-marca, #6d28d9); color: #fff;
}
.ki-btn:active { transform: scale(.97); }
.ki-btn[disabled] { opacity: .6; }
.ki-btn-suave { background: transparent; border: 2px solid var(--ki-marca, #6d28d9); color: inherit; }

/* ----- Pantalla final ----- */
.ki-listo {
  text-align: center; display: flex; flex-direction: column; flex: 1;
  align-items: center; justify-content: center;
  padding: clamp(20px, 4vh, 60px) 0;
}
.ki-tic {
  width: clamp(110px, 20vmin, 280px); height: clamp(110px, 20vmin, 280px);
  margin: 0 0 clamp(18px, 3vh, 46px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(56px, 10vmin, 140px); background: var(--ki-marca, #6d28d9); color: #fff;
}
.ki-listo h2 { font-size: clamp(30px, 6vmin, 84px); margin: 0 0 .2em; font-weight: 800; line-height: 1.15; }
.ki-listo p { font-size: clamp(19px, 3.2vmin, 42px); opacity: .75; margin: 0; }
.ki-hora {
  margin-top: clamp(20px, 3.5vh, 54px); font-size: clamp(19px, 3vmin, 40px);
  padding: clamp(14px, 2.2vh, 30px) clamp(28px, 4vw, 60px);
  border-radius: 999px; background: var(--ki-marca-suave, #6d28d922);
}
.ki-hora b { font-size: clamp(24px, 4vmin, 54px); color: var(--ki-marca, #6d28d9); }

/* ----- VERTICAL (tablet de pie y tótem) ----- */
@media (orientation: portrait) {
  /* Los servicios van en mosaico cuadrado: en una tablet caben tres por fila
     y se ve la carta completa de un vistazo, sin scroll. El ancho mínimo se
     mueve con la pantalla, así un celular baja solo a dos columnas en vez de
     apretar el nombre del servicio. */
  .ki-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 26vw, 300px), 1fr)); }
  .ki-card {
    aspect-ratio: 1; min-height: 0; gap: 4px;
    align-items: center; justify-content: center; text-align: center;
    padding: clamp(12px, 2vh, 26px) clamp(10px, 1.6vw, 22px);
  }
  .ki-card b { font-size: clamp(16px, 2.6vmin, 34px); }
  .ki-card small { font-size: clamp(13px, 2vmin, 26px); }
  .ki-card-check { top: clamp(8px, 1.2vh, 18px); right: clamp(8px, 1.2vw, 18px); }

  .ki-grid-pros { grid-template-columns: repeat(2, 1fr); }
  .ki-form { max-width: 100%; }
  .ki-pro { min-height: clamp(180px, 24vh, 420px); }
  .ki-titulo { font-size: clamp(28px, 6.4vmin, 80px); }
  .ki-btn { font-size: clamp(20px, 3.6vmin, 46px); }
  /* Los profesionales son pocos y dejaban medio tótem vacío: se centran en el
     alto que sobra. Los servicios no, porque van en varias grillas (una por
     categoría) y estirarlas separaría los grupos. "safe" evita recortar la
     primera tarjeta cuando no caben. */
  .ki-hoja > .ki-grid-pros { flex: 1; align-content: safe center; }
  /* En un tótem alto el mosaico deja mucho aire abajo: se centra en el alto
     que sobra, con las categorías juntas. "safe" evita recortar la primera
     fila cuando la carta es larga y sí hay que hacer scroll. */
  .ki-hoja > .ki-lista { flex: 1; display: flex; flex-direction: column; justify-content: safe center; }
  .ki-lista > .ki-cat:first-child { margin-top: 0; }
  .ki-hoja > .ki-form { flex: 1; display: flex; flex-direction: column; justify-content: safe center; }
}

/* Tótem muy alto (más de 16:10): hay aire de sobra, se reparte hacia abajo
   para que la mano no tenga que subir. */
@media (orientation: portrait) and (min-aspect-ratio: 1/2.2) {
  .ki-main { padding-top: clamp(24px, 5vh, 90px); }
}
@media (orientation: portrait) and (max-aspect-ratio: 1/1.6) {
  .ki-header { padding-block: clamp(16px, 2.6vh, 40px); }
  .ki-main { padding-top: clamp(30px, 6vh, 110px); }
  .ki-pie { padding-block: clamp(20px, 3.2vh, 48px); }
}

/* Pantallas chicas de verdad (celular apaisado o tablet vieja) */
@media (max-width: 560px) {
  .ki-grid-pros { grid-template-columns: repeat(2, 1fr); }
  .ki-nav { padding-inline: 16px; }
}

/* ---------- Aviso del proveedor ----------
   Lo escribe Belloora desde el panel de proveedor y lo ven el administrador,
   la cajera y los profesionales. No se puede cerrar: se quita desde el panel
   cuando el asunto está resuelto. */
.vendor-msg {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 18px; font-size: 14px; font-weight: 600; line-height: 1.45;
  background: #78350f; color: #fef3c7; border-bottom: 2px solid #b45309;
}
.vendor-msg span { font-size: 17px; line-height: 1.3; }
.vendor-msg p { margin: 0; }
@media (max-width: 640px) { .vendor-msg { padding: 10px 14px; font-size: 13px; } }

/* ---------- Servicios agrupados (portal del profesional y de caja) ----------
   Un desplegable por servicio: arriba cuántos se hicieron y cuánto suman,
   adentro el detalle de cada uno. */
.grupo-svc {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); margin-bottom: 10px; overflow: hidden;
}
.grupo-svc > summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 16px; list-style: none; user-select: none;
}
.grupo-svc > summary::-webkit-details-marker { display: none; }
.grupo-svc > summary:hover { background: var(--surface-2, rgba(127, 127, 127, .06)); }
.grupo-flecha {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; transition: transform .15s ease;
  background: var(--surface-2, rgba(127, 127, 127, .12));
}
.grupo-svc[open] .grupo-flecha { transform: rotate(90deg); }
.grupo-nombre { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; }
.grupo-cuenta {
  flex: none; font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--surface-2, rgba(127, 127, 127, .1));
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.grupo-total { flex: none; display: flex; align-items: center; gap: 8px; font-size: 15px; }

.grupo-linea {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 40px; border-top: 1px solid var(--border);
}
.grupo-cuando { flex: none; min-width: 150px; display: flex; flex-direction: column; }
.grupo-cuando b { font-size: 13px; font-weight: 700; text-transform: capitalize; }
.grupo-cuando small { font-size: 12px; color: var(--text-muted); }
.grupo-quien { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.grupo-quien b { font-size: 14px; }
.grupo-quien small { font-size: 12px; color: var(--text-muted); }
.grupo-monto { flex: none; text-align: right; display: flex; align-items: center; gap: 8px; }

@media (max-width: 620px) {
  .grupo-svc > summary { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .grupo-nombre { flex: 1 0 100%; order: -1; }
  .grupo-total { margin-left: auto; }
  .grupo-linea { flex-wrap: wrap; padding-left: 16px; }
  .grupo-cuando { min-width: 0; flex: 1 0 100%; flex-direction: row; gap: 6px; align-items: baseline; }
  .grupo-monto { margin-left: auto; }
}

/* ---------- Versus: el período elegido contra el anterior ----------
   Dos barras por fila: arriba el período actual, abajo el anterior en gris,
   para que la diferencia se vea sin leer los números. */
.vs-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); white-space: nowrap;
}
.vs-toggle:hover { border-color: var(--accent); }
.vs-toggle input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.vs-toggle.apagado { opacity: .45; cursor: not-allowed; }
.vs-toggle.apagado input { cursor: not-allowed; }

.vs-row {
  display: grid; grid-template-columns: 160px 1fr auto auto;
  align-items: center; gap: 12px;
}
.vs-bars { display: flex; flex-direction: column; gap: 4px; }
.vs-track { background: var(--gray-light); border-radius: 999px; height: 13px; overflow: hidden; }
.vs-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }
.vs-fill.vs-previo { background: var(--text-muted); opacity: .45; }
.vs-vals { text-align: right; min-width: 78px; display: flex; flex-direction: column; line-height: 1.35; }
.vs-vals b { font-size: 13px; }
.vs-vals small { font-size: 12px; color: var(--text-muted); }
.vs-delta { min-width: 62px; text-align: right; }

.vs-badge {
  display: inline-block; font-size: 12px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.vs-badge.sube { background: rgba(34, 197, 94, .16); color: #15803d; }
.vs-badge.baja { background: rgba(244, 63, 94, .16); color: #be123c; }
.vs-badge.igual, .vs-badge.nuevo { background: var(--gray-light); color: var(--text-muted); }
html[data-theme="belloora"] .vs-badge.sube { background: rgba(34, 197, 94, .22); color: #86efac; }
html[data-theme="belloora"] .vs-badge.baja { background: rgba(244, 63, 94, .22); color: #fca5a5; }

.vs-cards { margin-bottom: 18px; }
.vs-card-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.vs-card-pie .muted { font-size: 12px; }

@media (max-width: 720px) {
  .vs-row { grid-template-columns: 100px 1fr auto; gap: 8px; }
  .vs-delta { grid-column: 2 / -1; text-align: left; margin-top: -2px; }
  .vs-toggle { font-size: 12px; padding: 7px 10px; }
}

/* ---------- Cierre de caja (pantalla completa del portal de caja) ----------
   Dos columnas: a la izquierda lo que se cobró en el turno, a la derecha el
   arqueo del efectivo, que es lo único que la cajera cuenta a mano. La tarjeta
   y la transferencia se registran solas. Usa las variables del tema, así se ve
   igual de bien en el tema claro y en el Belloora. */
.cc { display: flex; flex-direction: column; gap: 16px; }
.cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cc-crumb { font-size: 14px; color: var(--text-muted); margin: 0 0 4px; }
.cc-crumb button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
.cc-crumb button:hover { color: var(--brand); text-decoration: underline; }
.cc-title { font-size: 30px; font-weight: 700; margin: 0; letter-spacing: -.5px; }
.cc-pill {
  background: var(--brand-light); color: var(--brand); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.cc-step {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px;
}
.cc-step-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--brand-light); display: grid; place-items: center;
}
.cc-step-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.cc-step-txt { font-weight: 600; font-size: 15px; }
.cc-step-meta { margin-left: auto; color: var(--text-muted); font-size: 14px; }

/* minmax(0, …): sin esto la casilla del efectivo, con su letra grande, fija un
   ancho mínimo que ensancha la columna del arqueo y aprieta la del resumen. */
.cc-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.cc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow); padding: 22px 20px;
}
.cc-label { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 6px; }
.cc-big { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; }
.cc-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.cc-sep { height: 1px; background: var(--border); margin: 16px 0; border: 0; }
.cc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; font-size: 15px; }
.cc-row span { color: var(--text-muted); }
.cc-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.cc-row.total span, .cc-row.total b { color: var(--text); font-weight: 700; font-size: 16px; white-space: nowrap; }
.cc-row small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* Dos filas: etiqueta y "Editar" arriba, el monto abajo a todo lo ancho. En una
   sola fila la columna del arqueo es angosta y el monto se cortaba ("$113"). */
.cc-count {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; margin-top: 14px;
  border: 2px solid var(--brand); border-radius: calc(var(--radius) + 2px); padding: 10px 14px 8px;
}
.cc-count-lbl { color: var(--text-muted); font-size: 13px; }
.cc-count-edit {
  font: inherit; font-size: 14px; font-weight: 700; font-style: italic; color: var(--brand);
  background: none; border: none; cursor: pointer; padding: 2px 0;
}
.cc-count-input {
  grid-column: 1 / -1; min-width: 0; width: 100%; border: none; background: transparent; color: var(--text);
  font: inherit; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right;
  padding: 0; outline: none;
}
.cc-status {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  border-radius: calc(var(--radius) + 2px); padding: 14px 16px; font-weight: 600; font-size: 15px;
}
.cc-status-ico { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.cc-status.ok    { background: var(--green-light); color: var(--green); }
.cc-status.ok    .cc-status-ico { background: var(--green); }
.cc-status.falta { background: var(--red-light);   color: var(--red); }
.cc-status.falta .cc-status-ico { background: var(--red); }
.cc-status.sobra { background: var(--amber-light); color: var(--amber); }
.cc-status.sobra .cc-status-ico { background: var(--amber); }
.cc-hint { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 0; line-height: 1.45; }
.cc-hint.warn { color: var(--amber); }
.cc-nota { margin-top: 10px; width: 100%; }

.cc-verif-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cc-verif-head h3 { margin: 0; font-size: 19px; font-weight: 600; }
.cc-verif-head small { color: var(--text-muted); font-size: 14px; }
.cc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cc-tile { background: var(--gray-light); border-radius: calc(var(--radius) + 2px); padding: 14px 18px; }
.cc-tile small { display: block; color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cc-tile b { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }

.cc-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.cc-detalle-link {
  font: inherit; font-weight: 600; font-size: 15px; color: var(--text); background: none; border: none;
  cursor: pointer; padding: 8px 4px; margin-right: auto;
}
.cc-detalle-link::before { content: "▸ "; color: var(--text-muted); }
.cc-detalle-link[aria-expanded="true"]::before { content: "▾ "; }
.cc-foot .btn { padding: 13px 22px; font-size: 15px; }

/* El cierre se abre como ventana amplia sobre el panel de la caja */
.modal.modal-wide { max-width: 980px; }
.modal-wide .modal-body { background: var(--bg); border-radius: 0 0 16px 16px; }
@media (max-width: 900px) {
  .modal-wide .cc-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .cc-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-title { font-size: 24px; }
  .cc-big { font-size: 38px; }
  .cc-step { border-radius: var(--radius); }
  .cc-step-meta { margin-left: 0; width: 100%; }
  .cc-foot .btn { flex: 1 1 100%; }
  .cc-detalle-link { width: 100%; text-align: left; }
}

/* Anular / cambiar la hora: los dos botones lado a lado en la página de reservas */
.bk-fix-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bk-fix-actions .btn { flex: 1 1 140px; }

/* Tarjeta compacta de profesional: foto, nombre, rol y comisión */
.pro-card-mini { gap: 12px; }
.pro-avatar-foto { background-size: cover; background-position: center; }
.pro-mini-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-mini-pill {
  background: var(--gray-light); border-radius: 999px;
  padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}

/* ---------- Avisos de reservas en este dispositivo (notificaciones web) ---------- */
.avisos-web { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.avisos-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.avisos-cab b { font-size: 15px; }
.avisos-estado { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.avisos-estado.si { background: rgba(34, 197, 94, .16); color: #15803d; }
.avisos-estado.no { background: var(--gray-light); color: var(--text-muted); }
html[data-theme="belloora"] .avisos-estado.si { background: rgba(34, 197, 94, .22); color: #86efac; }
.avisos-web .hint { margin: 6px 0 10px; }
.avisos-botones { display: flex; gap: 8px; flex-wrap: wrap; }

/* Botón "Tu plan" en la barra superior y su ventana */
.btn-plan { white-space: nowrap; font-weight: 700; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.plan-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.plan-card.actual { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.plan-list li { font-size: 12.5px; color: var(--text-muted); padding-left: 16px; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
@media (max-width: 767px) { .btn-plan { font-size: 12px; padding: 7px 10px; } }
@media (max-width: 767px) {
  /* en el celular el plan se ve en Administración, no en la barra superior */
  .btn-plan { display: none; }
}
