.unidades-topbar {
  background: var(--unidades-bar-bg, #000000);
  padding: clamp(16px, 2.2vw, 28px) 0;
}

.unidades-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px clamp(16px, 3vw, 32px);
}

.unidades-topbar-title {
  font-size: clamp(30px, 4.4vw, 72px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--unidades-bar-text, #ffffff);
}

.unidades-topbar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.2vw, 16px);
}

.unidades-chip {
  width: clamp(44px, 4.6vw, 72px);
  height: clamp(44px, 4.6vw, 72px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unidades-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

.unidades-chip[aria-current="page"] {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

/* The 6 chips (6 x 44px + gaps) don't fit in one row below 360px:
   shrink them slightly instead of leaving the last one alone on a new line */
@media (max-width: 359px) {
  .unidades-topbar-chips {
    gap: 6px;
  }

  .unidades-chip {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .unidades-chip[aria-current="page"] {
    outline-offset: 2px;
  }
}

.unidades-chip--castores {
  background: #464df7;
}

.unidades-chip--lobatos {
  background: #f2c94c;
  color: #3a2a00;
}

.unidades-chip--tropa {
  background: #27ae60;
}

.unidades-chip--esculta {
  background: #c6b4b1;
  color: #2d1f1f;
}

.unidades-chip--klan {
  background: #e74c3c;
}

.unidades-chip--kraal {
  background: #5f0267;
}
