:root{--app-bg:#f4f6f8;--card-radius:18px;--shadow:0 .35rem 1.2rem rgba(0,0,0,.07)}
html,body{min-height:100%}body{background:var(--app-bg);color:#1f2937}.app-main{padding-bottom:88px}.navbar-brand{letter-spacing:.1px;font-size:1rem}.app-navbar{box-shadow:0 2px 14px rgba(0,0,0,.14)}
.card,.form-control,.form-select,.btn{border-radius:12px}.card{border:0;box-shadow:var(--shadow)}.login-card{max-width:430px;margin:5vh auto}.stat{border:0}.stat .display-6{font-size:2rem}
.page-title{font-size:1.55rem;font-weight:700}.page-subtitle{font-size:.92rem;color:#6c757d}.section-title{font-size:1.1rem;font-weight:700}
.touch-btn{min-height:44px}.filter-card{background:#fff;padding:14px;border-radius:var(--card-radius);box-shadow:var(--shadow)}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.product-card{height:100%;overflow:hidden}.product-card .card-body{display:flex;flex-direction:column}.product-sku{font-size:.75rem;letter-spacing:.03em;color:#6c757d}.product-name{font-weight:700;line-height:1.25}.product-meta{font-size:.82rem;color:#6c757d}.price{font-size:1.35rem;font-weight:800}.qty-input{max-width:82px}
.mobile-bottom-nav{display:none}.mobile-card-list{display:none}.desktop-table{display:block}
.badge-status{font-size:.78rem}.empty-state{padding:32px 20px;text-align:center;background:#fff;border-radius:var(--card-radius);box-shadow:var(--shadow)}
.admin-actions .btn{min-height:48px;display:flex;align-items:center;justify-content:center}.admin-stat-card{min-height:118px}
@media(max-width:767.98px){
 body{font-size:15px}.container{padding-left:14px;padding-right:14px}.app-main{padding-top:18px!important;padding-bottom:92px!important}
 .navbar-brand{max-width:72vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.desktop-user-name{display:none}
 .page-title{font-size:1.35rem}.page-header{align-items:flex-start!important}.page-header .header-action{display:none}
 .filter-card{padding:12px}.filter-card .form-control,.filter-card .form-select,.filter-card .btn{min-height:46px}
 .product-grid{grid-template-columns:1fr;gap:12px}.product-card .card-body{padding:14px}.product-name{font-size:1rem}.price{font-size:1.3rem}
 .product-card form{gap:8px!important}.product-card .qty-input{max-width:88px;min-height:44px}.product-card .btn{min-height:44px}
 .desktop-table{display:none}.mobile-card-list{display:grid;gap:12px}.mobile-list-card .card-body{padding:14px}
 .mobile-bottom-nav{display:flex;position:fixed;z-index:1030;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -5px 18px rgba(0,0,0,.08);padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));justify-content:space-around}
 .mobile-bottom-nav a{flex:1;text-align:center;text-decoration:none;color:#495057;font-size:.78rem;font-weight:600;padding:7px 4px;border-radius:10px}.mobile-bottom-nav a.active,.mobile-bottom-nav a:hover{background:#f1f3f5;color:#0d6efd}
 .admin-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important}.admin-actions .btn{width:100%}
 .admin-stat-card{min-height:100px}.login-card{margin:2vh auto}.login-card .card-body{padding:24px!important}
 .cart-total-box{position:sticky;bottom:76px;z-index:10}.full-mobile-btn{width:100%;min-height:48px}
}

.catalog-hero{display:flex;justify-content:space-between;align-items:end;gap:20px}.catalog-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:800;color:#6c757d}.catalog-count{font-size:.85rem;color:#6c757d;font-weight:600}
.book-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 8px;scrollbar-width:thin}.book-chip{white-space:nowrap;text-decoration:none;background:#fff;color:#343a40;border:1px solid #dee2e6;padding:9px 14px;border-radius:999px;font-size:.84rem;font-weight:700}.book-chip.active{background:#212529;color:#fff;border-color:#212529}
.product-media{height:190px;background:#fff;position:relative;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #eef0f2}.product-media img{width:100%;height:100%;object-fit:contain;padding:12px}.product-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f8f9fa,#eef1f4);color:#9aa0a6;font-size:.82rem}.sheet-badge{position:absolute;left:10px;top:10px;background:rgba(33,37,41,.86);color:#fff;padding:5px 8px;border-radius:999px;font-size:.68rem;font-weight:700;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.price-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#6c757d;font-weight:700}.product-name{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:767.98px){.catalog-hero{align-items:flex-start}.product-media{height:210px}.book-tabs{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.sheet-badge{max-width:82%}.product-name{-webkit-line-clamp:5}}

.product-label{font-size:.66rem;text-transform:uppercase;letter-spacing:.06em;color:#8a9199;font-weight:800}.product-model{font-size:1.02rem;font-weight:800;line-height:1.2;color:#111827;word-break:break-word}.product-category{font-size:.78rem;font-weight:800;color:#5f6b7a;text-transform:uppercase;letter-spacing:.025em}.product-specs{font-size:.88rem;line-height:1.42;color:#4b5563;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;min-height:5em}
@media(max-width:767.98px){.product-model{font-size:1.08rem}.product-specs{-webkit-line-clamp:5;min-height:auto}}

.brand-topbar{background:#111827;color:#d1d5db;font-size:.74rem;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.06)}.brand-gremio{font-weight:400;color:#adb5bd;margin-left:4px}.brand-eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#6b7280;margin-bottom:10px}.client-login-shell{max-width:1180px;margin:2vh auto}.client-login-hero{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:stretch;background:linear-gradient(135deg,#111827 0%,#20262d 62%,#343a40 100%);border-radius:24px;padding:36px;box-shadow:var(--shadow);overflow:hidden}.client-login-copy{color:#fff;padding:24px 18px;display:flex;flex-direction:column;justify-content:center}.client-login-copy .brand-eyebrow{color:#cbd5e1}.client-login-copy h1{font-size:clamp(2rem,4vw,3.8rem);line-height:1.03;font-weight:800;max-width:780px;margin:0 0 18px}.client-login-copy p{font-size:1.06rem;line-height:1.6;color:#d1d5db;max-width:650px}.client-login-points{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.client-login-points span{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);padding:8px 11px;border-radius:999px;font-size:.82rem;font-weight:700}.client-login-panel{align-self:center;box-shadow:0 18px 50px rgba(0,0,0,.22)}.client-login-help{font-size:.82rem;color:#6b7280;line-height:1.45}
@media(max-width:767.98px){.brand-topbar{display:none}.client-login-shell{margin:0}.client-login-hero{grid-template-columns:1fr;padding:16px;border-radius:18px;gap:14px}.client-login-copy{padding:22px 10px 8px}.client-login-copy h1{font-size:2rem}.client-login-copy p{font-size:.95rem}.client-login-panel{margin:0}.client-login-points{gap:7px}}

.catalog-discovery{background:linear-gradient(135deg,#0f2747,#073b73);color:#fff;border-radius:24px;padding:30px;box-shadow:0 16px 40px rgba(15,39,71,.18)}.catalog-discovery-copy{max-width:760px}.catalog-discovery .catalog-kicker{color:#a8c8ea}.catalog-discovery h1{font-size:clamp(1.8rem,3.5vw,3rem);font-weight:800;line-height:1.05;margin:5px 0 9px}.catalog-discovery p{color:#d8e4f0;margin:0 0 22px}.catalog-main-search{display:grid;grid-template-columns:auto 1fr auto;align-items:center;background:#fff;border-radius:16px;padding:6px;max-width:920px;box-shadow:0 10px 30px rgba(0,0,0,.16)}.catalog-main-search .search-icon{color:#64748b;font-size:1.5rem;padding:0 10px}.catalog-main-search input{border:0;outline:0;width:100%;font-size:1rem;padding:11px 4px;background:transparent}.catalog-main-search button{border:0;background:#1677ff;color:#fff;font-weight:700;padding:12px 22px;border-radius:12px}
.category-section{background:#fff;border-radius:22px;padding:22px;box-shadow:var(--shadow)}.section-heading-row{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.clear-filter-link{text-decoration:none;font-weight:700;font-size:.86rem}.category-scroller{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:18px}.category-tile{text-decoration:none;color:#14213d;text-align:center;padding:8px;border-radius:18px;transition:transform .15s ease,background .15s ease}.category-tile:hover{transform:translateY(-3px);background:#f8fafc}.category-tile.active{background:#eef5ff}.category-circle{width:118px;height:118px;border-radius:50%;margin:0 auto 10px;background:#082d5d;border:5px solid #082d5d;box-shadow:inset 0 0 0 3px #fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.category-circle img{width:100%;height:100%;object-fit:contain;background:#fff;padding:10px}.category-circle span{color:#fff;font-size:1.35rem;font-weight:800}.category-name{font-size:.82rem;font-weight:800;text-transform:uppercase;line-height:1.15}.category-count{font-size:.72rem;color:#7a8493;margin-top:4px}.catalog-controls{background:#fff;padding:12px;border-radius:16px;box-shadow:var(--shadow)}.catalog-results-head{display:flex;justify-content:space-between;align-items:center;color:#5f6b7a;font-size:.9rem}.sort-select{font-weight:700}
@media(max-width:1199.98px){.category-scroller{grid-template-columns:repeat(4,minmax(125px,1fr))}}
@media(max-width:767.98px){.catalog-discovery{padding:22px 16px;border-radius:18px;margin-left:-2px;margin-right:-2px}.catalog-discovery h1{font-size:1.75rem}.catalog-main-search{grid-template-columns:auto 1fr}.catalog-main-search button{grid-column:1/-1;width:100%;margin-top:4px}.category-section{padding:16px;margin-left:-2px;margin-right:-2px}.category-scroller{display:flex;overflow-x:auto;gap:12px;padding-bottom:8px;scroll-snap-type:x proximity}.category-tile{min-width:122px;scroll-snap-align:start}.category-circle{width:96px;height:96px}.catalog-controls{padding:10px}.catalog-results-head .header-action{display:inline-flex}.category-count{font-size:.68rem}}

.macro-sections{grid-template-columns:repeat(5,minmax(150px,1fr));gap:20px}.macro-sections .category-tile{padding:12px 8px}.macro-sections .category-circle{width:126px;height:126px}.macro-sections .category-name{font-size:.84rem;min-height:2.2em;display:flex;align-items:center;justify-content:center}
@media(max-width:1199.98px){.macro-sections{grid-template-columns:repeat(4,minmax(135px,1fr))}}
@media(max-width:767.98px){.macro-sections{display:flex}.macro-sections .category-tile{min-width:132px}.macro-sections .category-circle{width:98px;height:98px}}

.brand-lockup{display:flex;align-items:center;gap:9px;min-width:0}.brand-logo{width:152px;height:38px;object-fit:contain;object-position:left center;display:block}.brand-lockup .brand-gremio{font-size:.78rem;border-left:1px solid rgba(255,255,255,.25);padding-left:9px;white-space:nowrap}.login-brand-logo{width:min(360px,82%);height:auto;display:block;object-fit:contain;object-position:left center;margin:0 0 22px;filter:drop-shadow(0 8px 18px rgba(0,0,0,.14))}
@media(max-width:767.98px){.brand-logo{width:118px;height:30px}.brand-lockup .brand-gremio{font-size:.7rem;padding-left:7px}.login-brand-logo{width:min(280px,88%);margin-bottom:18px}}

.brand-wordmark{font-size:1.02rem;font-weight:900;letter-spacing:.06em;color:#fff;white-space:nowrap}.login-brand-lockup{display:flex;align-items:center;gap:16px;margin-bottom:20px}.login-wordmark{font-size:1.55rem;font-weight:900;letter-spacing:.08em;color:#fff}.login-brand-lockup .login-brand-logo{margin:0;width:210px;max-height:62px}.brand-lockup .brand-logo{flex:0 0 auto}
@media(max-width:767.98px){.brand-wordmark{font-size:.82rem}.login-brand-lockup{gap:10px;flex-wrap:wrap}.login-wordmark{font-size:1.15rem}.login-brand-lockup .login-brand-logo{width:150px;max-height:48px}}


/* Modern category pictograms */
.category-circle{background:linear-gradient(145deg,#0d2f5f,#0b5fb6);border:0;box-shadow:0 12px 28px rgba(15,63,112,.18),inset 0 1px 0 rgba(255,255,255,.16);position:relative}
.category-circle::after{content:"";position:absolute;inset:8px;border:1px solid rgba(255,255,255,.12);border-radius:50%;pointer-events:none}
.category-circle svg{width:58%;height:58%;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;position:relative;z-index:1}
.category-tile:hover .category-circle{transform:translateY(-2px) scale(1.025);box-shadow:0 16px 34px rgba(15,63,112,.24)}
.category-tile.active .category-circle{box-shadow:0 0 0 4px #dbeafe,0 14px 32px rgba(15,63,112,.24)}
.category-icon-alarmas{background:linear-gradient(145deg,#7c2d12,#ea580c)}
.category-icon-acceso{background:linear-gradient(145deg,#164e63,#0891b2)}
.category-icon-porteros{background:linear-gradient(145deg,#312e81,#6366f1)}
.category-icon-redes{background:linear-gradient(145deg,#075985,#0284c7)}
.category-icon-smart{background:linear-gradient(145deg,#14532d,#16a34a)}
.category-icon-energia{background:linear-gradient(145deg,#854d0e,#eab308)}
.category-icon-computacion{background:linear-gradient(145deg,#1e3a8a,#2563eb)}
.category-icon-componentes{background:linear-gradient(145deg,#3f3f46,#71717a)}
.category-icon-almacenamiento{background:linear-gradient(145deg,#334155,#64748b)}
.category-icon-perifericos{background:linear-gradient(145deg,#581c87,#9333ea)}
.category-icon-visual{background:linear-gradient(145deg,#134e4a,#0d9488)}
.category-icon-impresion{background:linear-gradient(145deg,#374151,#6b7280)}
.category-icon-accesorios{background:linear-gradient(145deg,#7c2d12,#c2410c)}
.category-icon-ofertas{background:linear-gradient(145deg,#9f1239,#e11d48)}


/* ===== Mobile-first UX pass 2026-10 ===== */
@media(max-width:767.98px){
  html{scroll-behavior:smooth}
  body{background:#f3f5f8;font-size:14px;overflow-x:hidden}
  .container{width:100%;max-width:none;padding-left:12px;padding-right:12px}
  .app-main{padding-top:14px!important;padding-bottom:104px!important}
  .app-navbar .container{min-height:52px}
  .navbar-brand{max-width:62vw}
  .brand-wordmark{font-size:.76rem;letter-spacing:.035em}
  .brand-logo{width:100px;height:28px}
  .brand-lockup .brand-gremio{font-size:.64rem}
  .app-navbar .btn{min-height:38px;padding:.42rem .66rem;font-size:.76rem}
  .page-title{font-size:1.28rem;line-height:1.15}
  .page-subtitle{font-size:.82rem;line-height:1.35}
  .section-title{font-size:1rem}
  .card{border-radius:16px;box-shadow:0 6px 20px rgba(15,23,42,.06)}
  .card-body{padding:14px}
  .btn,.form-control,.form-select{border-radius:11px}
  .form-control,.form-select{font-size:16px;min-height:46px}
  textarea.form-control{font-size:16px}
  .btn{font-weight:700}
  .touch-btn,.full-mobile-btn{min-height:48px}
  .desktop-table{display:none!important}
  .mobile-card-list{display:grid!important;gap:10px}
  .mobile-list-card{border:1px solid #edf0f3}
  .mobile-list-card .card-body{padding:14px}
  .admin-stat-card{min-height:88px}
  .admin-stat-card .card-body{padding:13px}
  .stat .display-6,.admin-stat-card .display-6{font-size:1.55rem}
  .admin-actions{grid-template-columns:1fr 1fr!important;margin-top:14px!important;margin-bottom:20px!important}
  .admin-actions .btn{font-size:.82rem;min-height:46px;padding:.55rem .5rem}
  .catalog-discovery{padding:18px 14px;border-radius:17px;margin-bottom:14px!important}
  .catalog-discovery h1{font-size:1.45rem;line-height:1.1;margin-bottom:7px}
  .catalog-discovery p{font-size:.84rem;line-height:1.35;margin-bottom:14px}
  .catalog-main-search{display:grid;grid-template-columns:36px 1fr;gap:0;padding:5px;border-radius:14px}
  .catalog-main-search .search-icon{font-size:1.2rem;padding:0 8px}
  .catalog-main-search input{font-size:16px;padding:10px 2px}
  .catalog-main-search button{grid-column:1/-1;margin-top:5px;min-height:44px}
  .category-section{padding:14px 12px;border-radius:17px;margin-bottom:14px!important}
  .section-heading-row{margin-bottom:12px;align-items:center}
  .macro-sections{gap:8px}
  .macro-sections .category-tile{min-width:104px;padding:5px}
  .macro-sections .category-circle{width:76px;height:76px;margin-bottom:7px}
  .macro-sections .category-name{font-size:.68rem;min-height:2.2em;text-transform:none}
  .category-count{font-size:.62rem}
  .catalog-controls{position:sticky;top:58px;z-index:20;padding:8px;border-radius:14px;margin-bottom:12px!important}
  .catalog-controls .row{--bs-gutter-x:.45rem;--bs-gutter-y:.45rem}
  .catalog-controls .form-select{font-size:.78rem;min-height:42px;padding-top:.45rem;padding-bottom:.45rem}
  .catalog-results-head{margin-bottom:10px!important;font-size:.8rem}
  .catalog-results-head .btn{min-height:40px;font-size:.78rem;padding:.45rem .7rem}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-card{border-radius:15px}
  .product-media{height:138px}
  .product-media img{padding:7px}
  .sheet-badge{font-size:.56rem;left:6px;top:6px;padding:4px 6px;max-width:88%}
  .product-card .card-body{padding:10px}
  .product-label{font-size:.54rem}
  .product-model{font-size:.84rem;line-height:1.15}
  .product-card .badge{font-size:.55rem;padding:.32em .45em}
  .product-category{font-size:.62rem}
  .product-subcategory{font-size:.68rem}
  .product-specs{font-size:.72rem;line-height:1.32;-webkit-line-clamp:4;min-height:3.8em;margin-bottom:10px!important}
  .price-label{font-size:.58rem}
  .price{font-size:1.02rem}
  .product-card .btn-sm{font-size:.66rem;padding:.35rem .5rem}
  .product-card form{display:grid!important;grid-template-columns:58px 1fr;gap:6px}
  .product-card .qty-input{width:100%;max-width:none;min-height:42px;padding:.35rem .45rem;text-align:center}
  .product-card form .btn{min-height:42px;padding:.4rem .45rem;font-size:.75rem}
  .cart-total-box{position:sticky;bottom:82px;border:1px solid #e9edf2}
  .cart-total-box .fs-4{font-size:1.25rem!important}
  .order-item-mobile{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;padding:8px 0;border-bottom:1px solid #eef1f4}
  .order-item-mobile:last-child{border-bottom:0}
  .order-item-mobile strong{white-space:nowrap}
  .mobile-bottom-nav{height:auto;min-height:68px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));align-items:stretch}
  .mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.68rem;padding:5px 3px;min-height:52px}
  .mobile-bottom-nav .nav-ico{font-size:1.18rem;line-height:1}
  .mobile-bottom-nav a.active{background:#eaf2ff;color:#0d6efd}
}

@media(max-width:390px){
  .product-grid{gap:6px}
  .product-media{height:124px}
  .product-card .card-body{padding:8px}
  .product-model{font-size:.78rem}
  .product-specs{font-size:.68rem}
  .price{font-size:.95rem}
  .macro-sections .category-tile{min-width:96px}
  .macro-sections .category-circle{width:70px;height:70px}
}
