/* ========================================================================= */
/* CARRUSEL INFRAESTRUCTURA */
/* ========================================================================= */

.infra-carousel-container {
  min-width: 400px;
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  background-color: #f0f0f0;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  width: 90%;
}

.infra-carousel-track {
  display: flex;
  width: 700%;
  height: 100%;
  animation: infra-slide-carousel 25s infinite linear;
}

.infra-carousel-img {
  width: calc(100% / 7);
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px;
}

@keyframes infra-slide-carousel {
  0% {
    transform: translateX(0%);
  }
  16% {
    transform: translateX(-14.2857%);
  }
  32% {
    transform: translateX(-28.5714%);
  }
  48% {
    transform: translateX(-42.8571%);
  }
  64% {
    transform: translateX(-57.1428%);
  }
  80% {
    transform: translateX(-71.4285%);
  }
  96% {
    transform: translateX(-85.7142%);
  }
  100% {
    transform: translateX(0%);
  }
}

@media (max-width: 992px) {
  .infra-carousel-container {
    min-width: unset;
    width: 100%;
    height: 250px;
    margin: 0;
    max-width: 100%;
  }

  .infra-carousel-track {
    width: 700%;
    animation: infra-slide-carousel 25s infinite linear;
  }

  .infra-carousel-img {
    width: calc(100% / 7) !important;
  }
}
