/* style.css - JCN WhatsApp Widget Styles */

#jcn-whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: block;
    width: 60px;
    height: 60px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 50%;
    /* Utiliza una hermosa sombra premium difuminada */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    /* Animación de pop de entrada y transición suave en hover */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, filter 0.3s ease;
    animation: jcn-wp-entrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both, jcn-wp-pulse 3s infinite 2.5s;
}

#jcn-whatsapp-widget .icon-whatsapp {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#jcn-whatsapp-widget svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Efectos al pasar el mouse (Hover) y al hacer clic (Active) */
#jcn-whatsapp-widget:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    filter: brightness(1.03);
}

#jcn-whatsapp-widget:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Adaptabilidad del botón flotante según el tamaño de la ventana (Responsivo) */
@media (max-width: 768px) {
    #jcn-whatsapp-widget {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 480px) {
    #jcn-whatsapp-widget {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}

/* Animación de entrada estilo Pop de rebote */
@keyframes jcn-wp-entrance {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animación sutil de latido que llama la atención elegantemente */
@keyframes jcn-wp-pulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 22px rgba(35, 179, 58, 0.5);
    }
}
