:root {
  --indigo: #4F46E5;
  --indigo-dark: #3730A3;
  --indigo-light: #EEF0FF;
  --navy: #14142B;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --bg: #F7F7FB;
  --white: #FFFFFF;
  --green: #16A34A;
  --red: #DC2626;
  --amber: #B45309;
  --amber-bg: #FEF3C7;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(20, 20, 43, 0.06);
}

* { box-sizing: border-box; }

/* El atributo hidden debe ganar siempre, incluso sobre elementos cuya
   clase les pone display:flex/grid (ej. .modal-actions, .favorites-banner)
   — si no, [hidden] queda sin efecto porque la regla de la clase le gana
   en especificidad al display:none que el navegador aplica por defecto. */
[hidden] { display: none !important; }

/* Estado de carga: atenúa el contenido mientras se vuelve a pedir, sin
   borrarlo ni meter un spinner que salte encima — igual de sutil que el
   "pull to refresh" de apps como Booksy. */
.loading { opacity: 0.5; pointer-events: none; transition: opacity 0.15s ease; }

/* Tarjeta señalada por un link compartido (?negocio=ID) — un resplandor que
   se apaga solo, para que el ojo la encuentre sin tener que marcar nada
   permanente. */
.biz-card.highlight { box-shadow: 0 0 0 3px var(--indigo), var(--shadow); transition: box-shadow 2s ease; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--indigo);
  color: var(--white);
}
.btn-primary:hover { background: var(--indigo-dark); }

.btn-outline {
  background: var(--white);
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
}
.btn-outline:hover { background: var(--indigo-light); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* HERO */
.hero {
  padding: 72px 20px 56px;
  text-align: center;
}

.eyebrow {
  color: var(--indigo);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero h1 span { color: var(--indigo); }

.hero p {
  font-size: 18px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* "Screenshot flotante" del panel real, como mockup de navegador — le da al
   landing algo que mostrar en vez de solo texto. */
.hero-shot {
  max-width: 920px;
  margin: 48px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(20, 20, 43, 0.25), 0 10px 24px rgba(20, 20, 43, 0.08);
  border: 1px solid var(--gray-light);
  text-align: left;
}
.hero-shot-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #EDEDF2;
}
.hero-shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D1D1D8;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* SECTIONS */
.section {
  padding: 56px 20px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--indigo-light);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.card p {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

/* AUDIENCE SPLIT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.split-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  border-top: 4px solid var(--indigo);
}
.split-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.split-card p {
  color: var(--gray);
  margin: 0 0 20px;
  line-height: 1.5;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--gray);
  font-size: 13px;
}

/* AUTH */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
  padding: 32px;
}

.auth-card h1 {
  font-size: 24px;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.auth-card .sub {
  color: var(--gray);
  font-size: 14px;
  margin: 0 0 24px;
}

.role-toggle {
  display: flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}

.role-toggle button {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray);
}

.role-toggle button.active {
  background: var(--indigo);
  color: var(--white);
}

.mode-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--gray);
}
.mode-toggle button {
  background: none;
  color: var(--indigo);
  font-weight: 700;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: flex;
  gap: 12px;
}
.field-row .field {
  flex: 1;
}

.phone-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-row select {
  width: 100%;
  max-width: 100%;
}
.phone-row input {
  width: 100%;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-light);
  font-size: 14.5px;
  background: var(--white);
  color: var(--navy);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--indigo);
}

.form-panel { display: none; }
.form-panel.active { display: block; }

.btn-link-forgot {
  display: block;
  margin: 12px auto 0;
  background: none;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 700;
}

.error-msg {
  background: #FEF2F2;
  color: var(--red);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}
.error-msg.show { display: block; }

/* DASHBOARD LAYOUT */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--indigo-light);
  color: var(--indigo-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.dash-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.dash-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}
.dash-sub {
  color: var(--gray);
  margin: 0 0 24px;
  font-size: 14.5px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar[hidden] {
  display: none;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.chip.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}

.area-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.area-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  position: relative;
}
.area-tab.active {
  border-color: var(--indigo);
  background: var(--indigo-light);
  color: var(--indigo-dark);
}
.area-tab.coming-soon {
  color: var(--gray);
  cursor: default;
}

.soon-badge {
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.coming-soon-panel {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--gray);
}
.coming-soon-panel .emoji {
  font-size: 34px;
  margin-bottom: 12px;
}
.coming-soon-panel h3 {
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 19px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }

.stat-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stat-row.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-row.cols-4 { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.stat-card .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--indigo);
}
.stat-card .lbl {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}
.stat-card .trend {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray);
  margin-top: 6px;
  min-height: 14px;
}
.stat-card .trend.up { color: var(--green); }
.stat-card .trend.down { color: var(--red); }
.stat-card.warn .num { color: var(--red); }

.biz-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}

/* En escritorio ancho, dos columnas tipo "masonry" (column-count en vez de
   grid) para que las tarjetas de altura distinta no dejen huecos feos entre
   filas — una sola columna angosta desperdiciaba la mitad de la pantalla. */
@media (min-width: 900px) {
  #businessList {
    column-count: 2;
    column-gap: 16px;
  }
  #businessList .biz-card {
    break-inside: avoid;
  }
  #businessList .empty-state {
    column-span: all;
  }
}

.biz-photo {
  height: 110px;
  margin: -20px -20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biz-photo .photo-icon {
  font-size: 38px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.biz-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.biz-name {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 2px;
}

.biz-meta {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: var(--indigo-light);
  color: var(--indigo-dark);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.urgency-badge {
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.slot-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.slot {
  border: 1.5px solid var(--gray-light);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 84px;
  background: var(--white);
}

.slot .time { font-size: 14.5px; }
.slot .price { font-size: 12px; color: var(--gray); font-weight: 600; }

.slot.available {
  border-color: var(--indigo);
  cursor: pointer;
}
.slot.available:hover { background: var(--indigo-light); }

.slot.booked {
  background: var(--bg);
  color: var(--gray);
  cursor: default;
}

.slot.mine {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}
.slot.mine .price { color: rgba(255, 255, 255, 0.85); }
.slot.warn { border-style: dashed; border-color: var(--amber); color: var(--amber); }

.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--gray);
  background: var(--white);
  border: 1.5px dashed var(--gray-light);
  border-radius: var(--radius);
  font-size: 14px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 43, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 400px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.modal p {
  color: var(--gray);
  font-size: 14.5px;
  margin: 0 0 20px;
  line-height: 1.5;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.modal-header { margin-bottom: 12px; }
.modal-header h3 { margin: 0; }
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.modal-close:hover { color: var(--navy); }
.modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 16px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 200;
  pointer-events: none;
  /* max-content + tope: un aviso corto queda en una línea y uno largo se
     parte en vez de salirse de la pantalla en celular. */
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
  line-height: 1.4;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.add-slot-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--gray-light);
}
.add-slot-row .field { margin-bottom: 0; flex: 1; min-width: 110px; }
/* Select de Servicio/Estilista necesita más espacio que un input numérico
   (Hora, Duración, Precio, Descuento) — si no, el texto se corta en
   pantallas anchas donde la fila completa de 7 campos + botón se aprieta. */
.add-slot-row .field:has(select) { min-width: 150px; }

.reservation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 14px;
  gap: 10px;
}
.reservation-row:last-child { border-bottom: none; }
.reservation-row .res-info { display: flex; flex-direction: column; gap: 2px; }
.reservation-row .res-price { display: flex; align-items: center; gap: 10px; }

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filters-toggle { display: none; flex-shrink: 0; }

/* En celular hay demasiado "chrome" antes del primer cupo (buscador, 2
   botones, 2 selects, chips de categoría) — se esconden los filtros
   secundarios detrás de un botón, dejando el buscador siempre visible. En
   escritorio no cambia nada: el botón ni se muestra y el panel va abierto. */
@media (max-width: 700px) {
  .filters-toggle { display: inline-flex; }
  .more-filters { display: none; }
  .more-filters.show { display: block; }
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-light);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
}
.search-input:focus { outline: none; border-color: var(--indigo); }

.distance-pill {
  color: var(--indigo-dark);
  font-weight: 700;
}

.btn-link-danger {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  background: none;
  border: none;
  padding: 4px 0;
}

/* VENTAS DASHBOARD */
.period-tabs {
  display: inline-flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 22px;
}
.period-tabs button {
  padding: 9px 16px;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--gray);
}
.period-tabs button.active {
  background: var(--indigo);
  color: var(--white);
}

.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.chart-card h3 {
  font-size: 15.5px;
  margin: 0 0 16px;
}
.chart-card .chart-sub {
  color: var(--gray);
  font-size: 12.5px;
  margin: -12px 0 16px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bar-row:last-child { margin-bottom: 0; }
.bar-row .bar-label {
  width: 86px;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray);
  text-align: right;
  line-height: 1.3;
}
.bar-row .bar-track {
  flex: 1;
  height: 12px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.bar-row .bar-fill {
  height: 100%;
  background: var(--indigo);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.bar-row .bar-value {
  width: 74px;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.mini-stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mini-stat strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--indigo-dark);
}
.mini-stat span {
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
}

.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}
.rank-row:last-child { border-bottom: none; }
.rank-row .rank-name {
  font-size: 14px;
  font-weight: 700;
}
.rank-row .rank-count {
  color: var(--gray);
  font-size: 12.5px;
  font-weight: 600;
}
.rank-row .rank-amount {
  color: var(--indigo);
  font-weight: 800;
  font-size: 14px;
}

.sale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 13.5px;
}
.sale-row:last-child { border-bottom: none; }
.sale-row .sale-info { display: flex; flex-direction: column; gap: 2px; }
.sale-row .sale-service { font-weight: 700; }
.sale-row .sale-meta { color: var(--gray); font-size: 12px; }
.sale-row .sale-amount { font-weight: 800; }
.sale-row.cancelada { opacity: 0.55; }
.sale-row .sale-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FEF2F2;
  color: var(--red);
}

/* DAY TABS / FILTERS (HU-09, HU-10) */
.day-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  overflow-x: auto;
}
.day-tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.day-tab.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}

.filter-select {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-light);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
}
.filter-select:focus { outline: none; border-color: var(--indigo); }

/* FAVORITES (HU-11) */
.favorites-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--indigo-light);
  color: var(--indigo-dark);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.fav-toggle {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  flex-shrink: 0;
}
.fav-toggle.active {
  border-color: var(--red);
  color: var(--red);
  background: #FEF2F2;
}

/* POLICY NOTE / DISCOUNTS (HU-13, HU-16) */
.policy-note {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray);
  margin: 0 0 16px;
  line-height: 1.5;
}

.discount-badge {
  background: #FEF2F2;
  color: var(--red);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 4px;
}

/* PHOTO GALLERY / SERVICES CATALOG / REVIEWS (HU-02, HU-06) */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: -20px -20px 16px;
  height: 110px;
  overflow: hidden;
}
.photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--gray-light);
}
.catalog-details summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--indigo-dark);
}
.catalog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 13.5px;
}
.catalog-row:last-child { border-bottom: none; }

.review-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 13.5px;
}
.review-row:last-child { border-bottom: none; }
.review-row .review-stars { color: var(--indigo); font-size: 12.5px; }
.review-author {
  color: var(--gray);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

.star-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 28px;
}
.star-picker button {
  background: none;
  color: var(--gray-light);
}
.star-picker button.active {
  color: var(--indigo);
}

.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-light);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
  resize: vertical;
}
.field-hint {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

.review-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 6px;
  display: block;
}

.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
}

/* NEGOCIO: editable rows (catálogo de servicios, personal) */
.edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.edit-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-light);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
}
.edit-row input:focus { outline: none; border-color: var(--indigo); }
.edit-row input.svc-price { flex: 0 0 90px; }
.edit-row .remove-row {
  flex-shrink: 0;
  font-size: 16px;
  padding: 4px 8px;
}

/* ── AGENDA DEL NEGOCIO: calendario + panel del día ─────────────────────── */
.agenda-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (min-width: 900px) {
  .agenda-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.agenda-grid .biz-card { margin-bottom: 0; }

.cal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.cal-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}
.cal-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.cal-nav:hover { background: var(--indigo-light); }

.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray);
  padding-bottom: 6px;
}

.cal-day {
  min-height: 72px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: var(--bg);
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  text-align: left;
  color: var(--navy);
  overflow: hidden;
}
.cal-day:hover { border-color: var(--gray-light); }
.cal-day.blank { background: transparent; pointer-events: none; }
.cal-day.past { color: var(--gray); }
.cal-day.past .cal-tag { opacity: 0.65; }
/* Rayado = día que no se trabaja según el horario semanal. */
.cal-day.off {
  background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 6px, #EBEBF2 6px, #EBEBF2 12px);
}
.cal-day.closed { background: #FEF2F2; }
.cal-day.selected {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-light);
}
.cal-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.cal-day.today .cal-num { background: var(--indigo); color: var(--white); }

.cal-tag {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 6px;
  padding: 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-tag b { font-weight: 800; }
.cal-tag i { font-style: normal; }
.cal-tag .cal-icon { display: none; }
.cal-tag.booked { background: var(--indigo); color: var(--white); }
.cal-tag.free { background: #DCFCE7; color: #166534; }
.cal-tag.closed { background: var(--red); color: var(--white); }
.cal-tag.absent { background: var(--amber-bg); color: var(--amber); }
.cal-tag.off, .cal-tag.planned { color: var(--gray); font-weight: 600; padding: 0 2px; }

/* En celular cada celda mide ~45px: se quedan solo los números (3 citas →
   "3") y los colores; el detalle completo está en el panel del día. */
@media (max-width: 560px) {
  .cal-card { padding: 14px 10px; }
  .cal-day { min-height: 58px; padding: 4px 2px; align-items: center; }
  .cal-tag { padding: 0 4px; min-width: 18px; text-align: center; }
  .cal-tag i { display: none; }
  .cal-tag .cal-icon { display: inline; }
  .cal-tag.off, .cal-tag.planned { display: none; }
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}
.cal-legend .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.cal-legend .dot.today { border-radius: 50%; background: var(--indigo); }
.cal-legend .dot.booked { background: var(--indigo); }
.cal-legend .dot.free { background: #86EFAC; }
.cal-legend .dot.closed { background: var(--red); }
.cal-legend .dot.off {
  background: repeating-linear-gradient(135deg, #F1F1F6, #F1F1F6 2px, #C9C9D6 2px, #C9C9D6 4px);
}

.day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.day-group {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 14px 0 8px;
}
.day-group:first-child { margin-top: 0; }
.day-card .slot { cursor: pointer; }
.day-card .slot.mine:hover { background: var(--indigo-dark); }
.day-card .empty-state { padding: 18px 14px; font-size: 13px; }
.day-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.day-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}
.day-notice.closed { background: #FEF2F2; color: var(--red); }
.day-notice.info { background: var(--bg); color: var(--gray); }
.day-notice button { flex-shrink: 0; }

.reservation-row.clickable { cursor: pointer; }
.reservation-row.clickable:hover { color: var(--indigo); }

.field input:disabled, .field select:disabled {
  background: var(--bg);
  color: var(--gray);
}

/* Agendar a mano (llamada o alguien que llegó sin reservar) */
.walkin-box {
  background: var(--indigo-light);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.walkin-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo-dark);
  margin-bottom: 8px;
}
.walkin-row { display: flex; gap: 8px; flex-wrap: wrap; }
.walkin-row input, .walkin-row select {
  flex: 1;
  min-width: 130px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-light);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
}
.walkin-row input:focus, .walkin-row select:focus { outline: none; border-color: var(--indigo); }
/* El servicio va en su propio renglón: junto al nombre se cortaba el precio. */
.walkin-row select { flex-basis: 100%; }

/* ── HORARIO SEMANAL (editor) ───────────────────────────────────────────── */
.modal.modal-wide { max-width: 640px; }
.sched-warning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 14px;
}
.sched-card {
  border: 1.5px solid var(--gray-light);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.sched-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 15px;
}
.sched-card-head select, .sched-times select {
  padding: 7px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-light);
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
}
.sched-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 6px;
}
.sched-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sched-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-light);
  background: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray);
}
.sched-chip.active {
  background: var(--indigo-light);
  border-color: var(--indigo);
  color: var(--indigo-dark);
}
.sched-chip.active::before { content: "✓ "; }
.sched-rule {
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.sched-rule.invalid { border-color: var(--red); }
.sched-rule.invalid .sched-rule-info { color: var(--red); font-weight: 700; }
.sched-days { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.sched-remove { margin-left: auto; font-size: 16px; padding: 4px 6px; flex-shrink: 0; }
.sched-day {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-light);
  background: var(--white);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gray);
}
.sched-day.active { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.sched-times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}
.sched-rule-info { font-size: 12px; color: var(--gray); margin-top: 6px; }
.modal p.sched-empty { margin: 0 0 10px; }
.modal p.sched-total {
  margin: 10px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.modal p.field-hint { font-size: 12px; margin: 0; }

/* En celular el editor de horario necesita cada pixel: 7 días en una fila. */
@media (max-width: 560px) {
  .modal-overlay { padding: 12px; }
  .modal { padding: 20px 18px; }
  .sched-card { padding: 12px 10px; }
  .sched-rule { padding: 10px 8px; }
  .sched-days { gap: 4px; }
  .sched-day { width: 28px; height: 28px; font-size: 12px; }
}

/* Tres números en una fila también en celular (panel del negocio): apilados
   empujaban el calendario una pantalla completa hacia abajo. */
@media (max-width: 700px) {
  .stat-row.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
  .stat-row.compact .stat-card { padding: 12px 10px; }
  .stat-row.compact .stat-card .num { font-size: 21px; }
  .stat-row.compact .stat-card .lbl { font-size: 11.5px; line-height: 1.3; }
}

/* Un nombre largo de negocio/cliente ya no empuja "Salir" fuera de la pantalla:
   se corta con "…" usando solo el espacio que sobra junto al logo, el avatar y
   el botón (≈290px) — en celular angosto desaparece y queda el avatar. */
.dash-header { gap: 12px; }
.dash-user { min-width: 0; }
.dash-user > span {
  min-width: 0;
  max-width: clamp(0px, calc(100vw - 290px), 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
