.home-locations-section {
  padding: 88px 22px;
  color: var(--locations-text);
  scroll-margin-top: 85px;
}

.home-locations-section .container {
  max-width: 1120px;
}

.home-locations-heading {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}

.home-locations-heading > span {
  display: block;
  margin-bottom: 7px;
  color: var(--locations-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-locations-heading h2 {
  margin: 0;
  color: var(--locations-accent);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
}

.home-locations-heading p {
  margin: 12px 0 0;
  color: var(--locations-text);
  font-size: 17px;
  line-height: 1.6;
}

.home-locations-layout {
  align-items: stretch;
}

.home-locations-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.home-location-card,
.home-locations-map-card,
.home-locations-empty {
  border: 1px solid rgba(216, 226, 234, .9);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 46px rgba(7, 25, 43, .16);
}

.home-location-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border-radius: 18px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-location-card.is-active {
  border-color: var(--locations-accent);
  box-shadow: 0 18px 38px rgba(7, 25, 43, .2);
  transform: translateY(-2px);
}

.home-location-icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  color: var(--locations-button-text);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--locations-button-start), var(--locations-button-end));
  font-size: 18px;
}

.home-location-copy {
  min-width: 0;
  text-align: left;
}

.home-location-copy h3 {
  margin: 1px 0 6px;
  color: #123b63;
  font-size: 18px;
  font-weight: 800;
}

.home-location-copy p {
  margin: 0 0 13px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.home-location-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--locations-accent);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.home-location-select:hover,
.home-location-select:focus {
  color: var(--locations-accent);
  outline: none;
  filter: brightness(.88);
}

.home-locations-map-card {
  height: 100%;
  min-height: 510px;
  overflow: hidden;
  border-radius: 24px;
}

.home-locations-map-toolbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5ebf0;
}

.home-locations-map-toolbar > div,
.home-locations-map-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.home-locations-map-toolbar > div {
  color: #123b63;
}

.home-locations-map-toolbar a {
  min-height: 40px;
  padding: 0 15px;
  color: var(--locations-button-text);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--locations-button-start), var(--locations-button-end));
  font-size: 12px;
}

.home-locations-map-toolbar a:hover {
  color: var(--locations-button-text);
  filter: brightness(.96);
}

#mapa-sedes {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

.home-locations-empty {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 30px;
  color: #64748b;
  border-radius: 18px;
  text-align: center;
}

.home-locations-empty i {
  margin-bottom: 5px;
  color: var(--locations-accent);
  font-size: 30px;
}

.home-locations-empty strong {
  color: #123b63;
  font-size: 18px;
}

.home-locations-map-card.is-empty {
  display: none;
}

@media (max-width: 991px) {
  .home-locations-layout {
    gap: 20px;
  }

  .home-locations-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-locations-map-card {
    min-height: 460px;
  }

  #mapa-sedes {
    height: 390px;
  }
}

@media (max-width: 575px) {
  .home-locations-section {
    padding: 64px 14px;
  }

  .home-locations-heading {
    margin-bottom: 28px;
  }

  .home-locations-heading p {
    font-size: 15px;
  }

  .home-locations-list {
    grid-template-columns: 1fr;
  }

  .home-location-card,
  .home-locations-map-card {
    border-radius: 20px;
  }

  .home-locations-map-card {
    min-height: 420px;
  }

  .home-locations-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-locations-map-toolbar a {
    width: 100%;
    justify-content: center;
  }

  #mapa-sedes {
    height: 330px;
  }
}
