/* ========================================
   BOTÕES FLUTUANTES
   ======================================== */

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 32px;
    color: #ffffff;
}

/* Animação de pulso para WhatsApp */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Tooltip do WhatsApp */
.whatsapp-float::before {
    content: 'Fale Conosco';
    position: absolute;
    right: 70px;
    background: #1F2937;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    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);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    right: 60px;
    border: 6px solid transparent;
    border-left-color: #1F2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
}

/* Botão Voltar ao Topo */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C9A962 0%, #8B9D83 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.3);
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.5);
}

.scroll-to-top i {
    font-size: 24px;
    color: #ffffff;
}

/* Tooltip do Scroll Top */
.scroll-to-top::before {
    content: 'Voltar ao Topo';
    position: absolute;
    left: 60px;
    background: #1F2937;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    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);
}

.scroll-to-top::after {
    content: '';
    position: absolute;
    left: 50px;
    border: 6px solid transparent;
    border-right-color: #1F2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover::before,
.scroll-to-top:hover::after {
    opacity: 1;
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }

    .scroll-to-top i {
        font-size: 20px;
    }

    /* Ocultar tooltips no mobile */
    .whatsapp-float::before,
    .whatsapp-float::after,
    .scroll-to-top::before,
    .scroll-to-top::after {
        display: none;
    }
}

/* Ajuste para evitar sobreposição com outros elementos */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .scroll-to-top {
        bottom: 15px;
        left: 15px;
    }
}