.gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: transparent;
}

.gallery-track {
  display: flex;
  flex-wrap: nowrap;
  animation: scroll 25s linear infinite;
  gap: 10px;
  will-change: transform;
}

/* Imágenes */
.gallery-track img {
width: 33.333%;  
flex-shrink: 0;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-track img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Animación del desplazamiento infinito */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .gallery-track img {
    width: calc(100% / 2);
    height: 300px;
  }
}

@media (max-width: 768px) {
  .gallery-track img {
    width: 100%;
    height: 240px;
    border-radius: 8px;
  }
}

.section-gallery {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  background-color: #fdf8f0 !important;
}
