#feedback-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none; /* FIX: no bloquear clicks en tablas debajo */
}

/* Los elementos interactivos del FAB mantienen su pointer-events */
#feedback-main-btn {
  pointer-events: auto;
}
#feedback-label {
  pointer-events: none;
}

/* Botón principal WhatsApp */
#feedback-main-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease;
  position: relative;
  flex-shrink: 0;
}
#feedback-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55), 0 3px 12px rgba(0,0,0,0.25);
}
#feedback-main-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  transition: transform 0.3s ease;
}
#feedback-main-btn.open svg {
  transform: rotate(45deg) scale(0.85);
}

/* Pulso animado */
#feedback-main-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Burbujas */
#feedback-bubbles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.34,1.56,.64,1);
}
#feedback-bubbles.visible {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fb-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2, #fff);
  border-radius: 18px 18px 4px 18px;
  padding: 11px 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  cursor: pointer;
  text-decoration: none;
  color: var(--text, #1a1d23);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s;
  animation: bubbleIn 0.35s cubic-bezier(.34,1.56,.64,1) backwards;
}
.fb-bubble:hover {
  transform: translateX(-4px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
  background: var(--bg3, #f8f9fa);
}
.fb-bubble:nth-child(1) { animation-delay: 0.05s; }
.fb-bubble:nth-child(2) { animation-delay: 0.12s; }
.fb-bubble:nth-child(3) { animation-delay: 0.19s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateX(16px) scale(0.88); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.fb-bubble-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tooltip label sobre el botón */
#feedback-label {
  position: absolute;
  right: 68px;
  bottom: 14px;
  background: var(--bg2, #fff);
  color: var(--text, #1a1d23);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
}
#feedback-label.hidden { opacity: 0; }