/* ================================================================
   INTERFAZ MONTERREY — Premium Experience Layer
   Cargado después de main.css. Solo adiciones, no rompe nada.
   ================================================================ */

/* ── Variables adicionales ────────────────────────────────────── */
:root {
  --ease-snap:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ════════════════════════════════════════════════════════════════
   1. HERO — AUDIO WAVEFORM + AMBIENT
   ════════════════════════════════════════════════════════════════ */
.hero-waveform {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 40px;
  opacity: 0.07;
  pointer-events: none;
  overflow: hidden;
}

.wv-bar {
  flex: 1;
  background: linear-gradient(
    to top,
    #e50914 0%,
    rgba(229, 9, 20, 0.35) 55%,
    transparent 100%
  );
  border-radius: 2px 2px 0 0;
  animation: wvPulse var(--wv-dur, 2s) ease-in-out infinite alternate;
  transform-origin: bottom center;
  will-change: transform;
}

@keyframes wvPulse {
  0%   { transform: scaleY(var(--wv-min, 0.06)); }
  100% { transform: scaleY(var(--wv-max, 0.9)); }
}

/* ── Cursor ambient orb ───────────────────────────────────────── */
.px-cursor-orb {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.04) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.7s ease, top 0.7s ease;
  z-index: 0;
  will-change: left, top;
}

/* ── Hero title gradient (SONIDO) ─────────────────────────────── */
.hero-title .line1 {
  background: linear-gradient(175deg, #ffffff 40%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* LÍMITES en rojo — override del gradient de line1 */
.hero-title .line2 em {
  -webkit-text-fill-color: var(--red) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

/* ── Hero stats gradient ──────────────────────────────────────── */
.stat-num {
  background: linear-gradient(175deg, #ffffff 35%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════════════════════════════
   2. NAVBAR — GLASSMORPHISM UPGRADE
   ════════════════════════════════════════════════════════════════ */
.navbar {
  backdrop-filter: blur(40px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(220%) !important;
}

.navbar.scrolled {
  border-bottom: 1px solid rgba(229, 9, 20, 0.1) !important;
  box-shadow: 0 1px 0 rgba(229,9,20,0.06), 0 20px 60px rgba(0,0,0,0.75) !important;
}

/* ════════════════════════════════════════════════════════════════
   3. PRODUCT CARDS — 3D TILT + PREMIUM FX
   ════════════════════════════════════════════════════════════════ */

/* 3D via CSS custom props controladas por JS */
.product-card {
  transform:
    perspective(1000px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(var(--tz, 0px));
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  border-radius: 16px !important;
  transition: transform 0.12s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* Borde superior rojo al hover */
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(229,9,20,0.6) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 16px 16px 0 0;
}

.product-card:hover::after { opacity: 1; }

/* Shine sweep en la imagen */
.product-card-img { overflow: hidden; position: relative; }

.img-shine {
  position: absolute;
  top: 0; left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.055) 45%,
    rgba(255,255,255,0.06) 55%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.75s ease;
  z-index: 4;
}

.product-card:hover .img-shine { left: 155%; }

/* ════════════════════════════════════════════════════════════════
   4. BOTONES PREMIUM
   ════════════════════════════════════════════════════════════════ */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e50914 0%, #b0060f 100%) !important;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after  { left: 140%; }

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 36px rgba(229,9,20,0.5), 0 2px 8px rgba(0,0,0,0.3) !important;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98) !important;
}

/* ════════════════════════════════════════════════════════════════
   5. CATEGORY CARDS
   ════════════════════════════════════════════════════════════════ */
.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px !important;
  transition: transform 0.3s var(--ease-snap), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(229,9,20,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.cat-card:hover {
  transform: translateY(-7px) scale(1.025) !important;
  border-color: rgba(229,9,20,0.32) !important;
  box-shadow: 0 22px 55px rgba(0,0,0,0.55), 0 0 30px rgba(229,9,20,0.07) !important;
}

.cat-card:hover::before { opacity: 1; }

/* ════════════════════════════════════════════════════════════════
   6. SECTION EYEBROW
   ════════════════════════════════════════════════════════════════ */
.section-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--red);
  border-radius: 2px;
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ════════════════════════════════════════════════════════════════
   7. TESTIMONIALS
   ════════════════════════════════════════════════════════════════ */
.testimonial-card {
  border-radius: 20px !important;
  transition: transform 0.3s var(--ease-snap), box-shadow 0.3s ease !important;
  position: relative; overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,9,20,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,0.55) !important;
}

.testimonial-card:hover::before { opacity: 1; }

/* ════════════════════════════════════════════════════════════════
   8. BRAND PILLS
   ════════════════════════════════════════════════════════════════ */
.brand-pill {
  transition: transform 0.2s ease, background 0.2s ease,
              border-color 0.2s ease, color 0.2s ease !important;
}

.brand-pill:hover {
  transform: translateY(-3px) scale(1.06) !important;
  background: rgba(229,9,20,0.1) !important;
  border-color: rgba(229,9,20,0.38) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 24px rgba(229,9,20,0.12) !important;
}

/* ════════════════════════════════════════════════════════════════
   9. WHATSAPP FLOAT
   ════════════════════════════════════════════════════════════════ */
.whatsapp-float {
  box-shadow: 0 8px 32px rgba(37,211,102,0.42) !important;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease !important;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px) !important;
  box-shadow: 0 20px 52px rgba(37,211,102,0.6) !important;
}

/* ════════════════════════════════════════════════════════════════
   10. STAGGER ITEMS (para product/cat grids)
   ════════════════════════════════════════════════════════════════ */
.px-stagger {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.px-stagger.px-in {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════
   11. PAGE TRANSITION
   ════════════════════════════════════════════════════════════════ */
.page.active {
  animation: pxPageIn 0.4s ease both;
}

@keyframes pxPageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════
   12. PROMO BANNER AMBIENT
   ════════════════════════════════════════════════════════════════ */
.promo-banner {
  overflow: hidden;
  position: relative;
}

.promo-banner::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.07) 0%, transparent 70%);
  top: -120px; right: 8%;
  animation: pxOrb 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pxOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-25px, 18px) scale(1.18); }
}

/* ════════════════════════════════════════════════════════════════
   13. SCROLLBAR PREMIUM
   ════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #070707; }
::-webkit-scrollbar-thumb {
  background: rgba(229,9,20,0.45);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(229,9,20,0.75); }

/* ════════════════════════════════════════════════════════════════
   14. MOBILE OVERRIDES
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Gradient text off en mobile (iOS compat) */
  .hero-title .line1 {
    -webkit-text-fill-color: white;
    background: none;
  }

  .stat-num {
    -webkit-text-fill-color: var(--white);
    background: none;
  }

  /* No 3D tilt en mobile */
  .product-card {
    transform: none !important;
  }

  /* Waveform off en mobile */
  .hero-waveform { display: none; }

  /* Cursor orb off */
  .px-cursor-orb { display: none; }
}
