.carousel-section {
  text-align: center;
  padding: 0;
}

.carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-item img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 1000;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Carousel segunda seccion */
/* Estilo del carrusel */
.carousel-small {
  position: relative;
  overflow: hidden;
  height: auto;
  border-radius: 10px;
}

.carousel-inner-small {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item-small {
  min-width: 100%;
  /* Cada imagen ocupa todo el ancho del carrusel */
  position: relative;
  /* Permite posicionar el caption */
}

.carousel-item-small img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  animation: zoomInOut 6s ease-in-out infinite; /* Aplica la animación */
}

/* Pie de foto */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  font-size: 1rem;
  padding: 0.5rem;
  font-family: Arial, sans-serif;
}

/* Botones de navegación */
.prev-btn-small,
.next-btn-small {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.prev-btn-small {
  left: 10px;
}

.next-btn-small {
  right: 10px;
}

.prev-btn-small:hover,
.next-btn-small:hover {
  background: rgba(0, 0, 0, 0.8);
}
/* Animación de zoom automático */
@keyframes zoomInOut {
  0% {
    transform: scale(1); /* Tamaño normal */
  }
  50% {
    transform: scale(1.1); /* Zoom in */
  }
  100% {
    transform: scale(1); /* Vuelve al tamaño normal */
  }
}

