/* Botão WhatsApp Fixo - Componente Reutilizável */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    cursor: pointer;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #ffffff;
    position: relative;
    overflow: hidden;
}

.whatsapp-float a:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float a:active {
    transform: scale(0.95);
}

.whatsapp-float i {
    font-size: 1.8rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.whatsapp-float a:hover i {
    transform: scale(1.1);
}

/* Pulsação do WhatsApp */
.whatsapp-float .pulse {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #25d366;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip do WhatsApp */
.whatsapp-float .tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Responsividade */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 56px;
        height: 56px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }

    .whatsapp-float .pulse {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float a {
        width: 52px;
        height: 52px;
    }

    .whatsapp-float i {
        font-size: 1.4rem;
    }

    .whatsapp-float .tooltip {
        font-size: 0.8rem;
        padding: 6px 10px;
        top: -55px;
    }
}
