/* Efectos de scroll (GSAP + Lenis). No altera colores de marca ni el carrusel 3D. */
html.fx-motion { scroll-behavior: auto; }

/* Apariciones */
.fx-motion .fx-revela { will-change: transform, opacity; }
.fx-motion .fx-linea {
  display: block;
  overflow: hidden;
}
.fx-motion .fx-linea__in {
  display: block;
  will-change: transform;
}

/* Producto estrella (galería del heroe) */
.fx-motion .r-galeria {
  will-change: transform;
}
.fx-motion .r-galeria__principal .r-carrusel__pista {
  transform-origin: 50% 60%;
}

/* Zoom suave en fotos (contenedor ya recorta) */
.fx-motion .fx-zoom img {
  transform: translateZ(0) scale(1);
  transition: transform .55s cubic-bezier(.22,.7,.25,1);
  will-change: transform;
}
.fx-motion .fx-zoom:hover img,
.fx-motion .fx-zoom.is-zoom img {
  transform: translateZ(0) scale(1.07);
}
@media (hover: none) {
  .fx-motion .fx-zoom:hover img { transform: translateZ(0) scale(1); }
  .fx-motion .fx-zoom.is-zoom img { transform: translateZ(0) scale(1.07); }
}

/* Parallax: no recortar siluetas de producto (contain) */
.fx-motion .l-escena__media,
.fx-motion .r-imagen-texto__media,
.fx-motion .bf-rayos__aura {
  will-change: transform;
}

/* Más vendidos: pista horizontal al pinchar la sección */
.fx-motion #tambien .fx-h-vista {
  overflow: hidden;
  width: 100%;
}
.fx-motion #tambien .l-cruzada.fx-h-pista {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.fx-motion #tambien .l-cruzada.fx-h-pista .l-tarjeta {
  flex: 0 0 min(78vw, 400px);
  width: min(78vw, 400px);
  max-width: none;
}
@media (min-width: 900px) {
  .fx-motion #tambien .l-cruzada.fx-h-pista .l-tarjeta {
    flex-basis: min(48vw, 560px);
    width: min(48vw, 560px);
  }
}

/* Carrusel arrastrable de tarjetas «para quién» */
.fx-motion .l-quien.fx-drag {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-x;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.fx-motion .l-quien.fx-drag.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.fx-motion .l-quien.fx-drag article {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  max-width: none;
}
.fx-motion .l-quien.fx-drag { scrollbar-color: rgba(255,184,28,.45) transparent; }

/* Franja de confianza: pista continua, también arrastrable */
.fx-motion .l-franja .fx-franja-vista {
  overflow: hidden;
}
.fx-motion .l-franja ul.fx-franja-pista {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  gap: 8px 36px;
  will-change: transform;
  cursor: grab;
}
.fx-motion .l-franja ul.fx-franja-pista.is-dragging { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  .fx-revela, .fx-linea__in, .r-galeria, .fx-zoom img,
  .l-escena__media, .r-imagen-texto__media, .bf-rayos__aura,
  #tambien .l-cruzada, .l-franja ul {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .fx-zoom:hover img, .fx-zoom.is-zoom img { transform: none !important; }
}

.fx-motion .l-paso.fx-zoom,
.fx-motion .r-miniatura.fx-zoom {
  overflow: hidden;
}
.fx-motion .l-paso.fx-zoom img { display:block; width:100%; }

.fx-motion #tambien .fx-pin-cruz { padding-bottom: 8px; }

