/* Contenedor principal de la marquesina */
.marquee-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Cada fila (track) de la marquesina */
.marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
}

/* Animaciones */
.marquee-track.scroll-left {
  animation: scrollLeft 40s linear infinite;
}

.marquee-track.scroll-right {
  animation: scrollRight 40s linear infinite;
  /* Desplazamos un poco el inicio para que no se vea igual a la fila superior */
  margin-left: -15%;
}

/* Pausar animación en hover */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Las imágenes individuales */
.marquee-item {
  position: relative;
  width: 250px;
  height: 350px;
  border-radius: var(--radius-premium, 8px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.2); /* Borde sutil dorado */
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.marquee-item:hover {
  transform: scale(1.05);
  border-color: var(--primary-gold, #d4af37);
  z-index: 10;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.3s ease;
}

.marquee-item:hover img {
  filter: grayscale(0%) contrast(1.2);
}

/* Efecto de desvanecimiento a los lados para que no corte abrupto */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--deep-black, #0a0a0a) 0%, transparent 100%);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--deep-black, #0a0a0a) 0%, transparent 100%);
}

/* Keyframes */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Desplaza exactamente la mitad del track (que está duplicado) */
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .marquee-item {
    width: 200px;
    height: 280px;
  }
  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 10%;
  }
}
