/*** Mapa ***/
.mapa-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid var(--borde);
  border-radius: 28px;
  box-shadow: var(--sombra);
}

.mapa-lado {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mapa-foto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center top;
  background-color: var(--fondo-alt);
}

.mapa-lado .mapa-info {
  flex: 1 1 auto;
}

.mapa-info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
  isolation: isolate;
  color: #FFFFFF;
  background-color: var(--secundario);
  background-image: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(150deg, var(--secundario) 0%, var(--primario) 70%, var(--terciario) 100%);
}

.mapa-info::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -60px;
  width: 260px;
  aspect-ratio: 600 / 472;
  background: url("../../img/logo/logo-160.webp") no-repeat center / contain;
  filter: brightness(0) invert(1);
  opacity: .08;
  pointer-events: none;
  z-index: -1;
}

.mapa-info-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, .14);
  color: #FFFFFF;
  font-size: 1.5rem;
}

.mapa .mapa-etiqueta {
  margin: 0 0 .4rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #CFE8BE;
}

.mapa .mapa-direccion {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #FFFFFF;
}

.mapa-datos {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.mapa-datos li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}

.mapa-datos li i {
  margin-top: .15rem;
  color: #B5DC9C;
}

.mapa-datos a {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

.mapa-datos a:hover {
  text-decoration: underline;
}

.mapa-embed {
  position: relative;
  min-height: 460px;
  background-color: var(--fondo-alt);
}

.mapa-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.mapa-respaldo {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mapa-embed:has(iframe[data-cs-src]) .mapa-respaldo {
  display: block;
}

.mapa-embed iframe[data-cs-src] {
  visibility: hidden;
}

.mapa-respaldo picture,
.mapa-respaldo-img {
  display: block;
  width: 100%;
  height: 100%;
}

.mapa-respaldo-img {
  object-fit: cover;
  object-position: 50% 40%;
}

.mapa-respaldo-credito {
  position: absolute;
  top: .6rem;
  right: .6rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .85);
  color: var(--texto);
  font-size: .72rem;
  line-height: 1.4;
  text-decoration: none;
}

.mapa-respaldo-caja {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 440px;
  margin: 0 auto;
  padding: .9rem 1rem 1rem;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, .96);
  box-shadow: var(--sombra);
  text-align: center;
}

.mapa .mapa-respaldo-caja p {
  margin: 0 0 .7rem;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--texto);
}

.mapa-respaldo-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

@media (max-width: 991.98px) {
  .mapa-card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
  }

  .mapa-info {
    padding: 1.75rem 1.5rem;
  }

  .mapa .mapa-direccion {
    font-size: 1.25rem;
  }

  .mapa-embed,
  .mapa-embed iframe {
    min-height: 360px;
  }
}

@media (max-width: 575.98px) {
  .mapa-info .btn {
    width: 100%;
  }

  .mapa-respaldo-caja {
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
    padding: .75rem .85rem .85rem;
  }

  .mapa .mapa-respaldo-caja p {
    margin-bottom: .6rem;
    font-size: .85rem;
  }
}
