/**
 * Barber Hub - Sistema de Estilos Principal
 * Fuente: Google Fonts (Outfit + Fira Code)
 * Paleta: Dorado elegante sobre fondos oscuros premium
 */

/* =============================
   1. IMPORTACIÓN DE FUENTES
   ============================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;700&display=swap');

/* =============================
   2. VARIABLES CSS (Design Tokens)
   ============================= */:root {
  /* Paleta Warm Dark Espresso & Aged Brass */
  --bh-gold:         #c88a42;
  --bh-gold-light:   #d4a259;
  --bh-gold-dark:    #9e5a2b;
  --bh-dark:         #161311;
  --bh-dark-1:       #1c1815;
  --bh-dark-2:       #221c18;
  --bh-dark-3:       #2b241f;
  --bh-dark-card:    #221c18;
  --bh-dark-border:  rgba(200, 138, 66, 0.18);
  --bh-glass-bg:     rgba(34, 28, 24, 0.85);
  --bh-glass-border: rgba(200, 138, 66, 0.22);

  /* Texto */
  --bh-text-primary:   #f4efea;
  --bh-text-secondary: #c4b8ab;
  --bh-text-muted:     #8c7f70;

  /* Tipografía */
  --bh-font-title: 'Playfair Display', Georgia, serif;
  --bh-font-body:  'Plus Jakarta Sans', system-ui, sans-serif;

  /* Estados */
  --bh-success: #2b4436;
  --bh-success-text: #4caf50;
  --bh-warning: #c88a42;
  --bh-danger:  #b83a3a;
  --bh-info:    #3b82f6;

  /* Gradientes */
  --bh-gradient-gold:  linear-gradient(135deg, #d4a259 0%, #c88a42 50%, #9e5a2b 100%);
  --bh-gradient-dark:  linear-gradient(135deg, #161311 0%, #1c1815 100%);
  --bh-gradient-card:  linear-gradient(145deg, #221c18 0%, #1c1815 100%);

  /* Sombras */
  --bh-shadow-sm:  0 4px 14px rgba(0, 0, 0, 0.4);
  --bh-shadow-md:  0 8px 32px rgba(0, 0, 0, 0.5);
  --bh-shadow-lg:  0 16px 48px rgba(0, 0, 0, 0.6);
  --bh-shadow-gold: 0 4px 24px rgba(200, 138, 66, 0.25);
  --bh-shadow-gold-lg: 0 8px 32px rgba(200, 138, 66, 0.35);
}

/* Encabezados con Serif Editorial */
h1, h2, h3, .bh-title-serif {
  font-family: var(--bh-font-title) !important;
  letter-spacing: -0.01em;
}

body {
  font-family: var(--bh-font-body);
  background-color: var(--bh-dark);
  color: var(--bh-text-primary);
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(200, 138, 66, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(200, 138, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 138, 66, 0); }
}

@keyframes skeletonShimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.bh-animate-fade {
  animation: fadeInUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

:root {
  /* Bordes redondeados */
  --bh-radius-sm: 10px;
  --bh-radius-md: 16px;
  --bh-radius-lg: 24px;
  --bh-radius-xl: 32px;

  /* Transiciones */
  --bh-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --bh-transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Sidebar y Navbar compactos y adaptativos */
  --sidebar-width: 190px;
  --sidebar-collapsed-width: 64px;
  --navbar-height: 60px;
}

.bh-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* =============================
   3. RESET Y BASE
   ============================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bh-dark);
  color: var(--bh-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bh-gold);
  text-decoration: none;
  transition: var(--bh-transition);
}
a:hover { color: var(--bh-gold-light); }

img { max-width: 100%; display: block; }

/* =============================
   4. TIPOGRAFÍA
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bh-text-primary);
}

.text-gold   { color: var(--bh-gold) !important; }
.text-muted  { color: var(--bh-text-secondary) !important; }
.text-danger { color: var(--bh-danger) !important; }
.text-success{ color: var(--bh-success) !important; }

/* =============================
   5. LAYOUT PRINCIPAL (Sidebar + Contenido)
   ============================= */
.bh-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--navbar-height) 1fr;
  min-height: 100vh;
}

/* ---- NAVBAR SUPERIOR ---- */
.bh-navbar {
  grid-column: 1 / -1;
  grid-row: 1;
  background: var(--bh-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bh-glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  position: relative;
  z-index: 100;
  height: var(--navbar-height);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.bh-navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bh-navbar .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--bh-gradient-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--bh-dark);
}

.bh-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bh-navbar .nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bh-gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bh-dark);
  cursor: pointer;
  border: 2px solid var(--bh-dark-border);
  transition: var(--bh-transition);
}
.bh-navbar .nav-avatar:hover {
  border-color: var(--bh-gold);
  box-shadow: var(--bh-shadow-gold);
}

.bh-navbar .nav-badge {
  position: relative;
}
.bh-navbar .nav-badge .badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--bh-danger);
  border-radius: 50%;
  border: 2px solid var(--bh-dark-2);
}

/* ---- SIDEBAR & LAYOUT ---- */
.bh-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--navbar-height) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bh-layout.sidebar-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

.bh-sidebar {
  grid-column: 1;
  grid-row: 2;
  background: var(--bh-dark-card);
  border-right: 1px solid var(--bh-dark-border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  z-index: 90;
}

.bh-layout.sidebar-collapsed .bh-sidebar {
  padding: 14px 6px;
  align-items: center;
}

.bh-sidebar::-webkit-scrollbar { width: 4px; }
.bh-sidebar::-webkit-scrollbar-thumb { background: var(--bh-dark-border); border-radius: 4px; }

/* Section Labels */
.bh-sidebar .sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bh-text-muted);
  padding: 14px 10px 4px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.bh-layout.sidebar-collapsed .bh-sidebar .sidebar-section-label {
  display: none;
}

/* Sidebar Links */
.bh-sidebar .sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin: 2px 0;
  border-radius: var(--bh-radius-md);
  color: var(--bh-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--bh-transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.bh-sidebar .sidebar-link:hover {
  color: var(--bh-text-primary);
  background: rgba(200, 138, 66, 0.08);
}

.bh-sidebar .sidebar-link.active {
  color: var(--bh-gold);
  background: rgba(200, 138, 66, 0.14);
  font-weight: 600;
}

.bh-sidebar .sidebar-link .sidebar-icon {
  width: 22px;
  text-align: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bh-layout.sidebar-collapsed .bh-sidebar .sidebar-link {
  justify-content: center;
  padding: 10px 0;
  width: 44px;
  border-radius: 10px;
  margin: 3px auto;
}

.bh-layout.sidebar-collapsed .bh-sidebar .sidebar-link-text {
  display: none;
}

/* Accordions */
.sidebar-accordion {
  margin: 2px 0;
}

.sidebar-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: var(--bh-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--bh-radius-md);
  transition: var(--bh-transition);
  user-select: none;
  white-space: nowrap;
}

.sidebar-accordion-header:hover {
  color: var(--bh-gold);
  background: rgba(200, 138, 66, 0.08);
}

.sidebar-accordion-header .accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-accordion-header .accordion-chevron {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
  opacity: 0.7;
}

.sidebar-accordion.open .sidebar-accordion-header .accordion-chevron {
  transform: rotate(90deg);
}

.sidebar-accordion-content {
  display: none;
  padding-left: 14px;
  flex-direction: column;
  gap: 2px;
}

.sidebar-accordion.open .sidebar-accordion-content {
  display: flex;
}

.bh-layout.sidebar-collapsed .sidebar-accordion-header {
  justify-content: center;
  padding: 10px 0;
  width: 44px;
  margin: 3px auto;
}

.bh-layout.sidebar-collapsed .sidebar-accordion-header .accordion-chevron {
  display: none;
}

.bh-layout.sidebar-collapsed .sidebar-accordion-content {
  display: none !important;
}

/* Tooltips in Collapsed Mode */
.bh-layout.sidebar-collapsed .bh-sidebar [data-tooltip] {
  position: relative;
}

.bh-layout.sidebar-collapsed .bh-sidebar [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bh-dark-card);
  color: var(--bh-gold-light);
  border: 1px solid var(--bh-dark-border);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.bh-layout.sidebar-collapsed .bh-sidebar [data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Notification Badge Dot */
.sidebar-badge-dot {
  position: absolute;
  top: -1px;
  right: -3px;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

/* Toggle button styling */
#bh-sidebar-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

#bh-sidebar-toggle:hover {
  background: rgba(200, 138, 66, 0.15);
  color: var(--bh-gold) !important;
}

/* Sidebar Footer / Toggle button inside footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--bh-dark-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--bh-dark-border);
  border-radius: var(--bh-radius-md);
  background: transparent;
  color: var(--bh-text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--bh-transition);
}

.sidebar-collapse-btn:hover {
  border-color: var(--bh-gold);
  color: var(--bh-gold);
  background: rgba(200, 138, 66, 0.08);
}

.bh-layout.sidebar-collapsed .sidebar-collapse-btn span {
  display: none;
}

.bh-layout.sidebar-collapsed .sidebar-collapse-btn i {
  transform: rotate(180deg);
}

/* ---- CONTENIDO PRINCIPAL ---- */
.bh-content {
  grid-column: 2;
  grid-row: 2;
  padding: 32px 40px;
  overflow-y: auto;
  animation: fadeInUp 0.5s ease backwards;
}

/* =============================
   6. COMPONENTES - TARJETAS
   ============================= */
.bh-card {
  background: var(--bh-gradient-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bh-glass-border);
  border-radius: var(--bh-radius-lg);
  padding: 28px;
  box-shadow: var(--bh-shadow-md);
  transition: var(--bh-transition-bounce);
  animation: fadeInUp 0.6s ease backwards;
}

.bh-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--bh-shadow-lg), var(--bh-shadow-gold);
  transform: translateY(-4px) scale(1.005);
}

.bh-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bh-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bh-text-primary);
}

/* KPI Card */
.bh-kpi-card {
  background: var(--bh-gradient-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bh-glass-border);
  border-radius: var(--bh-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: var(--bh-transition-bounce);
  animation: fadeInUp 0.5s ease backwards;
}
.bh-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bh-gradient-gold);
}
.bh-kpi-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--bh-shadow-gold-lg); 
  border-color: rgba(212, 175, 55, 0.5);
}
.bh-kpi-label { font-size: 0.8rem; color: var(--bh-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.bh-kpi-value { font-size: 2rem; font-weight: 800; color: var(--bh-gold); line-height: 1; }
.bh-kpi-delta { font-size: 0.8rem; color: var(--bh-success); display: flex; align-items: center; gap: 4px; }
.bh-kpi-delta.down { color: var(--bh-danger); }

/* =============================
   7. COMPONENTES - BOTONES
   ============================= */
.btn-bh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--bh-radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--bh-transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-bh-gold {
  background: var(--bh-gradient-gold);
  color: var(--bh-dark);
  box-shadow: var(--bh-shadow-gold);
  position: relative;
  overflow: hidden;
  border-radius: var(--bh-radius-sm);
  z-index: 1;
}
.btn-bh-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: .3s;
  z-index: -1;
}
.btn-bh-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
  color: var(--bh-dark);
  animation: pulseGlow 1.5s infinite;
}
.btn-bh-gold:hover::before { opacity: 1; }
.btn-bh-gold:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--bh-shadow-gold);
  animation: none;
}

.btn-bh-outline {
  background: transparent;
  color: var(--bh-gold);
  border: 1px solid var(--bh-gold);
}
.btn-bh-outline:hover {
  background: rgba(200, 169, 110, 0.1);
  color: var(--bh-gold-light);
}

.btn-bh-danger {
  background: var(--bh-danger);
  color: #fff;
}
.btn-bh-danger:hover { background: #dc2626; transform: translateY(-1px); }

.btn-bh-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-bh-lg { padding: 14px 28px; font-size: 1rem; }

/* =============================
   8. COMPONENTES - FORMULARIOS
   ============================= */
.bh-form-group {
  margin-bottom: 18px;
}

.bh-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bh-text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.bh-form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--bh-glass-border);
  border-radius: var(--bh-radius-sm);
  color: var(--bh-text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: var(--bh-transition);
}

.bh-form-control:focus {
  border-color: var(--bh-gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15), 0 0 12px rgba(200, 169, 110, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

textarea.bh-form-control {
  resize: vertical;
  min-height: 60px;
}

.bh-form-control::placeholder {
  color: var(--bh-text-muted);
}

/* =============================
   9. COMPONENTES - TABLAS
   ============================= */
.bh-table-wrapper {
  overflow-x: auto;
  border-radius: var(--bh-radius-md);
  border: 1px solid var(--bh-dark-border);
}

.bh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bh-table thead {
  background: rgba(200, 169, 110, 0.08);
}

.bh-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bh-text-muted);
  border-bottom: 1px solid var(--bh-dark-border);
}

.bh-table td {
  padding: 13px 16px;
  color: var(--bh-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.bh-table tr:last-child td { border-bottom: none; }

.bh-table tbody tr {
  transition: var(--bh-transition);
}
.bh-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--bh-text-primary);
  transform: scale(1.002);
}

/* =============================
   10. BADGES / ETIQUETAS
   ============================= */
.bh-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.bh-badge-gold    { background: rgba(200, 169, 110, 0.15); color: var(--bh-gold); }
.bh-badge-success { background: rgba(16, 185, 129, 0.15); color: var(--bh-success); }
.bh-badge-danger  { background: rgba(239, 68, 68, 0.15); color: var(--bh-danger); }
.bh-badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--bh-warning); }
.bh-badge-info    { background: rgba(14, 165, 233, 0.15); color: var(--bh-info); }
.bh-badge-secondary { background: rgba(108, 117, 125, 0.15); color: #adb5bd; }

/* =============================
   11. ALERTAS FLASH
   ============================= */
.bh-alert {
  padding: 12px 18px;
  border-radius: var(--bh-radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border-left: 4px solid;
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bh-alert-success { background: rgba(16, 185, 129, 0.1); border-color: var(--bh-success); color: var(--bh-success); }
.bh-alert-danger  { background: rgba(239, 68, 68, 0.1); border-color: var(--bh-danger); color: var(--bh-danger); }
.bh-alert-warning { background: rgba(245, 158, 11, 0.1); border-color: var(--bh-warning); color: var(--bh-warning); }
.bh-alert-info    { background: rgba(14, 165, 233, 0.1); border-color: var(--bh-info); color: var(--bh-info); }

/* =============================
   12. MODAL
   ============================= */
.bh-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bh-modal-backdrop.open { display: flex; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.bh-modal {
  background: var(--bh-dark-card);
  border: 1px solid var(--bh-dark-border);
  border-radius: var(--bh-radius-xl);
  box-shadow: var(--bh-shadow-lg);
  width: 100%;
  max-width: 540px;
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.bh-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bh-dark-border);
}

.bh-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.bh-modal-close {
  background: none;
  border: none;
  color: var(--bh-text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--bh-transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.bh-modal-close:hover { background: rgba(255,255,255,0.08); color: var(--bh-text-primary); }

.bh-modal-body { padding: 24px; }
.bh-modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--bh-dark-border);
}

/* =============================
   13. AVATAR DE PERFIL
   ============================= */
.bh-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bh-dark-border);
}

.bh-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bh-gradient-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bh-dark);
  border: 2px solid var(--bh-dark-border);
  flex-shrink: 0;
}

/* =============================
   14. ESTRELLAS DE CALIFICACIÓN
   ============================= */
.bh-stars {
  display: flex;
  gap: 2px;
  color: var(--bh-gold);
  font-size: 0.9rem;
}

/* =============================
   15. MICROSITIO PÚBLICO DE BARBERÍA
   ============================= */
.barberia-portada {
  height: 300px;
  background: var(--bh-gradient-dark);
  border-radius: var(--bh-radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.barberia-portada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.barberia-portada-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.barberia-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--bh-radius-md);
  object-fit: cover;
  border: 3px solid var(--bh-gold);
  box-shadow: var(--bh-shadow-gold);
}

/* =============================
   16. PÁGINA PÚBLICA - DIRECTORIO
   ============================= */
.bh-public-hero {
  background: var(--bh-gradient-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
}

.bh-public-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(200, 169, 110, 0.12) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { transform: translate(-10%, -10%) scale(1); }
  to   { transform: translate(10%, 10%) scale(1.1); }
}

.bh-public-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  position: relative;
}

.bh-public-hero h1 .highlight {
  background: var(--bh-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bh-public-hero p.subtitle {
  font-size: 1.1rem;
  color: var(--bh-text-secondary);
  max-width: 520px;
  margin: 16px auto 32px;
  position: relative;
}

/* Barra de búsqueda en hero */
.bh-search-bar {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.bh-search-bar input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-radius: 999px;
  color: var(--bh-text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  padding: 14px 56px 14px 24px;
  outline: none;
  transition: var(--bh-transition);
  backdrop-filter: blur(8px);
}

.bh-search-bar input:focus {
  border-color: var(--bh-gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.2), var(--bh-shadow-gold);
}

.bh-search-bar .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bh-gold);
  font-size: 1.1rem;
  pointer-events: none;
}

/* Tarjeta de barbería en directorio */
.barberia-card {
  background: var(--bh-gradient-card);
  border: 1px solid var(--bh-dark-border);
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
  transition: var(--bh-transition);
  cursor: pointer;
}

.barberia-card:hover {
  border-color: rgba(200, 169, 110, 0.35);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--bh-shadow-lg), var(--bh-shadow-gold);
}

.barberia-card .card-cover {
  height: 160px;
  background: var(--bh-gradient-dark);
  position: relative;
  overflow: hidden;
}

.barberia-card .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--bh-transition);
}

.barberia-card:hover .card-cover img { transform: scale(1.05); }

.barberia-card .card-body {
  padding: 18px;
}

/* Tarjeta de Barbero */
.barbero-card {
  background: var(--bh-gradient-card);
  border: 1px solid var(--bh-dark-border);
  border-radius: var(--bh-radius-lg);
  padding: 20px;
  text-align: center;
  transition: var(--bh-transition);
}

.barbero-card:hover {
  border-color: rgba(200, 169, 110, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--bh-shadow-gold);
}

.barbero-card .barbero-foto {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bh-gold);
  margin: 0 auto 12px;
  box-shadow: var(--bh-shadow-gold);
}

/* =============================
   17. SCROLLBAR GLOBAL
   ============================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bh-dark-2); }
::-webkit-scrollbar-thumb { background: rgba(200, 169, 110, 0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 169, 110, 0.45); }

/* =============================
   18. BACK TO TOP
   ============================= */
.bh-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--bh-gradient-gold);
  border: none;
  border-radius: 50%;
  color: var(--bh-dark);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--bh-shadow-gold);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--bh-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bh-back-to-top.visible { opacity: 1; transform: translateY(0); }
.bh-back-to-top:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 28px rgba(200, 169, 110, 0.5); }

/* =============================
   19. LOADING SPINNER
   ============================= */
.bh-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(200, 169, 110, 0.2);
  border-top-color: var(--bh-gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================
   20. EMPTY STATE
   ============================= */
.bh-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--bh-text-muted);
}
.bh-empty-state i { font-size: 3rem; display: block; margin-bottom: 12px; opacity: 0.5; }
.bh-empty-state h3 { color: var(--bh-text-secondary); margin-bottom: 8px; }

/* =============================
   21. TOAST NOTIFICATIONS
   ============================= */
.bh-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bh-toast {
  padding: 14px 20px;
  background: var(--bh-dark-card);
  border: 1px solid var(--bh-dark-border);
  border-radius: var(--bh-radius-md);
  box-shadow: var(--bh-shadow-lg);
  font-size: 0.9rem;
  color: var(--bh-text-primary);
  animation: toastIn 0.3s ease;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =============================
   22. UTILIDADES
   ============================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm { display: flex; align-items: center; gap: 8px; }
.flex-gap-md { display: flex; align-items: center; gap: 16px; }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 28px; }

.p-0 { padding: 0 !important; }

.w-full { width: 100%; }

/* =============================
   22. TABLE RESPONSIVE (base)
   ============================= */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =============================
   23. ANIMACIONES GLOBALES
    ============================= */

/* Fade-in de página */
.bh-content {
  animation: pageFadeIn 0.4s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade-in para contenido público */
.bh-public-hero {
  animation: heroFadeIn 0.6s ease;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger entrance para tarjetas en grid */
.bh-directory-grid .barberia-card,
.bh-kpi-card,
.grid-2 > .bh-card,
.grid-3 > .bh-card,
.grid-4 > .bh-card {
  animation: cardFadeIn 0.5s ease backwards;
}
.bh-directory-grid .barberia-card:nth-child(1),
.bh-kpi-card:nth-child(1),
.grid-2 > .bh-card:nth-child(1),
.grid-3 > .bh-card:nth-child(1),
.grid-4 > .bh-card:nth-child(1) { animation-delay: 0.05s; }
.bh-directory-grid .barberia-card:nth-child(2),
.bh-kpi-card:nth-child(2),
.grid-2 > .bh-card:nth-child(2),
.grid-3 > .bh-card:nth-child(2),
.grid-4 > .bh-card:nth-child(2) { animation-delay: 0.1s; }
.bh-directory-grid .barberia-card:nth-child(3),
.bh-kpi-card:nth-child(3),
.grid-3 > .bh-card:nth-child(3),
.grid-4 > .bh-card:nth-child(3) { animation-delay: 0.15s; }
.bh-directory-grid .barberia-card:nth-child(4),
.grid-4 > .bh-card:nth-child(4) { animation-delay: 0.2s; }
.bh-directory-grid .barberia-card:nth-child(5) { animation-delay: 0.25s; }
.bh-directory-grid .barberia-card:nth-child(6) { animation-delay: 0.3s; }
.bh-directory-grid .barberia-card:nth-child(7) { animation-delay: 0.35s; }
.bh-directory-grid .barberia-card:nth-child(8) { animation-delay: 0.4s; }
.bh-directory-grid .barberia-card:nth-child(9) { animation-delay: 0.45s; }
.bh-directory-grid .barberia-card:nth-child(10) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal - se animan al entrar en viewport */
.bh-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.bh-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse animation para badges y notificaciones */
.bh-badge-gold {
  animation: none;
}
.bh-notif-count {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Hover glow mejorado para cards */
.bh-card:hover,
.barberia-card:hover,
.barbero-card:hover {
  box-shadow: var(--bh-shadow-lg), 0 0 20px rgba(200, 169, 110, 0.08);
}

/* Gradient text utility */
.text-gradient-gold {
  background: var(--bh-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle background glow for main content */
.bh-content::before {
  content: '';
  position: fixed;
  top: 0; right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(200, 169, 110, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Custom select arrow */
select.bh-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%235a5a6e' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
select.bh-form-control:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23c8a96e' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
}

/* Empty state with icon circle */
.bh-empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--bh-gold);
}

/* Button interaction refinements */
.btn-bh:active {
  transform: scale(0.97);
}
.btn-bh-gold:active {
  box-shadow: 0 2px 10px rgba(200, 169, 110, 0.3);
}

/* Sidebar - subtle section glow on hover */
.sidebar-section-label {
  position: relative;
}
.sidebar-section-label::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 20px;
  width: 24px;
  height: 1px;
  background: rgba(200, 169, 110, 0.15);
  border-radius: 2px;
}

/* Skeleton loading placeholder */
.bh-skeleton {
  background: linear-gradient(90deg, var(--bh-dark-3) 25%, var(--bh-dark-2) 50%, var(--bh-dark-3) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--bh-radius-sm);
}
@keyframes skeletonShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Micro-interacción: icono gira en hover en sidebar */
.sidebar-link:hover .sidebar-icon i {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}

/* Transición suave en tablas */
.bh-table tbody tr {
  transition: background 0.2s ease, transform 0.2s ease;
}
.bh-table tbody tr:hover {
  transform: translateX(4px);
}

/* =============================
   24. RESPONSIVE
    ============================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Sidebar toggle: oculto por defecto en PC (>= 992px) */
#bh-sidebar-toggle { display: none; }

/* Overlay de la barra lateral en móvil */
.bh-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bh-sidebar-overlay.active {
  display: block !important;
  opacity: 1;
}

@media (max-width: 992px) {
  .bh-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100vh;
    overflow-x: hidden !important;
  }

  #bh-sidebar-toggle { display: flex !important; align-items: center; justify-content: center; }

  .bh-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    z-index: 1000 !important;
    background: #181412 !important;
    border-right: 1px solid rgba(200, 138, 66, 0.25) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    overflow-y: auto !important;
  }
  
  .bh-sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .bh-content {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    flex: 1;
  }

  .grid-3, .grid-2, .grid-4, .dashboard-main-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .bh-public-hero { padding: 40px 16px 32px; }

  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* KPIs en columna */
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:repeat(auto-fit,minmax(200px,1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Page header - apilar botones */
  .bh-page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .bh-page-header .flex-gap-sm {
    flex-wrap: wrap;
  }
  .bh-page-header .flex-gap-sm .btn-bh {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  /* Modales a pantalla completa */
  .bh-modal-content {
    max-width: 94vw !important;
    margin: 10px !important;
    padding: 20px !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Notificaciones dropdown más angosto */
  .bh-notif-dropdown {
    width: calc(100vw - 32px) !important;
    right: -60px;
  }

  /* Tablas horizontal scroll obligatorio */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }

  /* Navbar mejorado para móvil */
  .bh-navbar {
    padding: 0 12px !important;
  }
  .bh-navbar .brand span {
    display: none;
  }

  /* Card padding reducido */
  .bh-card {
    padding: 16px;
  }
  .bh-card .bh-card-header {
    flex-direction: column;
    gap: 8px;
  }

  /* Tabla celdas con font más chico en móvil */
  .bh-table th,
  .bh-table td {
    padding: 8px 6px !important;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .bh-content { padding: 12px; }

  .bh-page-header h1 { font-size: 1.2rem; }
  .bh-page-header p { font-size: 0.8rem; }

  .bh-kpi-card { padding: 14px; }
  .bh-kpi-card .bh-kpi-value { font-size: 1.2rem; }

  .bh-card { padding: 12px; }
  .bh-card .bh-card-title { font-size: 0.9rem; }
  .bh-card-header .btn-bh { width: 100%; justify-content: center; }

  form div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .bh-modal-content {
    padding: 16px !important;
  }
  .bh-modal-header h3 { font-size: 1rem; }

  .bh-table th,
  .bh-table td {
    padding: 6px 4px !important;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .btn-bh { font-size: 0.8rem; padding: 8px 14px; }
  .btn-bh-sm { font-size: 0.75rem; padding: 6px 10px; }

  .bh-filter-bar { flex-direction: column; align-items: stretch; }
  .bh-filter-bar .bh-form-control { max-width: 100%; }

  .bh-form-group input, .bh-form-group select, .bh-form-group textarea {
    font-size: 16px !important;
  }
}

/* =============================================
   CALENDARIO INTERACTIVO - Barber Hub
   ============================================= */
.bh-cal-wrap {
    background: var(--bh-dark-card);
    border-radius: var(--bh-radius-lg);
    border: 1px solid var(--bh-dark-border);
    padding: 24px;
    max-width: 520px;
}

/* Loading State */
.bh-cal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 24px;
    color: var(--bh-text-secondary);
    font-size: 0.9rem;
}
.bh-cal-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bh-dark-border);
    border-top-color: var(--bh-gold);
    border-radius: 50%;
    animation: bhSpin 0.8s linear infinite;
}
.bh-cal-spinner-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes bhSpin { to { transform: rotate(360deg); } }

/* Error State */
.bh-cal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px;
    color: var(--bh-danger);
    font-size: 0.9rem;
    text-align: center;
}
.bh-cal-error i { font-size: 1.8rem; opacity: 0.6; }
.bh-cal-retry {
    background: transparent;
    border: 1px solid var(--bh-danger);
    color: var(--bh-danger);
    padding: 6px 18px;
    border-radius: var(--bh-radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    transition: .2s;
}
.bh-cal-retry:hover { background: rgba(239,68,68,0.12); }

/* Loading inline */
.bh-cal-loading-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--bh-text-muted);
    font-size: 0.85rem;
}

/* Error inline */
.bh-cal-error-msg {
    text-align: center;
    padding: 20px;
    color: var(--bh-text-muted);
    font-size: 0.85rem;
}
.bh-cal-error-msg button {
    background: none;
    border: none;
    color: var(--bh-gold);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

/* Header / Nav */
.bh-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.bh-cal-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.bh-cal-nav {
    background: transparent;
    border: 1px solid var(--bh-dark-border);
    color: var(--bh-text-primary);
    font-size: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}
.bh-cal-nav:hover {
    background: rgba(200, 169, 110, 0.1);
    border-color: var(--bh-gold);
    color: var(--bh-gold);
}

/* Legend */
.bh-cal-legend {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.bh-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--bh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bh-cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.bh-cal-dot-ok { background: var(--bh-success); }
.bh-cal-dot-warn { background: var(--bh-warning); }
.bh-cal-dot-full { background: var(--bh-danger); }
.bh-cal-dot-closed { background: var(--bh-text-muted); opacity: 0.4; }

/* Days Header */
.bh-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--bh-text-muted);
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Day Grid */
.bh-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.bh-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: .15s ease;
    position: relative;
    border: 1px solid transparent;
}
.bh-cal-day-empty { cursor: default; }
.bh-cal-day-past { color: var(--bh-text-muted); opacity: 0.3; cursor: not-allowed; }
.bh-cal-day-closed { color: var(--bh-text-muted); opacity: 0.35; cursor: not-allowed; }
.bh-cal-day-today { font-weight: 700; }
.bh-cal-day-today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bh-gold);
}
.bh-cal-day-ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--bh-success);
    font-weight: 600;
}
.bh-cal-day-ok:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.3);
}
.bh-cal-day-warn {
    background: rgba(245, 158, 11, 0.1);
    color: var(--bh-warning);
    font-weight: 600;
}
.bh-cal-day-warn:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.3);
}
.bh-cal-day-full {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    font-weight: 500;
}
.bh-cal-day-full:hover {
    background: rgba(239,68,68,0.14);
    border-color: rgba(239,68,68,0.2);
}
.bh-cal-day-selected {
    background: var(--bh-gold) !important;
    color: var(--bh-dark) !important;
    font-weight: 700 !important;
    border-color: var(--bh-gold) !important;
    box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.25);
}
.bh-cal-day-selected::after { display: none; }

/* Hint text */
.bh-cal-hint {
    text-align: center;
    color: var(--bh-text-muted);
    font-size: 0.82rem;
    padding: 12px 0;
    opacity: 0.7;
}
.bh-cal-hint i { margin-right: 4px; }

/* Step titles */
.bh-cal-step-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--bh-text-primary);
}
.bh-cal-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bh-gold);
    color: var(--bh-dark);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Info section - date display */
.bh-cal-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bh-dark-border);
}
.bh-cal-info-date {
    font-size: 0.85rem;
    color: var(--bh-text-secondary);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(200, 169, 110, 0.06);
    border-radius: var(--bh-radius-sm);
    border: 1px solid rgba(200, 169, 110, 0.1);
}
.bh-cal-info-date i { color: var(--bh-gold); margin-right: 6px; }

/* Barber buttons */
.bh-cal-barberos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bh-cal-barbero-btn {
    background: var(--bh-dark-2);
    border: 1px solid var(--bh-dark-border);
    color: var(--bh-text-primary);
    padding: 10px 14px;
    border-radius: var(--bh-radius-md);
    cursor: pointer;
    font-size: 0.82rem;
    transition: .2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bh-cal-barbero-btn:hover {
    border-color: rgba(200, 169, 110, 0.4);
    background: rgba(200, 169, 110, 0.06);
}
.bh-cal-barbero-btn.active {
    background: var(--bh-gold);
    color: var(--bh-dark);
    border-color: var(--bh-gold);
    font-weight: 600;
}
.bh-cal-barbero-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--bh-dark-border);
    flex-shrink: 0;
}
.bh-cal-barbero-btn.active .bh-cal-barbero-avatar { border-color: var(--bh-dark); }
.bh-cal-barbero-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bh-dark-3);
    color: var(--bh-gold);
    font-size: 0.65rem;
    font-weight: 700;
}
.bh-cal-barbero-btn.active .bh-cal-barbero-initials { color: var(--bh-dark); background: rgba(0,0,0,0.15); }
.bh-cal-barbero-nombre { white-space: nowrap; }

/* Slots section */
.bh-cal-slots {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bh-dark-border);
}
.bh-cal-slots-count {
    font-size: 0.78rem;
    color: var(--bh-text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bh-cal-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
}
.bh-cal-slot {
    padding: 10px 8px;
    border-radius: var(--bh-radius-sm);
    border: 1px solid var(--bh-dark-border);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: .15s ease;
    text-align: center;
    background: transparent;
    font-family: 'Outfit', sans-serif;
}
.bh-cal-slot i { display: block; font-size: 0.75rem; margin-bottom: 3px; }
.bh-cal-slot-free {
    background: rgba(34,197,94,0.06);
    color: var(--bh-text-primary);
    border-color: rgba(34,197,94,0.15);
}
.bh-cal-slot-free:hover {
    border-color: var(--bh-gold);
    color: var(--bh-gold);
    background: rgba(200, 169, 110, 0.08);
}
.bh-cal-slot-free.selected {
    background: var(--bh-gold);
    color: var(--bh-dark);
    border-color: var(--bh-gold);
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.25);
}
.bh-cal-slot-free.selected i { color: var(--bh-dark); }
.bh-cal-slot-ocupado {
    background: rgba(255,255,255,0.02);
    color: var(--bh-text-muted);
    cursor: not-allowed;
    opacity: 0.4;
    text-decoration: line-through;
    border-color: transparent;
}

/* No data */
.bh-cal-no-data {
    text-align: center;
    padding: 24px 16px;
    color: var(--bh-text-muted);
    font-size: 0.85rem;
}
.bh-cal-no-data i { display: block; font-size: 1.5rem; margin-bottom: 8px; opacity: 0.5; }

/* Summary bar */
.bh-cal-summary {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(200, 169, 110, 0.1) 0%, rgba(200, 169, 110, 0.04) 100%);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: var(--bh-radius-md);
    font-size: 0.82rem;
    color: var(--bh-gold);
    font-weight: 600;
    flex-wrap: wrap;
}
.bh-cal-summary i { font-size: 0.9rem; }
.bh-cal-summary-sep {
    width: 1px;
    height: 14px;
    background: rgba(200, 169, 110, 0.25);
    margin: 0 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .bh-cal-wrap { padding: 16px; }
    .bh-cal-day { font-size: 0.78rem; border-radius: 8px; }
    .bh-cal-slots-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; }
    .bh-cal-slot { padding: 8px 6px; font-size: 0.82rem; }
    .bh-cal-legend { gap: 8px; }
    .bh-cal-legend-item { font-size: 0.65rem; }
    .bh-cal-barberos { gap: 6px; }
    .bh-cal-barbero-btn { padding: 8px 10px; font-size: 0.78rem; }
    .bh-cal-barbero-avatar { width: 24px; height: 24px; }
}

/* =============================
   24. UTILIDADES DE BOTSTRAP
   ============================= */
.d-lg-block { display: none; }
.me-2 { margin-right: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.bh-cal-step-title {
    margin-bottom: 12px;
    color: var(--bh-text-primary);
}
.bh-cal-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bh-gold);
    color: var(--bh-dark);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Info section - date display */
.bh-cal-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bh-dark-border);
}
.bh-cal-info-date {
    font-size: 0.85rem;
    color: var(--bh-text-secondary);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(200, 169, 110, 0.06);
    border-radius: var(--bh-radius-sm);
    border: 1px solid rgba(200, 169, 110, 0.1);
}
.bh-cal-info-date i { color: var(--bh-gold); margin-right: 6px; }

/* Barber buttons */
.bh-cal-barberos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bh-cal-barbero-btn {
    background: var(--bh-dark-2);
    border: 1px solid var(--bh-dark-border);
    color: var(--bh-text-primary);
    padding: 10px 14px;
    border-radius: var(--bh-radius-md);
    cursor: pointer;
    font-size: 0.82rem;
    transition: .2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bh-cal-barbero-btn:hover {
    border-color: rgba(200, 169, 110, 0.4);
    background: rgba(200, 169, 110, 0.06);
}
.bh-cal-barbero-btn.active {
    background: var(--bh-gold);
    color: var(--bh-dark);
    border-color: var(--bh-gold);
    font-weight: 600;
}
.bh-cal-barbero-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--bh-dark-border);
    flex-shrink: 0;
}
.bh-cal-barbero-btn.active .bh-cal-barbero-avatar { border-color: var(--bh-dark); }
.bh-cal-barbero-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bh-dark-3);
    color: var(--bh-gold);
    font-size: 0.65rem;
    font-weight: 700;
}
.bh-cal-barbero-btn.active .bh-cal-barbero-initials { color: var(--bh-dark); background: rgba(0,0,0,0.15); }
.bh-cal-barbero-nombre { white-space: nowrap; }

/* Slots section */
.bh-cal-slots {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bh-dark-border);
}
.bh-cal-slots-count {
    font-size: 0.78rem;
    color: var(--bh-text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bh-cal-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
}
.bh-cal-slot {
    padding: 10px 8px;
    border-radius: var(--bh-radius-sm);
    border: 1px solid var(--bh-dark-border);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: .15s ease;
    text-align: center;
    background: transparent;
    font-family: 'Outfit', sans-serif;
}
.bh-cal-slot i { display: block; font-size: 0.75rem; margin-bottom: 3px; }
.bh-cal-slot-free {
    background: rgba(34,197,94,0.06);
    color: var(--bh-text-primary);
    border-color: rgba(34,197,94,0.15);
}
.bh-cal-slot-free:hover {
    border-color: var(--bh-gold);
    color: var(--bh-gold);
    background: rgba(200, 169, 110, 0.08);
}
.bh-cal-slot-free.selected {
    background: var(--bh-gold);
    color: var(--bh-dark);
    border-color: var(--bh-gold);
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.25);
}
.bh-cal-slot-free.selected i { color: var(--bh-dark); }
.bh-cal-slot-ocupado {
    background: rgba(255,255,255,0.02);
    color: var(--bh-text-muted);
    cursor: not-allowed;
    opacity: 0.4;
    text-decoration: line-through;
    border-color: transparent;
}

/* No data */
.bh-cal-no-data {
    text-align: center;
    padding: 24px 16px;
    color: var(--bh-text-muted);
    font-size: 0.85rem;
}
.bh-cal-no-data i { display: block; font-size: 1.5rem; margin-bottom: 8px; opacity: 0.5; }

/* Summary bar */
.bh-cal-summary {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(200, 169, 110, 0.1) 0%, rgba(200, 169, 110, 0.04) 100%);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: var(--bh-radius-md);
    font-size: 0.82rem;
    color: var(--bh-gold);
    font-weight: 600;
    flex-wrap: wrap;
}
.bh-cal-summary i { font-size: 0.9rem; }
.bh-cal-summary-sep {
    width: 1px;
    height: 14px;
    background: rgba(200, 169, 110, 0.25);
    margin: 0 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .bh-cal-wrap { padding: 16px; }
    .bh-cal-day { font-size: 0.78rem; border-radius: 8px; }
    .bh-cal-slots-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; }
    .bh-cal-slot { padding: 8px 6px; font-size: 0.82rem; }
    .bh-cal-legend { gap: 8px; }
    .bh-cal-legend-item { font-size: 0.65rem; }
    .bh-cal-barberos { gap: 6px; }
    .bh-cal-barbero-btn { padding: 8px 10px; font-size: 0.78rem; }
    .bh-cal-barbero-avatar { width: 24px; height: 24px; }
}

/* =============================
   24. UTILIDADES DE BOTSTRAP
   ============================= */
.d-lg-block { display: none; }
.me-2 { margin-right: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }

@media (min-width: 992px) {
    .d-lg-block { display: block !important; }
}

/* Modal base */
.bh-modal-content {
    background: var(--bh-dark-card);
    border: 1px solid var(--bh-dark-border);
    border-radius: var(--bh-radius-md);
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

/* =============================
   25. RESPONSIVE MOBILE PANELS & TOOLBARS
   ============================= */
@media (max-width: 992px) {
  :root {
    --navbar-height: 48px;
    --sidebar-width: 280px;
  }

  .bh-content {
    padding: 14px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .bh-navbar {
    padding: 0 10px !important;
    height: 48px !important;
  }

  .bh-navbar .brand span {
    font-size: 0.95rem !important;
  }

  .bh-breadcrumb {
    font-size: 0.78rem !important;
    padding-left: 8px !important;
    margin-left: 8px !important;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .bh-card {
    padding: 16px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .bh-btn-group {
    width: 100%;
    justify-content: space-between;
  }

  .bh-btn-group button {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
}
