/* Botón flotante WhatsApp — Yachay Sumaq / HQ_WA */
.hq-wa {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

.hq-wa * {
  pointer-events: auto;
}

.hq-wa__bubble {
  max-width: 280px;
  background: #fff;
  border-radius: 12px 12px 12px 2px;
  padding: 12px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hq-wa__bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hq-wa__bubble-line1 {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #1a2340;
  margin-bottom: 4px;
  line-height: 1.35;
}

.hq-wa__bubble-line2 {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  color: #4a5568;
  line-height: 1.4;
}

.hq-wa__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hq-wa__btn-wrap {
  position: relative;
  display: inline-flex;
}

.hq-wa__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: hq-wa-pulse 2.6s ease-out infinite;
}

.hq-wa__btn:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.hq-wa__btn i {
  font-size: 28px;
  line-height: 1;
}

.hq-wa__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #1a2340;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hq-wa__label {
  display: inline-flex;
  align-items: center;
  background: #1a2340;
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(26, 35, 64, 0.25);
}

@keyframes hq-wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 767px) {
  .hq-wa {
    left: 14px;
    bottom: 14px;
  }

  .hq-wa__bubble {
    max-width: calc(100vw - 100px);
  }

  .hq-wa__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hq-wa__btn {
    animation: none;
  }
}
