.whatsapp-button-container {
  font-family: Arial, Helvetica, sans-serif;
  position: fixed;
  align-items: center;
  bottom: 90px;
  right: 20px;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.floating-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 20px;
  height: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
  animation: pulse 2s infinite;
}

.whatsapp-icon {
  font-size: 30px;
  width: 30px;
  height: 30px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') no-repeat center;
  background-size: contain;
}

.whatsapp-button-text {
  margin-right: 10px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-align: center;
  animation: bounce 2s infinite;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 4px 10px;
}

.floating-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .whatsapp-button-container {
    bottom: 80px;
    /* Mantener en la parte inferior derecha */
    right: 10px;
    /* Mantener alineado a la derecha */
    transform: none;
    /* Elimina la traslación que lo centra */
  }

  .floating-button {
    width: 20px;
    /* Tamaño ajustado */
    height: 20px;
    font-size: 18px;
  }

  .whatsapp-icon {
    font-size: 18px;
  }

  .whatsapp-button-text {
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 6px;
    padding: 2px 6px;
  }
}