/* ESTILOS DEL CONFIGURADOR DE AGLOMERADO OMNIFOAM */
.ag-configurator-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.ag-badge-price {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(30, 64, 175, 0.4));
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ag-price-highlight {
    font-size: 1.6rem;
    font-weight: 900;
    color: #60a5fa;
    letter-spacing: -0.5px;
}

.ag-price-subtext {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.ag-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ag-section-title i {
    color: #3b82f6;
}

.ag-group {
    margin-bottom: 1.2rem;
}

.ag-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.ag-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.ag-toggle-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.ag-toggle-btn:hover {
    background: #273549;
    color: #fff;
    border-color: #475569;
}

.ag-toggle-btn.active {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.ag-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ag-select, .ag-input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ag-select:focus, .ag-input:focus {
    border-color: #3b82f6;
}

.ag-qty-stepper {
    display: flex;
    align-items: center;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.ag-qty-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.2rem;
    font-weight: 800;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: background 0.2s;
}

.ag-qty-btn:hover {
    background: #334155;
    color: #ffffff;
}

.ag-qty-input {
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    outline: none;
}

.ag-cp-box {
    display: flex;
    gap: 0.4rem;
}

.ag-cp-btn {
    background: #334155;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 0 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.ag-cp-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.ag-custom-quote-notice {
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed #475569;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.ag-quote-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #22c55e;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.ag-quote-link:hover {
    text-decoration: underline;
}

.ag-breakdown-box {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.ag-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.ag-breakdown-row:last-of-type {
    border-bottom: none;
}

.ag-breakdown-row strong {
    color: #f8fafc;
}

.ag-total-row {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 2px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.ag-total-label {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    display: block;
}

.ag-tax-note {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.ag-total-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: -0.5px;
}

.ag-btn-add-cart {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.ag-btn-add-cart:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.ag-feedback-msg {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    text-align: center;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 640px) {
    .ag-grid-2 {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .ag-toggle-group {
        grid-template-columns: 1fr;
    }
    .ag-price-highlight {
        font-size: 1.4rem;
    }
    .ag-total-val {
        font-size: 1.4rem;
    }
    .ag-custom-quote-notice {
        flex-direction: column;
        align-items: flex-start;
    }
}
