/* 
  ProExperience Skeleton Styles
  Premium, modern, and dynamic design
*/

:root {
  --font-base: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;
  
  --bg-color: #0b0f19; /* Deep navy/dark background */
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  
  --brand-primary: #00a896; /* Teal */
  --brand-secondary: #277eff; /* Blue */
  --brand-accent: #f59e0b; /* Amber/Gold */
  
  --gradient-primary: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-pro: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%); /* Sky blue gradient for "Pro" */
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Navigation */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--surface-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-highlight {
  background: var(--gradient-pro);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 99px;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 168, 150, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 150, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.1) 100%);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(18, 140, 126, 0.2) 100%);
  border-color: rgba(37, 211, 102, 0.4);
  color: #fff;
}

.btn-link {
  background: none;
  border: none;
  color: var(--brand-secondary);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--brand-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(39,126,255,0.15) 0%, rgba(0,168,150,0.05) 40%, rgba(11,15,25,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Metrics Section */
.metrics-section {
  padding: 40px 0 80px;
  position: relative;
  z-index: 2;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.metric-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.metric-value {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Ecosystem Section */
.ecosystem-section {
  padding: 80px 0;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.eco-item {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.eco-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.eco-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d2ff;
}

.eco-icon svg {
  width: 32px;
  height: 32px;
}

.eco-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.eco-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Evidencias Slider */
.evidencias-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 -24px; /* offset container padding for mobile edge-to-edge if needed */
  padding: 0 24px;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 20px 0;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  width: 100%;
}

.slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.slider-item {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: center;
  min-width: 320px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: auto;
  transition: var(--transition);
}

.slider-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.iframe-wrapper {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.iframe-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
  z-index: -1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.slider-prev {
  left: 0px;
}

.slider-next {
  right: 0px;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
  font-style: italic;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.author-role {
  color: var(--brand-primary);
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.faq-item summary {
  padding: 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-primary);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 24px 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--surface-border);
}

.footer-cta {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 24px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
}

.footer-cta h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--surface-color);
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img, .gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-icon {
  color: #fff;
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Modals / Lightbox */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
  transform: scale(1);
  opacity: 1;
}

.modal img, .modal video {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -40px; right: -40px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  transform: scale(1.1) rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.modal-nav:hover {
  background: rgba(255,255,255,0.3);
}

.modal-prev { left: -70px; }
.modal-next { right: -70px; }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .slider-item {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .nav-bar .btn {
    width: auto;
    padding: 0.3rem 0.6rem !important;
    font-size: 0.85rem;
  }
  .brand-text {
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .brand-text > span:last-child {
    display: inline;
    font-size: 0.85rem;
    margin-top: 0;
  }
  .footer-certs {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .modal-nav {
    width: 40px; height: 40px;
  }
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
  .modal-close { top: -40px; right: 0; font-size: 2rem; }
  
  .slider-item {
    flex: 0 0 85%;
  }
  .slider-prev {
    left: 10px;
  }
  .slider-next {
    right: 10px;
  }
}
.team-section-outer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 1rem;
  position: relative;
  z-index: 1;          /* keeps section above glass-card orbs */
  isolation: isolate;  /* new stacking context — Leaflet panes stay inside */
}

/* ── Team header ───────────────────────── */
.team-header { text-align: center; position: relative; z-index: 2; }

.team-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79,189,247,0.1);
  border: 1px solid rgba(79,189,247,0.3);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: #4fbdf7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-title {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #4f8ef7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.team-heart { -webkit-text-fill-color: initial; }
.team-sub { color: var(--c-muted); font-size: 0.95rem; }

/* Social icons row in team header */
.team-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.85rem;
}
.team-social-link {
  color: rgba(160, 185, 230, 0.55);
  text-decoration: none;
  display: flex;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  z-index: 10;   /* above Leaflet panes */
  cursor: pointer;
}
.team-social-link:hover {
  color: rgba(160, 185, 230, 0.95);
  transform: translateY(-3px);
}


/* ── Map container ──────────────────────── */
.team-map-wrap {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;           /* clips map to rounded box */
  border: 1px solid var(--c-border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 0;
}

#team-map {
  display: block;
  width: 100%;
  height: 400px;
  background: #0a0d1c;
}

.map-legend {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(7,9,26,0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 1000;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--c-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.legend-item:hover { color: var(--c-text); }
.legend-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* Map markers */
.map-state-dot {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: transform 0.2s;
}
.map-state-dot:hover { transform: scale(1.4); }

/* Active state markers (shown on card click) */
.map-active-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.7);
  animation: pulseDot 1.4s ease-in-out infinite;
  cursor: pointer;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.75; }
}

.map-zone-label {
  font-size: 9px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(7,9,26,0.75);
  backdrop-filter: blur(4px);
  border: 1px solid currentColor;
  white-space: nowrap;
  pointer-events: none;
}

/* Leaflet popup override */
.rp-popup .leaflet-popup-content-wrapper {
  background: rgba(15,18,40,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  color: var(--c-text);
  padding: 0;
}
.rp-popup .leaflet-popup-content { margin: 0; padding: 0; }
.rp-popup .leaflet-popup-tip { background: rgba(15,18,40,0.97); }
.rp-popup .leaflet-popup-close-button { color: var(--c-muted) !important; }

.map-popup {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.map-popup-zona  { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }
.map-popup-name  { font-size: 1rem; font-weight: 700; color: var(--c-text); }
.map-popup-state { font-size: 0.82rem; color: var(--c-muted); }
.map-popup-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.4);
  border-radius: 8px;
  color: #43e89e;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  transition: background 0.2s;
}
.map-popup-wa:hover { background: rgba(37,211,102,0.25); }

/* ── Team Cards Grid ───────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.85rem;
  position: relative;
  z-index: 2;  /* above map wrap */
}

.team-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1rem 1rem 1.2rem;
  background: var(--c-surface);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--c-border);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}
.team-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); }
.team-card.highlighted { border-color: var(--c-accent); box-shadow: 0 0 20px rgba(79,142,247,0.25); background: rgba(79,142,247,0.08); }

.team-card-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.team-card-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.team-card-avatar img { width: 100%; height: 100%; object-fit: cover; }


.team-card-info { flex: 1; min-width: 0; }
.team-card-zona  { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.team-card-name  { font-size: 0.95rem; font-weight: 700; color: var(--c-text); margin: 0.1rem 0; }
/* Estados hidden visually, data kept in JS for map */
.team-card-estados { display: none; }

.team-card-wa {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.team-card-wa:hover { filter: brightness(1.2); }

/* ── Managers ──────────────────────────── */
.managers-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}
.managers-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 600;
  padding-left: 0.25rem;
}
.managers-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.manager-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  text-decoration: none;
  color: var(--c-text);
  transition: var(--transition);
}
.manager-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.manager-highlight {
  background: rgba(244,201,78,0.06);
  border-color: rgba(244,201,78,0.25);
}
.manager-highlight:hover { border-color: rgba(244,201,78,0.5); box-shadow: 0 0 20px rgba(244,201,78,0.15); }

.manager-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244,201,78,0.1);
  border: 1px solid rgba(244,201,78,0.3);
  flex-shrink: 0;
  color: var(--c-gold);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.manager-avatar img { width: 100%; height: 100%; object-fit: cover; }
.manager-highlight .manager-avatar { background: rgba(244,201,78,0.15); border-color: rgba(244,201,78,0.5); }

.manager-name { font-weight: 700; font-size: 0.9rem; }
.manager-rol  { font-size: 0.75rem; color: var(--c-muted); }

/* WhatsApp pill on managers */
.manager-wa-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(67,232,158,0.12);
  border: 1px solid rgba(67,232,158,0.35);
  border-radius: 100px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #43e89e;
  flex-shrink: 0;
  transition: var(--transition);
}
.manager-card:hover .manager-wa-btn { background: rgba(67,232,158,0.22); }

/* ── Responsive team ───────────────────── */
@media (max-width: 700px) {
  .portal-wrap { padding: 1.25rem 0.75rem 2rem; gap: 1.25rem; }
  .team-title  { font-size: 1.3rem; }
  .team-header-badge { font-size: 0.72rem; }
  #team-map    { height: 260px; }
  .map-legend  { padding: 0.4rem 0.6rem; gap: 0.2rem; font-size: 0.7rem; }
  .legend-dot  { width: 6px; height: 6px; }
  .team-grid   { grid-template-columns: 1fr; }
  .managers-row { grid-template-columns: 1fr; }
  .team-card   { padding: 0.85rem 0.85rem 0.85rem 1rem; gap: 0.7rem; }
  .team-card-avatar { width: 38px; height: 38px; }
  .team-card-wa { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
  .manager-card { padding: 0.75rem 0.9rem; }
  .manager-wa-btn { padding: 0.25rem 0.55rem; font-size: 0.7rem; }
}

