/* ===========================
   WhatsApp Floating Button
   PROVECSO SPA
=========================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  text-decoration: none;

  /* Animaciones */
  animation:
    whatsapp-pop 0.6s ease-out,
    whatsapp-pulse 2.5s infinite;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
@keyframes whatsapp-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
.whatsapp-float:hover {
  animation-play-state: paused;
  transform: scale(1.08);
}
/* ===========================
   Tooltip WhatsApp
=========================== */

.whatsapp-tooltip {
  position: fixed;
  bottom: 96px;
  right: 24px;
  background: #ffffff;
  color: #0f172a;
  padding: 16px 20px 16px 20px;
  max-width: 280px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  font-size: 14px;
  line-height: 1.4;
  z-index: 9998;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
  pointer-events: auto;
  padding-top: 22px;
}

/* Visible */
.whatsapp-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 26px;
  height: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;

  color: #64748b;
  z-index: 2;                 /* 🔑 MUY IMPORTANTE */
  pointer-events: auto;       /* 🔑 */
}

.tooltip-close:hover {
  color: #0f172a;
}


@media (max-width: 480px) {
  .whatsapp-tooltip {
    bottom: 74px;     /* ⬅ más cerca del botón */
    right: 16px;
    max-width: 90vw;  /* ⬅ evita que se salga */
    font-size: 13px;
  }
}
