
.carousel-container,
.carousel-contacto-container {
  position: relative;
  width: 100%;  max-width: 600px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.carousel-slides,
.carousel-contacto-slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide,
.carousel-contacto-slide {
  min-width: 100%;
  position: relative;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(248, 248, 248, 0.18), 0 1.5px 6px rgba(0,0,0,0.12);

}
.carousel-contacto-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.18), 0 1.5px 6px rgba(0,0,0,0.12);
}

.carousel-slide img:hover,
.carousel-contacto-slide img:hover {
  border-radius: 10px;
  filter: brightness(1) saturate(1.5);
}

.carousel-slide h2,
.carousel-contacto-slide h2 {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 13%;
  background-color: #7e274856;
  color: white;
  margin: 0;  padding: 10px;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease;
}



.carousel-slide h2:hover,
.carousel-contacto-slide h2:hover {
  background-color: #000000e6;
}

.carousel-button,
.carousel-contacto-button {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background-color: #7e2748;
  color: white;
  border: none;  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}
.carousel-button i,
.carousel-contacto-button i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.carousel-button:hover,
.carousel-contacto-button:hover {
  background-color: rgb(255, 255, 255);
  color: #7e2748;
}

.carousel-button:focus,
.carousel-contacto-button:focus {
  outline: 2px solid #7e2748;
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

.carousel-dots,
.carousel-contacto-dots {

  position: absolute;
  bottom: 10px; /* distancia desde el borde inferior */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 1000; /* asegúrate de que estén encima de las imágenes */


}

.carousel-dot,
.carousel-contacto-dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7e2748, #f0f0f0);
  box-shadow: inset 1px 1px 2px #f8f8f8, inset -1px -1px 2px #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active,
.carousel-contacto-dot.active {
  background: #7e2748 !important;
  transform: scale(1.50);
}

@media (max-width: 600px) {
  .carousel-container,
  .carousel-contacto-container {
    width: 100%;
    height: 50vh;
    max-height: 50%;
  }
  .carousel-slide h2,
  .carousel-contacto-slide h2 {
    font-size: 14px;
    padding: 10px;
    height: 19%;
    bottom: 0;
  }

  .carousel-button,
  .carousel-contacto-button {
    width: 30px;
    height: 30px;
    font-size: 14px;
    top: 40%;
  }

  .carousel-dot,
  .carousel-contacto-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-slide img,
  .carousel-contacto-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
  }
}