/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
}

.whatsapp-bubble {
    background-color: #25d366;
    /* Verde claro como color inicial */
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    /* Alinea el texto y el icono */
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.whatsapp-bubble:hover {
    background-color: #25d366;
    /* Verde más oscuro en hover */
    transform: scale(1.1);
    /* Agranda el botón al pasar el mouse */
    opacity: 0.9;
    /* Agrega un efecto de opacidad en hover */
}

.whatsapp-button img {
    width: 24px;
    /* Tamaño pequeño para el icono */
    height: 24px;
}

/* Cambiar el orden del icono para que vaya a la derecha */
.whatsapp-bubble span {
    order: 1;
    /* Hace que el texto esté antes */
}

.whatsapp-bubble .whatsapp-button {
    order: 2;
    /* Hace que el icono esté después */
}

/* Efecto al pasar el mouse sobre el icono */
.whatsapp-float:hover .whatsapp-button img {
    transform: scale(1.1);
    /* Efecto de escala en el icono */
    transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        position: fixed;
        right: 10px;
        bottom: 40px; /* Más arriba del borde inferior */
        display: flex;
        align-items: center;
        gap: 0.4rem;
        z-index: 1000;
    }

    .whatsapp-bubble {
        background-color: #25d366;
        color: white;
        padding: 0.4rem 0.8rem;
        border-radius: 18px;
        font-size: 0.75rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    }

    .whatsapp-bubble:hover {
        background-color: #25d366;
        transform: scale(1.1);
        opacity: 0.9;
    }

    .whatsapp-button img {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }

    .whatsapp-float:hover .whatsapp-button img {
        transform: scale(1.1);
    }

    .whatsapp-bubble span {
        order: 1;
        font-size: 0.75rem;
    }

    .whatsapp-bubble .whatsapp-button {
        order: 2;
    }
}