/* ========================================
   ESTILOS PARA BOTONES DE COTIZACIÓN WHATSAPP
   ========================================= */

/* Botón de WhatsApp en tarjetas de producto */
.btn-whatsapp-cotizacion {
    background-color: white !important;
    border: 2px solid #25D366 !important;
    color: #25D366 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem !important;
    border-radius: 25px !important;
    text-decoration: none;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn-whatsapp-cotizacion:hover {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-cotizacion:active {
    transform: translateY(0);
}

.btn-whatsapp-cotizacion i {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* ── CONTENEDOR DE BOTONES DE COTIZACIÓN EN MODAL ── */
/* ⭐ FIX: display SIN !important para que JS pueda hacer display:none */
#modalCotizacionButtons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

/* ⭐ Clase helper que JS usa para ocultar — tiene !important para ganar siempre */
#modalCotizacionButtons.oculto {
    display: none !important;
}

/* Botón "Solicitar Cotización" en modal */
#modalSolicitarCotizacionButton {
    flex: 1;
    background-color: white !important;
    border: 2px solid #0d6efd !important;
    color: #0d6efd !important;
    font-weight: 600;
    font-size: 0.85rem !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: 30px !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto !important;
    margin-bottom: 0 !important;
}

#modalSolicitarCotizacionButton:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

#modalSolicitarCotizacionButton:active {
    transform: translateY(0);
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    color: white !important;
}

#modalSolicitarCotizacionButton i {
    font-size: 0.85rem;
    margin-right: 0.4rem;
}

/* Botón de WhatsApp en modal de detalle */
/* ⭐ FIX: display SIN !important para que JS pueda hacer display:none */
#modalWhatsAppButton {
    flex: 1;
    background-color: white !important;
    border: 2px solid #25D366 !important;
    color: #25D366 !important;
    font-weight: 600;
    font-size: 0.85rem !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: 30px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    width: auto !important;
    margin-bottom: 0 !important;
}

#modalWhatsAppButton:hover {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

#modalWhatsAppButton:active {
    transform: translateY(0);
    background-color: #1e7e34 !important;
    border-color: #1e7e34 !important;
    color: white !important;
}

#modalWhatsAppButton i {
    font-size: 0.85rem;
    margin-right: 0.4rem;
    transition: color 0.3s ease;
}

/* Indicador de "Precio a consultar" en tarjetas */
.price-container .text-primary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.price-container .text-primary i {
    color: #25D366;
}

/* Animación de pulso para botón WhatsApp (opcional) */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-whatsapp-cotizacion.pulse {
    animation: whatsapp-pulse 2s infinite;
}

/* Ajustes responsivos para móviles */
@media (max-width: 768px) {
    #modalCotizacionButtons {
        gap: 0.4rem;
    }

    #modalSolicitarCotizacionButton,
    #modalWhatsAppButton {
        font-size: 0.78rem !important;
        padding: 0.5rem 0.5rem !important;
    }

    #modalSolicitarCotizacionButton i,
    #modalWhatsAppButton i {
        font-size: 0.78rem;
        margin-right: 0.3rem;
    }

    .btn-whatsapp-cotizacion {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem !important;
        min-height: 32px;
        border-width: 1.5px !important;
    }

    .btn-whatsapp-cotizacion i {
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }
}

/* Ajustes específicos para móviles pequeños */
@media (max-width: 480px) {
    #modalSolicitarCotizacionButton,
    #modalWhatsAppButton {
        font-size: 0.72rem !important;
        padding: 0.45rem 0.4rem !important;
    }

    .btn-whatsapp-cotizacion {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem !important;
        min-height: 28px;
    }

    .btn-whatsapp-cotizacion i {
        font-size: 0.75rem;
    }
}

/* Asegurar que botones de cotización no interfieran con otros elementos */
.button-wrapper[data-modalidad="cotizacion"] .quantity-controls-wrapper {
    display: none !important;
}

.button-wrapper[data-modalidad="cotizacion"] .add-button {
    display: none !important;
}