/* Hub: mapa mundial + leyenda (modo sin ?agent=) */

body.agents-mode-hub .agent-bg-photo,
body.agents-mode-hub .agent-bg-scrim {
  display: none;
}

body.agents-mode-hub {
  background: #16191f;
}

.agents-hub-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(35, 38, 46, 0.95);
  border-bottom: 1px solid rgba(107, 159, 181, 0.2);
  backdrop-filter: blur(12px);
}

.agents-hub-header a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e2e6eb;
}

.agents-hub-header img {
  height: 36px;
  width: auto;
}

#language-selector.lang-selector {
  min-width: 140px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(107, 159, 181, 0.35);
  background: #2e333d;
  color: #e2e6eb;
  font-family: "Montserrat", "Open Sans", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.9rem;
  line-height: 1.25;
  font-variant-emoji: emoji;
}

#language-selector.lang-selector option {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Montserrat", "Open Sans", sans-serif;
  font-variant-emoji: emoji;
}

#agent-hub {
  padding: 72px 20px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.agents-hub-intro {
  margin-bottom: 20px;
}

.agents-hub-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  color: #e2e6eb;
}

.agents-hub-intro p {
  margin: 0;
  max-width: 640px;
  color: #9ca3af;
  font-size: 0.98rem;
  line-height: 1.5;
}

.agents-hub-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(107, 159, 181, 0.1);
  border: 1px solid rgba(107, 159, 181, 0.25);
  color: #e2e6eb;
  font-size: 0.88rem;
}

.agents-hub-legend .pin {
  font-size: 1.1rem;
}

#hub-map {
  height: min(62vh, 560px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(107, 159, 181, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#hub-map .leaflet-container {
  font-family: "Montserrat", "Open Sans", system-ui, sans-serif;
}

#hub-empty {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(122, 138, 168, 0.12);
  color: #9ca3af;
  font-size: 0.92rem;
}

#hub-empty[hidden] {
  display: none !important;
}

.agent-hub-popup-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #1c1f26;
}

.agent-hub-popup-line {
  margin: 6px 0 0;
}

.agent-hub-popup-line a {
  color: #5a8a9e;
  font-weight: 600;
}

.agents-hub-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(107, 159, 181, 0.2);
  text-align: center;
}

.agents-hub-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.agents-hub-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(107, 159, 181, 0.15);
  color: #e2e6eb;
  font-size: 1.1rem;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.agents-hub-footer-social a:hover {
  background: rgba(107, 159, 181, 0.35);
  color: #fff;
  transform: translateY(-2px);
}
