:root {
  --black:   #111111;
  --red:     #F21B2D;
  --green:   #86B83F;
  --blue:    #1D3F9A;
  --white:   #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-400: #9A9A9A;
  --gray-600: #555555;
  --bg:      #FFFFFF;
  --text:    #111111;
  --card-bg: #FFFFFF;
  --border:  #E8E8E8;
}

[data-theme="dark"] {
  --black:   #E8E8E8;
  --red:     #F21B2D;
  --green:   #86B83F;
  --blue:    #4A8FE0;
  --white:   #1A1A2E;
  --gray-100: #222244;
  --gray-200: #2A2A4A;
  --gray-400: #8888AA;
  --gray-600: #AAAACC;
  --bg:      #12121E;
  --text:    #E8E8E8;
  --card-bg: #1A1A2E;
  --border:  #2A2A4A;
}

[data-theme="dark"] .hero { background: linear-gradient(135deg, #1a1a2e 0%, #222244 100%); }
[data-theme="dark"] .hero-slider { border-color: var(--border); }
[data-theme="dark"] .pdf-catalog { background: linear-gradient(180deg, #1a1a2e 0%, #1e1e3a 100%); }
[data-theme="dark"] .toast { background: #2a2a4a; color: var(--text); }
[data-theme="dark"] .product-empty-img { background: var(--gray-100); }
[data-theme="dark"] .product-empty-img strong { color: var(--gray-400); }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  padding: 0 40px; height: 72px; gap: 32px;
  box-shadow: 0 8px 24px rgba(17,17,17,.06);
}
/* header tricolor removed in v5 */
.logo-img {
  text-decoration: none; flex-shrink: 0;
  display: flex; align-items: center;
  align-self: flex-end;
  background: var(--white);
  border-radius: 8px;
  padding: 0 4px;
}
.logo-img-tag {
  height: 71px; width: auto;
  object-fit: contain;
  display: block;
}

nav { display: flex; gap: 20px; flex: 1; }
nav a {
  font-size: 14px; font-weight: 600; color: var(--black);
  text-decoration: none; white-space: nowrap;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
nav a:nth-child(3n+1):hover { border-color: var(--red);   color: var(--red);   }
nav a:nth-child(3n+2):hover { border-color: var(--green); color: var(--green); }
nav a:nth-child(3n+3):hover { border-color: var(--black); color: var(--black); }

.header-right { display: flex; align-items: center; gap: 10px; }
header .search-box { display: none; }
.search-box {
  display: flex; align-items: center;
  border: 2px solid var(--black); border-radius: 24px;
  overflow: hidden; height: 40px;
}
.search-box input {
  border: none; outline: none; padding: 0 12px;
  font-family: 'Inter', sans-serif; font-size: 13px;
  width: 150px; background: transparent;
}
.search-box button {
  background: var(--black); border: none; cursor: pointer;
  padding: 0 10px; height: 100%; color: var(--white); font-size: 14px;
  transition: background .2s;
}
.search-box button:hover { background: var(--red); }
/* ── SEARCH AUTOCOMPLETE ── */
.search-drop {
  display: none; position: fixed;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.16); border: 1px solid var(--gray-200);
  z-index: 10000; overflow: hidden; min-width: 300px;
}
.search-drop.open { display: block; }
.si { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--gray-100); transition: background .1s; }
.si:last-child { border-bottom: none; }
.si:hover, .si.si-sel { background: var(--gray-100); }
.si-ico { font-size: 22px; flex-shrink: 0; }
.si-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.si-name { font-size: 13px; font-weight: 600; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-meta { font-size: 11px; color: var(--gray-400); }
mark.sh { background: none; color: var(--black); font-weight: 700; }
/* ── COTIZACION SEARCH DROP ── */
.cot-drop { position: absolute !important; top: calc(100% + 6px) !important; left: 0 !important; right: 0 !important; width: 100% !important; min-width: 0 !important; }
.cot-si { justify-content: space-between; }
.cot-add-tag { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--black); background: var(--gray-100); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
/* ── COTIZACION TABLE ── */
.cot-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cot-table th { background: var(--gray-100); padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .04em; }
.cot-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.cot-table tr:last-child td { border-bottom: none; }
.cot-table tr:hover td { background: var(--gray-100); }
.cc { color: var(--gray-400); font-size: 12px; white-space: nowrap; }
.cn { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.ci { font-size: 22px; flex-shrink: 0; }
.cnm { font-weight: 600; color: var(--black); }
.cct { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.cp, .cs { color: var(--black); white-space: nowrap; }
.cs { font-weight: 700; }
.cq { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cqb { width: 26px; height: 26px; border: 1px solid var(--gray-200); border-radius: 6px; background: var(--white); color: var(--text); cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .1s; }
.cqb:hover { background: var(--gray-100); }
.cqv { min-width: 24px; text-align: center; font-weight: 600; }
.cd { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 14px; padding: 4px 6px; border-radius: 6px; transition: color .1s, background .1s; }
.cd:hover { color: var(--red); background: var(--gray-100); }
/* ── SIDEBAR PRICE FILTER ── */
.price-range { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.price-range input { width: 0; flex: 1; padding: 7px 8px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13px; font-family: 'Inter', sans-serif; outline: none; }
.price-range input:focus { border-color: var(--black); }
.price-range span { color: var(--gray-400); flex-shrink: 0; }
/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; height: 3px; border-radius: 2px;
  background: var(--black); transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 201;
  width: 280px; max-width: 80vw;
  background: var(--white); padding: 24px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--gray-600); margin-bottom: 24px; display: block;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  display: block; padding: 12px 8px; border-radius: 6px;
  font-size: 15px; font-weight: 600; color: var(--black);
  text-decoration: none; transition: background .15s;
}
.mobile-menu-links a:hover { background: var(--gray-100); }
.mobile-menu-links a:active { background: var(--gray-200); }

.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--black); position: relative;
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  transition: color .2s;
}
.icon-btn:hover { color: var(--black); }
.icon-btn.active { color: var(--red); }
.dark-toggle {
  display: flex; align-items: center; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.dark-toggle-track {
  width: 40px; height: 22px;
  background: var(--white); border: 2px solid var(--black);
  border-radius: 11px; position: relative;
  transition: background .3s, border-color .3s;
}
.dark-toggle-knob {
  width: 16px; height: 16px;
  background: var(--black); border-radius: 50%;
  position: absolute; top: 1px; left: 1px;
  transition: transform .3s, background .3s;
}
[data-theme="dark"] .dark-toggle-track {
  background: var(--black); border-color: var(--white);
}
[data-theme="dark"] .dark-toggle-knob {
  background: var(--white); transform: translateX(18px);
}
.icon-btn .badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 40px; font-size: 13px; color: var(--gray-400);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb a { color: var(--gray-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); text-decoration: underline; }
.breadcrumb span { color: var(--black); font-weight: 600; }

/* ── SR-ONLY (screen-reader only, SEO) ── */
.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;
}

/* ── CATEGORY NAV ── */
.cat-nav {
  padding: 16px 40px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  white-space: nowrap; padding: 8px 18px;
  border: 2px solid var(--gray-200); border-radius: 24px;
  font-size: 13px; font-weight: 500; color: var(--black);
  text-decoration: none; cursor: pointer;
  transition: all .2s; background: var(--white);
}
.cat-chip:hover {
  border-color: var(--black); background: var(--black); color: var(--white);
}
.cat-chip.active {
  border-color: var(--black); background: var(--black); color: var(--white); font-weight: 700;
}
.cat-chip-more {
  white-space: nowrap; padding: 8px 18px;
  border: 2px dashed var(--gray-300); border-radius: 24px;
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all .2s; background: var(--white);
  flex-shrink: 0;
}
.cat-chip-more:hover {
  border-color: var(--black); color: var(--black);
}

/* ── HERO STRIP ── */
.hero {
  color: var(--black); overflow: hidden; position: relative;
  margin: 0;
  min-height: auto;
}
.hero-slider-only {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.hero-slider-full {
  width: 100%; height: 580px; max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  border: none;
  position: relative;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .6s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slider img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--white);
  padding: 14px 28px; border-radius: 8px;
  border: none; cursor: pointer;
  text-decoration: none; font-size: 14px; font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #333; transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--black);
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-size: 14px; font-weight: 700;
  border: 2px solid var(--black);
  transition: background .2s, color .2s, transform .15s;
}
.btn-outline:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

/* ── TOOLBAR ── */
.toolbar {
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  gap: 16px; flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 14px; }
.product-count { font-size: 14px; color: var(--gray-600); }
.product-count strong { color: var(--black); font-size: 18px; font-weight: 700; }
.filter-btn {
  border: 2px solid var(--black); border-radius: 8px;
  padding: 8px 18px; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--white); display: flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
}
.filter-btn:hover { background: var(--black); color: var(--white); }
.sort-select {
  border: 2px solid var(--gray-200); border-radius: 8px;
  padding: 8px 14px; font-family: 'Inter', sans-serif;
  font-size: 14px; cursor: pointer; background: var(--white);
  color: var(--text); outline: none; transition: border-color .2s;
}
.sort-select:focus { border-color: var(--black); }

/* ── MAIN LAYOUT ── */
.main-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 0; min-height: 60vh;
}

/* ── SIDEBAR ── */
.sidebar {
  border-right: 1px solid var(--gray-200);
  padding: 28px 24px; position: sticky; top: 78px;
  height: fit-content; max-height: calc(100vh - 78px);
  overflow-y: auto;
}
.sidebar-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 16px;
}
.filter-group { margin-bottom: 28px; margin-top: 24px; }
.filter-group h4 {
  font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none;
}
.filter-group h4 .toggle { font-size: 14px; font-weight: 300; color: var(--gray-400); }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; cursor: pointer; font-size: 14px; color: var(--gray-600);
  transition: color .2s;
}
.filter-option:hover { color: var(--black); }
.filter-option input[type=checkbox] {
  width: 18px; height: 18px; cursor: pointer;
  accent-color: var(--black);
}
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gray-200); cursor: pointer; flex-shrink: 0;
}
.price-range {
  display: flex; gap: 10px; align-items: center; margin-top: 10px;
}
.price-range input[type=number] {
  border: 2px solid var(--gray-200); border-radius: 6px;
  padding: 6px 10px; width: 80px; font-family: 'Inter', sans-serif;
  font-size: 13px; outline: none;
}
.price-range input:focus { border-color: var(--green); }

/* ── SKELETON LOADER ── */
.grid-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; padding: 28px 32px; }
.grid-skeleton.hidden { display: none; }
.sk-card { border-radius: 12px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); }
.sk-img { height: 200px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: sk-shimmer 1.4s infinite; }
.sk-line { height: 14px; margin: 12px 16px 0; border-radius: 4px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: sk-shimmer 1.4s infinite; }
.sk-line--short { width: 40%; }
.sk-line--medium { width: 65%; }
.sk-line:last-child { margin-bottom: 16px; }
@keyframes sk-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── PRODUCT GRID ── */
.product-grid {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  align-content: start;
}

@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}
.product-card {
  border-radius: 12px; overflow: hidden;
  background: var(--white); cursor: pointer;
  transition: box-shadow .25s, transform .2s;
  border: 1px solid var(--gray-200);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.11);
  transform: translateY(-3px);
}
.product-img {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative; overflow: hidden;
}
.product-img.img-loaded {
  animation: none;
  background: var(--gray-100);
}
.product-img img.prod-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .prod-photo { transform: scale(1.06); }
.product-img .prod-emoji {
  position: relative; z-index: 1;
  font-size: 72px;
  display: none;
}
.product-img .hover-img {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.18); opacity: 0;
  transition: opacity .3s; font-size: 26px; color: #fff;
  z-index: 2;
}
.product-card:hover .hover-img { opacity: 1; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.badge-new     { background: var(--blue);  color: var(--white); }
.badge-sale    { background: var(--red);   color: var(--white); }
.badge-popular { background: var(--green); color: var(--white); }
.wishlist-btn {
  position: absolute; top: 12px; right: 12px;
  background: var(--white); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .2s;
}
.wishlist-btn:hover { transform: scale(1.1); }
.product-empty-img {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--gray-400); font-size: 13px; text-align: center;
  padding: 20px; background: var(--gray-100);
}
.product-empty-img strong { color: var(--gray-600); font-size: 14px; }
.product-info { padding: 14px 16px 16px; }
.product-cod {
  font-size: 11px; color: var(--gray-400); font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px;
}
.dist-price { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--black); line-height: 1.4; margin-bottom: 4px; }
.product-desc { font-size: 12px; color: var(--gray-400); margin-bottom: 10px; line-height: 1.4; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--black); }
.product-price .old { font-size: 13px; font-weight: 400; color: var(--gray-400); text-decoration: line-through; margin-left: 6px; }
.stars { display: flex; align-items: center; gap: 3px; margin-bottom: 8px; }
.stars .s { color: #F5A623; font-size: 13px; }
.stars .count { font-size: 12px; color: var(--gray-400); margin-left: 4px; }
.add-btn {
  background: var(--black); color: var(--white); border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.add-btn:hover { background: var(--green); transform: scale(1.1); }

/* -- PDF CATALOG -- */
.pdf-catalog {
  padding: 34px 40px 28px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.pdf-catalog-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; margin-bottom: 18px; flex-wrap: wrap;
}
.pdf-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--red); text-transform: uppercase; margin-bottom: 6px;
}
.pdf-catalog h2 { font-size: 30px; line-height: 1.15; margin: 0 0 8px; }
.pdf-catalog p { color: var(--gray-600); line-height: 1.55; max-width: 740px; }
.pdf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-dark {
  background: var(--black); color: var(--white); border: 2px solid var(--black);
  padding: 12px 18px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 700; transition: transform .15s, background .2s;
}
.btn-dark:hover { background: #333; border-color: #333; transform: translateY(-2px); }
.btn-light {
  background: var(--white); color: var(--black); border: 2px solid var(--gray-200);
  padding: 12px 18px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 700; transition: border-color .2s, transform .15s;
}
.btn-light:hover { border-color: var(--black); transform: translateY(-2px); }
.pdf-frame-wrap {
  border: 2px solid var(--black); border-radius: 8px; overflow: hidden;
  background: var(--white); padding: 18px;
}
.pdf-frame { width: 100%; height: min(72vh, 760px); min-height: 520px; border: 0; display: block; }

.pdf-summary-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 14px;
}
.pdf-summary-card {
  border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 16px; background: var(--white);
}
.pdf-summary-card strong { display: block; font-size: 22px; margin-bottom: 4px; }
.pdf-summary-card span { color: var(--gray-600); font-size: 13px; line-height: 1.4; }
.pdf-category-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pdf-category-list span {
  border: 1px solid var(--gray-200); border-radius: 999px; padding: 7px 12px;
  font-size: 12px; font-weight: 700; background: var(--white);
}
.quote-note { font-size: 12px; color: var(--gray-600); margin-top: 8px; }

/* ── SCROLL TO TOP ── */
#scrollTopBtn {
  position: fixed; bottom: 100px; right: 20px; z-index: 200;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--gray-600); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .2s, color .2s;
}
#scrollTopBtn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scrollTopBtn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── FOOTER ── */
footer {
  background: var(--white); color: var(--black);
  padding: 56px 40px 32px; margin-top: 60px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 33.3%, var(--green) 33.3% 66.6%, var(--blue) 66.6%);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 58px; width: auto; object-fit: contain; display: block; }
.footer-logo span.r { color: var(--red); }
.footer-logo span.g { color: var(--green); }
.footer-logo span.b { color: var(--blue); }
footer p { font-size: 14px; color: var(--gray-600); line-height: 1.6; max-width: 300px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px; color: var(--gray-600);
}
.footer-col a {
  display: block; color: var(--black); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; transition: color .2s;
}
.footer-col:nth-child(2) a:hover { color: var(--red); }
.footer-col:nth-child(3) a:hover { color: var(--green); }
.footer-col:nth-child(4) a:hover { color: var(--black); }
.footer-col a:hover { color: var(--black); }
.footer-bottom {
  border-top: 1px solid var(--gray-200); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--gray-600); flex-wrap: wrap; gap: 12px;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  color: var(--gray-600); text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.social-links a:nth-child(1):hover { color: var(--red); }
.social-links a:nth-child(2):hover { color: var(--red); }
.social-links a:nth-child(3):hover { color: var(--green); }
.social-links a:nth-child(4):hover { color: var(--red); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--black); color: var(--white);
  padding: 14px 22px; border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--green);
}
.toast.show { opacity: 1; transform: translateY(0); }

.search-inline input {
  border: 2px solid var(--gray-200); border-radius: 8px;
  padding: 9px 16px; font-family: 'Inter', sans-serif;
  font-size: 14px; outline: none; width: 280px;
  background: var(--white); color: var(--text);
  transition: border-color .2s;
}
.search-inline input:focus { border-color: var(--black); }
.badge-cat {
  background: rgba(0,0,0,.55); color: var(--white);
  font-size: 10px; max-width: calc(100% - 54px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-cat-btn {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left; background: none; border: none;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: var(--gray-600); transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.sidebar-cat-btn:hover { background: var(--gray-100); color: var(--black); }
.sidebar-cat-btn.active {
  background: var(--black); color: var(--white); font-weight: 700;
  border-left: 3px solid var(--red);
}
.cat-count { font-size: 11px; opacity: .55; }
.sidebar-cat-toggle {
  width: 100%; text-align: center; background: none; border: 1px solid var(--gray-200);
  border-radius: 6px; padding: 6px 10px; margin-top: 4px; cursor: pointer;
  font-size: 12px; color: var(--gray-600); font-family: 'Inter', sans-serif;
  transition: background .15s, color .15s;
}
.sidebar-cat-toggle:hover { background: var(--gray-100); color: var(--black); }
.filter-label { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--gray-600); padding:3px 0; cursor:pointer; }
.filter-label input { accent-color:var(--red); }
.filter-group.collapsed > :not(h4) { display:none; }
input[type=range] { accent-color: var(--black); }

/* ── CART DRAWER ── */
/* ── PRODUCT MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.product-modal {
  position: fixed; top: 50%; left: 50%; z-index: 401;
  transform: translate(-50%, -50%) scale(.92);
  width: 520px; max-width: 90vw; max-height: 85vh;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  overflow: hidden; display: flex; flex-direction: column;
}
.product-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  background: var(--white); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.modal-content { padding: 0; overflow-y: auto; }
.modal-img {
  width: 100%; aspect-ratio: 1; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 24px; }
.modal-body .product-cod { font-size: 12px; color: var(--gray-400); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.modal-body h2 { font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.modal-body .modal-desc { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }
.modal-body .modal-cat { display: inline-block; background: var(--gray-100); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; margin-bottom: 16px; }
.modal-body .modal-price { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.modal-body .modal-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.modal-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer;
  background: var(--black); color: var(--white);
  transition: background .2s;
}
.modal-btn:hover { background: #333; }
.modal-btn-outline {
  width: 100%; padding: 10px; border: 2px solid var(--gray-200); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--white); color: var(--gray-600);
  transition: border-color .2s, color .2s;
}
.modal-btn-outline:hover { border-color: var(--black); color: var(--black); }

.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; z-index: 9998; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: 380px; max-width: 90vw;
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); z-index: 9999; }
.cart-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.cart-drawer-header h3 { font-size: 18px; font-weight: 700; }
.cart-drawer-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--gray-600); padding: 4px;
}
.cart-drawer-body {
  flex: 1; overflow-y: auto; padding: 16px 24px;
}
.cart-empty {
  text-align: center; padding: 40px 0; color: var(--gray-400); font-size: 14px;
}
.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--gray-200);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-cod { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-desc { font-size: 11px; color: var(--gray-400); }
.cart-item-qty {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.cart-item-qty button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gray-200); background: var(--white);
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cart-item-qty button:hover { background: var(--gray-100); }
.cart-item-qty span {
  font-size: 14px; font-weight: 700; min-width: 20px; text-align: center;
}
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 16px; padding: 4px;
  transition: color .2s;
}
.cart-item-remove:hover { color: var(--red); }
.cart-drawer-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--gray-200);
}
.cart-total { font-size: 14px; font-weight: 600; color: var(--gray-600); margin-bottom: 12px; text-align: center; }

/* ── FLOATING WHATSAPP BUTTON ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 32px; height: 32px; display: block; }
.whatsapp-float-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 22px; height: 22px;
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid #fff;
  pointer-events: none;
}
.whatsapp-float-badge.hidden { display: none; }

/* ── QUOTE PREVIEW MODAL ── */
.quote-modal-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.quote-modal-overlay.open { opacity: 1; pointer-events: auto; }
.quote-modal {
  position: fixed; top: 50%; left: 50%; z-index: 601;
  transform: translate(-50%, -50%) scale(.92);
  width: 480px; max-width: 92vw; max-height: 80vh;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  display: flex; flex-direction: column; overflow: hidden;
}
.quote-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.quote-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-200);
}
.quote-modal-header h3 { font-size: 18px; font-weight: 700; }
.quote-modal-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--gray-600); padding: 4px; line-height: 1;
}
.quote-modal-body {
  flex: 1; overflow-y: auto; padding: 16px 24px;
}
.quote-product {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--gray-200);
}
.quote-product-info { flex: 1; min-width: 0; }
.quote-product-cod { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; }
.quote-product-name { font-size: 13px; font-weight: 600; color: var(--black); }
.quote-product-desc { font-size: 11px; color: var(--gray-400); }
.quote-product-qty {
  font-size: 14px; font-weight: 700; color: var(--black);
  white-space: nowrap;
}
.quote-modal-notes {
  margin: 16px 24px; padding: 12px 14px;
  border: 2px solid var(--gray-200); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 13px;
  resize: vertical; min-height: 60px; outline: none;
  transition: border-color .2s;
}
.quote-modal-notes:focus { border-color: var(--black); }
.quote-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 8px;
}
.quote-modal-total {
  font-size: 14px; font-weight: 600; color: var(--gray-600); text-align: center;
}
.quote-modal-send {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.quote-modal-send:hover { background: #1DA851; transform: translateY(-1px); }
.quote-modal-send svg { width: 20px; height: 20px; }

[data-theme="dark"] .quote-modal { background: var(--card-bg); }
[data-theme="dark"] .quote-modal-notes { background: var(--gray-100); color: var(--text); }

@media (max-width: 560px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .quote-modal { width: 95vw; }
}

@media (max-width: 1050px) {
  .search-inline input { width: 180px; }
}
@media (max-width: 560px) {
  .search-inline { flex: 1; min-width: 0; }
  .search-inline input { width: 100%; min-width: 0; }
  .toolbar-left { flex: 1; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  header { padding: 0 20px; gap: 16px; }
  .logo-img-tag { height: 46px; max-width: 160px; }
  .search-box input { width: 140px; }
  nav { display: none; }
  .header-right { gap: 10px; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .product-grid { padding: 20px; gap: 16px; }
  .grid-skeleton { padding: 20px; gap: 16px; }
  .hero-slider-only { margin: 0; border-radius: 0; }
  .hero-slider-full { height: 320px; }
  .hero-slider img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .breadcrumb, .cat-nav, .toolbar, .pdf-catalog { padding-left: 20px; padding-right: 20px; }
  .pdf-summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  header { height: auto; min-height: 60px; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .logo-img-tag { height: 38px; max-width: 130px; }
  .header-right { width: auto; justify-content: flex-end; gap: 4px; flex-shrink: 0; }
  .search-box { display: none; }
  .icon-btn span:not(.badge) { display: none; }
  .icon-btn { font-size: 20px; padding: 6px; min-width: 38px; justify-content: center; }
  .icon-btn .badge { top: -2px; right: -2px; width: 16px; height: 16px; font-size: 9px; }
  .pdf-summary-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   MOBILE REDESIGN — jerarquía de color (mobile-only)
   Todos los bloques @media siguientes aplican solo a
   ≤ 900px y NO afectan la versión desktop.
══════════════════════════════════════════════════════ */

/* ── SVG icons en header — ocultos en desktop, visibles en mobile ── */
.hdr-icon { display: none; }

/* ── PUNTO 7: Tarjeta de producto — botón unificado + corazón SVG ── */
/* Wishlist SVG */
.wl-svg { width: 15px; height: 15px; }
.wishlist-btn { border: 1px solid var(--gray-200); }

/* Botón unificado "+ Cotizar / + Agregar" */
.cotizar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--black); color: var(--white);
  border: none; cursor: pointer;
  padding: 8px 14px; border-radius: 9px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  transition: background .2s; white-space: nowrap; flex-shrink: 0;
}
.cotizar-btn:hover { background: #333; }
.cotizar-btn svg { flex-shrink: 0; }

/* Texto "Catálogo sin precios" (no-logged) */
.pcard-no-price { font-size: 11px; color: var(--gray-400); }

/* ── PUNTO 1: Sistema de color — elimina azul en mobile ── */
@media (max-width: 900px) {
  /* Pills: activo y hover → negro en vez de azul */
  .cat-chip:hover,
  .cat-chip.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
  }

  /* Hover de botones icono (carrito, favoritos) */
  .icon-btn:hover { color: var(--black); }

  /* Autocomplete: fondo hover azul tenue → gris neutro */
  .si:hover,
  .si.si-sel { background: var(--gray-100); }

  /* Highlight de término buscado */
  mark.sh { color: var(--black); }

  /* Etiqueta "+ Agregar" en búsqueda de cotización */
  .cot-add-tag {
    color: var(--black);
    background: var(--gray-100);
  }

  /* Focus de input de búsqueda → negro */
  .search-inline input:focus { border-color: var(--black); }

  /* Checkboxes y sliders → negro */
  .filter-option input[type=checkbox],
  input[type=range] { accent-color: var(--black); }

  /* Tarjeta — botón cotizar ocupa el ancho disponible en mobile */
  .cotizar-btn { width: 100%; justify-content: center; }
  .product-footer { flex-wrap: wrap; gap: 6px; }
  .pcard-no-price { font-size: 10px; }
}

/* ── PUNTO 4: Pills — fade + chevron (wrapper) ── */
.cat-nav-wrap { position: relative; }
.pills-fade { display: none; } /* oculto en desktop */

/* ── PUNTO 3: Eliminar franja tricolor en mobile ── */
@media (max-width: 900px) {
  /* El header ya tiene border-bottom: 1px solid var(--gray-200).
     Solo se oculta el ::after con gradiente rojo-verde-azul. */
  header::after { display: none; }
}

/* ── PUNTO 4: Pills fade + chevron en mobile ── */
@media (max-width: 900px) {
  .pills-fade {
    display: flex; align-items: center; justify-content: flex-end;
    position: absolute; top: 0; right: 0; bottom: 0; width: 52px;
    background: linear-gradient(to right, transparent, var(--bg) 75%);
    pointer-events: none;
    padding-right: 10px;
    transition: opacity .2s;
  }
  .pills-fade svg { color: var(--gray-400); }
  .pills-fade.hidden { opacity: 0; pointer-events: none; }
}

/* ── PUNTO 5: Toolbar — radio 11px, altura 42px, gap 10px ── */
@media (max-width: 900px) {
  .toolbar { gap: 10px; }
  .search-inline input {
    height: 42px;
    border-radius: 11px;
    border-width: 1.5px;
    padding: 0 14px;
  }
  .sort-select {
    height: 42px;
    border-radius: 11px;
    border-width: 1.5px;
    padding: 0 12px;
  }
}

/* ── PUNTO 2: Header mobile — 4 elementos, SVG icons, toggle al menú ── */
@media (max-width: 900px) {
  /* Mostrar SVG icons en header */
  .hdr-icon { display: block; width: 24px; height: 24px; }

  /* Ocultar toggle del header en mobile */
  #headerDarkToggle { display: none; }

  /* Ocultar "Mi Cuenta" del header (está en el menú) */
  .hdr-account { display: none; }

  /* Toggle en menú hamburguesa */
  .mobile-menu-divider {
    height: 1px; background: var(--gray-200);
    margin: 10px 0;
  }
  .mobile-menu-dark-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 8px;
  }
  .mobile-menu-dark-row > span {
    font-size: 15px; font-weight: 600; color: var(--black);
  }
  .mobile-menu .dark-toggle { display: flex; }
}

/* ══════════════════════════════════════════════════════
   DESKTOP v5 — mockup escritorio jerarquía de color
══════════════════════════════════════════════════════ */

/* Tipografía display */
.display-font { font-family: 'Space Grotesk', sans-serif; }

/* H1 SEO — visible en mobile, oculto en desktop */
.cat-heading-seo {
  text-align: center; font-size: 1.3rem; font-weight: 700;
  padding: 16px 20px 0; margin: 0; letter-spacing: -0.01em;
}
@media (min-width: 900px) {
  .cat-heading-seo { display: none; }
}

/* Botón CTA header — solo desktop */
.cta-quote-header { display: none; }
@media (min-width: 900px) {
  /* CTA: hijo directo del header, zona izquierda (junto al logo) */
  .cta-quote-header {
    display: flex; align-items: center;
    background: var(--black); color: var(--white);
    height: 40px; padding: 0 20px; border-radius: 9px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
  }
  .cta-quote-header:hover { background: #333; }

  /* Zona derecha empujada al borde con separador visual */
  .header-right {
    margin-left: auto;
    padding-left: 28px;
    border-left: 1px solid var(--gray-200);
  }
}

/* Hero copy — oculto en mobile */
.hero-copy { display: none; }
.hero-eyebrow {
  color: var(--red); font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.hero-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700; line-height: 1.22;
  margin-bottom: 14px; color: var(--text);
}
.hero-desc {
  font-size: 14px; color: var(--gray-600);
  line-height: 1.6; margin-bottom: 22px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary-hero {
  background: var(--black); color: var(--white);
  height: 44px; padding: 0 20px; border-radius: 9px;
  display: flex; align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.btn-primary-hero:hover { background: #333; }
.btn-outline-hero {
  height: 44px; padding: 0 20px; border-radius: 9px;
  border: 1px solid var(--border);
  display: flex; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--text);
  text-decoration: none; transition: border-color .2s;
}
.btn-outline-hero:hover { border-color: var(--black); }

/* Hero area: split en desktop */
@media (min-width: 900px) {
  .hero-area {
    display: flex; align-items: center; gap: 40px;
    padding: 28px 40px;
  }
  .hero-copy {
    display: flex; flex-direction: column;
    flex: 0 0 360px;
  }
  .hero-area .hero { flex: 1; margin: 0; }
  .hero-area .hero-slider-full {
    height: 300px; border-radius: 14px; overflow: hidden;
  }
  .hero-area .hero-slider img { border-radius: 14px; }
}

/* Desktop grid full-width — sidebar oculto */
@media (min-width: 900px) {
  .main-layout { display: block; }
  .sidebar { display: none; }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 28px 40px;
  }
  .grid-skeleton { padding: 28px 40px; }
  .toolbar { padding: 18px 40px; }
  .cat-nav { padding: 16px 40px; flex-wrap: wrap; overflow-x: visible; }
  .pdf-catalog {
    margin: 0 40px;
    border-radius: 14px;
  }
}

/* ── 1. Sin barras de desplazamiento ── */
html, body { overflow-x: hidden; }
.hero-area { overflow: hidden; }
.hero-area > .hero { min-width: 0; }

/* ── 2. Hamburguesa también en desktop — nav lateral igual que mobile ── */
.hamburger { display: flex; }
nav { display: none; }

@media (min-width: 900px) {
  /* Search crece dentro de header-right */
  .search-box { flex: 1; min-width: 160px; max-width: 280px; }
  .search-box input { width: 100%; }
  /* Iconos SVG visibles en desktop también */
  .hdr-icon { display: block; width: 22px; height: 22px; }
  /* Ocultar texto de los botones icono (solo iconos) */
  .icon-btn span:not(.badge) { display: none; }
  .icon-btn { font-size: 18px; padding: 6px; min-width: 36px; justify-content: center; }
}

/* Widget de cuenta en header (activo cuando hay sesión) */
.acct-widget { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.acct-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase; user-select: none;
}
.acct-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-name {
  font-size: 12px; font-weight: 700; color: var(--black);
  line-height: 1.2; white-space: nowrap;
  max-width: 100px; overflow: hidden; text-overflow: ellipsis;
}
.acct-logout {
  font-size: 10px; font-weight: 500; color: var(--gray-400);
  background: none; border: none; cursor: pointer; padding: 0;
  text-align: left; font-family: inherit; line-height: 1.2;
  transition: color .15s; white-space: nowrap;
}
.acct-logout:hover { color: var(--red); text-decoration: underline; }
@media (max-width: 900px) { .acct-info { display: none; } }

/* Logo swap por modo */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark {
  display: block;
  height: 71px; width: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
}
[data-theme="dark"] .logo-img { background: transparent; align-self: flex-end; }
@media (max-width: 900px) {
  [data-theme="dark"] .logo-dark { height: 46px; max-width: 160px; }
}
@media (max-width: 560px) {
  [data-theme="dark"] .logo-dark { height: 38px; max-width: 130px; }
}

/* Botón cotizar — fix dark mode */
[data-theme="dark"] .cta-quote-header {
  background: var(--blue);
  color: #fff;
}
[data-theme="dark"] .cta-quote-header:hover { background: #3a7fd0; }