@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --rose-gold: #C9A87C;
  --rose-dark: #9E7A52;
  --rose-light: #EDD9C0;
  --rose-pale: #FAF4EE;
  --charcoal: #1E1A18;
  --warm-gray: #6B6259;
  --light-gray: #F0EAE3;
  --white: #FDFAF7;
  --danger: #C97C7C;
  --success: #7CC98B;
  --info: #7CB9C9;
  --warning: #C9B87C;
  --shadow-sm: 0 2px 8px rgba(30,26,24,0.08);
  --shadow-md: 0 4px 20px rgba(30,26,24,0.12);
  --shadow-lg: 0 12px 40px rgba(30,26,24,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w: 260px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--rose-pale);
  color: var(--charcoal);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

.display-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--charcoal);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.sidebar-logo {
  padding: 32px 24px 24px;
  border-bottom: 1px solid rgba(201,168,124,0.15);
}

.sidebar-logo .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rose-gold);
  letter-spacing: 0.05em;
  display: block;
}

.sidebar-logo .sub {
  font-size: 0.7rem;
  color: rgba(237,217,192,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.sidebar-user {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(201,168,124,0.1);
}

.sidebar-user .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-user .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user .info .name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rose-light);
}

.sidebar-user .info .esp {
  font-size: 0.72rem;
  color: rgba(237,217,192,0.5);
}

.sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

.nav-section {
  padding: 8px 24px 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(237,217,192,0.3);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(237,217,192,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  color: var(--rose-light);
  background: rgba(201,168,124,0.08);
  border-left-color: rgba(201,168,124,0.3);
}

.nav-item.active {
  color: var(--rose-gold);
  background: rgba(201,168,124,0.12);
  border-left-color: var(--rose-gold);
  font-weight: 500;
}

.nav-item .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(201,168,124,0.1);
}

/* ── MAIN CONTENT ────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--white);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201,168,124,0.15);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-title h1 {
  font-size: 1.4rem;
  font-weight: 500;
}

.topbar-title .breadcrumb {
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-top: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-content {
  padding: 32px;
  flex: 1;
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,168,124,0.1);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-gray);
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ── STAT CARDS ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid rgba(201,168,124,0.1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-gold), var(--rose-light));
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-top: 6px;
}

.stat-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose-gold);
  color: white;
}
.btn-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,124,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--rose-gold);
  border: 1.5px solid var(--rose-gold);
}
.btn-outline:hover {
  background: var(--rose-gold);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--warm-gray);
}
.btn-ghost:hover {
  background: var(--light-gray);
  color: var(--charcoal);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #b56060; }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* ── FORMS ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(201,168,124,0.25);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(201,168,124,0.15);
}

.form-control::placeholder { color: rgba(107,98,89,0.45); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A87C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-help { font-size: 0.75rem; color: var(--warm-gray); margin-top: 5px; }
.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 5px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

thead th {
  padding: 12px 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
  font-weight: 700;
  background: var(--light-gray);
  border-bottom: 1px solid rgba(201,168,124,0.15);
  text-align: left;
  white-space: nowrap;
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(201,168,124,0.08);
  font-size: 0.88rem;
  vertical-align: middle;
}

tbody tr:hover { background: rgba(201,168,124,0.04); }
tbody tr:last-child td { border-bottom: none; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-programado { background: rgba(201,168,124,0.15); color: var(--rose-dark); }
.badge-confirmado { background: rgba(124,185,201,0.15); color: #4A8A9E; }
.badge-en_proceso { background: rgba(155,124,201,0.15); color: #6B4A9E; }
.badge-completado { background: rgba(124,201,139,0.15); color: #3A8A4E; }
.badge-cancelado { background: rgba(201,124,124,0.15); color: #8A3A3A; }
.badge-no_asistio { background: rgba(160,160,160,0.15); color: #666; }
.badge-pendiente { background: rgba(201,184,124,0.15); color: #8A6E3A; }
.badge-exitosa { background: rgba(124,201,139,0.15); color: #3A8A4E; }
.badge-vencida { background: rgba(201,124,124,0.2); color: #8A3A3A; }

/* ── ALERTS & MESSAGES ───────────────────────────────────── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: rgba(124,201,139,0.15); color: #2E6E3C; border-left: 3px solid var(--success); }
.alert-error { background: rgba(201,124,124,0.15); color: #6E2E2E; border-left: 3px solid var(--danger); }
.alert-info { background: rgba(124,185,201,0.15); color: #2E5E6E; border-left: 3px solid var(--info); }
.alert-warning { background: rgba(201,184,124,0.15); color: #6E5E2E; border-left: 3px solid var(--warning); }

/* ── SEARCH BAR ──────────────────────────────────────────── */
.search-bar {
  position: relative;
  max-width: 320px;
}

.search-bar .form-control {
  padding-left: 38px;
}

.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--warm-gray);
  width: 16px;
  height: 16px;
}

/* ── CLIENTE CARD (lista) ────────────────────────────────── */
.cliente-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cliente-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(201,168,124,0.1);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.cliente-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,124,0.3);
}

.cliente-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-light), var(--rose-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--rose-dark);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--rose-light);
}

.cliente-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cliente-info .nombre {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.cliente-info .tel {
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-top: 2px;
}

.cliente-info .cumple {
  font-size: 0.75rem;
  color: var(--rose-gold);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── FICHA DETAIL ────────────────────────────────────────── */
.ficha-header {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2d2723 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.ficha-header::after {
  content: '✿';
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 6rem;
  opacity: 0.05;
  pointer-events: none;
}

.ficha-header .cliente-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--rose-light);
}

.ficha-header .servicio-name {
  font-size: 1rem;
  color: var(--rose-gold);
  margin-top: 4px;
}

.ficha-header .fecha-hora {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rose-gold), var(--rose-light));
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--rose-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid rgba(201,168,124,0.12);
  flex: 1;
}

/* ── LLAMADA CARD ────────────────────────────────────────── */
.llamada-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid rgba(201,168,124,0.1);
  border-left: 4px solid var(--rose-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.llamada-card.vencida {
  border-left-color: var(--danger);
  background: rgba(201,124,124,0.04);
}

.llamada-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warm-gray);
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.page-btn:hover { border-color: var(--rose-gold); color: var(--rose-gold); }
.page-btn.active { background: var(--rose-gold); color: white; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,26,24,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

/* ── LANDING PAGE ────────────────────────────────────────── */
.landing-page {
  background: var(--charcoal);
  min-height: 100vh;
  color: white;
}

.landing-nav {
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--rose-gold);
  letter-spacing: 0.05em;
}

.landing-hero {
  padding: 80px 60px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rose-gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--rose-gold);
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.hero-feature .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-gold);
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,124,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  backdrop-filter: blur(10px);
}

.hero-card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-gold);
  margin-bottom: 12px;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.hero-card-row:last-child { border-bottom: none; }

/* ── AUTH PAGES ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

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

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--rose-gold);
  display: block;
}

.auth-logo .tagline {
  font-size: 0.78rem;
  color: var(--warm-gray);
  margin-top: 4px;
}

/* ── CALENDAR ────────────────────────────────────────────── */
#calendar-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,168,124,0.1);
}

.fc .fc-toolbar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--charcoal);
}

.fc .fc-button-primary {
  background: var(--rose-gold) !important;
  border-color: var(--rose-gold) !important;
}

.fc .fc-button-primary:hover {
  background: var(--rose-dark) !important;
  border-color: var(--rose-dark) !important;
}

.fc .fc-today-button {
  background: transparent !important;
  border-color: var(--rose-gold) !important;
  color: var(--rose-gold) !important;
}

.fc .fc-daygrid-day.fc-day-today { background: rgba(201,168,124,0.07) !important; }
.fc .fc-event { border-radius: 4px; font-size: 0.78rem; }
.fc th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── CHARTS ──────────────────────────────────────────────── */
.chart-container { position: relative; height: 220px; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,124,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,124,0.5); }

/* ── MOBILE TOGGLE ───────────────────────────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rose-gold);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  align-items: center;
  justify-content: center;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-rose { color: var(--rose-gold); }
.text-muted { color: var(--warm-gray); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.text-sm { font-size: 0.8rem; }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.divider { height: 1px; background: var(--light-gray); margin: 20px 0; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--warm-gray);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  
  .sidebar.open {
    transform: translateX(0);
    width: 260px;
  }
  
  .main-content { margin-left: 0; }
  
  .sidebar-toggle { display: flex; }
  
  .topbar { padding: 14px 20px; }
  .page-content { padding: 20px; }
  
  .hero-title { font-size: 2.5rem; }
  .landing-hero { grid-template-columns: 1fr; padding: 40px 24px; gap: 40px; }
  .landing-nav { padding: 20px 24px; }
  
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  
  .ficha-header { padding: 20px; }
  .auth-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}

/* ── ANIMATE IN ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.4s ease forwards;
}

.fade-up-1 { animation-delay: 0.05s; opacity: 0; }
.fade-up-2 { animation-delay: 0.1s; opacity: 0; }
.fade-up-3 { animation-delay: 0.15s; opacity: 0; }
.fade-up-4 { animation-delay: 0.2s; opacity: 0; }

/* ── Perfil Page ───────────────────────────────────────────── */
.perfil-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .perfil-layout { grid-template-columns: 1fr; }
}
.perfil-preview-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.perfil-preview-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--rose-gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose-gold);
  background: var(--rose-pale);
}
.perfil-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.perfil-preview-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin-bottom: .25rem; }
.perfil-preview-business { font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem; }
.perfil-preview-bio { font-size: .825rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.5; }
.perfil-preview-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.perfil-stat { text-align: center; }
.perfil-stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--rose-gold); }
.perfil-stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── Confirm Delete Page ───────────────────────────────────── */
.confirm-delete-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.confirm-delete-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 3rem 2.5rem;
}
.confirm-delete-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.confirm-delete-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  margin-bottom: .75rem;
}
.confirm-delete-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.confirm-delete-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ── Extra Form Helpers ─────────────────────────────────────── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-help { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; display: block; }
.form-error { font-size: .8rem; color: #DC2626; margin-top: .35rem; }
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
}

/* ── Galería de Fotos de Trabajo ───────────────────────────── */
.fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.foto-item {
  position: relative;
  border-radius: .75rem;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  background: var(--rose-pale);
}
.foto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.foto-item:hover img { transform: scale(1.05); }
.foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .6rem .75rem;
}
.foto-item:hover .foto-overlay { opacity: 1; }
.foto-fecha { font-size: .7rem; color: rgba(255,255,255,.8); }
.foto-desc { font-size: .75rem; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foto-delete-btn {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(220,38,38,.85);
  border: none;
  border-radius: .4rem;
  padding: .2rem .4rem;
  font-size: .75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.foto-item:hover .foto-delete-btn { opacity: 1; }

/* ── Carrusel de Anuncios ──────────────────────────────────── */
.carrusel-wrapper {
  border-radius: .875rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.carrusel-slide {
  min-height: 110px;
  border-radius: .875rem;
}
.carrusel-contenido {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  min-height: 110px;
}
.carrusel-img-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 88px;
  border-radius: .6rem;
  overflow: hidden;
}
.carrusel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carrusel-texto { flex: 1; }
.carrusel-texto-full { text-align: center; }
.carrusel-proveedor {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .55;
  display: block;
  margin-bottom: .3rem;
}
.carrusel-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 .3rem;
  line-height: 1.2;
}
.carrusel-subtitulo {
  font-size: .82rem;
  opacity: .8;
  margin: 0 0 .75rem;
  line-height: 1.4;
}
.carrusel-cta {
  display: inline-block;
  padding: .3rem .85rem;
  border: 1px solid;
  border-radius: 2rem;
  font-size: .78rem;
  text-decoration: none;
  transition: opacity .2s;
}
.carrusel-cta:hover { opacity: .7; }
.carrusel-html-custom {
  padding: 1rem 1.5rem;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .carrusel-img-wrap { width: 80px; height: 60px; }
  .carrusel-titulo { font-size: 1.1rem; }
}

/* ── Admin Tables ──────────────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}
@media (max-width: 800px) { .admin-stats-grid { grid-template-columns: 1fr; } }

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  position: relative;
}
.admin-stat-icon {
  width: 48px; height: 48px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-stat-body { flex: 1; }
.admin-stat-num { font-size: 1.75rem; font-weight: 700; color: var(--charcoal); line-height: 1; }
.admin-stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.admin-stat-link {
  position: absolute; bottom: .75rem; right: 1rem;
  font-size: .72rem; color: var(--rose-gold); text-decoration: none;
}
.admin-stat-link:hover { text-decoration: underline; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.admin-table th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--rose-pale); }
