.popup {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  font-family: Arial, sans-serif;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.popup.show {
  display: block;
  opacity: 1;
}
.popup-content {
  padding: 15px;
  text-align: center;
}
.close-btn {
  float: right;
  cursor: pointer;
  font-size: 18px;
  color: #999;
}
@keyframes popupSlide {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.popup.show {
  display: block;
  animation: popupSlide 0.8s ease forwards; 
}

/* whatsapp button */
.whatsapp-float {
  display: none; /* oculto hasta que se cierre el popup */
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  font-size: 28px;
  width: 56px;
  height: 56px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%; /* asegura círculo perfecto */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.3s ease;
  animation: pulse-whatsapp 2s ease-out 3; /* solo 3 repeticiones */
}

.whatsapp-float i {
  line-height: 56px; /* centra el ícono verticalmente */
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Animación pulse */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
