﻿/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin: 0;
}

/* Animación pulse */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float.pulse {
    animation: pulse-whatsapp 2s infinite;
}

/* Responsive - Mobile UX optimization to avoid card overlap */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 54px; /* Slightly smaller to be less intrusive */
        height: 54px;
        bottom: 100px; /* Positioned HIGH to never overlap product cards */
        right: 16px;
        font-size: 27px;
        /* Slightly less opaque to not compete with main CTA */
        opacity: 0.92;
    }
    
    .whatsapp-float:hover {
        opacity: 1;
    }
}

/* Mobile very small - maintain visibility but discrete */
@media screen and (max-width: 400px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 75px; /* Keep clear of cards */
        right: 14px;
        font-size: 26px;
    }
}
