/* ============================================================
   PÁGINAS VIRTUALES - Estilos Principales
   Mobile-first, Modern, Clean
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --primary:       #1B4FFF;
  --primary-dark:  #1240E0;
  --primary-light: #EEF2FF;
  --accent:        #FF6B2B;
  --accent-light:  #FFF3EE;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --dark:          #0F172A;
  --gray-900:      #1E293B;
  --gray-700:      #334155;
  --gray-500:      #64748B;
  --gray-300:      #CBD5E1;
  --gray-100:      #F1F5F9;
  --gray-50:       #F8FAFC;
  --white:         #FFFFFF;
  --border:        #E2E8F0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.14);
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --font-body:     'Outfit', sans-serif;
  --font-display:  'Plus Jakarta Sans', sans-serif;
  --nav-h:         64px;
  --transition:    .2s ease;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.375rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }
small { font-size: .8125rem; color: var(--gray-500); }

/* ─── Layout ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 640px; }
.container-md { max-width: 800px; }

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #6B48FF);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.navbar-search {
  flex: 1;
  max-width: 380px;
}
.navbar-search-input {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: 50px;
  padding: 8px 14px;
  gap: 8px;
  transition: all var(--transition);
}
.navbar-search-input:focus-within {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,255,.1);
}
.navbar-search-input input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: .9rem;
  color: var(--dark);
}
.navbar-search-input .icon { color: var(--gray-500); flex-shrink: 0; }
.navbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-nav-ghost { color: var(--gray-700); }
.btn-nav-ghost:hover { background: var(--gray-100); color: var(--dark); }
.btn-nav-primary { background: var(--primary); color: white; }
.btn-nav-primary:hover { background: var(--primary-dark); color: white; }
.navbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  background: white;
}
.user-menu-trigger:hover { border-color: var(--primary); }
.user-menu-name { font-size: .85rem; font-weight: 600; color: var(--dark); max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all .15s ease;
}
.dropdown.open .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: .875rem;
  color: var(--gray-700);
  transition: all var(--transition);
  border-radius: 0;
}
.dropdown-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.dropdown-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.dropdown-item:hover { background: var(--gray-50); color: var(--dark); }
.dropdown-item.danger:hover { background: #FEF2F2; color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27,79,255,.3); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #E5601F; color: white; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); color: var(--dark); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #DC2626; color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; }
.btn-sm { padding: 8px 16px; font-size: .8125rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); }
.btn-icon.sm { width: 32px; height: 32px; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--dark);
  background: white;
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,255,.1);
}
.form-control.error { border-color: var(--danger); }
.form-control::placeholder { color: var(--gray-300); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8125rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: .8125rem; color: var(--danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-group { position: relative; }
.input-group .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}
.input-group .form-control { padding-left: 42px; }
.input-group .input-icon-right { left: auto; right: 12px; }
.input-group .form-control.icon-right { padding-left: 14px; padding-right: 42px; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--gray-50); }
.card:hover { box-shadow: var(--shadow); }

/* ─── Provider Cards (Search Results) ───────────────────── */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.provider-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
}
.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  border-color: var(--primary);
}
.provider-card .cover {
  height: 140px;
  background: linear-gradient(135deg, var(--primary), #6B48FF);
  position: relative;
  overflow: hidden;
}
.provider-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.provider-card .cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4));
}
.provider-card .badge-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.provider-card .badge-destacado {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.provider-card .card-body { padding: 16px; position: relative; }
.provider-card .avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  margin-top: -36px;
  margin-bottom: 8px;
  background: var(--gray-100);
}
.provider-card .provider-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.provider-card .provider-desc {
  font-size: .8125rem;
  color: var(--gray-500);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.provider-card .provider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.provider-card .location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--gray-500);
}
.provider-card .availability {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  font-weight: 500;
}
.available { color: var(--success); }
.unavailable { color: var(--gray-400); }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ─── Stars ──────────────────────────────────────────────── */
.stars-container { display: flex; gap: 2px; }
.star { font-size: 1rem; color: var(--gray-200); transition: color var(--transition); }
.star.filled { color: #FBBF24; }
.star.half { color: #FBBF24; }
.stars-row { display: flex; align-items: center; gap: 6px; }
.stars-row .score { font-weight: 700; font-size: .9rem; color: var(--dark); }
.stars-row .count { font-size: .8125rem; color: var(--gray-500); }

/* Interactive stars */
.stars-interactive .star { cursor: pointer; font-size: 1.75rem; }
.stars-interactive .star:hover, .stars-interactive .star.hovered { color: #FBBF24; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #6B48FF 60%, #0EA5E9 100%);
  padding: 64px 16px 80px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.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='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-title { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; margin-bottom: 12px; position: relative; }
.hero-subtitle { font-size: clamp(.95rem, 2.5vw, 1.2rem); opacity: .85; margin-bottom: 32px; position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-search {
  background: white;
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  position: relative;
  flex-wrap: wrap;
}
.hero-search select, .hero-search input {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--dark);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}
.hero-search .btn { flex-shrink: 0; border-radius: var(--radius-sm); }

/* ─── Categories Bar ─────────────────────────────────────── */
.categories-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }
.categories-scroll {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  width: max-content;
  min-width: 100%;
}
.cat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.cat-chip .icon { color: currentColor; }

/* ─── Search Page ────────────────────────────────────────── */
.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px 0;
  align-items: start;
}
.search-filters {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.filter-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.filter-section { margin-bottom: 20px; }
.filter-label { font-size: .8125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; display: block; }
.filter-section select, .filter-section input { width: 100%; }

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.results-count { font-size: .9rem; color: var(--gray-500); }
.results-count strong { color: var(--dark); }

/* ─── Provider Detail ────────────────────────────────────── */
.provider-hero {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #6B48FF);
}
.provider-hero img { width: 100%; height: 100%; object-fit: cover; }
.provider-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.6));
}
.provider-info-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}
.provider-info-inner {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 0 16px;
  position: relative;
  margin-top: -40px;
}
.provider-avatar-lg {
  width: 90px; height: 90px;
  border-radius: 20px;
  border: 4px solid white;
  box-shadow: var(--shadow);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}
.provider-info-text { flex: 1; }
.provider-info-text h1 { font-size: 1.5rem; color: var(--dark); }
.provider-info-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ─── Reviews ────────────────────────────────────────────── */
.review-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.review-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--gray-100); flex-shrink: 0; }
.review-meta { flex: 1; }
.review-name { font-weight: 600; font-size: .9rem; color: var(--dark); }
.review-date { font-size: .78rem; color: var(--gray-500); }
.review-text { font-size: .875rem; color: var(--gray-700); line-height: 1.5; }

/* ─── Auth Pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), #6B48FF);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: white;
  font-size: 1.5rem;
}
.auth-title { font-size: 1.5rem; color: var(--dark); margin-bottom: 6px; }
.auth-subtitle { font-size: .9rem; color: var(--gray-500); }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: .8125rem;
}
.auth-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  background: white;
  padding: 0 12px;
  position: relative;
}
.auth-footer { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--gray-500); }

/* Account type selector */
.type-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.type-option {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.type-option input { display: none; }
.type-option:has(input:checked),
.type-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.type-option .type-icon { font-size: 1.5rem; margin-bottom: 4px; }
.type-option .type-name { font-size: .8125rem; font-weight: 600; color: var(--gray-700); }
.type-option:has(input:checked) .type-name { color: var(--primary); }

/* ─── Dashboard ──────────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; min-height: calc(100vh - var(--nav-h)); }
.dashboard-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-item:hover { background: var(--gray-100); color: var(--dark); }
.sidebar-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-item .icon { flex-shrink: 0; }

/* ─── Admin Panel ────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--nav-h)); }
.admin-sidebar {
  background: var(--dark);
  padding: 20px 12px;
}
.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 16px;
}
.admin-sidebar-logo span { color: white; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all var(--transition);
  text-decoration: none;
  margin-bottom: 2px;
}
.admin-nav-item:hover { background: rgba(255,255,255,.1); color: white; }
.admin-nav-item.active { background: var(--primary); color: white; }
.admin-content { padding: 24px; background: var(--gray-50); overflow-y: auto; }
.admin-header { margin-bottom: 24px; }
.admin-header h2 { font-size: 1.5rem; color: var(--dark); }

/* Stat Cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.orange { background: var(--accent-light); color: var(--accent); }
.stat-icon.green { background: #ECFDF5; color: var(--success); }
.stat-icon.yellow { background: #FFFBEB; color: var(--warning); }
.stat-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: .8125rem; color: var(--gray-500); }

/* Admin Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { border-bottom: 2px solid var(--border); }
.data-table th { padding: 10px 14px; font-size: .8125rem; font-weight: 600; color: var(--gray-500); text-align: left; text-transform: uppercase; letter-spacing: .5px; }
.data-table td { padding: 12px 14px; font-size: .875rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table .actions { display: flex; gap: 6px; }

/* ─── Badges / Status ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-active, .badge-activo { background: #ECFDF5; color: var(--success); }
.badge-pending, .badge-pendiente { background: #FFFBEB; color: var(--warning); }
.badge-suspended, .badge-suspendido { background: #FFF7ED; color: var(--accent); }
.badge-blocked, .badge-bloqueado { background: #FEF2F2; color: var(--danger); }
.badge-provider, .badge-proveedor { background: var(--primary-light); color: var(--primary); }
.badge-admin { background: #F3E8FF; color: #7C3AED; }
.badge-client, .badge-cliente { background: var(--gray-100); color: var(--gray-600); }

/* ─── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── Toast ──────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--dark);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: .875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  transform: translateX(100px);
  opacity: 0;
  animation: toastIn .3s forwards, toastOut .3s forwards 3.5s;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
@keyframes toastIn  { to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(100px); opacity: 0; } }

/* ─── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 12px; }
.empty-title { font-size: 1.125rem; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.empty-desc { font-size: .875rem; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── Utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.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; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.p-16   { padding: 16px; }
.p-24   { padding: 24px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p  { color: var(--gray-500); }
.w-100 { width: 100%; }

/* Page profile img placeholder */
.avatar-placeholder {
  background: linear-gradient(135deg, var(--primary-light), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 40px 16px 24px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px; margin-bottom: 32px; }
.footer-brand-name { color: white; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.footer-desc { font-size: .8125rem; line-height: 1.6; }
.footer-col h4 { color: white; font-size: .9rem; margin-bottom: 12px; }
.footer-col a { display: block; font-size: .8125rem; color: rgba(255,255,255,.55); margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .8rem; }

/* ─── Mobile Navigation Bar ──────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  z-index: 90;
  padding: 8px 0 env(safe-area-inset-bottom);
}
.mobile-nav-inner { display: flex; justify-content: space-around; }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: .7rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: all var(--transition);
  flex: 1;
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item .icon { transition: all var(--transition); }
.mobile-nav-item.active .icon { color: var(--primary); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .navbar-search { display: none; }
  .btn-nav-ghost.desktop-only { display: none; }

  .hero { padding: 44px 16px 56px; }
  .hero-search { flex-direction: column; gap: 8px; }
  .hero-search select, .hero-search input { width: 100%; }

  .search-layout { grid-template-columns: 1fr; }
  .search-filters { position: static; }

  .providers-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }

  .auth-card { padding: 28px 20px; }

  .mobile-nav { display: block; }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .data-table { font-size: .8rem; }
  .data-table th, .data-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .provider-info-inner { flex-direction: column; align-items: flex-start; }
  .provider-info-actions { width: 100%; }
  .provider-info-actions .btn { flex: 1; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Loading Spinner ────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.spinner.dark {
  border-color: rgba(0,0,0,.1);
  border-top-color: var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }
