/* =========================
   CONTACTO - MAPA
========================= */

.contacto-mapa {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 18%, rgba(79, 111, 255, 0.34), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(216, 95, 255, 0.26), transparent 32%),
    radial-gradient(circle at 78% 88%, rgba(255, 153, 222, 0.14), transparent 34%),
    linear-gradient(135deg, #07102f 0%, #0a1438 44%, #1b0d3f 100%);
}

.contacto-mapa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 36%),
    radial-gradient(circle at 48% 44%, rgba(125, 109, 255, 0.14), transparent 36%);
}

.contacto-mapa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 76px 76px;
}

/* =========================
   FONDO DECORATIVO
========================= */

.contacto-mapa-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.contacto-mapa-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(78px);
}

.contacto-mapa-glow-one {
  left: -140px;
  top: 70px;
  width: 360px;
  height: 360px;
  background: rgba(79, 111, 255, 0.34);
}

.contacto-mapa-glow-two {
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background: rgba(216, 95, 255, 0.26);
}

/* =========================
   PANEL PRINCIPAL
========================= */

.contacto-mapa-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  min-height: 430px;
  border: 1px solid rgba(231, 239, 255, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.30),
    0 0 50px rgba(151, 99, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.contacto-mapa-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 111, 255, 0.18), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(255, 153, 222, 0.13), transparent 34%);
}

/* =========================
   INFORMACIÓN
========================= */

.contacto-mapa-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px;
}

.contacto-mapa-label {
  width: fit-content;
  margin-bottom: 14px;
  color: rgba(242, 247, 255, 0.96);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(226, 238, 255, 0.22);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contacto-mapa-info h2 {
  max-width: 430px;
  margin: 0;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.05rem, 3.5vw, 3.55rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.contacto-mapa-info h2 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(115deg, #9db5ff 0%, #b985ff 46%, #ffc0e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.contacto-mapa-info p {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(239, 246, 255, 0.74);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
}

/* =========================
   DATOS
========================= */

.contacto-mapa-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contacto-mapa-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  max-width: 470px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(230, 240, 255, 0.15);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.contacto-mapa-item-link {
  cursor: pointer;
}

.contacto-mapa-item-shine {
  position: absolute;
  top: -70%;
  left: -90%;
  z-index: 1;
  width: 46%;
  height: 240%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 32%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0.05) 68%,
    transparent 100%
  );
  transform: rotate(16deg);
  opacity: 0;
  transition:
    left 0.72s ease,
    opacity 0.28s ease;
}

.contacto-mapa-item:hover {
  transform: translateX(6px);
  border-color: rgba(230, 240, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.075));
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.18),
    0 0 28px rgba(158, 103, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.contacto-mapa-item:hover .contacto-mapa-item-shine {
  left: 128%;
  opacity: 1;
}

.contacto-mapa-item-icon,
.contacto-mapa-item-text {
  position: relative;
  z-index: 2;
}

.contacto-mapa-item-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.contacto-mapa-item-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contacto-mapa-item-text {
  min-width: 0;
}

.contacto-mapa-item-text strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.contacto-mapa-item-text span,
.contacto-mapa-item-text a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  color: rgba(239, 246, 255, 0.70);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.42;
  overflow-wrap: anywhere;
  transition: color 0.24s ease;
}

.contacto-mapa-item:hover .contacto-mapa-item-text span,
.contacto-mapa-item:hover .contacto-mapa-item-text a {
  color: rgba(255, 255, 255, 0.92);
}

/* =========================
   MAPA
========================= */

.contacto-mapa-visual {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 430px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.contacto-mapa-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 16, 47, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(27, 13, 63, 0.06), transparent 34%);
}

.contacto-mapa-visual iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  filter: saturate(1.08) contrast(1.02);
  pointer-events: none;
}

.contacto-mapa-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: calc(100% - 40px);
  padding: 11px 14px;
  border-radius: 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(10, 22, 57, 0.84), rgba(57, 32, 102, 0.72));
  border: 1px solid rgba(236, 244, 255, 0.22);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.contacto-mapa-visual:hover .contacto-mapa-badge {
  transform: translateY(-4px);
  border-color: rgba(236, 244, 255, 0.32);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(158, 103, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.contacto-mapa-badge strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.contacto-mapa-badge span {
  color: rgba(239, 246, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1080px) {
  .contacto-mapa-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contacto-mapa-info {
    padding: 38px 34px;
  }

  .contacto-mapa-info h2 {
    max-width: 620px;
  }

  .contacto-mapa-info p {
    max-width: 580px;
  }

  .contacto-mapa-list {
    max-width: 620px;
  }

  .contacto-mapa-visual,
  .contacto-mapa-visual iframe {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .contacto-mapa {
    padding: 54px 0;
  }

  .contacto-mapa-panel {
    border-radius: 28px;
  }

  .contacto-mapa-info {
    padding: 28px 22px;
  }

  .contacto-mapa-info h2 {
    font-size: clamp(1.95rem, 9vw, 3rem);
    letter-spacing: -0.054em;
  }

  .contacto-mapa-info p {
    font-size: 0.92rem;
  }

  .contacto-mapa-item:hover {
    transform: translateY(-4px);
  }

  .contacto-mapa-visual,
  .contacto-mapa-visual iframe {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .contacto-mapa {
    padding: 48px 0;
  }

  .contacto-mapa-panel {
    border-radius: 24px;
  }

  .contacto-mapa-info {
    padding: 24px 16px;
  }

  .contacto-mapa-list {
    margin-top: 22px;
  }

  .contacto-mapa-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 12px;
    border-radius: 18px;
  }

  .contacto-mapa-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .contacto-mapa-visual,
  .contacto-mapa-visual iframe {
    min-height: 280px;
  }

  .contacto-mapa-badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}