* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  z-index: 1;
  margin-top: 95px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%; /* Mantiene la relación de aspecto */
  height: 335px;
  display: block;
}

.slide-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dots {
  position: absolute;
  display: flex;
  justify-content: center;
  margin-top: -20px;
  gap: 10px;
  z-index: 2;
  left: 0;
  right: 0;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: rgba(128, 128, 128, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width:768px) {
  .dots {
    margin-top: -20px;
  }

  .slide img {
    width: 100%; /* Mantiene la relación de aspecto */
    height: auto;
    display: block;
  }

}