/* ============================================================
   COLEGIO HERBART — Botón flotante WhatsApp
   ============================================================ */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Tooltip */
.wa-float__tooltip {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  max-width: 200px;
  animation: fadeUp 0.4s ease both;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.wa-float__tooltip.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}
.wa-float__tooltip-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 2px;
}
.wa-float__tooltip-sub {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Botón principal */
.wa-float__btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.wa-float__btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.wa-float__btn:active {
  transform: scale(0.97);
}

/* Ícono WhatsApp SVG */
.wa-float__icon {
  width: 30px;
  height: 30px;
}

/* Badge de notificación */
.wa-float__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--color-cta);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

/* Pulso animado */
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: waPulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 560px) {
  .wa-float {
    bottom: 20px;
    right: 16px;
  }
  .wa-float__btn {
    width: 52px;
    height: 52px;
  }
  .wa-float__tooltip {
    display: none;
  }
}
