.container-main-button {
    position: fixed;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

.menu-buttons {
    position: absolute;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.menu-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.3) rotate(-180deg);
    pointer-events: none;
}

.menu-btn.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.menu-btn:nth-child(1).active {
    transition-delay: 0.1s;
    animation: bounce-in 0.6s ease-out 0.1s;
}

.menu-btn:nth-child(2).active {
    transition-delay: 0.2s;
    animation: bounce-in 0.6s ease-out 0.2s;
}

.menu-btn:nth-child(3).active {
    transition-delay: 0.3s;
    animation: bounce-in 0.6s ease-out 0.3s;
}

@keyframes bounce-in {
    0% {
        transform: translateY(30px) scale(0.3) rotate(-180deg);
    }

    50% {
        transform: translateY(-10px) scale(1.1) rotate(10deg);
    }

    70% {
        transform: translateY(5px) scale(0.95) rotate(-5deg);
    }

    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0076E6 0%, #0056b3 100%);
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    position: relative;
    top: 8px;
}

.main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.main-btn.active {
    background: linear-gradient(135deg, #81CF07 0%, #6ab004 100%);
    color: white;
}

.main-btn.active:hover {
    transform: scale(1.05);
}

.main-btn .bi-headset {
    font-size: 2rem;
    display: inline-block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-btn.active .bi-headset {
    animation: bounce 2s infinite ease-in-out, spin-open 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-btn:not(.active) .bi-headset {
    animation: bounce 2s infinite ease-in-out, spin-close 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes spin-open {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(90deg) scale(1.03);
    }

    50% {
        transform: rotate(180deg) scale(1.08);
    }

    75% {
        transform: rotate(270deg) scale(1.03);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes spin-close {
    0% {
        transform: rotate(360deg) scale(1);
    }

    25% {
        transform: rotate(270deg) scale(1.03);
    }

    50% {
        transform: rotate(180deg) scale(1.08);
    }

    75% {
        transform: rotate(90deg) scale(1.03);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.tooltip-text {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(10px);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: white;
}

.main-btn:hover .tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

.main-btn.active .tooltip-text {
    opacity: 0;
}

@media (min-width: 576px) {
    .container-main-button {
        bottom: 20px;
        right: 20px;
    }

    .menu-buttons {
        bottom: 65px;
        gap: 12px;
    }

    .menu-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .main-btn {
        width: 65px;
        height: 65px;
        font-size: 30px;
        top: 9px;
    }

    .main-btn .bi-headset {
        font-size: 2.2rem;
    }

    .tooltip-text {
        right: 75px;
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .container-main-button {
        bottom: 25px;
        right: 25px;
    }

    .menu-buttons {
        bottom: 75px;
        gap: 13px;
    }

    .menu-btn {
        width: 58px;
        height: 58px;
        font-size: 23px;
    }

    .main-btn {
        width: 68px;
        height: 68px;
        font-size: 31px;
        top: 9px;
    }

    .main-btn .bi-headset {
        font-size: 2.3rem;
    }

    .tooltip-text {
        right: 78px;
        padding: 9px 15px;
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .container-main-button {
        bottom: 28px;
        right: 28px;
    }

    .menu-buttons {
        bottom: 78px;
        gap: 14px;
    }

    .menu-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .main-btn {
        width: 70px;
        height: 70px;
        font-size: 32px;
        top: 10px;
    }

    .main-btn .bi-headset {
        font-size: 2.5rem;
    }

    .tooltip-text {
        right: 80px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .container-main-button {
        bottom: 30px;
        right: 30px;
    }

    .menu-buttons {
        bottom: 80px;
        gap: 15px;
    }

    .tooltip-text {
        right: 80px;
    }
}

@media (min-width: 1400px) {
    .container-main-button {
        bottom: 32px;
        right: 32px;
    }

    .menu-buttons {
        bottom: 82px;
        gap: 16px;
    }

    .tooltip-text {
        right: 82px;
        padding: 11px 17px;
        font-size: 14px;
    }
}

/* */

.whatsapp-float {
    position: fixed;
    left: 0;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #0DC142 0%, #0DC142 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(81, 255, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 9999;
    border: none;
    text-decoration: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(81, 255, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(81, 255, 0, 0.5);
}

.whatsapp-float:active {
    transform: scale(1.05);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    position: relative;
    z-index: 1;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.tooltip-text {
    position: absolute;
    right: 80px;
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: white;
}

.whatsapp-float:hover .tooltip-text {
    opacity: 1;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }

    .tooltip-text {
        display: none;
    }
}

/* */

.messenger-float {
  position: fixed;
  left: 0;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 132, 255, 0.5);
  transition: all 0.3s ease;
  z-index: 9999;
  border: none;
  text-decoration: none;
}

.messenger-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.messenger-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 132, 255, 0.7);
}

.messenger-float:active {
  transform: scale(1.05);
}

.messenger-icon {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.tooltip-text {
  position: absolute;
  right: 80px;
  background: white;
  color: #333;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip-text::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: white;
}

.messenger-float:hover .tooltip-text {
  opacity: 1;
}

@media (max-width: 768px) {
  .messenger-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .messenger-icon {
    width: 30px;
    height: 30px;
  }

  .tooltip-text {
    display: none;
  }
}

/* @JL */

.messenger-float {
  bottom: 0;
  left: unset;
  right: 0;
}

.whatsapp-float {
  bottom: 65px;
  left: unset;
  right: 0;
}

@media (min-width: 992px) {

  .whatsapp-float {
    bottom: 80px;
  }

}