/* ==========================================================================
   RUEDEMAX USA / RUEDEMAX GROUP LLC - B2B EXPORT PLATFORM STYLES
   Industrial Tech / American Corporate B2B Aesthetic + Fast Proforma Engine
   ========================================================================== */

:root {
    --usa-navy: #0b192c;
    --usa-blue: #0056b3;
    --usa-blue-light: #e8f1fd;
    --usa-blue-accent: #1e88e5;
    --usa-red: #d32f2f;
    --usa-red-hover: #b71c1c;
    --usa-dark: #121824;
    --usa-gray-50: #f8fafc;
    --usa-gray-100: #f1f5f9;
    --usa-gray-200: #e2e8f0;
    --usa-gray-300: #cbd5e1;
    --usa-gray-600: #475569;
    --usa-gray-800: #1e293b;
    --usa-green: #10b981;
    --usa-gold: #f59e0b;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--usa-gray-50);
    color: var(--usa-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- DRAFT CONFIDENTIAL WATERMARK BAR --- */
.draft-confidential-bar {
    background: #fff1f2;
    border-bottom: 1px solid #fecdd3;
    color: #be123c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-align: center;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

/* --- TOP ANNOUNCEMENT BAR --- */
.top-notice-bar {
    background: linear-gradient(90deg, #0a192f 0%, #1e3a8a 100%);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-notice-bar .top-left a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.top-notice-bar .top-left a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.top-notice-bar .top-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: inline-flex;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #ffffff;
    color: var(--usa-navy);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* --- MAIN HEADER --- */
.usa-main-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--usa-red);
}

.usa-header-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.usa-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.usa-logo-wrap .logo-symbol {
    font-size: 1.8rem;
    line-height: 1;
}

.usa-logo-wrap .logo-text-block {
    display: flex;
    flex-direction: column;
}

.usa-logo-wrap .brand-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--usa-navy);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.usa-logo-wrap .brand-name .usa-flag-badge {
    background: var(--usa-red);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.usa-logo-wrap .brand-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--usa-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usa-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.usa-nav a {
    color: var(--usa-gray-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
}

.usa-nav a:hover {
    color: var(--usa-blue);
}

.usa-header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-cart-trigger {
    background: var(--usa-navy);
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    position: relative;
}

.btn-cart-trigger:hover {
    background: var(--usa-blue);
    transform: translateY(-1px);
}

.cart-count-badge {
    background: var(--usa-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 12px;
    position: absolute;
    top: -6px;
    right: -6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- HERO SECTION --- */
.usa-hero {
    background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #0b192c 85%);
    color: #ffffff;
    padding: 70px 20px 80px;
    position: relative;
    overflow: hidden;
}

.usa-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.usa-hero-inner {
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.usa-hero-title {
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
}

.usa-hero-title .txt-highlight {
    color: #60a5fa;
    text-shadow: 0 0 25px rgba(96, 165, 250, 0.4);
}

.usa-hero-desc {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 650px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.usa-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-primary-usa {
    background: var(--usa-red);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.4);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-usa:hover {
    background: var(--usa-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.btn-outline-usa {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.3);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-usa:hover {
    background: #ffffff;
    color: var(--usa-navy);
    border-color: #ffffff;
}

/* Quick Card in Hero */
.hero-card-pitch {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-xl);
}

.hero-card-pitch h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-card-pitch p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.partner-logos-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.brand-badge-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- STATS / METRICS BANNER --- */
.stats-banner {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    margin-top: -35px;
    position: relative;
    z-index: 20;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 14px;
    padding: 24px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border: 1px solid var(--usa-gray-200);
}

.stat-item {
    text-align: center;
    padding: 0 10px;
    border-right: 1px solid var(--usa-gray-200);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--usa-navy);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--usa-gray-600);
}

/* --- SECTIONS COMMON --- */
.section-pad {
    padding: 80px 20px;
    max-width: 1360px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--usa-blue);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: var(--usa-blue-light);
    padding: 4px 12px;
    border-radius: 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--usa-navy);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--usa-gray-600);
    max-width: 750px;
    margin: 0 auto;
}

/* --- MANUFACTURERS PITCH GRID --- */
.pitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pitch-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--usa-gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pitch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--usa-blue-accent);
}

.pitch-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--usa-blue-light);
    color: var(--usa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pitch-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--usa-navy);
    margin-bottom: 12px;
}

.pitch-card p {
    font-size: 0.93rem;
    color: var(--usa-gray-600);
    line-height: 1.55;
}

/* ==========================================================================
   NUEVO LAYOUT ESTILO RUEDEMAX: SIDEBAR LATERAL + GRILLA DERECHA
   ========================================================================== */

.mobile-filter-bar {
    display: none;
    margin-bottom: 16px;
}

.btn-mobile-cat-toggle {
    width: 100%;
    background: var(--usa-navy);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.usa-catalog-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 30px;
    align-items: start;
}

/* --- SIDEBAR PANEL --- */
.usa-sidebar-panel {
    background: #ffffff;
    border: 1px solid var(--usa-gray-200);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 85px;
}

.sidebar-block {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--usa-gray-200);
}

.sidebar-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--usa-navy);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Buscador Lateral */
.sidebar-search-box {
    position: relative;
}

.sidebar-search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--usa-gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--usa-gray-50);
    transition: all 0.2s;
}

.sidebar-search-box input:focus {
    background: #ffffff;
    border-color: var(--usa-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.sidebar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--usa-gray-600);
    pointer-events: none;
}

/* Lista de Categorías */
.sidebar-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--usa-gray-800);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-nav-item:hover {
    background: var(--usa-gray-100);
    color: var(--usa-navy);
}

.sidebar-nav-item.active {
    background: var(--usa-navy);
    color: #ffffff;
    font-weight: 700;
}

.sidebar-cat-badge {
    background: var(--usa-gray-200);
    color: var(--usa-gray-800);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

.sidebar-nav-item.active .sidebar-cat-badge {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* Filtro por Marca */
.sidebar-brands-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-chip-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--usa-gray-50);
    border: 1px solid var(--usa-gray-200);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--usa-gray-800);
    cursor: pointer;
    transition: all 0.2s;
}

.brand-chip-filter:hover {
    background: var(--usa-gray-100);
    border-color: var(--usa-navy);
}

.brand-chip-filter.active {
    background: #eff6ff;
    border-color: var(--usa-blue);
    color: var(--usa-blue);
}

.btn-reset-filters-sidebar {
    width: 100%;
    background: var(--usa-gray-100);
    border: 1px solid var(--usa-gray-300);
    color: var(--usa-gray-800);
    padding: 9px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-filters-sidebar:hover {
    background: var(--usa-gray-200);
    color: var(--usa-navy);
}

/* --- MAIN PRODUCTS AREA --- */
.usa-products-main {
    display: flex;
    flex-direction: column;
}

.catalog-status-bar {
    background: #ffffff;
    border: 1px solid var(--usa-gray-200);
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.results-counter {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--usa-navy);
}

.status-bar-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-open-proforma-header {
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-open-proforma-header:hover {
    background: #047857;
}

/* Grilla de Productos */
.usa-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.usa-product-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--usa-gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
}

.usa-product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--usa-blue);
    transform: translateY(-4px);
}

.prod-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--usa-gold);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.card-brand-tag {
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-brand-tag.brand-oliver {
    background: #eef2ff;
    color: #3730a3;
    border-bottom: 2px solid #6366f1;
}

.card-brand-tag.brand-rubberinc {
    background: #ecfdf5;
    color: #065f46;
    border-bottom: 2px solid #10b981;
}

.card-brand-tag.brand-presti {
    background: #fffbeb;
    color: #92400e;
    border-bottom: 2px solid #f59e0b;
}

.card-brand-tag .stock-pill {
    color: var(--usa-green);
    font-weight: 700;
    font-size: 0.75rem;
}

/* FOTOS REALES DE PRODUCTOS */
.card-img-wrap {
    height: 190px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    border-bottom: 1px solid var(--usa-gray-200);
    overflow: hidden;
    cursor: pointer;
}

.prod-img-real {
    max-width: 100%;
    max-height: 165px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.usa-product-card:hover .prod-img-real {
    transform: scale(1.06);
}

.item-sku-tag {
    position: absolute;
    bottom: 8px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.7rem;
    font-family: monospace;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--usa-navy);
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: 44px;
    cursor: pointer;
}

.prod-title:hover {
    color: var(--usa-blue);
}

.prod-desc {
    font-size: 0.85rem;
    color: var(--usa-gray-600);
    margin-bottom: 14px;
    line-height: 1.45;
    flex-grow: 1;
}

.prod-specs-mini {
    background: var(--usa-gray-50);
    border: 1px solid var(--usa-gray-200);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 14px;
    font-size: 0.78rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.spec-row:last-child {
    margin-bottom: 0;
}

.spec-lbl {
    color: var(--usa-gray-600);
}

.spec-val {
    font-weight: 700;
    color: var(--usa-gray-800);
}

.prod-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-currency {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--usa-gray-600);
}

.price-val {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--usa-navy);
}

.price-unit {
    font-size: 0.78rem;
    color: var(--usa-gray-600);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--usa-gray-300);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.qty-btn {
    background: var(--usa-gray-100);
    border: none;
    width: 30px;
    height: 36px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--usa-gray-300);
}

.qty-selector input {
    width: 40px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--usa-navy);
}

.btn-add-cart {
    background: var(--usa-navy);
    color: #ffffff;
    border: none;
    flex-grow: 1;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: var(--usa-blue);
}

.btn-view-details {
    background: transparent;
    border: none;
    color: var(--usa-blue);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 0;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s;
}

.btn-view-details:hover {
    color: var(--usa-navy);
    text-decoration: underline;
}

/* Empty Search State */
.empty-search-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed var(--usa-gray-300);
    border-radius: 12px;
}

.empty-search-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.btn-clear-filters-action {
    margin-top: 16px;
    background: var(--usa-navy);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* --- LOGISTICS SECTION --- */
.logistics-wrapper {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--usa-gray-200);
    box-shadow: var(--shadow-sm);
    padding: 35px;
}

.countries-pill-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--usa-gray-200);
}

.country-pill-btn {
    background: var(--usa-gray-50);
    border: 1px solid var(--usa-gray-300);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.country-pill-btn:hover {
    background: var(--usa-gray-100);
    border-color: var(--usa-navy);
}

.country-pill-btn.active {
    background: var(--usa-blue);
    color: #ffffff;
    border-color: var(--usa-blue);
}

.logistics-card-box .log-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.big-flag {
    font-size: 2.8rem;
}

.log-head h3 {
    font-size: 1.5rem;
    color: var(--usa-navy);
    margin-bottom: 4px;
}

.log-head .cities {
    font-size: 0.92rem;
    color: var(--usa-gray-600);
}

.route-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--usa-gray-50);
    border: 1px solid var(--usa-gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.route-step {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.route-step.highlight {
    background: #ffffff;
    padding: 14px;
    border-radius: 10px;
    border: 2px dashed var(--usa-blue);
    box-shadow: var(--shadow-sm);
}

.badge-step {
    background: var(--usa-navy);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.route-step.highlight .badge-step {
    background: var(--usa-red);
}

.route-step strong {
    font-size: 0.95rem;
    color: var(--usa-navy);
    margin-bottom: 2px;
}

.route-step small {
    font-size: 0.78rem;
    color: var(--usa-gray-600);
}

.route-arrow {
    color: var(--usa-blue);
    font-size: 1.5rem;
    font-weight: 900;
    padding: 0 10px;
}

.tip-box {
    background: #ecfdf5;
    border-left: 4px solid var(--usa-green);
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tip-icon {
    font-size: 1.3rem;
}

.tip-box p {
    font-size: 0.92rem;
    color: #065f46;
    line-height: 1.5;
}

/* --- CART DRAWER CON ENFOQUE ASISTIDO Y STICKY BOTTOM --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.usa-cart-drawer {
    position: fixed;
    top: 0;
    right: -520px;
    width: 480px;
    max-width: 95vw;
    height: 100vh;
    background: #ffffff;
    z-index: 2010;
    box-shadow: -5px 0 25px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.usa-cart-drawer.open {
    right: 0;
}

.drawer-header {
    background: var(--usa-navy);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-drawer {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ÚNICO CONTENEDOR DESPLAZABLE QUE NUNCA SE APLASTA */
.drawer-scroll-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

.drawer-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--usa-navy);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.btn-clear-cart-mini {
    background: transparent;
    border: none;
    color: var(--usa-red);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-clear-cart-mini:hover {
    text-decoration: underline;
}

.drawer-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tarjeta de Producto en el Carrito */
.cart-item-card {
    background: #ffffff;
    border: 1px solid var(--usa-gray-200);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.cart-item-thumb {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--usa-gray-200);
    border-radius: 6px;
    padding: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-brand {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--usa-blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.cart-item-title {
    font-size: 0.88rem;
    color: var(--usa-navy);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price-unit {
    font-size: 0.78rem;
    color: var(--usa-gray-600);
    margin-bottom: 6px;
}

.cart-item-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    background: var(--usa-gray-50);
    border: 1px solid var(--usa-gray-300);
    border-radius: 4px;
}

.cart-qty-ctrl button {
    background: transparent;
    border: none;
    width: 26px;
    height: 26px;
    font-weight: 700;
    cursor: pointer;
}

.cart-qty-ctrl span {
    padding: 0 8px;
    font-weight: 700;
    font-size: 0.88rem;
}

.cart-item-subtotal {
    font-weight: 900;
    color: var(--usa-navy);
    font-size: 0.95rem;
}

.cart-btn-del {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.2s;
}

.cart-btn-del:hover {
    color: var(--usa-red);
}

/* Tarjeta de Destino Simplificada */
.drawer-section-card {
    background: #ffffff;
    border: 1px solid var(--usa-gray-200);
    border-radius: 10px;
    padding: 14px 16px;
}

.drawer-card-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--usa-navy);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Acordeón Opcional para Proforma */
.drawer-accordion-proforma {
    background: #ffffff;
    border: 1px solid var(--usa-gray-200);
    border-radius: 10px;
    padding: 12px 16px;
}

.drawer-accordion-proforma summary {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--usa-blue);
    cursor: pointer;
    user-select: none;
}

.drawer-accordion-proforma .accordion-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--usa-gray-200);
}

.form-group-b2b {
    margin-bottom: 10px;
}

.form-group-b2b label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--usa-gray-800);
    margin-bottom: 3px;
    text-transform: uppercase;
}

.form-group-b2b select,
.form-group-b2b input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--usa-gray-300);
    border-radius: 6px;
    font-size: 0.85rem;
    background: #ffffff;
}

.freight-override-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-mini-tag {
    background: #e2e8f0;
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-mini-tag:hover {
    background: #cbd5e1;
}

/* FOOTER PEGAJOSO (STICKY BOTTOM) SIEMPRE VISIBLE */
.drawer-sticky-bottom {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 2px solid var(--usa-gray-200);
    padding: 16px 20px 20px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.drawer-totals-summary {
    margin-bottom: 12px;
}

.tot-sub-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--usa-gray-600);
    margin-bottom: 3px;
}

.tot-main-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--usa-navy);
    border-top: 1px solid var(--usa-gray-200);
    padding-top: 6px;
    margin-top: 6px;
}

.tot-main-line strong {
    color: var(--usa-red);
}

.tot-weight-note {
    font-size: 0.75rem;
    color: var(--usa-gray-600);
    text-align: right;
    margin-top: 2px;
}

.drawer-sticky-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-action-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
    padding: 13px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: all 0.2s;
}

.btn-action-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-1px);
}

.btn-action-proforma {
    background: var(--usa-navy);
    color: #ffffff;
    border: 1px solid var(--usa-navy);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-proforma:hover {
    background: var(--usa-blue);
    border-color: var(--usa-blue);
}

/* ==========================================================================
   MODAL DE FACTURA PROFORMA OFICIAL (MEMBRETADA)
   ========================================================================== */

.usa-proforma-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    z-index: 3500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.usa-proforma-overlay.open {
    opacity: 1;
    visibility: visible;
}

.usa-proforma-window {
    background: #ffffff;
    max-width: 900px;
    width: 100%;
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
}

.proforma-top-actions {
    background: var(--usa-navy);
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proforma-top-actions .btn-print-action {
    background: var(--usa-red);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.proforma-top-actions .btn-close-proforma {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.proforma-scroll-area {
    overflow-y: auto;
    padding: 30px;
    background: #f8fafc;
}

/* La Hoja Membretada */
.proforma-document {
    background: #ffffff;
    border: 1px solid var(--usa-gray-300);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    color: #0f172a;
    font-size: 0.9rem;
}

.proforma-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--usa-navy);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.prof-logo-badge {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--usa-navy);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.prof-corp-meta {
    font-size: 0.82rem;
    color: var(--usa-gray-600);
    line-height: 1.5;
}

.prof-inv-meta {
    text-align: right;
}

.prof-doc-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--usa-blue);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.prof-inv-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--usa-navy);
    margin-bottom: 4px;
}

.prof-date-meta {
    font-size: 0.82rem;
    color: var(--usa-gray-600);
    line-height: 1.5;
}

/* Cuadrícula Cliente e Incoterm */
.proforma-client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.prof-client-col {
    background: #f8fafc;
    border: 1px solid var(--usa-gray-200);
    border-radius: 8px;
    padding: 16px;
}

.prof-client-col.highlight-incoterm {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.prof-col-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--usa-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    margin-bottom: 6px;
}

.prof-client-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--usa-navy);
    margin-bottom: 6px;
}

.prof-client-sub {
    font-size: 0.82rem;
    color: var(--usa-gray-800);
    line-height: 1.5;
}

.incoterm-badge {
    background: var(--usa-navy);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Tabla de Ítems Proforma */
.proforma-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.88rem;
}

.proforma-items-table th,
.proforma-items-table td {
    padding: 10px 12px;
    border: 1px solid var(--usa-gray-200);
}

.proforma-items-table th {
    background: var(--usa-navy);
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proforma-items-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* Totales e Instrucciones */
.proforma-totals-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 30px;
}

.banking-instructions-box {
    background: #f8fafc;
    border: 1px solid var(--usa-gray-200);
    border-radius: 8px;
    padding: 14px;
    font-size: 0.82rem;
}

.prof-totals-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tot-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--usa-gray-800);
}

.tot-row.final-grand-total {
    font-size: 1.2rem;
    font-weight: 900;
    border-top: 2px solid var(--usa-navy);
    padding-top: 8px;
    margin-top: 4px;
}

/* Firmas */
.proforma-signatures-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    padding-top: 20px;
}

.signature-box {
    text-align: center;
}

.sign-line {
    border-bottom: 1px solid #94a3b8;
    height: 40px;
    margin-bottom: 8px;
}

.signature-box strong {
    display: block;
    font-size: 0.85rem;
}

.signature-box small {
    color: var(--usa-gray-600);
    font-size: 0.75rem;
}

/* --- PRODUCT DETAIL MODAL --- */
.usa-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.usa-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.usa-modal-window {
    background: #ffffff;
    max-width: 840px;
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-close-corner {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.06);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-content-scroll {
    overflow-y: auto;
    padding: 30px;
}

.modal-prod-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.modal-img-container {
    height: 250px;
    background: #ffffff;
    border: 1px solid var(--usa-gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-bottom: 16px;
}

.modal-real-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.modal-price-box {
    background: var(--usa-gray-50);
    border: 1px solid var(--usa-gray-200);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.lbl-cur {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--usa-gray-600);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.val-usd {
    font-size: 2rem;
    font-weight: 900;
    color: var(--usa-navy);
}

.moq-note {
    font-size: 0.8rem;
    color: var(--usa-red);
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

.modal-brand {
    color: var(--usa-blue);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 4px;
}

.modal-prod-right h2 {
    font-size: 1.5rem;
    color: var(--usa-navy);
    line-height: 1.25;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.92rem;
    color: var(--usa-gray-600);
    margin-bottom: 18px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.specs-table th,
.specs-table td {
    padding: 8px 12px;
    border: 1px solid var(--usa-gray-200);
}

.specs-table th {
    background: var(--usa-gray-50);
    text-align: left;
    color: var(--usa-gray-600);
    width: 40%;
}

.specs-table td {
    color: var(--usa-navy);
    font-weight: 600;
}

.modal-actions-bar {
    display: flex;
    gap: 12px;
}

.btn-modal-add {
    background: var(--usa-red);
    color: #ffffff;
    border: none;
    flex-grow: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
    transition: background 0.2s;
}

.btn-modal-add:hover {
    background: var(--usa-red-hover);
}

/* --- FOOTER --- */
.usa-footer {
    background: var(--usa-navy);
    color: #ffffff;
    padding: 60px 20px 30px;
    border-top: 4px solid var(--usa-red);
}

.usa-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-col p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1360px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- TOAST --- */
.usa-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--usa-navy);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--usa-green);
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.usa-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .usa-catalog-layout {
        grid-template-columns: 1fr;
    }
    .mobile-filter-bar {
        display: block;
    }
    .usa-sidebar-panel {
        display: none;
        position: static;
        margin-bottom: 20px;
    }
    .usa-sidebar-panel.mobile-open {
        display: block;
    }
    .usa-hero-inner {
        grid-template-columns: 1fr;
    }
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .stat-item:nth-child(2) {
        border-right: none;
    }
    .usa-footer-inner {
        grid-template-columns: 1fr;
    }
    .modal-prod-grid {
        grid-template-columns: 1fr;
    }
    .route-diagram {
        flex-direction: column;
        gap: 14px;
    }
    .route-arrow {
        transform: rotate(90deg);
        padding: 5px 0;
    }
    .proforma-totals-block {
        grid-template-columns: 1fr;
    }
    .proforma-client-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .usa-hero-title {
        font-size: 2rem;
    }
    .stats-banner {
        grid-template-columns: 1fr;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--usa-gray-200);
        padding-bottom: 14px;
    }
    .stat-item:last-child {
        border-bottom: none;
    }
    .usa-nav {
        display: none;
    }
    .proforma-document {
        padding: 20px;
    }
}

/* --- PRINT MEDIA STYLES FOR OFFICIAL PROFORMA INVOICES --- */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .draft-confidential-bar,
    .top-notice-bar,
    .usa-main-header,
    .usa-hero,
    .stats-banner,
    .pitch-grid,
    .catalog-status-bar,
    .mobile-filter-bar,
    .usa-sidebar-panel,
    .usa-catalog-grid,
    .logistics-wrapper,
    .usa-footer,
    .cart-drawer-overlay,
    .usa-cart-drawer,
    .proforma-top-actions,
    .usa-toast,
    .usa-modal-overlay {
        display: none !important;
    }

    .usa-proforma-overlay {
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .usa-proforma-window {
        box-shadow: none !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }

    .proforma-scroll-area {
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .proforma-document {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .proforma-items-table th {
        background: #1e293b !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .incoterm-badge {
        background: #1e293b !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========================================================
   GATEKEEPER DE ACCESO CONFIDENCIAL B2B (PASSWORD LOCK)
   ======================================================== */
html:not(.usa-authorized) body {
    overflow: hidden !important;
}

.auth-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, #152238 0%, #070d18 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

html.usa-authorized .auth-gate-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-gate-box {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 86, 179, 0.2);
    max-width: 480px;
    width: 100%;
    padding: 36px 32px;
    color: #f8fafc;
    text-align: center;
    position: relative;
    animation: authPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authPopIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-gate-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.auth-gate-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.35);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.auth-gate-header h2 {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 10px;
}

.auth-gate-header h2 .flag-accent {
    color: #38bdf8;
    font-size: 1rem;
    font-weight: 700;
}

.auth-gate-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 24px;
}

.auth-gate-form {
    text-align: left;
}

.auth-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: #1e293b;
    border: 1.5px solid #334155;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.auth-input-wrapper input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
    background: #0b132b;
}

.btn-toggle-pass {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
}

.auth-error-msg {
    margin-top: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.btn-auth-unlock {
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.4);
    transition: all 0.2s;
}

.btn-auth-unlock:hover {
    background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 86, 179, 0.55);
}

.auth-gate-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #64748b;
}

.auth-partner-chips {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-partner-chips span {
    color: #cbd5e1;
}

.auth-gate-footer a {
    color: #38bdf8;
    text-decoration: none;
}

.auth-gate-footer a:hover {
    text-decoration: underline;
}

/* Boton de bloqueo en la barra superior */
.btn-lock-session {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-lock-session:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.5);
    color: #fca5a5;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.input-shake {
    animation: inputShake 0.35s ease-in-out;
    border-color: #ef4444 !important;
}

/* --- MODALIDAD LOGISTICA EN DRAWER --- */
.shipping-mode-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.shipping-mode-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-mode-opt:hover {
    border-color: #0056b3;
    background: #f0f7ff;
}

.shipping-mode-opt.active {
    border-color: #0056b3;
    background: #eef6ff;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.15);
}

.shipping-mode-opt input[type="radio"] {
    margin-top: 3px;
    cursor: pointer;
}

.mode-text strong {
    display: block;
    font-size: 0.85rem;
    color: #0b192c;
}

.mode-text small {
    display: block;
    font-size: 0.73rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.3;
}

/* ==========================================================================
   TABLA DE APLICACIÓN TÉCNICA UNIVERSAL PRESTI DE SYSTEM (ESTILOS B2B)
   ========================================================================== */
.presti-universal-guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 41, 66, 0.08);
    margin: 0 auto 35px auto;
    max-width: 1320px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.presti-universal-guide-card:hover {
    box-shadow: 0 8px 28px rgba(15, 41, 66, 0.12);
}

.guide-header {
    background: linear-gradient(135deg, #0f2942 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 22px 28px;
    border-bottom: 2px solid #c2410c;
}

.guide-badge {
    display: inline-block;
    background: rgba(194, 65, 12, 0.25);
    border: 1px solid rgba(251, 146, 60, 0.5);
    color: #fdba74;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.guide-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.45;
}

.guide-body {
    padding: 20px 24px;
}

.table-responsive-box {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.presti-app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
    white-space: nowrap;
}

.presti-app-table thead th {
    background: #f1f5f9;
    color: #0f2942;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid #cbd5e1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presti-app-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.presti-app-table tbody tr:hover {
    background: #f8fafc;
}

.presti-app-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    color: #334155;
}

.tire-badge-highlight {
    display: inline-block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 9px;
    border-radius: 6px;
}

.tire-badge-queen {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.sku-pill {
    display: inline-block;
    font-family: monospace;
    font-weight: 700;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f2942;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
}

.price-pill-tag {
    font-weight: 800;
    color: #059669;
    font-size: 0.9rem;
}

.btn-combo-add {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    transition: all 0.2s ease;
}

.btn-combo-add:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.presti-note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.8rem;
    color: #64748b;
}

.presti-note-footer strong {
    color: #0f2942;
}

@media (max-width: 768px) {
    .guide-title {
        font-size: 1.1rem;
    }
    .guide-header {
        padding: 16px 18px;
    }
    .guide-body {
        padding: 14px 12px;
    }
}

/* ==========================================================================
   TARJETAS EXPLICATIVAS DE VÁLVULAS QUICKDRAW Y BARCODE TAG PRESTI
   ========================================================================== */
.valves-explainer-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.valves-explainer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2942;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.valves-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.valve-feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.valve-feature-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 41, 66, 0.08);
    transform: translateY(-2px);
    background: #ffffff;
}

.valve-card-img-wrap {
    width: 100%;
    height: 160px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.valve-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.valve-feature-card:hover .valve-card-img {
    transform: scale(1.05);
}

.valve-card-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    width: fit-content;
}

.tag-sureseal {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.tag-threaded {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.tag-barcode {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.valve-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f2942;
    margin: 0 0 8px 0;
}

.valve-card-desc {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.valve-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.76rem;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
}

.valve-specs-list li {
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.valve-specs-list li strong {
    color: #1e293b;
}

@media (max-width: 900px) {
    .valves-feature-grid {
        grid-template-columns: 1fr;
    }
}
