/* Contenedor Full Width */
.carousel-full {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  aspect-ratio: 16 / 5;
  overflow: hidden;
}

/* Tira de 5 diapositivas (4 + 1 de empalme) */
.slides {
  display: flex;
  width: 500%; /* 100% * 5 */
  height: 100%;
  animation: autoplay 16s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* Pausar si el usuario pone el cursor encima */
.slides:hover {
  animation-play-state: paused;
}

.slide {
  width: 20%; /* 100% / 5 */
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text {
  position: absolute;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  padding: 0 10%;
  text-transform: uppercase;
}

/* Lógica de tiempos para 4 imágenes principales (4s por diapositiva) */
@keyframes autoplay {
  0%,
  20% {
    transform: translateX(0%);
  }
  25%,
  45% {
    transform: translateX(-20%);
  }
  50%,
  70% {
    transform: translateX(-40%);
  }
  75%,
  95% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(-80%);
  }
}
