/*=============================================================
   WHATSAPP-FLOAT.CSS — Artemis Academy
   Botón flotante de WhatsApp, visible en toda la página.
=============================================================*/

.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón circular principal */
.wa-float__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.40);
  text-decoration: none !important;
  position: relative;
  transition: transform 0.26s cubic-bezier(0.4,0,0.2,1), box-shadow 0.26s ease;
}
.wa-float__btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.50);
}
.wa-float__btn i {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

/* Anillo de pulso */
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Tooltip lateral */
.wa-float__tooltip {
  position: absolute;
  right: 70px;
  bottom: 50%;
  transform: translateY(50%) translateX(8px);
  background: #1A2A30;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.wa-float__tooltip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #1A2A30;
}
.wa-float:hover .wa-float__tooltip {
  opacity: 1;
  transform: translateY(50%) translateX(0);
}

/* Responsivo */
@media (max-width: 575px) {
  .wa-float { bottom: 18px; right: 18px; }
  .wa-float__btn { width: 52px; height: 52px; }
  .wa-float__btn i { font-size: 25px; }
  .wa-float__tooltip { display: none; }
}

/* Evitar que choque con el botón back-to-top */
.wa-float.wa-float--lifted {
  bottom: 86px;
}
