/* ============================================
   BOTÓN FLOTANTE WHATSAPP — AURA DIGITAL ESTUDIO
   ============================================ */

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

/* Burbuja de mensaje */
.wa-bubble {
  background: var(--bg2, #0d0c18);
  border: 0.5px solid var(--border, #1E1A30);
  border-radius: 12px 12px 0 12px;
  padding: 12px 16px;
  max-width: 220px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.wa-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.wa-bubble-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #C4A24D;
  margin-bottom: 4px;
}
.wa-bubble-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #9890C0;
  line-height: 1.5;
}
.wa-bubble-text strong {
  color: #F5F2FE;
  font-weight: 600;
}

/* Botón principal */
.wa-btn {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  position: relative;
  border: none;
  outline: none;
}
.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5), 0 4px 12px rgba(0,0,0,0.3);
}
.wa-btn:active { transform: scale(0.96); }

/* Ícono WhatsApp SVG */
.wa-btn svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

/* Pulso animado */
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-pulse:nth-child(2) { animation-delay: 0.8s; }

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Badge de notificación */
.wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #7B2CBF;
  border-radius: 50%;
  border: 2px solid #09080f;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wa-badge-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 2s both;
}

@keyframes wa-badge-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Tooltip en el botón */
.wa-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg2, #0d0c18);
  border: 0.5px solid var(--border, #1E1A30);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #F5F2FE;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1E1A30;
}
.wa-btn:hover .wa-tooltip { opacity: 1; }

/* Responsive */
@media (max-width: 480px) {
  .wa-float { bottom: 20px; right: 16px; }
  .wa-bubble { max-width: 180px; }
}
