/* ==========================================================================
   HERO SHOWCASE — Branding + Packaging (2026-11-13)
   Texto del hero más grande, imagen recortada bajo los botones con
   movimiento inmersivo ligado al scroll y cue de SCROLL debajo.
   Lo mueve hero-showcase.js con la variable --hx-p (0 → 1).
   ========================================================================== */

.hx-hero {
  --hx-p: 0;          /* progreso de scroll (JS) */
  --hx-mx: 0;         /* mouse X -1..1 (JS, solo escritorio) */
  --hx-my: 0;         /* mouse Y -1..1 */
  --hx-accent: 0, 113, 227;
  --hx-sheen: rgba(150, 205, 255, 0.55);
}
.hx-hero.sp-hero-packaging {
  --hx-accent: 255, 107, 0;
  --hx-sheen: rgba(255, 170, 110, 0.6);
}

/* ---------- Layout: bloque más arriba ---------- */
.sp-hero.hx-hero {
  justify-content: flex-start !important;
  padding-top: clamp(104px, 13vh, 140px) !important;
  padding-bottom: clamp(40px, 6vh, 72px) !important;
}

/* ---------- BRANDING: texto +25 % ---------- */
.sp-hero.sp-hero-branding.hx-hero .sp-hero-container { max-width: 1240px; }
.sp-hero.sp-hero-branding.hx-hero .sp-badge-orange {
  font-size: 1.171875rem;           /* 0.9375rem × 1.25 */
  margin-bottom: 26px;
}
.sp-hero.sp-hero-branding.hx-hero .sp-hero-title {
  font-size: clamp(3.125rem, 7vw, 6.5625rem); /* × 1.25 */
  margin-bottom: 28px;
}
.sp-hero.sp-hero-branding.hx-hero .sp-hero-lead {
  font-size: clamp(1.25rem, 1.6875vw, 1.484375rem); /* × 1.25 */
  max-width: 825px;
  margin-bottom: 40px;
}
.sp-hero.sp-hero-branding.hx-hero .sp-hero-actions { gap: 20px; margin-bottom: 0; }
.sp-hero.sp-hero-branding.hx-hero .sp-btn-primary,
.sp-hero.sp-hero-branding.hx-hero .sp-btn-secondary {
  font-size: 1.09375rem;            /* 0.875rem × 1.25 */
  padding: 20px 40px;
  gap: 10px;
}
.sp-hero.sp-hero-branding.hx-hero .sp-btn-secondary { padding: 20px 38px; }

/* ---------- PACKAGING: texto +30 % ---------- */
.sp-hero.sp-hero-packaging.hx-hero .pkg-hero-container { max-width: 1240px; }
.sp-hero.sp-hero-packaging.hx-hero .pkg-top-badge {
  font-size: 0.975rem;              /* 0.75rem × 1.3 */
  gap: 10px;
  margin-bottom: 22px;
}
.sp-hero.sp-hero-packaging.hx-hero .pkg-badge-ring { width: 10px; height: 10px; }
.sp-hero.sp-hero-packaging.hx-hero .pkg-hero-title {
  font-size: clamp(3.055rem, 5.46vw, 5.135rem); /* × 1.3 */
}
.sp-hero.sp-hero-packaging.hx-hero .pkg-hero-lead {
  font-size: clamp(1.235rem, 1.625vw, 1.43rem); /* × 1.3 */
  max-width: 806px;
  margin: 20px auto 34px auto;
}
.sp-hero.sp-hero-packaging.hx-hero .pkg-hero-actions { gap: 20px; }
.sp-hero.sp-hero-packaging.hx-hero .pkg-btn-primary,
.sp-hero.sp-hero-packaging.hx-hero .pkg-btn-secondary {
  font-size: 1.1375rem;             /* 0.875rem × 1.3 */
  padding: 21px 44px;
}
.sp-hero.sp-hero-packaging.hx-hero .pkg-btn-secondary { padding: 21px 39px; }
.sp-hero.sp-hero-packaging.hx-hero .pkg-meta-sub { font-size: 0.89375rem; }
.sp-hero.sp-hero-packaging.hx-hero .pkg-meta-main { font-size: 1.05625rem; }
.sp-hero.sp-hero-packaging.hx-hero .pkg-meta-icon-wrap svg { width: 36px; height: 36px; }
.sp-hero.sp-hero-packaging.hx-hero .pkg-meta-bar { margin-top: clamp(28px, 4vh, 44px); }
/* el indicador vertical de la derecha se reemplaza por el cue bajo la imagen */
.sp-hero.sp-hero-packaging.hx-hero .pkg-scroll-rail { display: none; }

/* ---------- Texto con parallax suave (capa delantera) ---------- */
.hx-hero .hx-text {
  transform: translate3d(0, calc(var(--hx-p) * -70px), 0);
  opacity: calc(1 - var(--hx-p) * 0.55);
  will-change: transform, opacity;
}

/* ---------- Showcase ---------- */
.hx-showcase {
  position: relative;
  width: min(900px, 94vw);
  margin: clamp(64px, 9vh, 110px) auto 0 auto;
  perspective: 1400px;
  pointer-events: none;
}
.hx-hero.sp-hero-packaging .hx-showcase { width: min(1000px, 96vw); }

.hx-stage {
  position: relative;
  transform-style: preserve-3d;
  animation: hxIntro 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
@keyframes hxIntro {
  from { opacity: 0; transform: translate3d(0, 70px, 0) scale(0.9); filter: blur(14px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Halo de luz detrás (capa profunda: crece y se mueve distinto) */
.hx-halo {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 115%;
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(var(--hx-accent), 0.42), rgba(var(--hx-accent), 0.12) 55%, transparent 75%);
  filter: blur(30px);
  transform: translate3d(-50%, calc(-50% + var(--hx-p) * 60px), -200px)
             scale(calc(0.85 + var(--hx-p) * 0.45));
  opacity: calc(0.55 + var(--hx-p) * 0.45);
  will-change: transform, opacity;
}

/* Capa media: el producto */
.hx-tilt {
  position: relative;
  transform-style: preserve-3d;
  transform:
    translate3d(calc(var(--hx-mx) * 14px), calc(var(--hx-p) * -30px), 0)
    rotateX(calc(14deg - var(--hx-p) * 22deg + var(--hx-my) * -4deg))
    rotateY(calc(var(--hx-mx) * 7deg))
    scale(calc(0.92 + var(--hx-p) * 0.2));
  transform-origin: 50% 0%;
  will-change: transform;
}
.hx-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 40px rgba(var(--hx-accent), calc(0.08 + var(--hx-p) * 0.22)));
}

/* Barrido de luz que sólo cae sobre los objetos (máscara = la imagen) */
.hx-sheen {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--hx-mask) center / 100% 100% no-repeat;
          mask: var(--hx-mask) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 35%, var(--hx-sheen) 50%, transparent 65%);
  background-size: 300% 100%;
  background-position: calc(110% - var(--hx-p) * 140%) 0;
  mix-blend-mode: overlay;
  opacity: 0.75;
  pointer-events: none;
}

/* Sombra de contacto en el piso */
.hx-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -4%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  filter: blur(12px);
  transform: translate3d(0, calc(var(--hx-p) * -40px), -60px) scaleX(calc(1 - var(--hx-p) * 0.15));
  opacity: calc(0.9 - var(--hx-p) * 0.5);
}

/* Capa delantera: partículas de luz con parallax propio */
.hx-mote {
  position: absolute;
  width: var(--s, 6px);
  height: var(--s, 6px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(var(--hx-accent), 0.9), 0 0 22px rgba(var(--hx-accent), 0.6);
  left: var(--x);
  top: var(--y);
  opacity: calc(0.25 + var(--hx-p) * 0.75);
  transform: translate3d(calc(var(--hx-mx) * var(--d) * 30px), calc(var(--hx-p) * var(--d) * -260px), 0);
  will-change: transform, opacity;
}

/* ---------- Cue de SCROLL bajo la imagen ---------- */
.hx-hero .sp-scroll-cue-wrap {
  margin-top: clamp(22px, 3.5vh, 40px);
  opacity: calc(1 - var(--hx-p) * 1.6);
}
.hx-hero .sp-scroll-cue-line { height: 46px; }
.hx-hero .sp-scroll-cue-txt {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}
.hx-hero.sp-hero-packaging .sp-scroll-cue-dot {
  background: #FF781E;
  box-shadow: 0 0 8px #FF781E;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sp-hero.sp-hero-packaging.hx-hero .pkg-hero-title {
    font-size: clamp(2.6rem, 9vw, 4.94rem);
  }
}
@media (max-width: 768px) {
  .sp-hero.hx-hero { padding-top: 112px !important; min-height: auto; }
  .sp-hero.sp-hero-branding.hx-hero .sp-hero-title {
    font-size: clamp(2.5rem, 11.5vw, 4rem);
    line-height: 1.06;
  }
  .sp-hero.sp-hero-branding.hx-hero .sp-btn-primary,
  .sp-hero.sp-hero-branding.hx-hero .sp-btn-secondary,
  .sp-hero.sp-hero-packaging.hx-hero .pkg-btn-primary,
  .sp-hero.sp-hero-packaging.hx-hero .pkg-btn-secondary {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    padding: 18px 16px;
    white-space: nowrap;
  }
  .hx-showcase,
  .hx-hero.sp-hero-packaging .hx-showcase { width: 100%; margin-top: 56px; }
  .hx-tilt {
    transform:
      translate3d(0, calc(var(--hx-p) * -15px), 0)
      rotateX(calc(10deg - var(--hx-p) * 16deg))
      scale(calc(0.96 + var(--hx-p) * 0.14));
  }
  .hx-hero .hx-text { transform: translate3d(0, calc(var(--hx-p) * -40px), 0); }
}
@media (max-width: 600px) {
  .sp-hero.sp-hero-packaging.hx-hero .pkg-hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .sp-hero.sp-hero-branding.hx-hero .sp-badge-orange,
  .sp-hero.sp-hero-packaging.hx-hero .pkg-top-badge { font-size: 0.95rem; }
}

/* ---------- Accesibilidad: sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .hx-hero { --hx-p: 0.45 !important; --hx-mx: 0 !important; --hx-my: 0 !important; }
  .hx-stage { animation: none; }
  .hx-hero .hx-text { transform: none; opacity: 1; }
  .hx-hero .sp-scroll-cue-wrap { opacity: 1; }
  .hx-mote { display: none; }
}
