/* Estilos generales para LaloQuote PRO en el frontend */

:root {
    --lqp-primary-color: #DF4E10;
    /* WhatsApp Green */
    --lqp-primary-hover: #DF4E10;
    --lqp-text-dark: #333333;
    --lqp-text-light: #777777;
    --lqp-bg-light: #f9f9f9;
    --lqp-white: #ffffff;
    --lqp-glass-bg: rgba(255, 255, 255, 0.8);
    --lqp-glass-border: rgba(255, 255, 255, 0.3);
    --lqp-shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* --- Botones Principales (Añadir a Cotización / Enviar Solicitud) --- */
.lqp-button,
.lqp-submit-button {
    color: #fff;
    border: none;
    padding: 12px 12px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 70px;
    align-items:center;
}

.lqp-button:hover,
.lqp-submit-button:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.lqp-button:active,
.lqp-submit-button:active {
    transform: translateY(0);
}

/* Icono dentro de los botones */
.lqp-button-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 10px;
    object-fit: contain;
}

/* Estilos específicos para el botón "Añadir a Cotización" */
.lqp-add-to-quote-button {
    margin-top: 20px;
    margin-bottom: 15px;
    width: auto;
}

/* Estados del botón */
.lqp-add-to-quote-button.lqp-adding {
    background-color: #DF4E10 !important;
    cursor: wait;
}

.lqp-add-to-quote-button.lqp-added {
    background-color: #28a745 !important;
    cursor: default;
}

/* --- Botón Flotante del Carrito --- */
.lqp-floating-cart-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
}

.lqp-floating-cart-button {
    color: #fff;
    border: none;
    box-shadow: var(--lqp-shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    padding: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lqp-floating-cart-button.lqp-expanded,
.lqp-floating-cart-button:hover {
    width: 240px;
    border-radius: 16px;
    padding: 12px 24px;
    justify-content: flex-start;
}

.lqp-floating-button-icon {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

.lqp-floating-cart-button.lqp-expanded .lqp-floating-button-icon,
.lqp-floating-cart-button:hover .lqp-floating-button-icon {
    margin-right: 12px;
}

/* Contador */
.lqp-floating-cart-button .lqp-cart-count {
    background-color: #ff3b30;
    border: 2px solid #fff;
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 3;
    transition: all 0.3s ease;
}

.lqp-floating-cart-button.lqp-expanded .lqp-cart-count,
.lqp-floating-cart-button:hover .lqp-cart-count {
    position: static;
    margin-left: auto;
    margin-right: auto;
}

.lqp-cart-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
}

.lqp-floating-cart-button.lqp-expanded .lqp-cart-label,
.lqp-floating-cart-button:hover .lqp-cart-label {
    opacity: 1;
    width: auto;
}

/* --- Popups con Glassmorphism --- */
.lqp-form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--lqp-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    box-shadow: var(--lqp-shadow-soft);
    z-index: 10002;
    border-radius: 24px;
    border: 1px solid var(--lqp-glass-border);
    max-width: 550px;
    width: 90%;
    box-sizing: border-box;
    max-height: 85vh;
    overflow-y: auto;
    animation: lqpSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes lqpSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.lqp-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0);
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lqp-close-button:hover {
    background: #ff3b30;
    color: #fff;
    transform: rotate(90deg);
}

.lqp-popup-title {
    margin-bottom: 40px;
    font-size: 25px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

/* --- Carrito de Cotización --- */
.lqp-quote-cart-items-list {
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 16px;
    padding: 5px;
    overscroll-behavior: contain;
}

.lqp-cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 12px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    position: relative;
    border: 1px solid #f0f0f0;
}

.lqp-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.lqp-item-name {
    font-weight: 700;
    font-size: 16px;
}

/* Selector de Cantidad Premium */
.lqp-quantity-selector {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
    margin-top: 8px;
}

/* Pie del Carrito de Presupuesto */
.lqp-cart-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.lqp-cart-summary {
    font-size: 15px;
    color: var(--lqp-text-dark);
}

.lqp-secondary-button {
    font-size: 14px;
    color: var(--lqp-text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lqp-secondary-button:hover {
    color: var(--lqp-primary-color);
    text-decoration: none;
}

.lqp-cart-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 100px;
}

.lqp-cart-actions .lqp-submit-button {
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
}

.lqp-quantity-selector button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lqp-quantity-selector button:hover {
    background: var(--lqp-primary-color);
    color: #fff;
}

.lqp-quantity-input {
    width: 45px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

/* --- Mobile Optimizations --- */
@media (max-width: 600px) {
    .lqp-form-popup {
        padding: 25px 20px;
        border-radius: 32px 32px 0 0;
        bottom: 0;
        top: auto;
        left: 0;
        transform: none;
        width: 100%;
        max-height: 90vh;
        animation: lqpSlideUpMobile 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    @keyframes lqpSlideUpMobile {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .lqp-floating-cart-wrapper {
        bottom: 20px;
        right: 20px;
    }

    .lqp-floating-cart-button.lqp-expanded,
    .lqp-floating-cart-button:hover {
        width: 60px;
        /* Keep bubble on mobile unless explicitly open */
        border-radius: 30px;
        padding: 20px;
        justify-content: center;
    }

    .lqp-floating-cart-button .lqp-cart-label {
        display: none;
    }

    .lqp-cart-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 12px;
    }

    .lqp-item-image img {
        width: 65px;
        height: 65px;
    }

    .lqp-remove-item-button {
        top: 8px;
        right: 8px;
        background: none;
        color: #f70004;
    }
}

/* --- Overlay --- */
.lqp-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

/* Ocultar elementos nativos en modo catálogo */
.lqp-catalog-mode-active .single_add_to_cart_button,
.lqp-catalog-mode-active .add_to_cart_button,
.lqp-catalog-mode-active .quantity {
    display: none !important;
}

.lqp-catalog-mode-active .lqp-add-to-quote-button {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Resumen de Variaciones */
.lqp-selections-summary {
    margin: 20px 0;
    padding: 18px;
    background: var(--lqp-bg-light);
    border-left: 5px solid var(--lqp-primary-color);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lqp-selections-summary h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--lqp-text-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animación de Pulso para el Carrito */
@keyframes lqpPulse {
    0% {
        transform: scale(1);
        box-shadow: var(--lqp-shadow-soft);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px var(--lqp-primary-color);
    }

    100% {
        transform: scale(1);
        box-shadow: var(--lqp-shadow-soft);
    }
}

.lqp-pulse {
    animation: lqpPulse 0.5s ease-in-out;
    
    
}



