/* ============================================================
   BY QKDA — Animaciones y experiencia de scroll
   ============================================================ */

/* ── Barra de progreso ──────────────────────────────────────── */
#x-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: var(--c-brand);
  z-index: 99997;
  pointer-events: none;
}

/* ── Grain overlay ──────────────────────────────────────────── */
#x-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9994;
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ── Hero word split ────────────────────────────────────────── */
.x-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}
.x-word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.x-word.is-in { transform: translateY(0); }

/* Fade-up para label y botones del hero */
.x-fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.x-fade-up.is-in { opacity: 1; transform: translateY(0); }


/* ── Image trail (looks section) ────────────────────────────── */
.x-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  width: 100px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, -55%) scale(0.85) rotate(var(--xr, 0deg));
  transition: opacity 0.15s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.x-trail.is-alive {
  opacity: 0.9;
  transform: translate(-50%, -55%) scale(1) rotate(var(--xr, 0deg));
}
.x-trail.is-gone {
  opacity: 0;
  transform: translate(-50%, -60%) scale(1.05) rotate(var(--xr, 0deg));
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* ── Marquee entre editorial y featured ─────────────────────── */
.x-marquee-band {
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: #fff;
}
.x-marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: x-scroll-marquee 30s linear infinite;
}
.x-marquee-inner:hover { animation-play-state: paused; }
.x-marquee-inner > span {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-3);
  padding: 0 36px;
}
@keyframes x-scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Reveals extra ──────────────────────────────────────────── */
.js-animate .x-reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js-animate .x-reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js-animate .x-reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.x-reveal-left.is-in,
.x-reveal-right.is-in,
.x-reveal-scale.is-in { opacity: 1; transform: none; }

/* ── Nav hover: rosa de marca ───────────────────────────────── */
.nav__link:hover { color: var(--c-brand); }
.footer__links a:hover { color: var(--c-brand); }

/* ── Parallax ───────────────────────────────────────────────── */
.hero__media img,
.editorial-banner__media img,
.new-collection__media img { will-change: transform; }

/* ── Reduce motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .x-word, .x-fade-up { transition: none !important; transform: none !important; opacity: 1 !important; }
  .x-marquee-inner { animation: none !important; }
  #x-grain, #x-progress { display: none; }
}
