/* ===============================
   FLOATING ACTION BUTTONS (FINAL)
   =============================== */

.fab-container {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}

/* ===============================
   SCROLL TO TOP
   =============================== */
.fab-top {
  position: fixed;
  left: 12px;
  bottom: 96px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d4af37;
  color: #000;
  border: none;
  font-size: 18px;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.fab-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   RIGHT FLOATING BUTTONS
   =============================== */
.fab-right {
  position: fixed;
  right: 12px;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

/* Base button */
.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: transform 0.25s ease;
}

/* WhatsApp */
.fab-whatsapp {
  background: #25D366;
}

.fab-whatsapp img {
  width: 32px;
  height: 32px;
}

/* Call */
.fab-call {
  background: #d4af37;
  color: #000;
  font-size: 20px;
}

/* ===============================
   VERY SMALL SCREENS (≤360px)
   =============================== */
@media (max-width: 360px) {

  .fab-right {
    right: 8px;
    bottom: 88px;
    gap: 10px;
  }

  .fab-btn {
    width: 50px;
    height: 50px;
  }

  .fab-whatsapp img {
    width: 28px;
    height: 28px;
  }

  .fab-top {
    left: 8px;
    bottom: 88px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}


/* ===============================
   PREMIUM FLOATING ANIMATIONS
   =============================== */

/* Floating idle animation (all buttons) */
.fab-btn,
.fab-top {
  animation: floatIdle 3.5s ease-in-out infinite;
}

/* Disable idle animation on hover */
.fab-btn:hover,
.fab-top:hover {
  animation-play-state: paused;
}

/* ===============================
   WHATSAPP PULSE (ATTENTION)
   =============================== */
.fab-whatsapp {
  animation:
    floatIdle 3.5s ease-in-out infinite,
    whatsappPulse 2.2s infinite;
}

/* ===============================
   CALL BUTTON WIGGLE
   =============================== */
.fab-call {
  animation:
    floatIdle 3.5s ease-in-out infinite,
    callWiggle 4s ease-in-out infinite;
}

/* ===============================
   SCROLL TO TOP SHOW BOUNCE
   =============================== */
.fab-top.show {
  animation:
    scrollBounce 0.6s ease-out,
    floatIdle 3.5s ease-in-out infinite;
}

/* ===============================
   KEYFRAMES
   =============================== */

@keyframes floatIdle {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes callWiggle {
  0%, 90%, 100% {
    transform: rotate(0deg);
  }
  92% {
    transform: rotate(6deg);
  }
  94% {
    transform: rotate(-6deg);
  }
  96% {
    transform: rotate(4deg);
  }
  98% {
    transform: rotate(-4deg);
  }
}

@keyframes scrollBounce {
  0%   { transform: translateY(20px); opacity: 0; }
  60%  { transform: translateY(-6px); opacity: 1; }
  100% { transform: translateY(0); }
}


@media (max-width: 768px) {

  .fab-right {
    right: 10px !important;
    bottom: 90px !important;
  }

  .fab-top {
    left: 10px !important;
    bottom: 90px !important;
    background: #c9a23f !important;
  }
}