/* WhatsApp Orders Plugin - Frontend Styles */

.wa-order-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wa-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.wa-order-btn i {
    font-size: 1.1em;
}

/* Animaciones */
.wa-animate-pulse {
    animation: wa-pulse 2s infinite;
}

.wa-animate-pulse-hover {
    animation: wa-pulse 0.6s infinite;
}

.wa-animate-bounce {
    animation: wa-bounce 2s infinite;
}

.wa-animate-bounce-hover {
    animation: wa-bounce 0.8s infinite;
}

.wa-animate-shake {
    animation: wa-shake 0.5s ease-in-out;
}

.wa-animate-shake:hover {
    animation: wa-shake 0.5s ease-in-out;
}

/* Keyframes para animaciones */
@keyframes wa-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes wa-bounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    40%,
    43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes wa-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wa-order-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .wa-order-btn i {
        font-size: 1em;
    }
}

/* Estilos para el crédito */
.wa-credit {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.wa-credit:hover {
    opacity: 1;
}

/* Mejoras de accesibilidad */
.wa-order-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .wa-order-btn {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .wa-order-btn:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
}
