@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");
.hero-container {
  position: relative;
  height: 80vh; /* Alto fijo del slider */
  overflow: hidden;
}

.hero-container .carousel-inner,
.hero-container .carousel-item,
.hero-container img {
  height: 100%;
}

.hero-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen para cubrir el contenedor */
  object-position: center; /* Centra la imagen */
}

/* TEXTO SUPERPUESTO EN EL SLIDE */
.carousel-caption-custom {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
  max-width: 60%;
  height: 100%;
}
.titulo-sucursal {
  font-family: "Anton", sans-serif;
  font-size: 5rem;
  font-weight: 400;
  font-style: normal;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0;
}

/* MAPA SUPERPUESTO */
.map-overlay {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 400px;
  aspect-ratio: 1 / 1;
  max-width: 35%;
  z-index: 4;
  transform: translateY(-50%);
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* PUNTOS DEL MAPA */
.map-point {
  position: absolute;
  width: 30px;
  height: 40px;
  background-color: transparent;
  color: #145c32;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .map-overlay {
    width: 200px;
    top: auto;
    bottom: 20px;
    right: 10px;
    opacity: 0;
  }

  .carousel-caption-custom {
    max-width: 80%;
    font-size: 0.9rem;
  }
  .titulo-sucursal {
    font-size: 2.5rem;
  }
}

.carousel-caption-custom a.btn {
  margin-top: 10px;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
}

/*sieño de tarjetas */
/* Contenedor de la tarjeta */
.card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
}

/* Imagen de la tarjeta */
.card img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: top center; /* muestra mejor la cabeza */
}

/* Hover de la tarjeta */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Zoom suave en la imagen */
.card:hover img {
  transform: scale(1.08);
}

/* Título */
.card-title {
  font-weight: bold;
  font-size: 1.2rem;
  color: #198754;
}

/* Texto */
.card-text {
  font-size: 0.95rem;
  color: #555;
}

/* Botón */
.card a.btn {
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover del botón */
.card a.btn:hover {
  background-color: #145c32;
  color: #fff;
}

.card.active-highlight {
  border: 3px solid #39ff14;
  box-shadow: 0 0 15px #39ff14;
  transition: box-shadow 0.3s, border 0.3s;
}

/* Estilo del botón "Ver Sucursal" */
.ver-sucursal {
  display: inline-block;
  width: 160px;
  height: 45px;
  line-height: 45px;
  background-color: #28a745;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.ver-sucursal:hover {
  background-color: #218838;
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}
/* Tooltip interno de cada punto */
.map-tooltip {
  position: absolute;
  bottom: 100%; /* encima del punto */
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #28a745; /* verde de Bootstrap */
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  font-weight: 600;
}

/* Flecha triangular */
.map-tooltip::after {
  content: "";
  position: absolute;
  top: 100%; /* justo debajo del tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #28a745 transparent transparent transparent;
}

/* Solo visible en el punto activo */
.map-point.active .map-tooltip {
  opacity: 1;
}
