/* ═══════════════════════════════════════════════════════════════════
   ANIMACIONES Y UTILIDADES — animations.css
   ──────────────────────────────────────────────────────────────────
   Animaciones CSS y botón flotante de WhatsApp.
   La lógica de activación de .fade-in está en assets/js/animations.js
   ═══════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────
   FADE-IN AL HACER SCROLL
   Añadir class="fade-in" a cualquier elemento para animarlo.
   animations.js agrega .visible cuando el elemento es visible.
   ──────────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────────────────────────────────
   PULSO — usado en el punto verde del slider
   ──────────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ────────────────────────────────────────────────────────────────
   BOTÓN FLOTANTE DE WHATSAPP
   Posición fija en esquina inferior derecha.
   ► Para cambiar el número: editar config.js → whatsapp.number
   ──────────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;   /* Color oficial de WhatsApp */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.40);
  z-index: 999;
  text-decoration: none;
  animation: whatsapp-bounce 2.2s ease-in-out infinite;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.52);
  animation: none;    /* Detiene el bounce al hacer hover */
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Efecto bounce vertical suave */
@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
