/* ===========================
   GALERÍA VISUAL — EDITORIAL
   2 pistas infinitas, movimiento suave
   =========================== */

#galeria-visual {
  background: #080808;
  padding: 56px 0 64px;
  overflow: hidden;
  position: relative;
}

/* Fade lateral */
#galeria-visual::before,
#galeria-visual::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 10;
  pointer-events: none;
}

#galeria-visual::before {
  left: 0;
  background: linear-gradient(to right, #080808 0%, transparent 100%);
}

#galeria-visual::after {
  right: 0;
  background: linear-gradient(to left, #080808 0%, transparent 100%);
}

/* Encabezado */
.gv-header {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 24px;
}

.gv-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--coral, #E8593C);
  margin-bottom: 10px;
}

.gv-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  color: #fff;
}

/* Stage que contiene las 2 pistas */
.gv-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cada pista: ventana recortada */
.gv-track {
  width: 100%;
  overflow: hidden;
}

/* El reel que contiene todos los items — duplicado para loop */
.gv-reel {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}

/* Animación fila superior: izq → der */
.gv-track--top .gv-reel {
  animation: scrollRight 55s linear infinite;
}

/* Animación fila inferior: der → izq */
.gv-track--bottom .gv-reel {
  animation: scrollLeft 60s linear infinite;
}

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

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

/* Pausa al hover */
.gv-track:hover .gv-reel {
  animation-play-state: paused;
}

/* Items base */
.gv-item {
  flex-shrink: 0;
  width: 270px;
  height: 210px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #111116;
}

.gv-item--wide {
  width: 390px;
  height: 185px;
}

.gv-item--tall {
  width: 220px;
  height: 245px;
}

.gv-item--video {
  width: 320px;
  height: 220px;
}

.gv-item img,
.gv-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gv-item:hover img,
.gv-item:hover video {
  transform: scale(1.04);
}

/* Overlay sutil en hover */
.gv-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.6s ease;
  border-radius: inherit;
  pointer-events: none;
}

.gv-item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  #galeria-visual {
    padding: 40px 0 48px;
  }

  #galeria-visual::before,
  #galeria-visual::after {
    width: 60px;
  }

  .gv-item        { width: 180px; height: 150px; }
  .gv-item--wide  { width: 260px; height: 135px; }
  .gv-item--tall  { width: 155px; height: 175px; }
  .gv-item--video { width: 215px; height: 158px; }

  .gv-reel { gap: 10px; }
  .gv-stage { gap: 10px; }
}
