/* ============================================
   DIRECTORIO - BASE STYLES
   Template reutilizable para directorios
   ============================================ */

:root {
  /* Colors - cambiar estos para cada directorio */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #22c55e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-icon { font-size: 1.5rem; }

.nav { display: flex; gap: 32px; }
.nav a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 strong { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Box */
.search-box {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.search-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 16px;
  align-items: end;
}

.search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  font-family: inherit;
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 40px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   DIRECTORIO / CARDS
   ============================================ */
.directorio { padding: 60px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.results-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-btn.active,
.view-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0;
}

/* Card */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(37,99,235,.12), 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-4px);
}

/* Card accent stripe */
.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover .card-accent {
  opacity: 1;
}

/* Card header: avatar centered */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 0;
  text-align: center;
}

.card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 700;
  overflow: hidden;
  border: 3px solid var(--bg-white);
  box-shadow: 0 2px 12px rgba(37,99,235,.15);
  margin-bottom: 14px;
}
.card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.card-location svg {
  flex-shrink: 0;
}

/* Card body */
.card-body {
  padding: 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 0;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.stars svg {
  display: block;
}

.rating-text {
  font-size: 0.82rem;
  color: var(--text-light);
}
.rating-text strong {
  color: var(--text);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.card-tags .tag {
  font-size: 0.7rem;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.tag {
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  text-align: center;
}

/* Card footer */
.card-footer-area {
  margin-top: auto;
  padding: 16px 24px 24px;
}

.btn-contactar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius);
  color: white;
  background: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  text-decoration: none;
  text-align: center;
}
.btn-contactar:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transform: translateY(-1px);
}
.btn-contactar svg {
  flex-shrink: 0;
}

/* Badge */
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* --- List view overrides --- */
.cards-grid.list-view .card {
  flex-direction: row;
  align-items: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  overflow: visible;
  padding: 20px 0;
}
.cards-grid.list-view .card:first-child {
  border-top: 1px solid var(--border);
}
.cards-grid.list-view .card:hover {
  background: var(--bg);
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.cards-grid.list-view .card-accent {
  display: none;
}
.cards-grid.list-view .card-header {
  flex-direction: row;
  padding: 0;
  text-align: left;
  gap: 14px;
  min-width: 220px;
}
.cards-grid.list-view .card-avatar {
  width: 52px;
  height: 52px;
  margin-bottom: 0;
  font-size: 1.1rem;
}
.cards-grid.list-view .card-body {
  flex: 1;
  padding: 0 20px;
}
.cards-grid.list-view .card-rating-row,
.cards-grid.list-view .card-tags {
  justify-content: flex-start;
}
.cards-grid.list-view .card-desc {
  text-align: left;
}
.cards-grid.list-view .card-footer-area {
  padding: 0;
  margin-top: 0;
  flex-shrink: 0;
}
.cards-grid.list-view .btn-contactar {
  width: auto;
  padding: 9px 20px;
}

.btn-sm-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.btn-sm-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  pointer-events: none;
}
.page-dots {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--text-light);
}

/* ============================================
   PROVINCE CITIES GRID
   ============================================ */
.province-cities {
  padding: 40px 0 20px;
  background: var(--bg-white);
}
.province-cities h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.city-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.city-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.city-count {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ============================================
   CIUDADES PRINCIPALES
   ============================================ */
.ciudades-section {
  padding: 64px 0;
  background: var(--bg-white);
}

.ciudades-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.section-more {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
}

.ciudades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ciudad-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  color: var(--text);
  text-decoration: none;
}

.ciudad-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ciudad-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 40px;
}

.ciudad-card:hover .ciudad-count {
  color: var(--primary-dark);
}

.ciudad-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.ciudad-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform var(--transition);
}

.ciudad-card:hover .ciudad-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* ============================================
   ESPECIALIZACIONES
   ============================================ */
.especializaciones-section {
  padding: 64px 0;
}

.especializaciones-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.especializaciones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.espec-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.espec-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.espec-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.espec-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.espec-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

.espec-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.espec-link:hover {
  color: var(--primary-dark);
}

/* ============================================
   PROVINCIAS SECTION
   ============================================ */
.provincias-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.provincias-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.provincias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.provincia-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.provincia-link:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.provincia-count {
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ============================================
   ESPECIALIDADES
   ============================================ */
.especialidades-section {
  padding: 60px 0;
}

.especialidades-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud-item {
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.tag-cloud-item:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tag-cloud-item .count {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 4px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.faq-list { max-width: 800px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--bg); }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); }
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 20px 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer p { font-size: 0.9rem; line-height: 1.6; }

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state p { margin-bottom: 16px; font-size: 1.1rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ciudades-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .especializaciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* List view stacks on tablet */
  .cards-grid.list-view .card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .cards-grid.list-view .card-accent { display: block; }
  .cards-grid.list-view .card-header {
    flex-direction: column;
    padding: 28px 24px 0;
    text-align: center;
    min-width: auto;
  }
  .cards-grid.list-view .card-avatar { margin-bottom: 14px; }
  .cards-grid.list-view .card-body { padding: 16px 24px; }
  .cards-grid.list-view .card-rating-row,
  .cards-grid.list-view .card-tags { justify-content: center; }
  .cards-grid.list-view .card-desc { text-align: center; }
  .cards-grid.list-view .card-footer-area { padding: 16px 24px 24px; }
  .cards-grid.list-view .btn-contactar { width: 100%; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: flex; }

  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; }

  .search-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-grid { gap: 32px; }
  .stat-num { font-size: 1.5rem; }

  .section-header { flex-direction: column; align-items: flex-start; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .provincias-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ciudades-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ciudad-card {
    padding: 12px 14px;
  }

  .ciudad-count {
    font-size: 1.1rem;
    min-width: 32px;
  }

  .especializaciones-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .espec-card {
    padding: 18px;
  }
}

@media (max-width: 580px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-header {
    padding: 24px 20px 0;
  }
  .card-body {
    padding: 14px 20px;
  }
  .card-footer-area {
    padding: 14px 20px 20px;
  }
  .card-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
  }

  .ciudades-grid {
    grid-template-columns: 1fr;
  }

  .especializaciones-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .provincias-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 12px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb strong { color: var(--text); font-weight: 500; }

/* ============================================
   CITY HERO
   ============================================ */
.city-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 0 50px;
}
.city-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.city-hero .hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.city-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.city-stat {
  text-align: center;
}
.city-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}
.city-stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   CITY SPECIALTIES BAR
   ============================================ */
.city-esps {
  padding: 20px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.city-esps .tags-cloud {
  justify-content: center;
}

/* ============================================
   SEO CONTENT
   ============================================ */
.seo-content {
  padding: 60px 0;
  background: var(--bg);
}
.seo-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.seo-text {
  max-width: 800px;
  line-height: 1.8;
  color: var(--text-light);
}
.seo-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}
.seo-text p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .city-hero { padding: 40px 0 32px; }
  .city-hero h1 { font-size: 1.6rem; }
  .city-stats { gap: 24px; }
  .city-stat-num { font-size: 1.4rem; }
}
