.unac-egresados-map-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.unac-map-header {
  margin-bottom: 24px;
}

.unac-map-header h2 {
  margin: 0 0 8px;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  color: #1f2937;
}

.unac-map-header p {
  margin: 0;
  font-size: 1.1rem;
  color: #4b5563;
}

.unac-map-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

#unac-world-map {
  width: 100%;
  height: 620px;
}

#unac-map-loading {
  display: block;
  text-align: center;
  padding: 20px;
  font-size: 16px;
  color: #374151;
}

.unac-map-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.unac-stat-card {
  min-width: 220px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
}

.unac-stat-label {
  display: block;
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.unac-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

#unac-top-countries {
  margin-top: 20px;
}

.unac-map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.95rem;
  color: #4b5563;
}

.unac-map-legend-bar {
  width: 220px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, #dbeafe, #93c5fd, #3b82f6, #1d4ed8);
}

.unac-map-tooltip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  color: #ffffff;
}

.unac-map-tooltip strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.unac-map-tooltip span {
  font-size: 0.9rem;
  color: #ffffff;
}

.unac-map-tooltip__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.unac-map-tooltip__flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.unac-top-card {
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.unac-top-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 22px;
}

.unac-top-card__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.unac-top-row {
  display: grid;
  grid-template-columns: 40px minmax(140px, 1fr) 160px 56px;
  align-items: center;
  gap: 16px;
}

.unac-top-row__rank {
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
}

.unac-top-row__name {
  font-size: 18px;
  font-weight: 500;
  color: #1e293b;
}

.unac-top-row__bar-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.unac-top-row__bar {
  height: 16px;
  min-width: 18px;
  border-radius: 999px;
  background: #2563eb;
}

.unac-top-row__value {
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
}

.unac-top-row__rank,
.unac-top-row__name,
.unac-top-row__value,
.unac-top-row__bar-wrap {
  min-width: 0;
}

@media (max-width: 1024px) {
  .unac-map-header h2 {
    font-size: 2.4rem;
  }

  #unac-world-map {
    height: 520px;
  }
}

@media (max-width: 768px) {
  .unac-map-card {
    padding: 16px;
    border-radius: 16px;
  }

  .unac-map-header h2 {
    font-size: 2rem;
  }

  .unac-map-header p {
    font-size: 1rem;
  }

  #unac-world-map {
    height: 360px;
  }

  .unac-map-stats {
    flex-direction: column;
  }

  .unac-stat-card {
    width: 100%;
    min-width: unset;
  }

  .unac-map-legend {
    flex-wrap: wrap;
  }

  .unac-map-legend-bar {
    width: 160px;
  }

  .unac-top-card {
    margin-top: 0;
    padding: 18px;
    border-radius: 18px;
    overflow: hidden;
  }

  .unac-top-card__title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .unac-top-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank name value"
      ".    bar  bar";
    gap: 10px 12px;
    align-items: center;
  }

  .unac-top-row__rank {
    grid-area: rank;
    font-size: 16px;
  }

  .unac-top-row__name {
    grid-area: name;
    font-size: 16px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .unac-top-row__value {
    grid-area: value;
    font-size: 16px;
    text-align: right;
    white-space: nowrap;
  }

  .unac-top-row__bar-wrap {
    grid-area: bar;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    overflow: hidden;
  }

  .unac-top-row__bar {
    height: 14px;
    min-width: 14px;
    max-width: 100%;
  }
}