/* Buttons */
.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
    animation: callToAction 3s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #004494;
    animation: none;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 87, 196, 0.4);
}

/* Animación especial para botones de envío de WhatsApp (Consultar) */
.btn-primary[type="submit"] {
    background: linear-gradient(135deg, var(--whatsapp-color), #1da851, var(--whatsapp-color));
    background-size: 200% 200%;
    animation: whatsappAttention 2.5s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Hardware acceleration */
}

.btn-primary[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.btn-primary[type="submit"]:hover {
    background: linear-gradient(135deg, #1da851, #20c75a, #1da851);
    animation: whatsappExcite 0.6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7);
    transform: translateY(-3px) scale(1.05);
}

@keyframes callToAction {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 87, 196, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 87, 196, 0.5);
        transform: scale(1.02);
    }
}

@keyframes whatsappAttention {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
        transform: scale(1);
        background-position: 0% 50%;
    }
    25% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
        transform: scale(1.03);
    }
    50% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.8);
        transform: scale(1.05);
        background-position: 100% 50%;
    }
    75% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
        transform: scale(1.03);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes whatsappExcite {
    0%, 100% { 
        transform: translateY(-3px) scale(1.05) rotate(0deg); 
    }
    25% { 
        transform: translateY(-3px) scale(1.05) rotate(-0.5deg); 
    }
    75% { 
        transform: translateY(-3px) scale(1.05) rotate(0.5deg); 
    }
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-danger {
    background: var(--error-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

.remove-btn {
    background: var(--error-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp-color);
    color: var(--white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
