.locations {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.locations-header {
  text-align: center;
  padding: 8px 0 16px;
}

.locations-header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: .02em;
}

.locations-header p {
  margin: 8px auto 0;
  max-width: 780px;
  color: var(--muted);
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 1280px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.location-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border-soft, #e2e8f0);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.location-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-subtle);
  border-radius: 12px;
}

.location-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 768px) {
  .location-card {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
}

.location-body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.location-text {
  margin: 0;
  color: #333;
}

.location-meta {
  display: grid;
  gap: 6px;
}

@media (max-width: 767.98px) {
  .location-body {
    justify-items: center;
  }

  .location-meta {
    text-align: center;
    justify-items: center;
    max-width: 32ch;
  }

  .location-text {
    text-align: center;
  }

  .location-actions {
    justify-content: center;
  }
}

.loc-intro {
  font-weight: 700;
  color: #323232;
}

.hl-number {
  color: var(--success);
  font-weight: 800;
}

.hl-level {
  color: #5578B8;
  font-weight: 600;
}

.hl-zone {
  color: #5578B8;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.btn.iconed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn.iconed .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.btn.map {
  background: linear-gradient(135deg, rgba(135, 125, 211, 0.70) 0%, rgba(85, 120, 184, 0.70) 100%);
  color: #fff;
  border: 1px solid rgba(85, 120, 184, .20);
  box-shadow: 0 6px 14px rgba(85, 120, 184, .18);
}

.btn.map:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn.call {
  background: #25D366;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .24);
}

@media (min-width: 768px) {
  .location-actions {
    flex-wrap: nowrap;
  }
}

.map-embed {
  border: 0;
  width: 100%;
  height: 220px;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .map-embed {
    height: 240px;
  }
}

.icon-map {
  background: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'%23fff\'><path d=\'M12 2C8.7 2 6 4.7 6 8c0 4.5 6 12 6 12s6-7.5 6-12c0-3.3-2.7-6-6-6zm0 8.5c-1.4 0-2.5-1.1-2.5-2.5S10.6 5.5 12 5.5s2.5 1.1 2.5 2.5S13.4 10.5 12 10.5z\'/></svg>') center/contain no-repeat;
}

.icon-phone {
  background: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'%23fff\'><path d=\'M6.6 10.8c1.1 2.2 2.9 4.1 5.1 5.1l1.7-1.7c.2-.2.5-.3.7-.2 1 .3 2 .5 3 .5.4 0 .8.3.8.7v2.7c0 .4-.3.8-.8.8C9.7 18.7 5.3 14.3 4.1 8.9c-.1-.4.2-.8.6-.8H7c.4 0 .7.3.7.8 0 1 .2 2 .5 3 .1.2 0 .5-.2.7l-1.4 1.4z\'/></svg>') center/contain no-repeat;
}

.icon-wsp {
  background: url('recursos/iconos/wsp-icon.png') center/contain no-repeat;
}

.placeholder {
  background: linear-gradient(135deg, var(--surface-muted), var(--surface-muted-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: 600;
}

.site-header {
  padding: 16px 6px 12px;
  border-bottom: 1px solid #efefef;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #323232;
}

.site-header p {
  margin: 8px auto 0;
  max-width: 820px;
  color: var(--muted);
}

@keyframes highlightPulse {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(135, 125, 211, .18), 0 1px 3px rgba(85, 120, 184, .16);
  }

  25%,
  75% {
    box-shadow: 0 0 0 4px rgba(135, 125, 211, 0.5), 0 8px 30px rgba(85, 120, 184, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(135, 125, 211, 0.4), 0 12px 40px rgba(85, 120, 184, 0.5);
  }
}

.location-card.highlight-promo {
  animation: highlightPulse 1.5s ease-in-out 3;
}

.location-card.promo-badge-visible {
  border: 2px solid var(--primary);
  position: relative;
}

.location-card.promo-badge-visible .location-thumb {
  position: relative;
}

.location-card.promo-badge-visible .location-thumb::after {
  content: "🎁 ¡TOP GRATIS aquí!";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #25D366;
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.5rem;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
