/* Recuadro del mapa de la oficina (sección Contacto).
   Estilos propios con prefijo .mapa-agencia para no tocar el resto del sitio. */
.mapa-agencia {
  position: relative;
  isolation: isolate;
  max-width: 56rem;
  margin: 3rem auto 0;
  height: 340px;
  overflow: hidden;
  border-radius: 28px;
  background: #e8eef4;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  outline: 1px solid rgba(255, 255, 255, 0.15);
}
@media (max-width: 640px) {
  .mapa-agencia { height: 380px; border-radius: 22px; margin-top: 2.5rem; }
}

/* El mapa de Google se alarga hacia arriba para que la ubicación (su centro)
   quede 25px sobre el centro del recuadro, por encima de la barra inferior. */
.mapa-agencia__lienzo {
  position: absolute;
  left: 0;
  top: -50px;
  z-index: 0;
  width: 100%;
  height: calc(100% + 50px);
  border: 0;
  pointer-events: none;
}

/* Capa que hace clicable todo el recuadro */
.mapa-agencia__enlace {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  padding: 14px 14px 30px; /* deja visible el crédito de Google abajo */
  color: #072742;
  text-decoration: none;
  cursor: pointer;
}
.mapa-agencia__enlace:focus-visible { outline: 3px solid #f5a03a; outline-offset: -3px; border-radius: 28px; }

.mapa-agencia__barra {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px -12px rgba(7, 39, 66, 0.5);
  backdrop-filter: blur(6px);
}
.mapa-agencia__direccion {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #093c63;
}
.mapa-agencia__direccion span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapa-agencia__direccion i { flex: none; font-size: 1.25rem; color: #ee7d14; }
.mapa-agencia__boton {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: #ee7d14;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.16s ease;
}
.mapa-agencia__enlace:hover .mapa-agencia__boton { background: #d96c0a; transform: translateY(-1px); }
@media (max-width: 640px) {
  .mapa-agencia__barra { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 12px; }
  .mapa-agencia__direccion span { white-space: normal; }
  .mapa-agencia__boton { justify-content: center; }
}

/* Pin con el nombre de la agencia: la punta de la gota marca la ubicación
   (centro del mapa = 25px sobre el centro del recuadro). */
.pin-agencia {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 25px);
  z-index: 400;
  transform: translate(-50%, 2px); /* la punta del pin marca la ubicación */
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(7, 39, 66, 0.45));
}
.pin-agencia__nombre {
  margin-bottom: 6px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #fff;
  color: #093c63;
  border: 2px solid #093c63;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.pin-agencia__nombre b { color: #ee7d14; font-weight: 600; }

/* Marcador azul de marca con el logo dentro de un círculo blanco */
.pin-agencia__marcador { position: relative; display: block; width: 80px; height: 105px; }
.pin-agencia__marcador svg { display: block; }
.pin-agencia__logo {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  overflow: hidden;
  border: 2px solid #f5a03a;
  border-radius: 50%;
  background: #fff;
}
.pin-agencia__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pin-agencia__sombra {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 22px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(7, 39, 66, 0.35);
}
