/* ==========================================================================
   ANIMACIONES & MICROINTERACCIONES MARCIALES
   Efectos 3D Tilt, Brillos dinámicos, Transiciones de tatami
   ========================================================================== */

/* Flotación suave para badges y elementos flotantes */
@keyframes floatSlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* Pulso sutil de borde rojo combate */
@keyframes pulseRedGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(228, 0, 43, 0.2), inset 0 0 10px rgba(228, 0, 43, 0.1);
    border-color: rgba(228, 0, 43, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(228, 0, 43, 0.5), inset 0 0 15px rgba(228, 0, 43, 0.2);
    border-color: rgba(228, 0, 43, 0.7);
  }
}

/* Brillo metálico / reflejo */
@keyframes shineSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Entrada con desvanecimiento y ascenso */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Entrada lateral */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Efecto de salto marcial al añadir al carrito */
@keyframes martialPunch {
  0% { transform: scale(1); }
  35% { transform: scale(1.18) rotate(-2deg); }
  65% { transform: scale(0.95) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Clases de animación activa */
.anim-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-punch {
  animation: martialPunch 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glow-active {
  animation: pulseRedGlow 3s infinite ease-in-out;
}

/* ==========================================================================
   3D CARD TILT & PERSPECTIVA
   ========================================================================== */
.card-3d-wrap {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.product-card {
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
  will-change: transform;
}

.product-card:hover {
  border-color: rgba(228, 0, 43, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(228, 0, 43, 0.25);
}

.product-card .card-media-wrap {
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

.product-card:hover .card-media-wrap {
  transform: translateZ(35px) scale(1.02);
}

.product-card .card-content-wrap {
  transform: translateZ(15px);
}

.product-card .card-badge-official {
  transform: translateZ(40px);
}

/* Efecto de destello al pasar el cursor sobre botón */
.btn-shine-effect {
  position: relative;
  overflow: hidden;
}

.btn-shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
}

.btn-shine-effect:hover::before {
  animation: shineSweep 0.85s ease-in-out;
}

/* Revelado progresivo al hacer scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
