.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: transform 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft);
}

.wa-float[aria-expanded="true"]::before,
.wa-float[aria-expanded="true"]::after {
  animation: none;
  opacity: 0;
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 4px 8px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.wa-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.55);
  outline-offset: 3px;
}

.wa-float svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
}

.wa-float::before,
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  background: transparent;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: waPulse 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.wa-float::after {
  animation-delay: 1.2s;
}

@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  80%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}

@media (max-width: 720px) {
  .wa-float {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }
  .wa-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float::before,
  .wa-float::after {
    animation: none;
    display: none;
  }
  .wa-float {
    transition: none;
  }
  .wa-panel {
    transition: none;
  }
}

.wa-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(48, 77, 90, 0.22), 0 4px 12px rgba(48, 77, 90, 0.08);
  overflow: hidden;
  z-index: 9998;
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 220ms var(--ease-soft), transform 220ms var(--ease-soft), visibility 0s linear 220ms;
}

.wa-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 220ms var(--ease-soft), transform 220ms var(--ease-soft), visibility 0s linear 0s;
}

.wa-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #128C7E;
  color: #fff;
}

.wa-panel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-panel-avatar svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.wa-panel-info { flex: 1; min-width: 0; }

.wa-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  line-height: 1.2;
}

.wa-panel-sub {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.2;
}

.wa-panel-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms var(--ease-soft), color 180ms var(--ease-soft);
  flex-shrink: 0;
}

.wa-panel-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.wa-panel-body {
  padding: 18px 18px 16px;
  background: var(--yb-cream-warm);
}

.wa-panel-greeting {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--yb-ink);
}

.wa-topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--yb-azul);
  text-align: left;
  cursor: pointer;
  transition: all 180ms var(--ease-soft);
}

.wa-topic:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.06);
  transform: translateX(2px);
}

.wa-topic-arrow {
  color: #25D366;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;
}

.wa-panel-foot {
  margin: 14px 0 0;
  font-size: 10.5px;
  text-align: center;
  color: var(--yb-taupe);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .wa-panel {
    right: 18px;
    bottom: 88px;
    width: calc(100vw - 36px);
  }
}
