/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-float{
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #25d366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  z-index: 99999;
  transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-float img{
  width: 34px;
  filter: brightness(0) invert(1);
}

.whatsapp-float:hover{
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* ===== BURBUJA ===== */
.whatsapp-bubble{
  position: fixed;
  bottom: 88px;
  right: 18px;
  background: white;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  font-size: 14px;
  color: #1d1d1d;
  z-index: 99999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all .4s ease;
}

/* Mostrar */
.whatsapp-bubble.show{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-color-scheme: dark){
  .whatsapp-bubble{
    background:#111;
    color:#f2f2f2;
  }
}

@media(max-width:768px){
  .whatsapp-float{
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-bubble{
    right: 16px;
  }
}
 
/* Vibración suave */
@keyframes wsShake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

/* aplicar animación */
.whatsapp-float.animate {
  animation: wsShake .45s ease-in-out;
}
