/* ==================================================
   COMPONENT: FLOATING CONTACT
   ================================================== */

.cx-floating-contact {
  position: fixed;
  right: var(--cx-space-md);
  bottom: var(--cx-space-md);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cx-floating-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.28),
    inset 0 2px 2px rgba(255, 255, 255, 0.35),
    inset 0 -3px 4px rgba(0, 0, 0, 0.18);
  transition: transform var(--cx-transition-fast), box-shadow var(--cx-transition-fast);
}

.cx-floating-btn:hover,
.cx-floating-btn:focus-visible {
  transform: translateY(-3px) scale(1.05);
}

.cx-floating-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.25),
    inset 0 3px 5px rgba(0, 0, 0, 0.25);
}

.cx-floating-btn-whatsapp {
  background-color: #25D366;
  box-shadow:
    0 8px 18px rgba(37, 211, 102, 0.45),
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -3px 4px rgba(0, 0, 0, 0.15);
}

.cx-floating-btn-call {
  background: var(--cx-gradient-brand);
  box-shadow:
    0 8px 18px rgba(37, 61, 199, 0.45),
    inset 0 2px 2px rgba(255, 255, 255, 0.35),
    inset 0 -3px 4px rgba(0, 0, 0, 0.15);
}

/* ---------- Scroll to top ---------- */
.cx-scroll-top {
  background-color: var(--cx-heading);
  border: none;
  color: var(--cx-bg);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.12),
    inset 0 -3px 4px rgba(0, 0, 0, 0.3);
  transition: opacity var(--cx-transition-fast), transform var(--cx-transition-fast), box-shadow var(--cx-transition-fast);
}

.cx-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ---------- Tooltip (desktop hover only — harmless on touch, just never shown) ---------- */
.cx-floating-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--cx-bg-dark);
  color: #FFFFFF;
  font-family: var(--cx-font-display);
  font-size: var(--cx-fs-xs);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--cx-radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--cx-transition-fast);
}

.cx-floating-btn:hover .cx-floating-tooltip,
.cx-floating-btn:focus-visible .cx-floating-tooltip {
  opacity: 1;
}