:root{--color-primary: #007cba;--color-primary-dark: #006ba1;--color-primary-darker: #005a87;--color-navy: #07133f;--color-text: #1f2933;--color-muted: #6b7280;--color-bg: #f7f8fb;--color-surface: #ffffff;--color-surface-soft: #f2f4f7;--color-border: #dce3ec;--color-border-strong: #c8d2df;--color-success: #00a878;--color-warning: #f59e0b;--color-danger: #d64545;--shadow-soft: 0 14px 32px rgba(7, 19, 63, .08)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--color-text);background:linear-gradient(180deg,#e9eef3 0%,var(--color-bg) 340px,var(--color-bg) 100%);font-family:Inter,Roboto,"Source Sans 3",system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}.app-shell{min-height:100vh}.site-header{position:sticky;top:0;z-index:30;height:78px;display:flex;align-items:center;gap:28px;padding:0 clamp(18px,3vw,40px);border-bottom:1px solid var(--color-border);background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;min-width:170px}.brand img{width:170px;height:auto}.main-nav{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 auto}.main-nav button,.site-footer button,.info-list a{color:var(--color-text);font-size:14px;font-weight:700;text-decoration:none}.main-nav button{min-height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface);transition:color .15s ease,background .15s ease,border-color .15s ease,transform .15s ease}.main-nav button.active{color:var(--color-primary-darker);border:1px solid var(--color-border-strong);background:var(--color-surface-soft)}.main-nav button:hover{border-color:var(--color-primary);background:#eef8fd;transform:translateY(-1px)}.main-nav button:active{transform:translateY(0)}.main-nav button svg,.btn svg,.icon-btn svg,.view-toggle svg{width:17px;height:17px;flex:0 0 auto}.page-shell{width:min(1520px,calc(100% - 40px));margin:28px auto 44px}.catalog-panel,.order-view,.order-list-panel,.order-actions-panel{min-width:0}.page-title{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}.eyebrow{margin:0 0 8px;color:var(--color-primary-darker);font-size:12px;font-weight:800;letter-spacing:0;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{margin-bottom:10px;color:var(--color-navy);font-size:clamp(32px,4vw,40px);line-height:1.1}h2{color:var(--color-navy);font-size:24px;line-height:1.2}h3{color:var(--color-navy);font-size:18px;line-height:1.25}.page-title p{margin-bottom:0;max-width:620px;color:var(--color-muted);font-size:16px}.view-toggle{display:inline-flex;padding:4px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface)}.view-toggle button,.icon-btn{width:36px;height:36px;display:inline-grid;place-items:center;color:var(--color-muted);border:1px solid transparent;border-radius:6px;background:transparent;transition:color .15s ease,background .15s ease,border-color .15s ease,transform .15s ease}.view-toggle button.active,.icon-btn-primary{color:#fff;background:var(--color-primary);border-color:var(--color-primary)}.icon-btn:hover,.view-toggle button:hover{color:var(--color-primary-darker);border-color:var(--color-border-strong);background:var(--color-surface-soft);transform:translateY(-1px)}.icon-btn:active,.view-toggle button:active,.btn:active{transform:translateY(0) scale(.98)}.icon-btn-primary:hover{color:#fff;background:var(--color-primary-dark);border-color:var(--color-primary-dark)}.filters-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end;padding:16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-soft)}.filters-panel .search-field{grid-column:span 2}label{display:grid;gap:6px;color:var(--color-text);font-size:13px;font-weight:800}.checkbox-filter{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;color:var(--color-text);font-size:14px;font-weight:800;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface);cursor:pointer;transition:color .15s ease,background .15s ease,border-color .15s ease}.checkbox-filter input{width:16px;min-height:16px;height:16px;padding:0;accent-color:var(--color-primary)}.checkbox-filter svg{width:17px;height:17px;color:var(--color-primary)}.checkbox-filter.is-active{color:var(--color-primary-darker);border-color:#007cba73;background:#eef8fd}input,select,textarea{width:100%;min-height:42px;padding:9px 10px;color:var(--color-text);border:1px solid var(--color-border-strong);border-radius:6px;background:var(--color-surface);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #007cba1f}textarea{min-height:76px;resize:vertical}.search-field{position:relative}.search-field svg{position:absolute;left:12px;bottom:12px;width:18px;height:18px;color:var(--color-muted)}.search-field input{padding-left:38px}.btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;border-radius:6px;font-size:14px;font-weight:800;text-decoration:none;border:1px solid transparent;transition:background .15s ease,border-color .15s ease,transform .15s ease}.btn:hover{transform:translateY(-1px)}.btn:disabled{cursor:not-allowed;opacity:.55;transform:none}.btn-primary{color:#fff;background:var(--color-primary);border-color:var(--color-primary)}.btn-primary:hover{background:var(--color-primary-dark)}.btn-added,.icon-btn-primary.is-added{background:var(--color-success);border-color:var(--color-success)}.btn-secondary{color:var(--color-primary-darker);background:var(--color-surface);border-color:var(--color-border-strong)}.btn-ghost{color:var(--color-muted);background:transparent;border-color:var(--color-border)}.btn-danger{color:var(--color-danger);background:#fff;border-color:#d6454552}.catalog-meta{min-height:42px;display:flex;justify-content:space-between;gap:16px;align-items:center;margin:16px 0}.active-filters{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.active-filters span{padding:6px 9px;color:var(--color-text);font-size:13px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-list{display:block}.product-card,.order-actions-panel,.order-list-panel,.customer-modal,.product-modal,.table-wrap{border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface)}.product-card{overflow:hidden;background:#fff;cursor:pointer;animation:surfaceIn .18s ease both;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.product-card:hover{border-color:#007cba80;box-shadow:var(--shadow-soft);transform:translateY(-2px)}.product-media{position:relative;height:205px;display:grid;place-items:center;overflow:hidden;background:#fff}.product-media img{width:100%;height:100%;object-fit:contain;padding:16px}.product-media-fallback{height:100%;display:grid;place-items:center;gap:8px;color:var(--color-primary-darker);text-align:center;font-size:13px;font-weight:800}.product-media-fallback svg{width:46px;height:46px}.brand-image-fallback{width:100%;height:100%;display:grid;place-items:center;background:#fff}.brand-image-fallback img{width:min(96px,56%);height:auto;aspect-ratio:1;object-fit:contain;padding:0;border-radius:12px;box-shadow:none}.product-card-body{padding:16px}.sku{margin:12px 0 7px;color:var(--color-muted);font-size:13px;font-weight:800}.product-card h3{margin-bottom:8px}.product-card p:not(.sku){color:var(--color-muted);font-size:14px;line-height:1.45}.badges{display:flex;flex-wrap:wrap;gap:6px}.badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;color:var(--color-primary-darker);font-size:12px;font-weight:800;border-radius:999px;background:#eaf4fa}.badge-disponible{color:#007c5f;background:#e4f7f0}.badge-sin-stock{color:var(--color-danger);background:#fdeaea}.badge-dark{color:#fff;background:var(--color-navy)}.card-actions,.modal-actions,.table-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-actions{justify-content:flex-start}.card-actions{margin-top:14px}.table-wrap{overflow-x:auto}.product-table{width:100%;border-collapse:collapse}.product-table th,.product-table td{padding:12px;border-bottom:1px solid var(--color-border);text-align:left;vertical-align:middle}.product-table th{color:var(--color-navy);font-size:12px;text-transform:uppercase;background:var(--color-surface-soft)}.product-table tr.is-expanded>td{background:#fbfdff}.product-table tbody>tr:not(.product-detail-row){cursor:pointer;transition:background .15s ease}.product-table tbody>tr:not(.product-detail-row):hover>td{background:#f8fbfd}.product-detail-row>td{padding:0;background:#fbfdff}.table-thumb{width:44px;height:44px;display:grid;place-items:center;overflow:hidden;color:var(--color-primary);border:1px solid var(--color-border);border-radius:6px;background:#fff}.table-thumb img{width:100%;height:100%;object-fit:contain;padding:5px}.table-thumb .brand-image-fallback img{width:30px;border-radius:6px;box-shadow:none}.inline-product-detail{display:grid;grid-template-columns:minmax(180px,260px) minmax(280px,1fr);gap:18px;padding:18px;border-bottom:1px solid var(--color-border);background:#fbfdff;animation:detailExpand .2s ease both;transform-origin:top}.inline-product-detail .product-media{height:220px;border:1px solid var(--color-border);border-radius:8px}.inline-product-info{display:grid;gap:12px;align-content:start}.inline-product-info h3{margin-bottom:0}.inline-product-info>p{margin:0;color:var(--color-muted);line-height:1.5}.order-view{display:grid;gap:20px}.order-view-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.order-view-header>div:first-child p:last-child{margin-bottom:0;max-width:680px;color:var(--color-muted);font-size:16px}.order-view-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}.order-list-panel,.order-actions-panel{padding:16px;animation:surfaceIn .18s ease both;box-shadow:var(--shadow-soft)}.order-actions-panel{position:sticky;top:102px}.order-summary{display:grid;gap:8px;margin:14px 0;padding:12px;color:var(--color-navy);font-size:14px;font-weight:800;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface-soft)}.order-items{min-height:0;display:grid;align-content:start;gap:12px;overflow:auto;padding-right:4px}.order-item{display:grid;padding:12px;border:1px solid var(--color-border);border-radius:8px;background:#fff}.order-item-main{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;align-items:start}.order-item-media{width:74px;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;color:var(--color-primary);border:1px solid var(--color-border);border-radius:8px;background:#fff}.order-item-media img{width:100%;height:100%;object-fit:contain;padding:7px}.order-item-media .brand-image-fallback img{width:48px;border-radius:7px;box-shadow:none}.order-item-media svg{width:28px;height:28px}.order-item-content{min-width:0;display:grid;gap:10px}.order-item-title{display:flex;justify-content:space-between;gap:10px}.order-item-title strong{display:block;line-height:1.25}.order-item-title p{margin:4px 0 0;color:var(--color-muted);font-size:12px;font-weight:800}.quantity-controls{display:grid;grid-template-columns:36px 1fr 36px;gap:8px;align-items:center}.quantity-controls.compact{width:124px;grid-template-columns:34px 44px 34px;gap:6px}.quantity-controls input{text-align:center}.quantity-controls.compact input{min-height:34px;padding:0;color:var(--color-navy);font-size:14px;font-weight:900;border:0;border-radius:0;background:transparent;box-shadow:none}.quantity-controls.compact input:focus{border-color:transparent;box-shadow:none}.quantity-controls button{transition:color .15s ease,background .15s ease,border-color .15s ease,transform .15s ease}.quantity-controls button:active{transform:scale(.94)}.order-quantity-controls{justify-self:start}.inline-quantity-control{min-height:42px;display:inline-flex;align-items:center;gap:8px;padding:4px 7px 4px 10px;color:var(--color-navy);font-size:12px;font-weight:800;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface)}.inline-quantity-control>span{min-width:58px;display:inline-flex;align-items:center;gap:5px}.inline-quantity-control>span svg{width:15px;height:15px;color:var(--color-success)}.inline-quantity-control.is-added{border-color:#00a87861;background:#eefbf6}.inline-quantity-control.is-compact-only{padding:4px 7px}.inline-quantity-control.is-compact-only .quantity-controls.compact{width:124px}.order-empty,.empty-state{display:grid;place-items:center;gap:8px;padding:28px 18px;color:var(--color-muted);text-align:center;border:1px dashed var(--color-border-strong);border-radius:8px;background:var(--color-surface-soft)}.order-empty svg,.empty-state svg{width:38px;height:38px;color:var(--color-primary)}.customer-modal{width:min(720px,100%);max-height:min(760px,calc(100vh - 48px));overflow:auto;padding:22px;box-shadow:0 28px 80px #07133f3d;animation:modalIn .18s ease both}.confirm-modal{width:min(460px,100%);padding:22px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);box-shadow:0 28px 80px #07133f3d;animation:modalIn .18s ease both}.confirm-modal>p{margin:0;color:var(--color-muted);line-height:1.55}.customer-form{display:grid;gap:10px}.customer-modal .customer-form{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-form-full{grid-column:1 / -1}.customer-modal-actions,.confirm-modal-actions{justify-content:flex-end;margin-top:18px}.request-actions{display:grid;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid var(--color-border);background:var(--color-surface)}.pagination{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--color-border)}.pagination p{margin:0;color:var(--color-muted);font-size:14px;font-weight:800}.pagination-actions,.pagination-pages{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.pagination-pages button{min-width:36px;height:36px;color:var(--color-navy);font-weight:800;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface)}.pagination-pages button.active{color:#fff;border-color:var(--color-primary);background:var(--color-primary)}.pagination button:disabled{cursor:not-allowed;opacity:.5;transform:none}.info-view{display:grid;gap:20px}.info-hero,.info-card{border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);box-shadow:var(--shadow-soft)}.info-hero{min-height:230px;display:flex;justify-content:space-between;gap:24px;align-items:center;padding:clamp(22px,4vw,40px)}.info-hero p:last-child{margin-bottom:0;max-width:660px;color:var(--color-muted);font-size:17px;line-height:1.55}.info-hero img{width:min(260px,34vw);min-width:180px}.info-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px}.info-card{display:grid;gap:14px;align-content:start;padding:22px}.info-card h2{margin-bottom:0}.info-card p{margin-bottom:0;color:var(--color-muted);line-height:1.55}.info-card-wide{grid-column:1 / -1}.info-actions{display:flex;flex-wrap:wrap;gap:10px}.info-list{display:grid;gap:12px;margin:0}.info-list div{display:grid;gap:4px;padding-bottom:12px;border-bottom:1px solid var(--color-border)}.info-list div:last-child{padding-bottom:0;border-bottom:0}.info-list dt{color:var(--color-muted);font-size:12px;font-weight:800;text-transform:uppercase}.info-list dd{margin:0;color:var(--color-navy);font-weight:800}.info-list a:hover{color:var(--color-primary-darker)}.error-message{color:var(--color-danger);font-size:13px;font-weight:800}.success-message{color:#007c5f;font-size:13px;font-weight:800}.modal-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px;background:#07133f6b;animation:fadeIn .16s ease both}.product-modal{width:min(980px,100%);max-height:min(760px,calc(100vh - 48px));overflow:auto;padding:22px;box-shadow:0 28px 80px #07133f3d;animation:modalIn .18s ease both}.modal-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.modal-grid{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:20px;align-items:start}.modal-info{display:grid;gap:14px}.spec-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.spec-list div{padding:10px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface-soft)}.spec-list dt{color:var(--color-muted);font-size:12px;font-weight:800}.spec-list dd{margin:4px 0 0;color:var(--color-navy);font-weight:800}.site-footer{min-height:84px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;padding:22px clamp(18px,3vw,40px);color:var(--color-muted);border-top:1px solid var(--color-border);background:var(--color-surface)}.site-footer strong{color:var(--color-navy)}.site-footer button{padding:0;border:0;background:transparent}.site-footer button:hover{color:var(--color-primary-darker)}:focus-visible{outline:3px solid rgba(0,124,186,.35);outline-offset:2px}@keyframes surfaceIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalIn{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes detailExpand{0%{opacity:0;transform:translateY(-6px) scaleY(.98)}to{opacity:1;transform:translateY(0) scaleY(1)}}@media(max-width:1180px){.order-view-grid{grid-template-columns:1fr}.order-actions-panel{position:static}.filters-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:860px){.site-header{height:auto;flex-wrap:wrap;padding-block:12px}.main-nav{order:3;width:100%;margin:0;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}.main-nav button{flex:0 0 auto}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-grid,.inline-product-detail{grid-template-columns:1fr}}@media(max-width:640px){.page-shell{width:min(100% - 24px,1520px);margin-top:18px}.page-title,.order-view-header,.catalog-meta,.pagination{display:grid}.pagination-actions{justify-content:stretch}.pagination-actions>.btn{flex:1}.pagination-pages{justify-content:center}.filters-panel,.product-grid,.info-grid,.customer-modal .customer-form,.spec-list{grid-template-columns:1fr}.info-hero{display:grid}.info-hero img{width:190px;min-width:0}.filters-panel .search-field{grid-column:auto}.modal-backdrop{padding:10px}.order-item-main{grid-template-columns:62px minmax(0,1fr)}.order-item-media{width:62px}.product-modal,.customer-modal{max-height:calc(100vh - 20px);padding:16px}.site-footer{padding-bottom:82px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
