/* =============================================
   OSTEO ELITE — Global Styles
   osteopatabarcelona.com
   ============================================= */

/* --- Variables --- */
:root {
  --primary: #00bbc1;
  --primary-dark: #008f94;
  --primary-light: #e0f7f8;
  --accent: #f0a500;
  --accent-light: #fff8e6;
  --text: #0d1a1a;
  --text-muted: #5a7070;
  --bg: #ffffff;
  --bg-soft: #f4fbfb;
  --border: #d0eaeb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0, 187, 193, 0.12);
  --shadow-hover: 0 6px 28px rgba(0, 187, 193, 0.22);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --max-w: 1520px;
  --transition: 0.22s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-muted); }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.navbar .container,
.hero .container { padding-left: 0; padding-right: 0; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { margin-top: 12px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-accent {
  background: var(--accent); color: white;
}
.btn-accent:hover { background: #d99200; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(240,165,0,0.30); }
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary); background: transparent;
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white {
  background: white; color: var(--primary);
}
.btn-white:hover { background: var(--primary-light); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* --- Badge --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-green { background: var(--primary-light); color: var(--primary); }
.badge-gold { background: var(--accent-light); color: #a07000; }
.badge-elite {
  background: #f3b21a;
  color: #182033;
  border: 1px solid rgba(126, 87, 0, 0.22);
  box-shadow: 0 6px 16px rgba(180, 121, 0, 0.22);
  font-weight: 800;
}
.badge-elite::before {
  content: "\2605";
  font-size: 0.72rem;
  line-height: 1;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); border-bottom: 1px solid rgba(208,234,235,0.55);
  box-shadow: 0 1px 10px rgba(0,0,0,0.03);
  backdrop-filter: blur(10px);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
}
.navbar-logo .logo-icon {
  width: 38px; height: 38px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.navbar-logo .logo-icon svg { width: 22px; height: 22px; fill: white; }
.navbar-logo .logo-text { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.navbar-logo .logo-text span { color: var(--accent); }

.navbar-links {
  display: flex; align-items: center; gap: 26px;
}
.navbar-links a {
  padding: 8px 0; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; color: #061229;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.navbar-links a:hover { color: var(--primary); background: transparent; }
.navbar-links .btn {
  margin-left: 10px; padding: 14px 27px; font-size: 0.98rem;
  color: #061229; border-radius: 999px;
}
.navbar-links .btn:hover { color: #061229; }
.nav-user {
  width: 52px; height: 52px; border: 1px solid var(--border);
  border-radius: 50%; justify-content: center; padding: 0 !important;
  color: #061229 !important; font-size: 1.45rem;
}

.navbar-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.navbar-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  padding: 6px 10px 6px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-switch:hover { border-color: var(--primary); color: var(--primary); }
.theme-switch .theme-switch-track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-light);
  position: relative;
  flex-shrink: 0;
}
.theme-switch .theme-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform var(--transition), background var(--transition);
}
.theme-switch i { font-size: 1rem; }
body.theme-dark .theme-switch {
  background: #101e1e;
  border-color: #294242;
  color: #dcecec;
}
body.theme-dark .theme-switch .theme-switch-track { background: #203636; }
body.theme-dark .theme-switch .theme-switch-thumb {
  transform: translateX(16px);
  background: #f3b21a;
}

/* =============================================
   HERO
   ============================================= */
/* =============================================
   HERO — 2 columnas
   ============================================= */
.hero {
  background:
    radial-gradient(circle at 6% 92%, rgba(0,187,193,0.16) 0 125px, transparent 126px),
    radial-gradient(circle at 10% 108%, rgba(0,187,193,0.10) 0 190px, transparent 191px),
    linear-gradient(90deg, #ffffff 0%, #ffffff 42%, #eefbff 100%);
  padding: 62px 0 56px;
  position: relative; overflow: hidden;
  border-bottom: none;
  min-height: 780px;
}

/* Grid 2 col */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(760px, 820px) 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Columna izquierda */
.hero-left {
  position: relative; z-index: 3;
  padding-top: 0;
  max-width: 780px;
}
.hero-left h1 {
  color: #061229; margin-bottom: 20px;
  font-size: clamp(3rem, 3.32vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero-left h1 span { color: var(--primary); }
.hero-left > p {
  color: #263957; font-size: 1.23rem;
  max-width: 650px; margin-bottom: 34px; line-height: 1.45;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary-dark);
  padding: 10px 22px; border-radius: 999px;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 28px; border: 1px solid #aee9eb;
}

.hero-search {
  background: white; border-radius: var(--radius);
  padding: 12px 12px 12px 24px;
  display: flex; align-items: center; gap: 12px;
  max-width: 680px; margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0,187,193,0.12), 0 1px 4px rgba(0,0,0,0.06);
  border: 1.5px solid var(--border);
}
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 4px 24px rgba(0,187,193,0.20); }
.hero-search input {
  flex: 1; border: none; outline: none;
  font-size: 1.06rem; color: var(--text); background: transparent;
  min-width: 245px;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search select {
  border: none; outline: none; background: var(--bg-soft);
  border-radius: 8px; padding: 14px 18px;
  font-size: 1rem; color: var(--text); cursor: pointer;
}
.hero-search .btn {
  flex-shrink: 0; border-radius: 9px;
  padding: 15px 28px; font-size: 1rem;
}

.hero-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-tags a {
  background: white; color: var(--text-muted);
  padding: 9px 14px; border-radius: 999px; font-size: 0.84rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.hero-tags a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* ---- Trust Stats Bar (fuera del hero) ---- */
.hero-stats-bar {
  background: transparent;
  border-bottom: none;
  padding: 0;
  margin-top: 86px;
  position: relative;
  z-index: 4;
}
.hero-stats-bar .container {
  max-width: 1130px;
}
.hero-trust-stats {
  display: flex; justify-content: center; gap: 0;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(208,234,235,0.85);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0,70,90,0.12);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.trust-stat {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 34px;
  border-right: 1px solid var(--border);
  flex: 1; justify-content: center;
}
.trust-stat:last-child { border-right: none; }
.trust-stat-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary-dark); font-size: 2rem;
}
.trust-stat-title {
  font-weight: 800; font-size: 1.08rem; color: #061229;
  margin-bottom: 2px; line-height: 1.2;
}
.trust-stat-sub {
  font-size: 0.91rem; color: #53657b; line-height: 1.35;
}
/* Mantener .hero-stats oculto (usado por JS counter, no visible) */
.hero-stats { display: none; }

/* ---- Hero Map (columna derecha) ---- */
.hero-right {
  position: absolute;
  z-index: 1;
  top: -46px;
  right: 0;
  bottom: 8px;
  width: min(51vw, 900px);
  pointer-events: none;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 10%;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(238,251,255,0.38) 62%, rgba(238,251,255,0.74) 100%);
}

.hero-map {
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  height: auto;
  margin: 0;
  background: transparent;
}

.hero-image {
  position: absolute;
  right: 0;
  top: -18px;
  width: 94%;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center top;
  filter: saturate(1.18) contrast(1.08);
}
/* Tarjetas flotantes — estilo referencia */
.map-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 11px 14px 11px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.11),
    0 1px 4px rgba(0,0,0,0.06),
    0 0 0 1px rgba(0,0,0,0.04);
  min-width: 218px;
  z-index: 20;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease;
}
.map-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 36px rgba(0,0,0,0.15),
    0 2px 8px rgba(0,0,0,0.08);
}

/* Avatar foto-estilo */
.map-card-photo {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.map-card-photo svg { position: absolute; bottom: 0; opacity: 0.55; }
.map-card-initials {
  position: relative; z-index: 1;
  color: white; font-weight: 800; font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.map-card-body { flex: 1; min-width: 0; }
.map-card-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 4px;
  margin-bottom: 2px;
}
.map-card-name {
  font-weight: 700; font-size: 0.88rem;
  color: var(--text); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-card-verified {
  color: #3b82f6; font-size: 1rem; flex-shrink: 0;
}
.map-card-specialty {
  font-size: 0.76rem; color: var(--text-muted);
  margin-bottom: 4px;
}
.map-card-rating {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 3px;
}
.map-card-stars {
  color: #f59e0b; font-size: 0.75rem; letter-spacing: 1px;
}
.map-card-score {
  font-weight: 700; font-size: 0.8rem; color: var(--text);
}
.map-card-count {
  font-size: 0.75rem; color: var(--text-muted);
}
.map-card-loc {
  font-size: 0.73rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 3px;
}
.map-card-loc i { color: var(--primary); font-size: 0.75rem; }

/* ---- Animaciones ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes hoverLift {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}
.fade-up-delay {
  animation-delay: 0.18s;
}

/* Float continuo para las tarjetas */
.float-1 { animation: fadeUp 0.65s 0.3s cubic-bezier(0.22,1,0.36,1) both, floatAnim 4.5s 1s ease-in-out infinite; }
.float-2 { animation: fadeUp 0.65s 0.5s cubic-bezier(0.22,1,0.36,1) both, floatAnim 5s 1.2s ease-in-out infinite; }
.float-3 { animation: fadeUp 0.65s 0.7s cubic-bezier(0.22,1,0.36,1) both, floatAnim 4.8s 1.4s ease-in-out infinite; }
.float-4 { animation: fadeUp 0.65s 0.4s cubic-bezier(0.22,1,0.36,1) both, floatAnim 5.2s 1.6s ease-in-out infinite; }

/* Tablet: 50/50 */
@media (max-width: 1080px) {
  .navbar-links { gap: 14px; }
  .navbar-links a { font-size: 0.92rem; }
  .navbar-links .btn { padding: 12px 18px; }
  .hero-inner { grid-template-columns: minmax(430px, 560px) 1fr; gap: 24px; }
  .hero-right { width: 72vw; opacity: 0.88; }
  .hero-left h1 { font-size: clamp(2.7rem, 5.2vw, 3.8rem); }
  .hero-left > p { font-size: 1.08rem; max-width: 560px; }
  .hero-trust-stats { flex-wrap: wrap; }
  .trust-stat { flex: 1 1 50%; }
  .trust-stat:nth-child(2) { border-right: none; }
  .trust-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* =============================================
   SECTION HEADER ACCENT
   ============================================= */
.section-header .accent-line {
  display: block; width: 40px; height: 3px;
  background: var(--primary); border-radius: 2px;
  margin: 14px auto 0;
}
.section-header.left-align { text-align: left; }
.section-header.left-align .accent-line { margin-left: 0; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 36px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 2px; background: var(--border);
  z-index: 0;
}
.step-card {
  padding: 0 28px 0; text-align: center;
  position: relative; background: transparent; border: none;
}
.step-card:last-child::after { display: none; }
.step-num {
  width: 72px; height: 72px; background: white;
  border: 2px solid var(--primary);
  border-radius: 50%; color: var(--primary); font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; position: relative; z-index: 1;
  transition: all var(--transition);
}
.step-card:hover .step-num { background: var(--primary); color: white; }
.step-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.step-card p { font-size: 0.9rem; }
.step-icon {
  font-size: 1.6rem; color: var(--primary); margin-bottom: 10px;
  display: block;
}

/* =============================================
   OSTEOPATHS GRID
   ============================================= */
.osteopath-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition);
  min-height: 430px;
  display: flex;
  flex-direction: column;
}
.osteopath-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.card-avatar {
  height: 180px; background: linear-gradient(135deg, var(--primary-light), var(--border));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.card-avatar[data-has-cover="true"] {
  background-size: cover;
  background-position: center;
}
.card-avatar[data-has-cover="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,52,70,0.20));
}
.card-avatar .avatar-initials {
  width: 72px; height: 72px; background: var(--primary);
  border-radius: 50%; color: white; font-size: 1.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid white;
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center;
}
.card-avatar .avatar-initials[data-has-photo="true"] {
  color: transparent;
}
.card-badge { position: absolute; top: 14px; right: 14px; z-index: 1; }

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-tag {
  background: var(--bg-soft); color: var(--text-muted);
  padding: 3px 10px; border-radius: 20px; font-size: 0.75rem;
}
.card-footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.card-rating .stars { color: var(--accent); }
.card-reviews { color: var(--text-muted); font-size: 0.8rem; }
.card-cta { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.card-cta:hover { text-decoration: underline; }

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

/* =============================================
   RECOMMENDED PROFESSIONALS CAROUSEL
   ============================================= */
.recommended-section {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.recommended-section-compact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.recommended-section[hidden] { display: none; }
.recommended-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.recommended-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.recommended-header h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  color: var(--text);
  margin-bottom: 6px;
}
.recommended-header p {
  max-width: 620px;
  font-size: 0.98rem;
}
.carousel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}
.carousel-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.recommended-carousel {
  max-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 330px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 2px 12px;
}
.recommended-carousel::-webkit-scrollbar { display: none; }
.recommended-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 272px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(0,70,90,0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.recommended-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,187,193,0.5);
  box-shadow: 0 16px 36px rgba(0,70,90,0.10);
}
.recommended-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.recommended-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.recommended-avatar[data-has-photo="true"] { color: transparent; }
.recommended-name {
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}
.recommended-meta {
  color: var(--text-muted);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.recommended-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}
.recommended-rating .stars { color: var(--accent); letter-spacing: 1px; }
.recommended-text {
  color: #53657b;
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.recommended-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 64px;
  align-content: flex-start;
}
.recommended-tags span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 600;
}
.recommended-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  margin-top: auto;
}
.recommended-plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3b21a;
  color: #182033;
  border: 1px solid rgba(126, 87, 0, 0.22);
  border-radius: 20px;
  padding: 4px 10px;
  box-shadow: 0 6px 16px rgba(180, 121, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.recommended-plan::before {
  content: "\2605";
  font-size: 0.72rem;
  line-height: 1;
}
.recommended-link {
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

/* =============================================
   BARRIOS SECTION
   ============================================= */
.barrios-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.barrio-card {
  background: var(--primary-light); border-radius: var(--radius-sm);
  padding: 20px; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid transparent; transition: all var(--transition);
}
.barrio-card:hover { background: var(--primary); color: white; border-color: var(--primary); }
.barrio-card:hover .barrio-count { background: rgba(255,255,255,0.2); color: white; }
.barrio-name { font-weight: 600; font-size: 0.95rem; }
.barrio-count {
  background: white; color: var(--primary);
  border-radius: 20px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700;
  transition: all var(--transition);
}
.municipios-block {
  margin-top: 58px;
}
.section-header-compact {
  margin-bottom: 30px;
}
.section-header-compact h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.municipios-more {
  margin-top: 16px;
}
.municipios-more summary {
  list-style: none;
  cursor: pointer;
}
.municipios-more summary::-webkit-details-marker {
  display: none;
}
.municipios-summary {
  max-width: 360px;
  margin: 0 auto;
}
.municipios-grid-more {
  margin-top: 16px;
}

/* =============================================
   SPECIALTIES
   ============================================= */
.specialties-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.specialty-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: all var(--transition);
}
.specialty-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.specialty-card:hover .specialty-icon { background: var(--primary-dark); }
.specialty-icon {
  width: 56px; height: 56px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.specialty-icon i {
  font-size: 1.5rem; color: white;
}
.specialty-card h4 { margin-bottom: 6px; }
.specialty-card p { font-size: 0.82rem; }

/* =============================================
   WHY OSTEO ELITE
   ============================================= */
.why-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 187, 193, 0.24) 0 120px, transparent 121px),
    radial-gradient(circle at 90% 82%, rgba(244, 169, 0, 0.18) 0 150px, transparent 151px),
    linear-gradient(135deg, rgba(0, 187, 193, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(45deg, rgba(0, 187, 193, 0.06) 0 1px, transparent 1px 38px),
    linear-gradient(180deg, #f1fbfc 0%, #e4f7f8 52%, #f8fdfd 100%);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.82), transparent 18%, transparent 82%, rgba(255,255,255,0.82)),
    linear-gradient(180deg, rgba(255,255,255,0.55), transparent 26%, rgba(255,255,255,0.55));
}
.why-section .container {
  position: relative;
  z-index: 1;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: rgba(255,255,255,0.92); border-radius: var(--radius);
  padding: 32px 28px; border: 1px solid var(--border);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0, 71, 92, 0.05);
}
.why-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.why-card .icon {
  width: 52px; height: 52px; background: var(--primary-light);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-card .icon i { font-size: 1.5rem; color: var(--primary); }
.why-card h3 { color: var(--text); margin-bottom: 8px; font-size: 1.05rem; }
.why-card p { font-size: 0.9rem; line-height: 1.65; }

/* =============================================
   PROFESSIONALS CTA
   ============================================= */
.pro-cta {
  background: var(--primary);
  border-radius: var(--radius); padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}
.pro-cta::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.pro-cta::after {
  content: ''; position: absolute; bottom: -60px; left: 40%;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.pro-cta-text { position: relative; z-index: 1; }
.pro-cta-text h2 { color: white; margin-bottom: 12px; }
.pro-cta-text p { font-size: 1rem; max-width: 440px; color: rgba(255,255,255,0.85); }
.pro-cta-actions { flex-shrink: 0; display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background:
    linear-gradient(135deg, rgba(0,187,193,0.05) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
  color: #263957;
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 1.55fr 1.2fr 0.9fr 1fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.footer-brand .logo-text { color: var(--text); font-size: 1.1rem; font-weight: 800; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; line-height: 1.7; color: #53657b; }
.footer-col h5 { color: var(--text); font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col h5 a { color: inherit; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary-dark); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
  color: #53657b;
}

/* =============================================
   BLOG
   ============================================= */
.blog-hero {
  background: linear-gradient(180deg, #f2fbfd 0%, #ffffff 100%);
  padding: 74px 0 56px;
  overflow: hidden;
}
.blog-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 52px;
}
.blog-hero-copy h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin: 18px 0;
  color: var(--text);
}
.blog-hero-copy p {
  max-width: 620px;
  color: #415672;
  font-size: 1.12rem;
  line-height: 1.75;
}
.blog-hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-hero-media { min-height: 420px; position: relative; }
.blog-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 60% center;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 71, 92, 0.16);
}
.blog-featured {
  margin-top: -24px;
  position: relative;
  z-index: 2;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}
.blog-featured-card:hover h2,
.blog-card h3 a:hover { color: var(--primary-dark); }
.blog-featured-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  margin: 12px 0;
  color: var(--text);
}
.blog-featured-content p {
  color: #53657b;
  line-height: 1.7;
  max-width: 760px;
}
.blog-featured-aside {
  min-height: 180px;
  border-radius: 18px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 176, 0, 0.28), transparent 42%), linear-gradient(135deg, var(--primary-light), #f7ffff);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.blog-featured-aside i { font-size: 3rem; }
.blog-featured-logo {
  width: min(170px, 100%);
  max-height: 150px;
  object-fit: contain;
  display: block;
}
.blog-section { padding: 86px 0 56px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 187, 193, 0.45);
  box-shadow: var(--shadow);
}
.blog-card-media {
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.blog-card-media-teal { background: linear-gradient(135deg, #e6fbfb, #ffffff); color: var(--primary-dark); }
.blog-card-media-blue { background: linear-gradient(135deg, #eef6ff, #ffffff); color: #276da8; }
.blog-card-media-gold { background: linear-gradient(135deg, #fff8e6, #ffffff); color: #b47400; }
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-top,
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #6b7c7c;
  font-size: 0.82rem;
}
.blog-card-top {
  justify-content: space-between;
  margin-bottom: 14px;
}
.blog-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}
.blog-card h3 {
  font-size: 1.18rem;
  line-height: 1.28;
  margin-bottom: 12px;
}
.blog-card h3 a { color: var(--text); }
.blog-card p {
  color: #53657b;
  line-height: 1.65;
  font-size: 0.94rem;
  margin-bottom: 20px;
}
.blog-card .blog-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.blog-meta i { color: var(--primary); }
.blog-seo-block {
  margin-bottom: 72px;
  padding: 34px;
  border-radius: var(--radius);
  background: #f3fbfd;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
}
.blog-seo-block h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin-top: 10px;
}
.blog-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-topic-list a {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}
.blog-topic-list a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.legal-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 70px 0 52px;
}
.legal-hero h1 { margin-bottom: 12px; }
.legal-hero p { max-width: 760px; color: var(--text-muted); font-size: 1.05rem; }
.legal-content {
  max-width: 880px;
  padding: 56px 0 72px;
}
.legal-content h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: #405167;
  line-height: 1.75;
}
.legal-content ul { margin: 10px 0 18px 22px; }
.legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f7fcfc;
  color: #405167;
  font-size: 0.92rem;
}

/* =============================================
   DIRECTORY PAGE
   ============================================= */
.dir-hero {
  background: var(--bg-soft); padding: 48px 0; border-bottom: 1px solid var(--border);
}
.dir-hero h1 { font-size: 1.8rem; margin-bottom: 8px; }
.dir-hero p { font-size: 0.95rem; }

.dir-filters {
  background: white; border-bottom: 1px solid var(--border);
  padding: 20px 0; position: sticky; top: 68px; z-index: 50;
}
.dir-filters-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-select {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text); background: white; cursor: pointer;
  outline: none; transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--primary); }
.filter-search {
  flex: 1; min-width: 200px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; outline: none; transition: border-color var(--transition);
}
.filter-search:focus { border-color: var(--primary); }
.filter-count { margin-left: auto; font-size: 0.88rem; color: var(--text-muted); }

.dir-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0; align-items: start; }
.dir-sidebar {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 128px;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-section h4 { margin-bottom: 14px; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.sidebar-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; cursor: pointer;
}
.sidebar-option label { font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.sidebar-option input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.sidebar-option .count { font-size: 0.8rem; color: var(--text-muted); background: var(--bg-soft); padding: 1px 8px; border-radius: 10px; }

.dir-results { min-width: 0; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.results-header h3 { font-size: 1rem; font-weight: 600; }
.sort-select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem; outline: none; cursor: pointer;
}
.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* =============================================
   UNETE PAGE
   ============================================= */
.unete-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; text-align: center; }
.unete-hero h1 { color: white; margin-bottom: 16px; }
.unete-hero p { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.unete-proof {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.unete-proof i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.14);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: #fff;
  border: 1px solid #d8ebec;
  border-radius: 8px;
  padding: 30px;
  min-height: 218px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.benefit-card:hover {
  border-color: rgba(0,187,193,0.45);
  box-shadow: 0 14px 38px rgba(0,70,90,0.08);
  transform: translateY(-2px);
}
.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 22px;
}
.benefit-card h3 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 1.08rem;
}
.benefit-card p {
  color: #53657b;
  line-height: 1.65;
  font-size: 0.96rem;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: white; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-hover); }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  padding: 4px 20px; border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { margin-bottom: 6px; }
.pricing-price .amount { font-size: 2.8rem; font-weight: 800; color: var(--text); }
.pricing-price .period { font-size: 0.9rem; color: var(--text-muted); }
.pricing-desc { font-size: 0.85rem; margin-bottom: 24px; min-height: 40px; }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature .check { color: var(--primary); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.pricing-limitation {
  margin: -10px 0 22px;
  text-align: left;
  color: #6f7f80;
  font-size: 0.82rem;
  line-height: 1.45;
}
.pricing-card .btn {
  width: 100%;
  height: 50px;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: 0;
  padding-bottom: 0;
}

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.testimonial-text { font-size: 0.95rem; font-style: italic; margin-bottom: 20px; color: var(--text); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600;
}
.faq-question .toggle { font-size: 1.3rem; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .toggle { transform: rotate(45deg); }
.faq-answer { padding-top: 12px; font-size: 0.92rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* =============================================
   PROFILE PAGE
   ============================================= */

/* Hero */
.profile-hero {
  position: relative; height: 380px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.profile-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #006e73 0%, #00bbc1 50%, #004f52 100%);
}
.profile-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,30,32,0.80) 0%, rgba(0,30,32,0.30) 60%, transparent 100%);
}
.profile-hero-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 28px 28px;
}
.profile-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 0 36px;
}
.profile-hero-inner {
  display: flex; align-items: flex-end; gap: 28px;
}
.profile-avatar-lg {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--primary); border: 4px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 800; color: white;
  background-size: cover; background-position: center;
  flex-shrink: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.profile-hero-info { flex: 1; }
.profile-hero-badges { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.profile-hero-name { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 6px; line-height: 1.2; }
.profile-hero-title { font-size: 0.9em; font-weight: 500; color: rgba(255,255,255,0.92); }
.profile-hero-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: rgba(255,255,255,0.85); font-size: 0.9rem;
}
.profile-hero-meta span { display: flex; align-items: center; gap: 5px; }
.profile-hero-rating { display: flex; align-items: center; gap: 6px; }
.profile-hero-rating .stars { color: var(--accent); font-size: 1rem; }
.profile-hero-rating .score { color: white; font-weight: 700; font-size: 1rem; }
.profile-hero-rating .count { color: rgba(255,255,255,0.70); font-size: 0.85rem; }
.profile-hero-actions {
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0; align-self: flex-end;
}
.profile-hero-actions .btn {
  min-width: 180px; justify-content: center; font-size: 0.9rem;
}

/* Tabs */
.profile-tabs {
  background: white; border-bottom: 1px solid var(--border);
  position: sticky; top: 68px; z-index: 50;
}
.profile-tabs-inner {
  display: flex; gap: 0;
}
.profile-tab {
  padding: 16px 24px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 3px solid transparent;
  transition: all var(--transition); cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  background: none; border-top: none; border-left: none; border-right: none;
}
.profile-tab:hover { color: var(--primary); }
.profile-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Layout */
.profile-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 32px; padding: 36px 0 60px; align-items: start;
}

/* Content panels */
.profile-panel { display: none; }
.profile-panel.active { display: block; }

.profile-section { margin-bottom: 36px; }
.profile-section-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.profile-section-title i { color: var(--primary); font-size: 1.1rem; }

.profile-bio { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 14px; }
.profile-bio:last-child { margin-bottom: 0; }

.specialty-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.specialty-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--primary-light); color: var(--primary-dark);
  padding: 7px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border);
}
.specialty-pill i { font-size: 0.95rem; }

.formation-list { list-style: none; }
.formation-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.formation-item:last-child { border-bottom: none; }
.formation-year {
  font-size: 0.78rem; font-weight: 700; color: var(--primary);
  background: var(--primary-light); padding: 3px 10px;
  border-radius: 20px; white-space: nowrap; height: fit-content;
  margin-top: 2px;
}
.formation-info h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.formation-info p { font-size: 0.83rem; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-item {
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 10px;
}
.service-item i { color: var(--primary); font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.service-item h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.service-item p { font-size: 0.8rem; }

.agenda-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.agenda-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.agenda-card p { font-size: 0.86rem; color: var(--text-muted); }
.agenda-card .btn { flex-shrink: 0; }

/* Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-item {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  cursor: default; transition: all var(--transition);
}
.photo-item:hover { opacity: 0.85; transform: scale(0.98); }
.photo-item i { font-size: 2rem; color: var(--primary); opacity: 0.4; }
.photo-item.main { grid-column: span 2; grid-row: span 2; aspect-ratio: unset; min-height: 260px; }

/* Reviews */
.reviews-summary {
  display: flex; align-items: center; gap: 32px;
  padding: 24px; background: var(--bg-soft); border-radius: var(--radius);
  margin-bottom: 28px; border: 1px solid var(--border);
}
.review-score-big { text-align: center; }
.review-score-big .num { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }
.review-score-big .stars { color: var(--accent); font-size: 1.2rem; display: block; margin: 4px 0; }
.review-score-big .total { font-size: 0.82rem; color: var(--text-muted); }
.review-bars { flex: 1; }
.review-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-bar-label { font-size: 0.8rem; color: var(--text-muted); width: 32px; text-align: right; }
.review-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.review-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.review-bar-count { font-size: 0.8rem; color: var(--text-muted); width: 20px; }

.review-item {
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: var(--text-muted); }
.review-stars { color: var(--accent); font-size: 0.9rem; }
.review-text { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }
.review-badge { font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

.review-form { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); margin-top: 28px; }
.review-form h4 { margin-bottom: 16px; font-size: 1rem; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-family: var(--font);
  outline: none; transition: border-color var(--transition); background: white;
}
.form-input:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13,26,26,0.58);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.signup-modal-card {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 940px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shadow-hover);
}
.signup-modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.signup-modal-header h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}
.signup-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.signup-request-form {
  padding: 24px 26px 28px;
}
.signup-modal-intro {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.signup-modal-intro strong { color: var(--primary-dark); }
.signup-form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 18px;
  background: #fff;
}
.signup-form-section h4 {
  margin: 0 0 14px;
  font-size: 1rem;
}
.signup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.signup-form-grid label,
.signup-full-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}
.signup-form-grid .form-input,
.signup-full-label .form-input {
  margin-top: 6px;
}
.signup-full-label {
  margin-top: 14px;
}
.signup-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
.signup-checkbox-grid label,
.signup-consent {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
}
.signup-checkbox-grid input,
.signup-consent input {
  accent-color: var(--primary);
}
.signup-consent {
  align-items: flex-start;
  line-height: 1.5;
  margin-bottom: 16px;
}
.signup-submit {
  width: 100%;
  justify-content: center;
  padding: 13px;
}
.signup-message {
  display: none;
  margin-top: 14px;
  font-size: 0.86rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.star-rating { display: flex; gap: 6px; }
.star-rating i { font-size: 1.4rem; color: var(--border); cursor: pointer; transition: color var(--transition); }
.star-rating i.active, .star-rating i:hover { color: var(--accent); }

/* Sidebar */
.profile-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 128px; }
.sidebar-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-card-header {
  padding: 14px 20px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  display: flex; align-items: center; gap: 7px;
}
.sidebar-card-header i { color: var(--primary); }
.sidebar-card-body { padding: 20px; }

.contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; margin-bottom: 10px;
  transition: all var(--transition);
}
.contact-btn i {
  font-size: 1.18rem;
  line-height: 1;
  width: 1.18rem;
  flex-shrink: 0;
}
.contact-btn-primary { background: var(--primary); color: white; }
.contact-btn-primary:hover { background: var(--primary-dark); }
.profile-hero-actions .contact-btn-primary {
  min-width: 206px;
  box-shadow: 0 12px 28px rgba(0, 187, 193, 0.28);
}
.profile-hero-actions .contact-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 187, 193, 0.34);
}
.contact-btn-outline { border: 2px solid var(--primary); color: var(--primary); background: white; }
.contact-btn-outline:hover { background: var(--primary-light); }

.contact-info-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row i { color: var(--primary); font-size: 1rem; flex-shrink: 0; width: 20px; }
.contact-info-row a { color: var(--primary); }
.contact-info-row a:hover { text-decoration: underline; }

.hours-row {
  display: flex; justify-content: space-between; padding: 7px 0;
  font-size: 0.87rem; border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--text-muted); font-weight: 500; }
.hours-row .time { color: var(--text-muted); font-weight: 500; }
.hours-row.today .day { color: var(--primary); font-weight: 700; }
.hours-row.closed .time { color: #e55; font-weight: 500; }

.claim-banner {
  background: var(--accent-light); border: 1px solid #f5e0a0;
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.claim-banner p { font-size: 0.85rem; margin-bottom: 12px; }
.claim-banner .btn { width: 100%; justify-content: center; font-size: 0.85rem; }

/* Map placeholder */
.map-placeholder {
  height: 220px; background: var(--primary-light);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 8px;
  color: var(--primary); border: 1px solid var(--border);
}
.map-placeholder i { font-size: 2.5rem; opacity: 0.5; }
.map-placeholder p { font-size: 0.85rem; opacity: 0.7; }

.map-embed-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
}
.map-embed-card iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: 0;
}
.map-embed-card p {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Responsive profile */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .profile-hero { height: auto; min-height: 300px; padding-top: 80px; }
  .profile-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-hero-actions { flex-direction: row; align-self: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .agenda-card { align-items: stretch; flex-direction: column; }
  .agenda-card .btn { width: 100%; justify-content: center; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item.main { grid-column: span 1; grid-row: span 1; }
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  min-height: 100vh; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.login-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); width: 100%; max-width: 440px;
  box-shadow: var(--shadow);
}
.login-header { padding: 36px 40px 24px; text-align: center; border-bottom: 1px solid var(--border); }
.login-header img { height: 40px; margin: 0 auto 20px; }
.login-header h2 { font-size: 1.2rem; margin-bottom: 6px; }
.login-header p { font-size: 0.88rem; }

.login-role-toggle {
  display: flex; background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 4px; gap: 4px; margin-bottom: 24px;
}
.login-role-btn {
  flex: 1; padding: 9px; border-radius: 6px; font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border: none; background: transparent;
  transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login-role-btn.active { background: white; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.10); }

.login-body { padding: 28px 40px 36px; }
.login-oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; background: white;
  transition: all var(--transition); margin-bottom: 20px;
}
.login-oauth:hover { border-color: var(--primary); background: var(--primary-light); }
.login-divider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  color: var(--text-muted); font-size: 0.82rem;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* =============================================
   DASHBOARD LAYOUT
   ============================================= */
.dash-layout {
  display: flex; min-height: calc(100vh - 68px);
}
.dash-sidebar {
  width: 260px; flex-shrink: 0; background: white;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
}
.dash-sidebar-header {
  padding: 20px; border-bottom: 1px solid var(--border);
}
.dash-user-info { display: flex; align-items: center; gap: 12px; }
.dash-user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-user-name { font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.dash-user-role { font-size: 0.78rem; color: var(--text-muted); }

.dash-nav { flex: 1; padding: 12px 0; }
.dash-nav-group { margin-bottom: 4px; }
.dash-nav-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); padding: 10px 20px 6px;
}
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; border-radius: 0; transition: all var(--transition);
  border-left: 3px solid transparent; text-decoration: none;
}
.dash-nav-item:hover { background: var(--bg-soft); color: var(--text); }
.dash-nav-item.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 700; }
.dash-nav-item i { font-size: 1.1rem; flex-shrink: 0; }
.dash-nav-badge {
  margin-left: auto; background: var(--primary); color: white;
  font-size: 0.7rem; font-weight: 700; padding: 1px 7px; border-radius: 10px;
}
.dash-nav-badge.warn { background: var(--accent); }

.dash-sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.dash-sidebar-footer a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted); padding: 8px 0;
  transition: color var(--transition);
}
.dash-sidebar-footer a:hover { color: var(--primary); }

.dash-main { flex: 1; background: var(--bg-soft); overflow: hidden; }
.dash-topbar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.dash-topbar h1 { font-size: 1rem; font-weight: 700; }
.dash-topbar-actions { display: flex; align-items: center; gap: 10px; }

.dash-content { padding: 28px 32px; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.stat-label i { color: var(--primary); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-delta { font-size: 0.8rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.stat-delta.up { color: #1a9e5e; }
.stat-delta.down { color: #e55; }

/* Dashboard panels */
.dash-panel { display: none; }
.dash-panel.active { display: block; }

/* Dashboard cards */
.dash-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden;
}
.dash-card-header {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.dash-card-header h3 { font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dash-card-header h3 i { color: var(--primary); }
.dash-card-body { padding: 24px; }

/* Review management */
.review-manage-item {
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.review-manage-item:last-child { border-bottom: none; }
.review-manage-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.review-manage-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.review-date { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.review-manage-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.review-respond-box {
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px;
  border: 1px solid var(--border); margin-top: 10px;
}
.review-respond-box.has-response { border-left: 3px solid var(--primary); }
.review-respond-label { font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.review-respond-text { font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); }
.review-respond-actions { display: flex; gap: 8px; margin-top: 10px; }
.review-respond-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; font-family: var(--font); resize: vertical; outline: none; margin-bottom: 8px;
  transition: border-color var(--transition);
}
.review-respond-input:focus { border-color: var(--primary); }

/* Google Business connect */
.google-connect-card {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center;
  transition: all var(--transition);
}
.google-connect-card.connected { border-style: solid; border-color: #34a853; background: #f0fdf4; }
.google-logo { font-size: 2.5rem; margin-bottom: 12px; }

/* Form in dashboard */
.dash-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-form-full { grid-column: span 2; }
.dash-form-group { margin-bottom: 0; }
.dash-form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.dash-form-input {
  width: 100%; padding: 9px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font); outline: none; background: white;
  transition: border-color var(--transition);
}
.dash-form-input:focus { border-color: var(--primary); }
textarea.dash-form-input { resize: vertical; min-height: 90px; }
.rich-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rich-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  flex: 0 0 auto;
}
.rich-editor-toolbar button {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.rich-editor-toolbar button:hover,
.rich-editor-toolbar button.is-active {
  background: #ffffff;
  border-color: var(--border);
  color: var(--primary-dark);
}
.rich-editor-color {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.rich-editor-color:hover {
  background: #ffffff;
  border-color: var(--border);
  color: var(--primary-dark);
}
.rich-editor-color input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rich-editor-select {
  height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  cursor: pointer;
}
.rich-editor-select:hover {
  background: #ffffff;
  border-color: var(--border);
  color: var(--primary-dark);
}
.rich-editor-select select {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  max-width: 96px;
}
.rich-editor-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 2px;
}
.rich-editor-surface {
  min-height: 320px;
  height: min(56vh, 620px);
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px;
  outline: none;
  color: var(--text);
  line-height: 1.72;
  font-size: 0.96rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-soft);
}
.rich-editor-surface::-webkit-scrollbar {
  width: 10px;
}
.rich-editor-surface::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
.rich-editor-surface::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 3px solid var(--bg-soft);
  border-radius: 999px;
}
.rich-editor-surface h1,
.rich-editor-surface h2,
.rich-editor-surface h3 {
  margin: 22px 0 10px;
  line-height: 1.22;
}
.rich-editor-surface h1:first-child,
.rich-editor-surface h2:first-child,
.rich-editor-surface h3:first-child { margin-top: 0; }
.rich-editor-surface p { margin-bottom: 12px; }
.rich-editor-surface ul,
.rich-editor-surface ol {
  padding-left: 22px;
  margin: 10px 0 16px;
}
.rich-editor-surface blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  color: var(--text);
}
.rich-editor-surface pre {
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #102222;
  color: #e7ffff;
  overflow-x: auto;
}
.rich-editor-surface code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
}
.rich-editor-surface hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
.rich-editor-surface a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}
.rich-editor-surface table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  overflow: hidden;
}
.rich-editor-surface th,
.rich-editor-surface td {
  border: 1px solid var(--border);
  padding: 9px 10px;
  vertical-align: top;
}
.rich-editor-surface th {
  background: var(--bg-soft);
  font-weight: 800;
}
.rich-editor-surface img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 18px 0;
  display: block;
  box-shadow: var(--shadow-sm);
}
.rich-editor-surface figure { margin: 18px 0; }
.rich-editor-surface figure img { margin-bottom: 8px; }
.rich-editor-surface figcaption {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}
.admin-form-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.admin-form-section {
  display: grid;
  gap: 16px;
}
.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.listing-schedule-editor {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.listing-services-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
}

.listing-schedule-row {
  display: grid;
  grid-template-columns: 112px 128px minmax(280px, 1fr) 44px;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--dash-border);
}

.listing-service-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: #fff;
}

.listing-schedule-row:first-child {
  border-top: 0;
}

.listing-service-row:first-child {
  border-top: 0;
}

.listing-schedule-head {
  background: var(--dash-soft);
  color: var(--dash-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-service-head {
  grid-column: 1 / -1;
  display: none;
  background: var(--dash-soft);
  color: var(--dash-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-service-card-preview {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: start;
}

.listing-service-icon-preview {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-light);
  margin-top: 2px;
}

.listing-service-fields {
  display: grid;
  gap: 8px;
}

.listing-service-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--dash-border);
}

.listing-service-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--dash-border);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.listing-service-icon-btn:hover,
.listing-service-icon-btn.is-selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.schedule-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-ranges {
  display: grid;
  gap: 10px;
  width: 100%;
}

.schedule-range {
  display: grid;
  grid-template-columns: minmax(104px, 128px) 14px minmax(104px, 128px) 34px;
  gap: 10px;
  align-items: center;
  justify-content: start;
}

.schedule-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
}

.listing-service-name,
.listing-service-description,
.listing-service-price,
.admin-inline-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.schedule-icon-btn,
.schedule-add-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dash-border);
  border-radius: 999px;
  background: #fff;
  color: var(--dash-muted);
  cursor: pointer;
}

.schedule-add-btn {
  justify-self: center;
}

.schedule-icon-btn:hover,
.schedule-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.listing-special-dates {
  margin-top: 16px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: #fff;
}

.listing-service-add {
  margin-top: 12px;
}

.listing-special-dates-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dash-border);
}

.special-date-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.special-dates-list {
  display: grid;
}

.special-date-row {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--dash-border);
}

.special-date-row:first-child {
  border-top: 0;
}

.special-date-main {
  display: grid;
  grid-template-columns: 160px minmax(180px, 1fr) 120px 36px;
  gap: 10px;
  align-items: center;
}

.special-date-input,
.special-date-name {
  width: 100%;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--dash-border);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
}

.special-date-hours {
  padding-left: 170px;
}
.admin-check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
}
.admin-check-option input { accent-color: var(--primary); }
.admin-add-specialty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}
.admin-upload-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  display: block;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.admin-upload-box:hover {
  border-color: var(--primary);
  background: rgba(0, 187, 193, 0.08);
  transform: translateY(-1px);
}
.admin-upload-box i {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 8px;
}
.admin-upload-box.has-file {
  border-style: solid;
  background: rgba(0, 187, 193, 0.08);
  color: var(--text);
}
.admin-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.admin-gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--primary-light) center / cover no-repeat;
  overflow: hidden;
  border: 1px solid var(--border);
}
.admin-gallery-thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 18, 41, 0.72);
  color: #fff;
  cursor: pointer;
}
.admin-template-preview {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.admin-template-preview-head {
  background: linear-gradient(135deg, var(--primary-light), #f7ffff);
  min-height: 176px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.admin-template-preview-head.has-cover {
  min-height: 180px !important;
}
.admin-template-preview-head.has-cover i { display: none; }
.admin-template-preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  border: 4px solid #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.admin-template-preview-head .badge {
  position: absolute;
  top: 14px;
  right: 14px;
}
.admin-template-preview-body { padding: 20px; min-height: 180px; }
.admin-preview-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}
.admin-preview-text {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.admin-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.admin-preview-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.admin-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.admin-status-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: #102222;
  color: #ffffff;
  border: 1px solid #2b4b4b;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 700;
}
.admin-status-toast.show { display: flex; }
.admin-status-toast.success i { color: #35d7dc; }
.admin-status-toast.warn i { color: var(--accent); }

.blog-publications-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.blog-publication-item {
  display: grid;
  grid-template-columns: 38px minmax(180px, 1.7fr) minmax(145px, 0.85fr) minmax(155px, 0.9fr) 112px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  background: #ffffff;
  min-height: 48px;
}
.blog-publication-thumb {
  width: 38px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary-light), #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--primary-dark);
}
.blog-publication-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-publication-thumb i { font-size: 0.95rem; }
.blog-publication-title {
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-publication-date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.74rem;
  min-width: 0;
  white-space: nowrap;
}
.blog-publication-date span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-publication-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 0;
  white-space: nowrap;
}
.state-light {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.state-light.published { background: #1a9e5e; }
.state-light.scheduled { background: #f0a500; }
.state-light.draft { background: #8a98a8; }
.blog-publication-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.blog-publication-actions .btn {
  padding: 4px 8px;
  font-size: 0.72rem;
  min-height: 28px;
}
.blog-publication-actions .action-btn {
  width: 28px;
  height: 28px;
}
.blog-publication-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-soft);
}

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  padding: 10px 16px; text-align: left; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
  border-bottom: 1px solid var(--border); background: var(--bg-soft);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-soft); }
.plan-pill {
  padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.plan-pill.elite { background: linear-gradient(135deg, #fff8e6, #d7caa4); color: #007d83; border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,0.65); }
.plan-pill.pro { background: var(--primary-light); color: var(--primary-dark); }
.plan-pill.basic { background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.status-pill {
  padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.status-pill.active { background: #e6faf2; color: #1a9e5e; }
.status-pill.pending { background: #fff8e6; color: #a07000; }
.status-pill.inactive { background: #fff0f0; color: #c0392b; }

.dashboard-alert {
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}
.dashboard-alert-warning {
  background: #fff8e6;
  border: 1px solid #f5e0a0;
  color: #162526;
}
.dashboard-alert-warning a {
  color: var(--primary);
  font-weight: 700;
}

/* Dashboard/login dark theme */
body.theme-dark {
  --text: #f3fbfb;
  --text-muted: #a8bcbc;
  --bg-soft: #071414;
  --border: #243c3c;
  --primary-light: rgba(0,187,193,0.14);
  background: #071414;
  color: var(--text);
}
body.theme-dark .navbar {
  background: #071414 !important;
  border-color: #243c3c !important;
  box-shadow: none;
}
body.theme-dark .navbar a,
body.theme-dark .navbar span { color: var(--text) !important; }
body.theme-dark .btn-outline {
  background: transparent;
  border-color: #2b4b4b;
  color: #d8eeee;
}
body.theme-dark .login-page,
body.theme-dark .dash-main {
  background: #071414;
}
body.theme-dark .login-card,
body.theme-dark .login-header,
body.theme-dark .login-body,
body.theme-dark .dash-sidebar,
body.theme-dark .dash-topbar,
body.theme-dark .dash-card,
body.theme-dark .stat-card,
body.theme-dark .kpi-card,
body.theme-dark .sidebar-card {
  background: #0d1d1d;
  border-color: #243c3c;
  color: var(--text);
}
body.theme-dark .dash-card-header,
body.theme-dark .dash-sidebar-header,
body.theme-dark .dash-sidebar-footer,
body.theme-dark .admin-table th,
body.theme-dark .admin-table td {
  border-color: #243c3c;
}
body.theme-dark .dash-nav-label,
body.theme-dark .dash-user-role,
body.theme-dark .stat-label,
body.theme-dark .kpi-label,
body.theme-dark .review-date,
body.theme-dark .review-manage-text,
body.theme-dark .login-header p,
body.theme-dark .login-divider,
body.theme-dark .dash-sidebar-footer a {
  color: var(--text-muted);
}
body.theme-dark .dash-nav-item {
  color: #b8cccc;
}
body.theme-dark .dash-nav-item:hover,
body.theme-dark .dash-nav-item.active {
  background: rgba(0,187,193,0.14);
  color: #35d7dc;
}
body.theme-dark .dash-form-input,
body.theme-dark .form-input,
body.theme-dark .filter-select,
body.theme-dark .search-admin,
body.theme-dark .login-oauth,
body.theme-dark .login-role-toggle,
body.theme-dark .rich-editor,
body.theme-dark .admin-check-option,
body.theme-dark .admin-template-preview,
body.theme-dark .blog-publication-item {
  background: #102222;
  border-color: #2b4b4b;
  color: var(--text);
}
body.theme-dark .search-admin input {
  background: transparent;
  color: var(--text);
}
body.theme-dark .login-role-btn.active {
  background: #152b2b;
  color: #35d7dc;
  box-shadow: none;
}
body.theme-dark .rich-editor-toolbar {
  background: #0d1d1d;
  border-color: #2b4b4b;
}
body.theme-dark .rich-editor-toolbar button:hover,
body.theme-dark .rich-editor-toolbar button.is-active {
  background: #152b2b;
  border-color: #2b4b4b;
  color: #35d7dc;
}
body.theme-dark .rich-editor-color:hover {
  background: #152b2b;
  border-color: #2b4b4b;
  color: #35d7dc;
}
body.theme-dark .rich-editor-select:hover {
  background: #152b2b;
  border-color: #2b4b4b;
  color: #35d7dc;
}
body.theme-dark .rich-editor-select select {
  background: #152b2b;
}
body.theme-dark .rich-editor-surface {
  scrollbar-color: #35d7dc #0d1d1d;
}
body.theme-dark .rich-editor-surface::-webkit-scrollbar-track {
  background: #0d1d1d;
}
body.theme-dark .rich-editor-surface::-webkit-scrollbar-thumb {
  background: #35d7dc;
  border-color: #0d1d1d;
}
body.theme-dark .signup-modal-card,
body.theme-dark .signup-form-section {
  background: #102222;
  border-color: #2b4b4b;
}
body.theme-dark .signup-modal-header,
body.theme-dark .signup-checkbox-grid label,
body.theme-dark .signup-consent {
  border-color: #2b4b4b;
}
body.theme-dark .signup-checkbox-grid label,
body.theme-dark .signup-consent {
  background: #0d1d1d;
}
body.theme-dark .admin-table th,
body.theme-dark .admin-table tr:hover td,
body.theme-dark .review-respond-box,
body.theme-dark .google-connect-card,
body.theme-dark .admin-upload-box,
body.theme-dark .blog-publication-empty {
  background: #102222;
}
body.theme-dark .admin-template-preview-head {
  background: linear-gradient(135deg, rgba(0,187,193,0.14), #102222);
}
body.theme-dark .revenue-bar {
  background: #203636;
}
body.theme-dark .dashboard-alert-warning {
  background: #2a2110;
  border-color: #7a5a18;
  color: #fff4d5;
}
body.theme-dark .dashboard-alert-warning strong {
  color: #ffffff;
}
body.theme-dark .dashboard-alert-warning a {
  color: #39d7dc;
}
body.theme-dark .listing-schedule-editor,
body.theme-dark .listing-special-dates {
  background: #102222;
  border-color: #2b4b4b;
}
body.theme-dark .listing-services-editor {
  background: transparent;
}
body.theme-dark .listing-schedule-row,
body.theme-dark .listing-service-row,
body.theme-dark .listing-special-dates-head,
body.theme-dark .special-date-row {
  border-color: #2b4b4b;
}
body.theme-dark .listing-service-row {
  background: #102222;
}
body.theme-dark .listing-schedule-head,
body.theme-dark .listing-service-head {
  background: #0d1d1d;
  color: #a8bcbc;
}
body.theme-dark .schedule-input,
body.theme-dark .listing-service-icon,
body.theme-dark .listing-service-name,
body.theme-dark .listing-service-description,
body.theme-dark .listing-service-price,
body.theme-dark .admin-inline-input,
body.theme-dark .special-date-input,
body.theme-dark .special-date-name {
  background: #0b1919;
  border-color: #2b4b4b;
  color: var(--text);
}
body.theme-dark .listing-service-icon-picker {
  border-color: #2b4b4b;
}
body.theme-dark .listing-service-icon-preview,
body.theme-dark .listing-service-icon-btn:hover,
body.theme-dark .listing-service-icon-btn.is-selected {
  background: rgba(53,215,220,0.16);
  border-color: #35d7dc;
  color: #35d7dc;
}
body.theme-dark .listing-service-icon-btn {
  background: #0b1919;
  border-color: #2b4b4b;
  color: #a8bcbc;
}
body.theme-dark .schedule-icon-btn,
body.theme-dark .schedule-add-btn {
  background: #0b1919;
  border-color: #2b4b4b;
  color: #a8bcbc;
}
body.theme-dark .schedule-icon-btn:hover,
body.theme-dark .schedule-add-btn:hover {
  color: #35d7dc;
  border-color: #35d7dc;
}
body.theme-dark .plan-pill.elite {
  background: linear-gradient(135deg, #f8e7a8, #c7a84f);
  border-color: #f0d986;
  color: #092322;
  text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255,248,214,0.18), 0 6px 16px rgba(0,0,0,0.22);
}
body.theme-dark .plan-pill.pro {
  background: rgba(0,187,193,0.2);
  color: #63edf2;
  border: 1px solid rgba(99,237,242,0.22);
}
body.theme-dark .plan-pill.basic {
  background: #0b1919;
  color: #d8eeee;
  border-color: #3c5d5d;
}

/* Responsive dashboard */
@media (max-width: 900px) {
  .dash-sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-form-grid { grid-template-columns: 1fr; }
  .dash-form-full { grid-column: span 1; }
  .admin-form-columns { grid-template-columns: 1fr; }
  .admin-checkbox-grid { grid-template-columns: 1fr 1fr; }
  .listing-services-editor {
    grid-template-columns: 1fr;
  }
  .listing-schedule-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .listing-service-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .listing-schedule-head {
    display: none;
  }
  .listing-service-head {
    display: none;
  }
  .special-date-main {
    grid-template-columns: 1fr;
  }
  .special-date-hours {
    padding-left: 0;
  }
}

/* =============================================
   UTILS
   ============================================= */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .osteopaths-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .barrios-grid, .specialties-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dir-layout { grid-template-columns: 240px 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .recommended-carousel { grid-auto-columns: minmax(280px, 330px); }
  .blog-hero-inner,
  .blog-featured-card,
  .blog-seo-block { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero-media { min-height: 340px; }
  .blog-hero-media img { min-height: 340px; }
  .signup-form-grid,
  .signup-checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-links.open { display: flex; flex-direction: column; align-items: flex-start; position: fixed; inset: 88px 0 0; background: white; padding: 24px; z-index: 99; }
  .navbar-links .btn { margin-left: 0; }
  .nav-user { width: 46px; height: 46px; }
  .navbar-toggle { display: flex; }
  .signup-modal {
    padding: 10px;
    align-items: flex-start;
  }
  .signup-modal-card {
    max-height: calc(100vh - 20px);
  }
  .signup-modal-header,
  .signup-request-form {
    padding-left: 18px;
    padding-right: 18px;
  }
  .signup-form-grid,
  .signup-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 38px 0 44px;
    min-height: auto;
    background:
      radial-gradient(circle at 0% 100%, rgba(0,187,193,0.15) 0 95px, transparent 96px),
      linear-gradient(180deg, #ffffff 0%, #f2fbfd 100%);
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-right {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 320px;
    opacity: 1;
  }
  .hero-left { order: 1; }
  .hero-left h1 { font-size: clamp(2.55rem, 12vw, 3.35rem); }
  .hero-left > p { font-size: 1rem; }
  .hero-map { border-radius: 20px; height: 100%; box-shadow: var(--shadow); }
  .hero-image {
    top: 0;
    height: 100%;
  }
  /* Trust stats en 2 columnas */
  .hero-stats-bar { margin-top: 28px; }
  .hero-trust-stats { flex-wrap: wrap; border-radius: 16px; }
  .trust-stat { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); padding: 16px 18px; }
  .trust-stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .trust-stat:nth-last-child(-n+2) { border-bottom: none; }
  .trust-stat-icon { width: 48px; height: 48px; font-size: 1.45rem; }
  .trust-stat-title { font-size: 0.92rem; }
  .trust-stat-sub { font-size: 0.78rem; }
  .hero-search { flex-direction: column; align-items: stretch; padding: 16px; max-width: 100%; }
  .hero-search input { min-width: 0; }
  .recommended-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .recommended-section-compact { padding: 18px; }
  .recommended-carousel {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none; }

  .osteopaths-grid, .grid-4 { grid-template-columns: 1fr; }
  .barrios-grid { grid-template-columns: repeat(2, 1fr); }
  .specialties-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }

  .pro-cta { flex-direction: column; text-align: center; padding: 40px 24px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .dir-layout { grid-template-columns: 1fr; }
  .dir-sidebar { position: static; }
  .dir-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: auto; }
  .admin-checkbox-grid { grid-template-columns: 1fr; }
  .admin-actions-row { justify-content: stretch; }
  .admin-actions-row .btn { width: 100%; justify-content: center; }
  .blog-publication-item {
    grid-template-columns: 34px minmax(120px, 1fr) 96px;
    gap: 8px;
    min-height: 44px;
  }
  .blog-publication-thumb {
    width: 34px;
    height: 28px;
  }
  .blog-publication-date {
    display: none;
  }
  .blog-publication-state {
    justify-content: flex-start;
  }
  .blog-publication-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .blog-publication-actions .btn,
  .blog-publication-actions .action-btn {
    flex: 0 0 auto;
    justify-content: center;
  }
  .blog-hero { padding: 46px 0 42px; }
  .blog-hero-inner { gap: 30px; }
  .blog-hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .blog-hero-copy p { font-size: 1rem; }
  .blog-hero-actions { flex-direction: column; }
  .blog-hero-actions .btn { width: 100%; justify-content: center; }
  .blog-hero-media { min-height: 260px; }
  .blog-hero-media img { min-height: 260px; border-radius: 18px; }
  .blog-featured { margin-top: 0; }
  .blog-featured-card { padding: 22px; }
  .blog-featured-aside { min-height: 120px; }
  .blog-section { padding: 54px 0 40px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-seo-block { padding: 24px; margin-bottom: 48px; }
}
