.main-container {
  width: 100%;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;   
  border-radius: 20px;
  margin-bottom: 20px;
  opacity: 0;
}

#services .main-container:nth-of-type(1) {
  background-image: linear-gradient(210deg, #00f0ff, #1a1a2e 60%);
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#services .main-container:nth-of-type(2) {
  background-image: linear-gradient(45deg, #00f0ff, #1a1a2e 70%);
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
  transform: translateX(100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#services .main-container:nth-of-type(3) {
  background-image: linear-gradient(135deg, #1a1a2e 30%, #00f0ff);
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#services .main-container:nth-of-type(4) {
  background-image: linear-gradient(180deg, #00f0ff, #1a1a2e 50%);
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
  transform: translateX(100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#services .main-container:nth-of-type(5) {
  background-image: linear-gradient(135deg, #1a1a2e 30%, #00f0ff);
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
#services .main-container:nth-of-type(1).visible,
#services .main-container:nth-of-type(2).visible,
#services .main-container:nth-of-type(3).visible,
#services .main-container:nth-of-type(4).visible,
#services .main-container:nth-of-type(5).visible{
  
  opacity: 1;
  transform: translateX(0);
  animation: slideInRight 1.0s ease-out;
}

.content-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

/* Info Section Styles */
.info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.developed-by {
  font-size: var(--font-size-p);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.company-name {
  font-family: 'Title1';
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  color: var(--white-color);
}

.company-description {
  font-size: var(--font-size-p);
  line-height: 1.6;
  max-width: 90%;
  color: var(--white-color);
  opacity: 0.9;
}

/* Image Section Styles */
.image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Carousel Styles */
.carousel-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/2;

  /* Fondo con múltiples colores oscuros y brillantes */
  background: linear-gradient(
    135deg,
    #0f2027,
    #203a43,
    #2c5364,
    #1e3c72,
    #2a5298
  );
  background-size: 400% 400%;

  /* Animación viva pero elegante */
  animation: animatedBackground 20s ease infinite;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@keyframes animatedBackground {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}


.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-slide .video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;  
  height: 100%; 
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(0.4) blur(8px);
  z-index: 1;
  pointer-events: none; 
}

.swiper-slide .video-front {
  position: relative;
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 2;
  box-shadow: inset 0 0 40px 20px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .content-section {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .content-section {
    flex-direction: column;
  }
  
  .info-section, 
  .image-section {
    padding: 1rem;
  }
  
  .company-name {
    font-size: 3rem;
  }
  
  .company-description {
    max-width: 100%;
  }
  
  .image-section {
    margin-top: 1rem;
  }
  .carousel-container{
    aspect-ratio: 2/2;
  }

}

@media (max-width: 480px) {
  .company-name {
    font-size: 2rem;
  }
  .carousel-track {
    height: 250px;
  }
  
}