/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  cursor: pointer;

  text-decoration: none !important;

  /* Transiciones y animaciones */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  animation: float 2.5s ease-in-out infinite; /* Rebote continuo */
}

/* Zoom y cambio de color al pasar el cursor */
.whatsapp-float:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  background-color: #1ebe57;
}

/* Rebote continuo */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Tooltip */
.whatsapp-float::after {
  content: "Chatea con nosotros";
  position: absolute;
  left: 70px; /* Tooltip a la derecha del botón */
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Mostrar tooltip al pasar el cursor */
.whatsapp-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

/* Flecha del tooltip */
.whatsapp-float::before {
  content: "";
  position: absolute;
  left: 62px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #333;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mostrar flecha al pasar el cursor */
.whatsapp-float:hover::before {
  opacity: 1;
}