/* ============================================
   ECOSERVISTRACTORES – WhatsApp Floating Widget
   ============================================ */

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

/* ── Bubble popup ─────────────────────────── */
.wa-bubble {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.16);
  max-width: 260px;
  border: 1px solid #E8E0CC;
  display: none;
  animation: waBubbleIn 0.25s ease;
}
.wa-bubble.open { display: block; }

@keyframes waBubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-bubble__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.wa-bubble__avatar {
  width: 38px; height: 38px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-bubble__name  { font-weight: 700; font-size: 0.875rem; color: #1C1C1C; }
.wa-bubble__status { font-size: 0.72rem; color: #25D366; }
.wa-bubble__close {
  margin-left: auto;
  background: none; border: none;
  cursor: pointer; color: #B0A898;
  font-size: 18px; line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}
.wa-bubble__close:hover { color: #4A4540; }
.wa-bubble__text {
  font-size: 0.85rem;
  color: #4A4540;
  line-height: 1.5;
  margin-bottom: 12px;
}
.wa-bubble__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s;
}
.wa-bubble__cta:hover { background: #128C7E; }

/* ── Main round button ──────────────────── */
.wa-btn {
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.55);
  transition: transform 0.18s, background 0.18s;
  position: relative;
  text-decoration: none;
}
.wa-btn:hover { transform: scale(1.08); background: #20b558; }

/* pulse ring */
.wa-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(37,211,102,0.25);
  animation: waPulse 2.2s infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 480px) {
  .wa-widget { bottom: 18px; right: 16px; }
  .wa-btn { width: 52px; height: 52px; }
}
