/* ========== WHATSAPP FLUTUANTE MODERNIZADO E PULSANTE ========== */
.whatsFlutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsFlutuante:hover {
    transform: translateY(-5px);
}

.whatsFlutuante span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    padding: 10px 20px;
    margin-right: 15px;
    background: #ffffff;
    border-radius: 12px;
    color: var(--color-primary);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(78, 54, 41, 0.08);
    border: 1px solid rgba(78, 54, 41, 0.05);
    transform: translateX(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    white-space: nowrap;
    position: relative;
}

.whatsFlutuante span:after {
    position: absolute;
    content: "";
    top: 50%;
    right: -6px;
    background: #ffffff;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    border-top: 1px solid rgba(78, 54, 41, 0.05);
    border-right: 1px solid rgba(78, 54, 41, 0.05);
}

.iconWhatsFlutuante {
    width: 55px;
    height: 55px;
    background: #25D366;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Efeito de pulsação suave em volta do botão */
.iconWhatsFlutuante::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    animation: whatsPulse 2s infinite;
    pointer-events: none;
    z-index: -1;
}

.whatsFlutuante:hover .iconWhatsFlutuante {
    background: #22c05b;
    transform: scale(1.05);
}

.whatsFlutuante:hover .iconWhatsFlutuante::after {
    animation: whatsPulse 1.2s infinite; /* Acelera levemente a pulsação no hover */
}



.whatsFlutuante span.showWhats {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(0);
}

/* Animação do Pulse */
@keyframes whatsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ocultar texto no mobile */
@media (max-width: 768px) {
    .whatsFlutuante span {
        display: none !important;
    }
    .whatsFlutuante {
        bottom: 20px;
        right: 20px;
    }
}

/* ===== BOTÃO SCROLL TO TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 98px; /* acima do WhatsApp (55px + 30px gap + 13px) */
    right: 30px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(78, 54, 41, 0.18);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(78, 54, 41, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 88px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
