/* Estilos para el botón flotante de WhatsApp */

.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transform: scale(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.whatsapp-fab.visible {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    animation: bounce 0.5s;
}

.whatsapp-fab:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.whatsapp-fab i {
    font-size: 28px;
}

/* Estilo del botón "volver arriba" */
#backToTop {
    position: fixed;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #005fa3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.05);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
}

@media (max-width: 768px) {
    .whatsapp-fab {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-fab i {
        font-size: 24px;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
    }
}
