:root {
  --navy-900:#0B2540;
  --navy-700:#123A5E;
  --blue-500:#1E6094;
  --orange-500:#FF6A1A;
  --orange-300:#FFA15C;
  --paper:#F2F5F8;
  --paper-2:#E8EEF4;
  --ink:#0B1620;
  --muted:#5C7186;
  --muted-light:#AFC2D4;
  --line-dark:rgba(255,255,255,.14);
  --line-light:rgba(11,37,64,.14);
  --radius:7px;
  --ease:cubic-bezier(0.4,0,0.2,1);
  --duration:180ms;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{font-size:14px;scroll-behavior:smooth;}
body{
  font-family:'Inter','Segoe UI',Arial,sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.5;
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font-family:inherit;outline:none;}
button{cursor:pointer;border:0;}
a{text-decoration:none;color:inherit;}
img,svg{display:block;max-width:100%;}

::-webkit-scrollbar{width:7px;height:7px;}
::-webkit-scrollbar-track{background:#dce5ee;}
::-webkit-scrollbar-thumb{background:var(--muted-light);border-radius:8px;}

/* NAVBAR */
.site-header{
  position:sticky;
  top:0;
  z-index:150;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-light);
}
.header-inner{
  width:100%;
  min-height:96px;
  padding:0 32px;
  display:flex;
  align-items:center;
  gap:24px;
}
.header-logo{
  width:280px;
  height:72px;
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.header-logo img{width:100%;height:100%;object-fit:contain;}
.nav-main{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
}
.nav-links{display:flex;align-items:center;gap:32px;}
.nav-links a{
  color:var(--navy-900);
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  position:relative;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  width:0;
  height:2px;
  background:var(--orange-500);
  transition:width var(--duration) var(--ease);
}
.nav-links a:hover::after{width:100%;}
.tracking-link{
  background:var(--orange-500);
  color:var(--ink)!important;
  padding:14px 24px;
  border-radius:var(--radius);
}
.tracking-link::after{display:none;}
.nav-actions{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.nav-quote{
  min-height:48px;
  border-radius:var(--radius);
  padding:0 20px;
  font-size:14px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
  background:var(--orange-500);
  color:var(--ink);
  transition:transform var(--duration) var(--ease),box-shadow var(--duration) var(--ease),background var(--duration) var(--ease);
}
.nav-quote:hover{background:var(--orange-300);transform:translateY(-1px);box-shadow:0 10px 22px rgba(255,106,26,.28);}
.quote-badge{
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:99px;
  background:#fff;
  color:var(--navy-900);
  font-size:11px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:42px;
  height:42px;
  background:transparent;
  flex-shrink:0;
}
.nav-toggle span{width:24px;height:2px;background:var(--navy-900);display:block;transition:transform var(--duration) var(--ease),opacity var(--duration) var(--ease);}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* LAYOUT */
.app-layout{display:flex;min-height:calc(100vh - 96px);}
.sidebar{
  width:246px;
  flex-shrink:0;
  background:var(--navy-900);
  color:#fff;
  padding:28px 18px;
  position:sticky;
  top:96px;
  height:calc(100vh - 96px);
  overflow-y:auto;
}
.sidebar-section{margin-bottom:24px;}
.sidebar-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted-light);
  margin-bottom:14px;
  padding:0 8px;
}
.filter-group{display:flex;flex-direction:column;gap:8px;}
.filter-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:var(--radius);
  color:var(--muted-light);
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.08);
  font-size:14px;
  font-weight:600;
  text-align:left;
  transition:all var(--duration) var(--ease);
}
.filter-item:hover{background:rgba(255,255,255,.08);color:#fff;}
.filter-item.active{background:rgba(255,106,26,.12);border-color:rgba(255,106,26,.6);color:#fff;}
.filter-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;color:var(--orange-300);}
.main-content{flex:1;min-width:0;padding:26px 30px 44px;}

/* HERO */
.hero-banner{
  position:relative;
  overflow:hidden;
  background:var(--navy-900);
  border-radius:10px;
  padding:36px 42px;
  margin-bottom:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  color:#fff;
  box-shadow:0 20px 40px rgba(11,37,64,.16);
}
.hero-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(var(--line-dark) 1px,transparent 1px),linear-gradient(90deg,var(--line-dark) 1px,transparent 1px);
  background-size:42px 42px;
  opacity:.35;
}
.hero-banner::after{
  content:"";
  position:absolute;
  right:-90px;
  top:-120px;
  width:360px;
  height:360px;
  border:1px dashed rgba(255,106,26,.35);
  border-radius:50%;
}
.hero-text{position:relative;z-index:1;}
.eyebrow{
  font-size:13px;
  letter-spacing:.18em;
  font-weight:900;
  color:var(--muted-light);
  margin-bottom:8px;
}
.hero-text h1{font-size:clamp(27px,3.2vw,40px);line-height:1.05;margin-bottom:14px;letter-spacing:-.03em;}
.hero-text h1 span{color:var(--orange-500);}
.hero-text p{font-size:17px;color:var(--muted-light);max-width:610px;}
.hero-stats{position:relative;z-index:1;display:flex;gap:28px;}
.stat-item{text-align:right;}
.stat-num{font-size:30px;font-weight:900;color:var(--orange-500);}
.stat-label{font-size:12px;color:var(--muted-light);font-weight:700;}

/* TOOLBAR */
.catalog-toolbar{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
  flex-wrap:wrap;
}
.catalog-count{font-size:14px;color:var(--muted);margin-right:auto;}
.catalog-count span{font-weight:900;color:var(--navy-900);}
.catalog-search{position:relative;width:min(100%,430px);}
.catalog-search input{
  width:100%;
  height:42px;
  background:#fff;
  border:1px solid var(--line-light);
  border-radius:var(--radius);
  padding:0 14px 0 42px;
  color:var(--ink);
  font-size:14px;
  box-shadow:0 8px 18px rgba(11,37,64,.04);
}
.catalog-search input:focus{border-color:rgba(255,106,26,.65);box-shadow:0 0 0 3px rgba(255,106,26,.12);}
.catalog-search input::placeholder{color:var(--muted);}
.catalog-search .search-icon{position:absolute;left:14px;top:50%;width:17px;height:17px;transform:translateY(-50%);color:var(--muted);pointer-events:none;}
.sort-select{
  height:42px;
  background:#fff;
  border:1px solid var(--line-light);
  border-radius:var(--radius);
  color:var(--ink);
  padding:0 14px;
  font-size:14px;
  cursor:pointer;
}
.view-toggle{
  height:42px;
  display:flex;
  gap:4px;
  background:#fff;
  border:1px solid var(--line-light);
  border-radius:var(--radius);
  padding:4px;
}
.view-btn{background:transparent;color:var(--muted);border-radius:5px;padding:0 10px;display:flex;align-items:center;justify-content:center;}
.view-btn.active{background:var(--navy-900);color:#fff;}

/* PRODUCTOS */
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:20px;
}
.products-grid.list-view{grid-template-columns:1fr;}
.product-card{
  background:var(--navy-700);
  border:1px solid rgba(11,37,64,.12);
  border-top:3px solid var(--orange-500);
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  transition:transform var(--duration) var(--ease),box-shadow var(--duration) var(--ease),border-color var(--duration) var(--ease);
  box-shadow:0 14px 28px rgba(11,37,64,.12);
}
.product-card:hover{transform:translateY(-4px);box-shadow:0 22px 40px rgba(11,37,64,.20);border-color:rgba(255,106,26,.55);}
.product-image{
  width:100%;
  aspect-ratio:16/10;
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.product-image::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:38px 38px;
  opacity:.35;
}
.product-image-placeholder{position:relative;font-size:42px;opacity:.75;}
.product-body{padding:18px 18px 20px;background:rgba(18,58,94,.96);}
.product-category{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--orange-500);margin-bottom:7px;}
.product-name{font-size:17px;font-weight:900;line-height:1.25;color:#fff;margin-bottom:6px;}
.product-sku{font-size:12px;color:var(--muted-light);font-family:'JetBrains Mono','Consolas',monospace;margin-bottom:12px;}
.product-desc{
  font-size:14px;
  color:var(--muted-light);
  line-height:1.45;
  margin-bottom:18px;
  display:-webkit-box;
  line-clamp:2;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-footer{display:flex;}
.btn-confirm,.btn-quote-main{
  width:100%;
  min-height:44px;
  border-radius:var(--radius);
  background:var(--orange-500);
  color:var(--ink);
  font-size:14px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background var(--duration) var(--ease),transform var(--duration) var(--ease),box-shadow var(--duration) var(--ease);
}
.btn-confirm:hover,.btn-quote-main:hover{background:var(--orange-300);transform:translateY(-1px);box-shadow:0 10px 20px rgba(255,106,26,.28);}
.products-grid.list-view .product-card{display:flex;}
.products-grid.list-view .product-image{width:190px;flex-shrink:0;aspect-ratio:auto;}
.products-grid.list-view .product-body{flex:1;}
.products-grid.list-view .product-desc{line-clamp:1;-webkit-line-clamp:1;}

/* DRAWERS */
.drawer-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  background:rgba(11,22,32,.62);
  backdrop-filter:blur(4px);
  opacity:0;
  pointer-events:none;
  transition:opacity var(--duration) var(--ease);
}
.drawer-overlay.open{opacity:1;pointer-events:all;}
.drawer,.quote-drawer{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  z-index:201;
  width:460px;
  max-width:100vw;
  background:#fff;
  color:var(--ink);
  border-left:1px solid var(--line-light);
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform 280ms var(--ease);
  box-shadow:0 24px 80px rgba(11,37,64,.28);
}
.quote-drawer{width:560px;}
.drawer.open,.quote-drawer.open{transform:translateX(0);}
.drawer-header{
  padding:22px 24px;
  border-bottom:1px solid var(--line-light);
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0;
  background:#fff;
}
.drawer-title{font-size:19px;font-weight:900;color:var(--navy-900);}
.drawer-subtitle{font-size:12px;color:var(--muted);margin-top:3px;}
.drawer-close{
  margin-left:auto;
  background:var(--paper);
  color:var(--navy-900);
  border:1px solid var(--line-light);
  border-radius:var(--radius);
  padding:9px 12px;
  font-size:13px;
  font-weight:800;
}
.drawer-body{flex:1;overflow-y:auto;padding:24px;}
.drawer-footer{padding:16px 24px;border-top:1px solid var(--line-light);display:flex;gap:12px;background:#fff;flex-shrink:0;}
.drawer-product{
  background:var(--paper);
  border:1px solid var(--line-light);
  border-radius:10px;
  padding:16px;
  display:flex;
  gap:14px;
  margin-bottom:18px;
}
.drawer-product-img{
  width:64px;
  height:64px;
  border-radius:var(--radius);
  background:var(--navy-900);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  flex-shrink:0;
}
.drawer-product-name{font-size:16px;font-weight:900;color:var(--navy-900);margin-bottom:5px;}
.drawer-product-sku{font-size:12px;color:var(--muted);font-family:'JetBrains Mono','Consolas',monospace;}
.drawer-detail-block{margin-bottom:16px;}
.detail-label,.section-title{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--orange-500);margin-bottom:7px;}
.detail-text{font-size:14px;color:var(--muted);line-height:1.55;}
.qty-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0;}
.qty-label{font-size:14px;font-weight:900;color:var(--navy-900);}
.qty-control{display:flex;align-items:center;gap:10px;}
.qty-btn{
  width:34px;
  height:34px;
  border-radius:var(--radius);
  background:var(--navy-900);
  color:#fff;
  font-size:18px;
  font-weight:900;
}
.qty-display{min-width:34px;text-align:center;font-weight:900;font-size:16px;color:var(--navy-900);}

/* COTIZACIÓN */
.quote-empty{
  background:var(--paper);
  border:1px dashed var(--line-light);
  border-radius:10px;
  padding:22px;
  color:var(--muted);
  text-align:center;
  margin-bottom:18px;
}
.quote-items{display:flex;flex-direction:column;gap:12px;margin-bottom:20px;}
.quote-item{
  background:var(--paper);
  border:1px solid var(--line-light);
  border-radius:10px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}
.quote-item-name{font-size:14px;font-weight:900;color:var(--navy-900);}
.quote-item-meta{font-size:12px;color:var(--muted);margin-top:3px;}
.quote-qty{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.quote-qty input{
  width:58px;
  height:36px;
  border:1px solid var(--line-light);
  border-radius:var(--radius);
  text-align:center;
  font-weight:900;
  color:var(--navy-900);
}
.btn-remove{
  height:36px;
  border-radius:var(--radius);
  background:#fff;
  border:1px solid var(--line-light);
  padding:0 10px;
  color:var(--muted);
  font-weight:800;
}
.btn-remove:hover{color:#c23b22;border-color:#c23b22;}
.quote-client-box{
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#fff;
  border-top:1px dashed var(--line-light);
  padding-top:18px;
}
.form-input{
  width:100%;
  border:1px solid var(--line-light);
  background:var(--paper);
  color:var(--ink);
  border-radius:var(--radius);
  padding:12px 13px;
  font-size:14px;
  resize:vertical;
}
.form-input:focus{border-color:rgba(255,106,26,.65);box-shadow:0 0 0 3px rgba(255,106,26,.12);background:#fff;}
.input-error{border-color:#d93025!important;background:#fff5f3!important;}
.btn-secondary{
  min-height:44px;
  border-radius:var(--radius);
  padding:0 16px;
  background:var(--paper);
  border:1px solid var(--line-light);
  color:var(--muted);
  font-weight:900;
}
.quote-footer .btn-secondary{width:42%;}
.quote-footer .btn-quote-main{width:58%;}
.toast-container{position:fixed;right:22px;bottom:22px;z-index:400;display:flex;flex-direction:column-reverse;gap:10px;}
.toast{
  background:var(--navy-900);
  color:#fff;
  border-left:4px solid var(--orange-500);
  border-radius:var(--radius);
  padding:12px 14px;
  font-size:14px;
  font-weight:800;
  box-shadow:0 12px 30px rgba(11,37,64,.28);
}
.empty-state{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--muted);}
.empty-state h3{color:var(--navy-900);font-size:20px;margin-bottom:6px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
:focus-visible{outline:2px solid var(--orange-500);outline-offset:2px;}

/* RESPONSIVE */
@media (max-width:1024px){
  .header-inner{min-height:86px;padding:0 20px;gap:14px;}
  .header-logo{width:220px;height:60px;}
  .nav-main{gap:16px;}
  .nav-links{gap:20px;}
  .nav-links a{font-size:14px;}
  .tracking-link{padding:12px 18px;}
  .app-layout{flex-direction:column;}
  .sidebar{
    position:static;
    width:100%;
    height:auto;
    padding:14px 20px;
    overflow:visible;
    background:var(--navy-900);
  }
  .sidebar-section{margin:0;}
  .sidebar-label{margin-bottom:10px;}
  .filter-group{
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
  }
  .filter-item{
    width:auto;
    min-width:max-content;
    white-space:nowrap;
    flex-shrink:0;
    padding:10px 13px;
  }
  .main-content{padding:22px 22px 38px;}
  .hero-stats{display:none;}
}

@media (max-width:860px){
  .header-inner{min-height:78px;padding:0 14px;gap:10px;}
  .header-logo{width:170px;height:52px;}
  .nav-main{justify-content:flex-end;gap:10px;}
  .nav-links{
    position:absolute;
    top:78px;
    left:0;
    right:0;
    z-index:140;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    border-top:1px solid var(--line-light);
    border-bottom:1px solid var(--line-light);
    max-height:0;
    overflow:hidden;
    transition:max-height 240ms var(--ease);
  }
  .nav-links.open{max-height:260px;}
  .nav-links a,.nav-links .tracking-link{
    width:100%;
    padding:16px 24px;
    border-radius:0;
    border-bottom:1px solid rgba(11,37,64,.08);
    background:#fff;
    color:var(--navy-900)!important;
  }
  .nav-links a::after{display:none;}
  .nav-links .tracking-link{color:var(--orange-500)!important;}
  .nav-toggle{display:flex;}
  .nav-quote{min-height:42px;padding:0 14px;font-size:13px;}
  .hero-banner{padding:28px 26px;}
  .hero-text h1{font-size:30px;}
}

@media (max-width:640px){
  .header-inner{padding:0 10px;gap:8px;}
  .header-logo{width:126px;height:42px;}
  .nav-main{gap:6px;}
  .nav-quote{min-height:40px;padding:0 11px;font-size:12px;gap:6px;}
  .quote-badge{min-width:18px;height:18px;font-size:10px;padding:0 4px;}
  .nav-toggle{width:34px;height:38px;}
  .nav-toggle span{width:22px;}
  .main-content{padding:18px 12px 32px;}
  .sidebar{padding:12px;}
  .filter-item{font-size:12px;padding:9px 11px;}
  .hero-banner{padding:24px 20px;margin-bottom:22px;}
  .eyebrow{font-size:11px;}
  .hero-text h1{font-size:28px;}
  .hero-text p{font-size:15px;}
  .catalog-toolbar{gap:10px;}
  .catalog-count{width:100%;}
  .catalog-search{width:100%;}
  .sort-select{width:calc(100% - 96px);}
  .view-toggle{width:86px;}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .product-image{aspect-ratio:1.05/1;}
  .product-image-placeholder{font-size:32px;}
  .product-body{padding:12px;}
  .product-category{font-size:9px;margin-bottom:5px;}
  .product-name{font-size:13px;line-height:1.22;}
  .product-sku{font-size:10px;margin-bottom:8px;}
  .product-desc{font-size:11px;margin-bottom:12px;}
  .btn-confirm{min-height:38px;font-size:11px;padding:0 8px;}
  .products-grid.list-view{grid-template-columns:1fr;}
  .drawer,.quote-drawer{width:100%;}
  .drawer-header{padding:18px 16px;}
  .drawer-body{padding:18px 16px;}
  .drawer-footer{padding:14px 16px;}
  .quote-item{align-items:flex-start;flex-direction:column;}
  .quote-qty{width:100%;justify-content:space-between;}
  .quote-qty input{width:72px;}
  .toast-container{right:12px;bottom:12px;left:12px;}
}

@media (max-width:390px){
  .header-logo{width:106px;}
  .nav-quote{font-size:11px;padding:0 9px;}
  .hero-text h1{font-size:25px;}
  .product-body{padding:10px;}
  .product-name{font-size:12px;}
  .btn-confirm{font-size:10px;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}

/* ═══ AJUSTES V3: imágenes, textos compactos y drawer de descripción ═══ */
.product-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image.has-photo .product-image-placeholder {
  display: none;
}

.product-name {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

.tech-sheet-link,
.tech-sheet-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,106,26,.55);
  color: var(--orange-500);
  background: rgba(255,106,26,.08);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.tech-sheet-card {
  width: 100%;
  margin-bottom: 12px;
}

.tech-sheet-link:hover,
.tech-sheet-card:hover {
  background: rgba(255,106,26,.16);
  transform: translateY(-1px);
}

.drawer-desc.collapsed {
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  margin-top: 8px;
  background: transparent;
  color: var(--orange-500);
  font-weight: 900;
  font-size: 13px;
  padding: 0;
}

.quote-client-box select.form-input {
  cursor: pointer;
}

@media (max-width: 860px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-body {
    padding: 14px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-desc {
    font-size: 12px;
  }

  .tech-sheet-card {
    min-height: 34px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    aspect-ratio: 1.05/1;
  }

  .product-desc {
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }
}

/* ═══ AJUSTES V4: imágenes reales y drawer reutilizable ═══ */
.product-image-placeholder {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-light);
  opacity: .8;
  text-align: center;
  padding: 0 18px;
}

.product-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image.has-photo .product-image-placeholder {
  display: none;
}

.drawer-product-photo-wrap {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.drawer-product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drawer-product-img.image-error::after {
  content: "Imagen del producto";
  font-size: 10px;
  font-weight: 900;
  color: var(--muted-light);
  text-align: center;
  line-height: 1.2;
  padding: 6px;
}


/* ═══ COTIZACIÓN ESPECIAL DE TRANSPORTE ═══ */
.nav-transport,
.header-transport {
  min-height: 48px;
  border: 1px solid var(--orange-500, #FF6A1A);
  border-radius: var(--radius, 7px);
  padding: 0 18px;
  background: #fff;
  color: var(--navy-900, #0B2540);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.nav-transport:hover,
.header-transport:hover {
  background: var(--navy-900, #0B2540);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11,37,64,.18);
}
.transport-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6,20,34,.58);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.transport-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.transport-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 510;
  width: 540px;
  max-width: 100vw;
  background: #fff;
  color: #0B1620;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .26s ease;
  box-shadow: -18px 0 55px rgba(11,37,64,.24);
}
.transport-drawer.open { transform: translateX(0); }
.transport-header {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(11,37,64,.14);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.transport-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0B2540;
}
.transport-subtitle {
  margin-top: 4px;
  color: #5C7186;
  font-size: 13px;
}
.transport-close {
  margin-left: auto;
  border: 1px solid rgba(11,37,64,.16);
  border-radius: 7px;
  background: #F2F5F8;
  color: #0B2540;
  padding: 8px 11px;
  font-weight: 700;
  white-space: nowrap;
}
.transport-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
}
.transport-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.transport-section-title {
  color: #FF6A1A;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.transport-input {
  width: 100%;
  border: 1px solid rgba(11,37,64,.17);
  border-radius: 7px;
  background: #F8FAFC;
  color: #0B1620;
  padding: 12px 13px;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.transport-input:focus {
  border-color: #FF6A1A;
  box-shadow: 0 0 0 3px rgba(255,106,26,.12);
  background: #fff;
}
.transport-input.invalid {
  border-color: #D92D20;
  box-shadow: 0 0 0 3px rgba(217,45,32,.1);
}
.transport-notes { resize: vertical; min-height: 92px; }
.transport-note {
  color: #5C7186;
  font-size: 12px;
  line-height: 1.5;
}
.transport-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(11,37,64,.14);
  display: flex;
  gap: 10px;
}
.transport-secondary,
.transport-submit {
  min-height: 46px;
  border-radius: 7px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.transport-secondary {
  border: 1px solid rgba(11,37,64,.18);
  background: #fff;
  color: #0B2540;
}
.transport-submit {
  flex: 1;
  border: 0;
  background: #FF6A1A;
  color: #0B1620;
}
.transport-submit:hover { background: #FFA15C; }

@media (max-width: 860px) {
  .nav-transport,
  .header-transport {
    min-height: 42px;
    padding: 0 11px;
    font-size: 11px;
  }
}
@media (max-width: 640px) {
  .nav-actions,
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-transport,
  .header-transport {
    min-height: 38px;
    padding: 0 8px;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .transport-drawer { width: 100%; }
  .transport-header,
  .transport-body,
  .transport-footer { padding-left: 16px; padding-right: 16px; }
}

/* ═══ AJUSTES RESPONSIVE Y BOTONES ICONOS v5 ═══ */
html, body { max-width: 100%; overflow-x: hidden; }
.site-header, .header-inner, .nav-main, .nav, .nav-links { max-width: 100%; }
.nav-action-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; flex: 0 0 auto; }
.nav-action-text { display: inline-block; white-space: nowrap; }
.file-upload-label { margin-top: 2px; color: var(--navy-900, #0B2540); font-size: 12px; font-weight: 900; }
.file-input { padding: 10px 12px; cursor: pointer; }
.quote-file-note { color: var(--muted, #5C7186); font-size: 11.5px; line-height: 1.45; margin-top: -6px; }

@media (max-width: 860px) {
  .nav-links { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .nav-actions, .header-actions { flex-shrink: 0; }
}

@media (max-width: 640px) {
  .nav-transport, .header-transport, .nav-quote, .header-quote {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center;
    gap: 0;
    overflow: visible;
  }
  .nav-quote { gap: 3px; }
  .nav-action-text { display: none; }
  .nav-action-icon { font-size: 18px; }
  .quote-badge { margin-left: -4px; }
}


/* Corrección general de desbordes horizontales */
.app-layout, .main-content, .products-grid, .catalog-toolbar { max-width: 100%; }
@media (max-width: 860px) {
  .header-inner { overflow: visible; }
  .nav-links.open { box-shadow: 0 16px 30px rgba(11,37,64,.12); }
  .sidebar { overflow-x: auto; scrollbar-width: thin; }
}

/* ===== KALLPEX UPDATE v2: botones responsive, menú móvil y prevención de overflow ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.site-header,
.header-inner,
.nav-main,
.nav-links,
.nav-actions,
.app-layout,
.main-content {
  max-width: 100%;
}

.header-inner,
.nav-main {
  min-width: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.nav-transport,
.nav-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

.nav-action-text {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-links {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-action-text {
    display: none;
  }

  .nav-action-icon {
    font-size: 18px;
  }

  .nav-transport {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .nav-quote {
    width: 58px;
    min-width: 58px;
    height: 42px;
    min-height: 42px;
    padding: 0 6px;
    gap: 5px;
  }

  .quote-badge,
  .nav-badge {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }

  .header-logo {
    width: 100px;
    height: 38px;
  }

  .nav-main {
    gap: 5px;
  }

  .nav-transport {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .nav-quote {
    width: 54px;
    min-width: 54px;
    height: 38px;
    min-height: 38px;
  }

  .nav-toggle {
    width: 34px;
    min-width: 34px;
    padding: 4px;
  }
}


/* ===== Footer corporativo Kallpex ===== */
.site-footer{background:var(--navy-900);padding:56px 0 32px;color:var(--muted-light, #AFC2D4);}
.footer-inner{display:grid;grid-template-columns:1.25fr .85fr .95fr 1fr;gap:34px;padding-bottom:34px;border-bottom:1px solid rgba(255,255,255,.14);margin-bottom:22px;}
.footer-brand-title{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.footer-brand-title img{width:44px;height:44px;object-fit:contain;background:#fff;border-radius:10px;padding:6px;}
.footer-brand-title span{font-family:'Space Grotesk',sans-serif;font-size:24px;font-weight:800;color:#fff;letter-spacing:-.03em;}
.footer-brand-title span span{color:var(--orange-500);}
.footer-brand p{font-size:14px;line-height:1.65;color:var(--muted-light, #AFC2D4);max-width:320px;}
.footer-col h4{font-family:'JetBrains Mono',monospace;font-size:12px;letter-spacing:.1em;color:#fff;text-transform:uppercase;margin-bottom:16px;}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:10px;margin:0;padding:0;}
.footer-col a{text-decoration:none;font-size:14px;color:var(--muted-light, #AFC2D4);transition:color .2s ease;display:inline-flex;align-items:center;gap:9px;}
.footer-col a:hover{color:var(--orange-500);}
.social-mark{width:24px;height:24px;border-radius:6px;background:rgba(255,106,26,.13);color:var(--orange-500);font-size:12px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-family:'JetBrains Mono',monospace;font-size:11.5px;color:var(--muted-light, #AFC2D4);}
@media(max-width:980px){.footer-inner{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}}
@media(max-width:640px){.site-footer{padding:42px 0 26px}.footer-inner{grid-template-columns:1fr;gap:28px}.footer-bottom{align-items:flex-start;flex-direction:column}}


/* ===== Ajustes finales responsive y formularios ===== */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
.site-header, .header-inner, .nav, .nav-main, .app-layout, .main-content { max-width: 100%; }
.nav-links { max-width: 100vw; }
.nav-links.open { overflow-x: hidden; }
.transport-file-note { margin-top: -6px; }
select option[disabled][hidden] { display: none; }
@media(max-width:860px){
  .nav-links { left: 0; right: 0; width: 100%; max-width: 100vw; }
  .header-actions, .nav-actions { flex-shrink: 0; }
}

/* Categorías en bloques para PRODUCTOS en móvil/tablet */
@media(max-width:1024px){
  .sidebar{position:static;width:100%;height:auto;padding:16px;background:var(--navy-900);overflow:visible;}
  .filter-group{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible!important;padding-bottom:0!important;}
  .filter-item{width:100%!important;min-width:0!important;white-space:normal!important;justify-content:flex-start;}
}
@media(max-width:640px){
  .filter-group{grid-template-columns:repeat(2,minmax(0,1fr));}
  .filter-item{font-size:12px;padding:10px;}
}
