/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
  --color-bg: #fdfdf9;
  --color-text: #222;
  --color-text-muted: #6b6b6b;
  --color-primary: #2d6a4f;
  --color-primary-light: #52b788;
  --color-secondary: #d4a574;
  --color-surface: #ffffff;
  --color-border: #e8ede9;
  --color-accent-soft: #f1f8f4;
  --color-accent-warm: #fef9f3;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  
  --max-width: 1200px;
  --container-padding: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  
  --shadow-sm: 0 1px 3px rgba(30, 45, 36, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 45, 36, 0.06);
  --shadow-lg: 0 12px 32px rgba(30, 45, 36, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

::selection {
  background: var(--color-primary-light);
  color: white;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
  color: var(--color-text);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(28px, 5vw, 42px);
  color: var(--color-text);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(18px, 3vw, 22px);
  margin-bottom: 12px;
}

blockquote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--color-primary);
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--color-secondary);
  font-size: 17px;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.text-muted {
  color: var(--color-text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  background: var(--color-accent-warm);
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(212, 165, 116, 0.2);
  max-width: 100%;
  word-wrap: break-word;
}

.view-more {
  margin-top: 20px;
  text-align: center;
}

.view-more a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.view-more a:hover {
  color: var(--color-primary-light);
  gap: 10px;
}

/* ========================================
   ABOUT SECTION & CTA CARDS
   ======================================== */
.about-card,
.cta-card {
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-accent-warm) 100%);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.about-card h3,
.cta-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.about-card p,
.cta-card p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 65ch;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  margin-top: 80px;
  padding: 48px 0 32px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

footer strong {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.footer-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  word-wrap: break-word;
}

.footer-meta a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.footer-meta a:hover {
  color: var(--color-primary-light);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.copyright {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  word-wrap: break-word;
}

/* ========================================
   HEADER
   ======================================== */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
  width: 100%;
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px var(--container-padding);
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.85;
}

.logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

nav.primary {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav.primary a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

nav.primary a:hover,
nav.primary a:focus {
  color: var(--color-primary);
  background: var(--color-accent-soft);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
  color: var(--color-primary);
  background: var(--color-accent-soft);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  display: none;
  z-index: 1000;
}

.nav-dropdown-menu.show {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  color: var(--color-text);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: var(--color-accent-soft);
}

.mobile-menu {
  display: none;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
  width: 100%;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px var(--container-padding);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-menu a:hover {
  background: var(--color-accent-soft);
  border-left-color: var(--color-primary);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.25);
}

.btn-primary:hover {
  background: #245a41;
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-accent-soft);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-reset {
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-reset:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ========================================
   Estilos de focus para accesibilidad
   ======================================== */
.btn:focus,
.nav-dropdown-toggle:focus,
.mobile-toggle:focus,
.btn-reset:focus,
.filter-select:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* ========================================
   HERO & PAGE HERO (homogeneizados)
   ======================================== */
.hero {
  padding: 50px 0;
  background: linear-gradient(165deg, var(--color-accent-soft) 0%, var(--color-accent-warm) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.page-hero {
  padding: 20px 0;
  background: linear-gradient(165deg, var(--color-accent-soft) 0%, var(--color-accent-warm) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-content,
.page-header {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-content h1,
.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-top: 16px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content .lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-bottom: 32px;
}

.page-header .lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: -.8em;
}

/* ========================================
   SEARCH CARD
   ======================================== */
.search-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-width: 0;
}

.search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.search-card:hover::before {
  transform: scaleX(1);
}

.search-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.search-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
  text-align: left;
}

.search-sub {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
  text-align: left;
}

/* MAP PREVIEW */
.map-preview-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 24px 0;
  background: var(--color-accent-soft);
  box-shadow: var(--shadow-sm);
  cursor: default;
  width: 100%;
  max-width: 100%;
}

.map-preview-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.9) brightness(1.02);
  transition: filter 0.3s ease;
  object-fit: contain;
}

.search-card:hover .map-preview-image {
  filter: saturate(1) brightness(1);
}

/* CTA Button */
.btn-map-cta {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

/* Search Help - Alineado a la izquierda con separador */
.search-help {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: left;
}

.search-help a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.search-help a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* ========================================
   CARDS & GRID
   ======================================== */
.section {
  padding: 40px 0;
  width: 100%;
}

.section-compact {
  padding: 30px 0;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: 700;
}

.card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-link a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.card-link a:hover {
  color: var(--color-primary-light);
  gap: 10px;
}

/* ========================================
   EVENTS & RESOURCES
   ======================================== */
.events-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  background: var(--color-surface);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  min-width: 0;
}

.list-item > div {
  flex: 1;
  min-width: 0;
}

.list-item:hover {
  border-color: var(--color-primary);
  background: var(--color-accent-soft);
  transform: translateX(4px);
}

.list-item strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  word-wrap: break-word;
}

.meta {
  color: var(--color-text-muted);
  font-size: 13px;
  word-wrap: break-word;
}

.list-item a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  flex-shrink: 0;
}

.list-item a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ========================================
   MAP INTRO BANNER
   ======================================== */
.map-intro {
  padding: 24px 0;
}

.map-cta-banner {
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-accent-warm) 100%);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.map-cta-banner:hover {
  box-shadow: var(--shadow-md);
}

.map-banner-content h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--color-text);
  font-weight: 700;
}

.map-banner-content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.map-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.stat-badge {
  background: var(--color-surface);
  padding: 16px 24px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.stat-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-badge strong {
  font-size: 32px;
  color: var(--color-primary);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-badge span {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   MAP ERROR STATE
   ======================================== */
.map-error {
  background: var(--color-accent-soft);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}

.error-content {
  max-width: 400px;
  margin: 0 auto;
}

.error-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.error-content h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.error-content p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 15px;
}

/* ========================================
   MAP SECTION IMPROVEMENTS
   ======================================== */
#mapSection {
  scroll-margin-top: 80px; /* Compensar header sticky */
}

.map-container {
  position: relative;
  max-width: 100%;
}

.map-subtitle {
  margin-bottom: 24px;
  font-size: 16px;
}

.map-wrapper {
  background: var(--color-accent-soft);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
}

.map-iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ========================================
   PÁGINA PROFESIONALES - FILTROS
   ======================================== */
.filters-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 24px;
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.filter-select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-select:hover {
  border-color: var(--color-primary);
}

/* ========================================
   PÁGINA PROFESIONALES - LISTADO
   ======================================== */
.professionals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-count {
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.results-count span {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 18px;
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.professional-card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.professional-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.professional-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.professional-card:hover::before {
  transform: scaleX(1);
}

.professional-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.professional-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.professional-center {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.professional-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.badge-presencial {
  background: var(--color-accent-soft);
  color: var(--color-primary);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.badge-online {
  background: var(--color-accent-warm);
  color: var(--color-secondary);
  border: 1px solid rgba(212, 165, 116, 0.2);
}

.professional-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* ========================================
   ANIMACIÓN DE CARGA DE TARJETAS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.professional-card {
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
}

/* Stagger animation: cada tarjeta aparece con un pequeño delay */
.professional-card:nth-child(1) { animation-delay: 0.05s; }
.professional-card:nth-child(2) { animation-delay: 0.1s; }
.professional-card:nth-child(3) { animation-delay: 0.15s; }
.professional-card:nth-child(4) { animation-delay: 0.2s; }
.professional-card:nth-child(5) { animation-delay: 0.25s; }
.professional-card:nth-child(6) { animation-delay: 0.3s; }
.professional-card:nth-child(7) { animation-delay: 0.35s; }
.professional-card:nth-child(8) { animation-delay: 0.4s; }
.professional-card:nth-child(9) { animation-delay: 0.45s; }
.professional-card:nth-child(10) { animation-delay: 0.5s; }
.professional-card:nth-child(11) { animation-delay: 0.55s; }
.professional-card:nth-child(12) { animation-delay: 0.6s; }

/* Para tarjetas que aparecen después del filtrado, animación más rápida */
.professional-card.filter-show {
  animation: fadeInUp 0.3s ease-out forwards;
  animation-delay: 0s;
}

/* ========================================
   INDICADOR DE FILTROS ACTIVOS
   ======================================== */
.active-filters-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--color-accent-soft);
  border-radius: 12px;
  border: 1px solid var(--color-primary);
  margin-top: 16px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filters-label {
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
}

#activeFiltersText {
  color: var(--color-text);
  flex: 1;
  line-height: 1.4;
}

.clear-indicator {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

.clear-indicator:hover {
  background: #245a41;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
}

.clear-indicator:active {
  transform: translateY(0);
}

.clear-indicator:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

.info-icon {
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.info-item a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* ========================================
   NO RESULTS MESSAGE
   ======================================== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--color-accent-soft);
  border-radius: 18px;
  border: 2px dashed var(--color-border);
}

.no-results p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  nav.primary {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .map-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .map-stats {
    width: 100%;
    justify-content: space-between;
  }

  .stat-badge {
    flex: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .page-hero {
    padding: 32px 0 24px;
  }

  .search-card {
    padding: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .section-compact {
    padding: 40px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-card,
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .button-group {
    width: 100%;
  }

  .btn {
    flex: 1;
    min-width: 0;
  }

  .header-cta .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Profesionales responsive */
  .professionals-grid {
    grid-template-columns: 1fr;
  }

  .filters-bar {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .btn-reset {
    width: 100%;
  }

  .professionals-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-iframe {
    height: 400px;
  }

  .map-intro {
    padding: 20px 0;
  }

  .map-cta-banner {
    padding: 24px;
    gap: 24px;
  }

  .map-banner-content h3 {
    font-size: 20px;
  }

  .map-banner-content p {
    font-size: 15px;
  }

  .map-stats {
    gap: 12px;
  }

  .stat-badge {
    padding: 12px 16px;
    min-width: 0;
  }

  .stat-badge strong {
    font-size: 28px;
  }

  .stat-badge span {
    font-size: 12px;
  }

    .active-filters-indicator {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  #activeFiltersText {
    font-size: 13px;
  }

  .clear-indicator {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Ajustar animación en mobile para mejor performance */
  .professional-card:nth-child(n+7) {
    animation-delay: 0.35s;
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item a {
    width: 100%;
    text-align: center;
  }

  .header-cta .btn-ghost {
    display: none;
  }

  .logo {
    height: 38px;
  }

  .brand-text h1 {
    font-size: 14px;
  }

  /* Profesionales mobile */
  .professional-header {
    flex-direction: column;
  }

  .professional-badges {
    flex-direction: row;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 28px;
  }

  .page-header .lead {
    font-size: 16px;
  }

  .stat-badge strong {
    font-size: 24px;
  }

  .map-cta-banner {
    padding: 20px;
  }
}