/* ============================================
   SALON DE BELLEZA — LUXURY DESIGN SYSTEM
   Dark Elegance + Gold + Rose
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold:        #C9A84C;
  --gold-light:  #FFD700;
  --gold-dim:    #8B6914;
  --rose:        #E8B4B8;
  --rose-dark:   #C4818A;
  --bg:          #080808;
  --bg2:         #0f0f0f;
  --bg3:         #161616;
  --card:        rgba(255,255,255,0.04);
  --card-border: rgba(201,168,76,0.2);
  --text:        #F0EAE0;
  --text-muted:  #888;
  --text-dim:    #555;
  --success:     #4ade80;
  --error:       #f87171;
  --warning:     #fbbf24;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.2);
  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--text);
}
.serif { font-family: 'Playfair Display', serif; }
.gold-text { color: var(--gold); }
.muted { color: var(--text-muted); }

/* ─── Layout ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 80px 0; }
.section-sm { padding: 40px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* ─── Glass Cards ────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}
.card:hover { border-color: rgba(201,168,76,0.45); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.card-sm { padding: 16px 20px; border-radius: var(--radius-sm); }

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.55);
  color: #000;
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.btn-danger { background: rgba(248,113,113,0.15); color: var(--error); border: 1px solid rgba(248,113,113,0.3); }
.btn-danger:hover { background: var(--error); color: #000; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ─── Forms ──────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
option { background: #111; }

/* ─── Navbar ─────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 0 20px;
  height: 70px;
  display: flex; align-items: center;
  transition: var(--transition);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.nav-brand span { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(201,168,76,0.08); }
.nav-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-muted);
}
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,var(--gold),var(--rose));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #000;
}
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ─── Hero ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(232,180,184,0.06) 0%, transparent 60%),
              linear-gradient(180deg, #080808 0%, #0d0d0d 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 70px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 480px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-float {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 45vw; max-width: 600px;
  opacity: 0.15;
  pointer-events: none;
}

/* ─── Section Title ──────────────────────────── */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; }
.section-title p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }
.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg,var(--gold),var(--rose));
  margin: 16px auto;
  border-radius: 2px;
}

/* ─── Service Cards ──────────────────────────── */
.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--shadow-gold);
}
.service-icon {
  font-size: 2.5rem; margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.4));
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.service-price {
  font-size: 1.4rem; font-weight: 700; color: var(--gold);
  font-family: 'Playfair Display', serif;
}
.service-duration { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

/* ─── Badge / Chip ───────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-gold    { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-success { background: rgba(74,222,128,0.15); color: var(--success); }
.badge-error   { background: rgba(248,113,113,0.15); color: var(--error); }
.badge-warning { background: rgba(251,191,36,0.15); color: var(--warning); }
.badge-muted   { background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* ─── Tables ─────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--card-border); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 14px 18px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,0.06);
  border-bottom: 1px solid var(--card-border);
}
td { padding: 14px 18px; font-size: 0.88rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Stat Cards ─────────────────────────────── */
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 0 0 0 100%;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; margin: 6px 0; }
.stat-sub { font-size: 0.8rem; color: var(--text-dim); }
.stat-icon { position: absolute; right: 20px; top: 20px; font-size: 1.6rem; opacity: 0.4; }

/* ─── Sidebar Layout (Admin/Dashboard) ──────── */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; min-height: 100vh;
  background: var(--bg2);
  border-right: 1px solid rgba(201,168,76,0.1);
  position: fixed; left: 0; top: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  transition: var(--transition);
}
.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-nav { padding: 16px 12px; }
.sidebar-section { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; padding: 12px 12px 6px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.88rem;
  transition: var(--transition); margin-bottom: 2px;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
}
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-footer { padding: 20px 12px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; }
.sidebar-user-role { font-size: 0.72rem; color: var(--text-dim); }

.main-content { margin-left: 260px; flex: 1; padding: 32px; min-height: 100vh; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 1.8rem; }
.page-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ─── Toast / Alertas ────────────────────────── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: #1a1a1a;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-width: 280px; max-width: 400px;
  box-shadow: var(--shadow);
  animation: slideIn .3s ease;
  font-size: 0.88rem;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--error); }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ─── Modal ──────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #111;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px; width: 100%;
  position: relative;
  animation: modalIn .3s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.3rem; cursor: pointer; transition: var(--transition);
}
.modal-close:hover { color: var(--text); }
@keyframes modalIn { from { opacity:0; transform: scale(.95) translateY(10px); } to { opacity:1; transform: scale(1) translateY(0); } }

/* ─── Stepper (agendar cita) ─────────────────── */
.stepper { display: flex; align-items: center; margin-bottom: 40px; }
.step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex: 1;
}
.step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 2px solid var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--text-dim);
  transition: var(--transition);
}
.step.active .step-dot { background: var(--gold); border-color: var(--gold); color: #000; }
.step.done .step-dot { background: var(--success); border-color: var(--success); color: #000; }
.step-label { font-size: 0.72rem; color: var(--text-dim); text-align: center; }
.step.active .step-label { color: var(--gold); }
.step-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); margin: 0 -10px; margin-bottom: 22px; }

/* ─── Time Slots ─────────────────────────────── */
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); gap: 10px; }
.slot {
  padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.85rem;
  cursor: pointer; transition: var(--transition);
  background: rgba(255,255,255,0.03);
}
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.selected { background: rgba(201,168,76,0.15); border-color: var(--gold); color: var(--gold); font-weight: 600; }
.slot.taken { opacity: .3; cursor: not-allowed; }

/* ─── Calendar mini ──────────────────────────── */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-nav h4 { font-size: 0.9rem; color: var(--gold); }
.calendar-nav button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; }
.calendar-nav button:hover { color: var(--gold); }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-day-name { text-align: center; font-size: 0.7rem; color: var(--text-dim); padding: 4px; font-weight: 600; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; border-radius: 50%; cursor: pointer;
  transition: var(--transition);
}
.cal-day:hover:not(.disabled) { background: rgba(201,168,76,0.15); color: var(--gold); }
.cal-day.today { background: rgba(201,168,76,0.1); color: var(--gold); }
.cal-day.selected { background: var(--gold); color: #000; font-weight: 700; }
.cal-day.disabled { color: var(--text-dim); cursor: not-allowed; opacity: .4; }
.cal-day.empty { cursor: default; }

/* ─── Login page ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 70%, rgba(201,168,76,0.06) 0%, transparent 60%),
              var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%; max-width: 440px;
  backdrop-filter: blur(20px);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 { font-size: 1.6rem; color: var(--gold); }
.auth-logo p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.auth-tabs { display: flex; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 28px; }
.auth-tab {
  flex: 1; text-align: center; padding: 9px;
  border-radius: 6px; cursor: pointer;
  font-size: 0.87rem; font-weight: 500;
  color: var(--text-muted); transition: var(--transition);
}
.auth-tab.active { background: rgba(201,168,76,0.15); color: var(--gold); }
.divider-or { text-align: center; color: var(--text-dim); font-size: 0.8rem; margin: 20px 0; position: relative; }
.divider-or::before, .divider-or::after {
  content: ''; position: absolute; top: 50%; width: 42%;
  height: 1px; background: rgba(255,255,255,0.08);
}
.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

/* ─── Floating label input ───────────────────── */
.input-group { position: relative; margin-bottom: 20px; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 0.95rem; pointer-events: none;
}
.input-icon-right {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); cursor: pointer;
}
.input-group .form-control { padding-left: 40px; }
.input-group.has-icon-right .form-control { padding-right: 40px; }

/* ─── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .4s; }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ─── Footer ─────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold); margin-bottom: 12px; }
.footer-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.footer-title { font-weight: 600; color: var(--text); margin-bottom: 14px; font-size: 0.88rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero-float { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #0f0f0f; border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 12px;
  }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px; }
  .auth-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ─── Botón de menú (móvil) ──────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 300;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--card-border);
  color: var(--gold); font-size: 1.35rem; line-height: 1;
  cursor: pointer; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.sidebar-toggle:active { transform: scale(0.94); }

@media (max-width: 768px) {
  .sidebar-toggle { display: flex; }
  .main-content { padding-top: 76px; }
  .sidebar.open { box-shadow: 6px 0 30px rgba(0,0,0,0.6); }
  /* Tablas y encabezados más compactos */
  th, td { padding: 11px 12px; font-size: 0.82rem; }
  .page-header h1 { font-size: 1.45rem; }
  .page-header { margin-bottom: 22px; }
  .card { padding: 20px; }
}

/* ─── Tablas que se convierten en tarjetas (móvil) ─── */
@media (max-width: 700px) {
  .table-stack { border: none; }
  .table-stack thead { display: none; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr {
    border: 1px solid var(--card-border); border-radius: var(--radius-sm);
    margin-bottom: 12px; padding: 6px 2px; background: rgba(255,255,255,0.02);
  }
  .table-stack tr:hover td { background: none; }
  .table-stack td {
    border: none; display: flex; justify-content: space-between;
    align-items: center; gap: 14px; padding: 9px 14px; text-align: right;
  }
  .table-stack td::before {
    content: attr(data-label);
    color: var(--gold); font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.6px;
    text-align: left; flex-shrink: 0;
  }
  .table-stack td:empty { display: none; }
}

/* ─── Utilidades extras ──────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-auto { margin-top: auto; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-lg { margin-bottom: 24px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.rounded-full { border-radius: 50%; }
.overflow-hidden { overflow: hidden; }

/* ── Badge de notificaciones en el sidebar ── */
.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Resalte breve de una fila de cita recién llegada */
@keyframes cita-nueva-flash {
  0%   { background: rgba(201,168,76,0.28); }
  100% { background: transparent; }
}
tr.cita-nueva { animation: cita-nueva-flash 2.5s ease-out; }

/* ═══ Landing: Hero con imagen ═══ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-emblem {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 24px 60px rgba(201,168,76,0.20));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ═══ Landing: Tarjetas de especialidad con imagen ═══ */
.cat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--shadow-gold);
}
.cat-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  background: #100c09;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-body { padding: 24px; text-align: center; }
.cat-card-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cat-card-body p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }

/* ═══ Landing: galería "Nosotros" ═══ */
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-gallery figure {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: #100c09;
}
.about-gallery img { width: 100%; height: 100%; object-fit: cover; }
.about-gallery figure:nth-child(2) { margin-top: 24px; }
.about-gallery figure:nth-child(3) { margin-top: -24px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-emblem { max-width: 300px; }
  .hero p { margin-left: auto; margin-right: auto; }
}

/* ─── Miniatura de foto (admin: servicios / staff) ─── */
.ent-thumb {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, rgba(201,168,76,.18), rgba(232,180,184,.12));
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ent-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Avatar con foto (reemplaza la inicial cuando hay imagen) */
.nav-avatar.has-photo { padding: 0; overflow: hidden; }
.nav-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Foto en las tarjetas de servicio de la landing / agendar */
.service-photo {
  width: calc(100% + 48px); margin: -32px -24px 16px; height: 150px;
  object-fit: cover; display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}
.service-card { overflow: hidden; }

/* ─── Impresión / Guardar como PDF ─── */
.print-only { display: none; }
@media print {
  .sidebar, .navbar, #toast-container, .modal-overlay,
  .no-print, .btn, .gallery-filters, .stepper { display: none !important; }
  .layout { display: block !important; }
  .main-content { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
  body { background: #fff !important; color: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .table-wrap, .stat-card {
    background: #fff !important; border: 1px solid #ddd !important;
    box-shadow: none !important; break-inside: avoid;
  }
  h1, h2, h3, h4, strong { color: #111 !important; }
  p, td, th, span, div { color: #333 !important; }
  .stat-value, .gold-text, [style*="var(--gold)"] { color: #a8842a !important; }
  table { width: 100%; border-collapse: collapse; }
  th, td { border-bottom: 1px solid #eee !important; }
  a { color: #111 !important; text-decoration: none !important; }
  .print-only { display: block !important; }
}

/* ─── Galería admin ─── */
.admin-galeria-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
.admin-galeria-item {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--card-border);
}
.admin-galeria-item img { width: 100%; height: 100%; object-fit: cover; }
.admin-galeria-cat {
  position: absolute; left: 8px; bottom: 8px; font-size: .68rem; font-weight: 600;
  background: rgba(0,0,0,.6); color: var(--gold); padding: 3px 8px; border-radius: 50px;
  backdrop-filter: blur(4px);
}
.admin-galeria-del {
  position: absolute; top: 8px; right: 8px; border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.55);
  color: #fff; font-size: .85rem; opacity: 0; transition: var(--transition);
}
.admin-galeria-item:hover .admin-galeria-del { opacity: 1; }
.admin-galeria-del:hover { background: var(--error); }

/* ─── Galería en la landing ─── */
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.gallery-filter {
  background: transparent; border: 1px solid var(--card-border); color: var(--text-muted);
  padding: 8px 18px; border-radius: 50px; cursor: pointer; font-size: .85rem;
  font-family: 'Inter', sans-serif; transition: var(--transition);
}
.gallery-filter:hover { border-color: var(--gold); color: var(--gold); }
.gallery-filter.active { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #000; border-color: transparent; font-weight: 600; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.gallery-cell {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-border); cursor: pointer;
}
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-cell:hover img { transform: scale(1.08); }
.gallery-cell::after {
  content: '🔍'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,8,.45); opacity: 0; transition: var(--transition); font-size: 1.4rem;
}
.gallery-cell:hover::after { opacity: 1; }
.gallery-cap {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; font-size: .7rem; font-weight: 600;
  background: rgba(0,0,0,.6); color: var(--gold); padding: 3px 10px; border-radius: 50px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
