/* =========================================================
   RELY Occidente · Accesorios y Flota comercial (v1.7.7)
   assets/css/catalog-refresh.css · solo catalogo.php y catalago-de-autos.php
   Fondo claro cálido, naranja desaturado sin brillos, más aire,
   Manrope y tarjetas a todo el ancho en el teléfono.
   ========================================================= */
body { background: #f4f3ef !important; }
.site-footer { background: #0f1115 !important; }

.catalog-section,
.modal-overlay,
.cart-drawer,
.loader-overlay {
    --primary: #c4582f;
    --primary-hover: #ad4c28;
    --primary-glow: transparent;
    --bg-color: #f4f3ef;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1b1d22;
    --text-dim: #646a74;
    --glass-bg: rgba(255, 255, 255, .92);
    --glass-border: rgba(20, 22, 28, .08);
    --shadow-heavy: rgba(20, 22, 28, .08);
    --rr-soft: #f6ebe5;
    --rr-img: #f3f1ec;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #1b1d22;
}
.catalog-section :is(h1, h2, h3, h4, button, input, select, textarea),
.modal-overlay :is(h1, h2, h3, h4, button, input, select, textarea),
.cart-drawer :is(h1, h2, h3, h4, button, input, select, textarea) { font-family: inherit; }

/* Sin brillos ni resplandores */
.catalog-section *, .modal-overlay *, .cart-drawer *, .cart-trigger { text-shadow: none !important; }
.btn-add-cart, .btn-card-quote, .btn-download-pdf-footer, .btn-checkout-ws, .btn-checkout-dual,
.btn-quote-ws, .btn-quote-mail, .btn-submit, .brand-pill-btn.active, .cart-count, .mobile-catalog-btn { box-shadow: none !important; }

/* ---------- Encabezados ---------- */
.catalog-section { max-width: 1240px !important; padding: 150px 40px 96px !important; }
.catalog-header, .fleet-hero-header { text-align: left !important; margin-bottom: 44px !important; max-width: 720px; }
.catalog-header .badge-new, .fleet-hero-header .badge-new {
    display: inline-block; margin-bottom: 14px; padding: 0; background: none !important; border: 0 !important;
    color: #9a4a2a !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .3px !important; text-transform: none !important;
}
.catalog-header h1, .fleet-hero-header h1 {
    margin: 0 0 14px !important; color: #15171c !important;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem) !important; line-height: 1.04 !important;
    font-weight: 600 !important; letter-spacing: -0.035em !important; text-transform: none !important;
}
.fleet-hero-header h1 span { color: inherit !important; }
.catalog-header p, .fleet-hero-header p { margin: 0 !important; color: #646a74 !important; font-size: 1.08rem !important; line-height: 1.6 !important; max-width: 620px; }
.fleet-hero-header p b { color: #1b1d22; font-weight: 600; }

/* Cifras de la flota: discretas, en línea */
.fleet-stats-row { justify-content: flex-start !important; gap: 28px !important; margin: 26px 0 0 !important; }
.stat-pill-box { padding: 0 !important; min-width: 0 !important; background: none !important; border: 0 !important; backdrop-filter: none !important; text-align: left !important; display: flex; align-items: baseline; gap: 8px; }
.stat-pill-box .num { font-size: 1.6rem !important; font-weight: 600 !important; color: #15171c !important; }
.stat-pill-box .lbl { font-size: .9rem !important; font-weight: 500 !important; color: #646a74 !important; text-transform: none !important; letter-spacing: 0 !important; }

/* Filtro de marcas */
.brands-filter-container { margin: 0 0 36px !important; text-align: left !important; }
.brands-filter-title { margin-bottom: 12px !important; color: #646a74 !important; font-size: .85rem !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }
.brands-pills-wrapper { justify-content: flex-start !important; gap: 8px !important; }
.brand-pill-btn {
    padding: 10px 18px !important; border-radius: 999px !important; background: #ffffff !important; border: 1px solid rgba(20,22,28,.1) !important;
    color: #3a3f47 !important; font-size: .88rem !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
}
.brand-pill-btn:hover { border-color: rgba(20,22,28,.25) !important; transform: none !important; }
.brand-pill-btn.active { background: #1b1d22 !important; border-color: #1b1d22 !important; color: #ffffff !important; }

/* ---------- Tarjetas ---------- */
.products-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 28px !important; }
.product-card, .vehicle-card {
    padding: 0 !important; border-radius: 20px !important; background: #ffffff !important;
    border: 1px solid rgba(20,22,28,.06) !important; box-shadow: 0 1px 2px rgba(20,22,28,.04) !important;
    overflow: hidden; transition: box-shadow .25s ease, transform .25s ease !important;
}
.product-card:hover, .vehicle-card:hover { transform: translateY(-3px) !important; box-shadow: 0 18px 40px rgba(20,22,28,.08) !important; border-color: rgba(20,22,28,.08) !important; }
.product-card > div:first-child, .vehicle-card > div:first-child { display: flex; flex-direction: column; padding: 0; }
.product-img-box {
    order: -1; height: 230px !important; margin: 0 0 18px !important; border: 0 !important; border-radius: 0 !important;
    background: var(--rr-img) !important;
}
.product-img-box img { object-fit: contain !important; padding: 14px; }
.vehicle-card .product-img-box img { object-fit: cover !important; padding: 0; }
.product-sku, .card-top-tags, .product-title, .vehicle-name, .product-desc, .vehicle-desc, .btn-details, .btn-vehicle-details { margin-left: 22px !important; margin-right: 22px !important; }
.product-sku, .sku-badge { color: #8a8f99 !important; font-size: .75rem !important; font-weight: 500 !important; letter-spacing: .4px !important; }
.card-top-tags { margin-bottom: 8px !important; }
.brand-badge { background: #f1efeb !important; color: #3a3f47 !important; border: 0 !important; border-radius: 6px !important; font-size: .7rem !important; font-weight: 700 !important; letter-spacing: .4px; }
.product-title, .vehicle-name {
    color: #15171c !important; font-size: 1.12rem !important; font-weight: 600 !important; line-height: 1.3 !important;
    letter-spacing: -0.01em !important; text-transform: none !important;
}
.product-desc, .vehicle-desc { color: #646a74 !important; font-size: .92rem !important; line-height: 1.55 !important; }
.btn-details, .btn-vehicle-details {
    display: inline-flex !important; align-items: center; gap: 6px; align-self: flex-start;
    margin-bottom: 22px !important; padding: 0 !important; background: none !important; border: 0 !important;
    color: #1b1d22 !important; font-size: .88rem !important; font-weight: 600 !important; text-decoration: none !important; cursor: pointer;
}
.btn-details:hover, .btn-vehicle-details:hover { color: var(--primary) !important; }
.btn-details .rr-ico, .btn-vehicle-details .rr-ico { width: 16px; height: 16px; transition: transform .2s ease; }
.btn-details:hover .rr-ico, .btn-vehicle-details:hover .rr-ico { transform: translateX(3px); }
.product-bottom, .vehicle-bottom { margin: auto 22px 0 !important; padding: 16px 0 20px !important; border-top: 1px solid rgba(20,22,28,.07) !important; }
.product-price, .vehicle-price { color: #15171c !important; font-size: 1.25rem !important; font-weight: 700 !important; letter-spacing: -0.01em; }

/* Botones: naranja plano y desaturado */
.btn-add-cart, .btn-card-quote {
    display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px;
    padding: 0 18px !important; border-radius: 999px !important; background: var(--primary) !important; color: #ffffff !important;
    font-size: .9rem !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
}
.btn-add-cart:hover, .btn-card-quote:hover { background: var(--primary-hover) !important; transform: none !important; }
.rr-ico { flex: none; }

/* Bloque del catálogo PDF */
.catalog-pdf-footer-action {
    margin-top: 72px !important; padding: 40px !important; text-align: left !important; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center;
    background: #ffffff !important; border: 1px solid rgba(20,22,28,.06) !important; border-radius: 24px !important; box-shadow: none !important; backdrop-filter: none !important;
}
.catalog-pdf-footer-action h3 { grid-column: 1; margin: 0 !important; color: #15171c !important; font-size: 1.35rem !important; font-weight: 600 !important; text-transform: none !important; }
.catalog-pdf-footer-action p { grid-column: 1; margin: 0 !important; max-width: 560px !important; color: #646a74 !important; }
.btn-download-pdf-footer {
    grid-column: 2; grid-row: 1 / span 2; padding: 0 22px !important; min-height: 48px; border-radius: 999px !important;
    background: #ffffff !important; color: #1b1d22 !important; border: 1px solid rgba(20,22,28,.18) !important;
    font-size: .95rem !important; font-weight: 600 !important; text-transform: none !important;
}
.btn-download-pdf-footer:hover { border-color: #1b1d22 !important; transform: none !important; }

/* ---------- Carrito, modales y formularios en claro ---------- */
.cart-trigger { background: #ffffff !important; color: #1b1d22 !important; border: 1px solid rgba(20,22,28,.1) !important; box-shadow: 0 8px 24px rgba(20,22,28,.08) !important; font-family: 'Manrope', sans-serif; font-weight: 600; }
.cart-count { background: #c4582f !important; }
.cart-drawer, .modal-box { background: #ffffff !important; color: #1b1d22 !important; border-color: rgba(20,22,28,.08) !important; }
.modal-overlay, .cart-drawer-overlay { background: rgba(20,22,28,.45) !important; backdrop-filter: blur(6px); }
.modal-box h2, .modal-box h3, .cart-drawer h3 { color: #15171c !important; text-transform: none !important; }
.modal-box p, .modal-box li, .cart-drawer p { color: #4b5059 !important; }
.vehicle-modal-img-container { background: var(--rr-img) !important; }
.spec-card-item { background: #f6f5f2 !important; border-color: rgba(20,22,28,.06) !important; }
.spec-icon-box { background: #ffffff !important; color: var(--primary) !important; border: 1px solid rgba(20,22,28,.08) !important; }
.spec-info-label { color: #646a74 !important; }
.spec-info-value { color: #15171c !important; }
.modal-overlay .field input, .modal-overlay .field select, .modal-overlay .field textarea,
.cart-drawer .field input, .cart-drawer .field select {
    background: #f6f5f2 !important; border: 1px solid rgba(20,22,28,.1) !important; color: #15171c !important;
}
.modal-overlay .field label, .cart-drawer .field label { color: #646a74 !important; }
.btn-quote-ws, .btn-checkout-ws { background: #1f7a4d !important; color: #fff !important; border: 0 !important; }
.btn-quote-mail, .btn-checkout-dual { background: #ffffff !important; color: #1b1d22 !important; border: 1px solid rgba(20,22,28,.18) !important; }
.btn-quote-ws, .btn-quote-mail, .btn-checkout-ws, .btn-checkout-dual, .btn-submit { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; text-transform: none !important; font-weight: 600 !important; }
.btn-submit { background: var(--primary) !important; }
.close-modal { color: #1b1d22 !important; }

/* ---------- Teléfono: a todo el ancho, más respiro ---------- */
@media (max-width: 760px) {
    .catalog-section { padding: 104px 14px 64px !important; }
    .catalog-header, .fleet-hero-header { margin-bottom: 28px !important; padding: 0 4px; }
    .catalog-header h1, .fleet-hero-header h1 { font-size: 2rem !important; }
    .catalog-header p, .fleet-hero-header p { font-size: 1rem !important; }
    .fleet-stats-row { gap: 20px !important; margin-top: 18px !important; }
    .brands-filter-container { margin: 0 -14px 24px !important; }
    .brands-filter-title { padding: 0 18px; }
    .brands-pills-wrapper { flex-wrap: nowrap !important; overflow-x: auto; padding: 0 18px 4px; scrollbar-width: none; }
    .brands-pills-wrapper::-webkit-scrollbar { display: none; }
    .brand-pill-btn { flex: none; }
    .products-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .product-card, .vehicle-card { border-radius: 18px !important; }
    .product-img-box { height: 58vw !important; max-height: 300px; }
    .product-sku, .card-top-tags, .product-title, .vehicle-name, .product-desc, .vehicle-desc, .btn-details, .btn-vehicle-details { margin-left: 18px !important; margin-right: 18px !important; }
    .product-bottom, .vehicle-bottom { margin: auto 18px 0 !important; }
    .catalog-pdf-footer-action { grid-template-columns: 1fr; padding: 26px 22px !important; margin-top: 40px !important; }
    .btn-download-pdf-footer { grid-column: 1; grid-row: auto; width: 100%; margin-top: 12px; }
    .cart-trigger { left: 14px !important; bottom: 14px !important; }
}

/* Accesorios: las fotos vienen con fondo blanco */
.product-card .product-img-box { background: #ffffff !important; border-bottom: 1px solid rgba(20,22,28,.06) !important; }
/* Botón «Catálogo R8» del teléfono: abajo, junto al carrito, sin tapar el título */
@media (max-width: 760px) {
    .mobile-catalog-btn {
        top: auto !important; bottom: 14px !important; right: auto !important; left: 132px !important;
        background: #ffffff !important; color: #1b1d22 !important; border: 1px solid rgba(20,22,28,.1) !important;
        box-shadow: 0 8px 24px rgba(20,22,28,.08) !important; font-family: 'Manrope', sans-serif !important; font-weight: 600 !important;
    }
}
