/* ==========================================================================
   KUXTAL - ANIMACIONES CLAVE & MICRO-INTERACCIONES
   css/animations.css
   ========================================================================== */

/* Fade-in y desplazamiento para scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Animación de flotación suave para la tarjeta del Hero */
@keyframes floatCard {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-0.5deg);
  }
  100% {
    transform: translateY(2px) rotate(0.5deg);
  }
}

/* Efecto de pulso suave en botones de contacto / llamada a la acción */
@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 154, 31, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(244, 154, 31, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 154, 31, 0);
  }
}

.pulse-btn {
  animation: softPulse 2.8s infinite;
}

/* Acento en hojas / logos */
@keyframes subtleLeafSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

.leaf-sway {
  display: inline-block;
  transform-origin: bottom center;
  animation: subtleLeafSway 5s ease-in-out infinite;
}

/* Ripple de click para botones */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
}

.btn:active::after {
  width: 250px;
  height: 250px;
  opacity: 1;
  transition: 0s;
}

/* Transición suave para las tarjetas al cambiar filtros */
.product-card {
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card.hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  display: none;
}
