/* ── Filter Bar ── */
.filter-bar {
  background: var(--c-50);
  border-bottom: 1.5px solid #e2e8f0;
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}

.filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.f-btn {
  font-size: .81rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #475569;
  transition: all .18s;
  cursor: pointer;
}

.f-btn:hover {
  border-color: var(--c-400);
  color: var(--c-700);
}

.f-btn.active {
  background: var(--c-700);
  color: #fff;
  border-color: var(--c-700);
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
}

.search-input {
  border: 1.5px solid #cbd5e1;
  border-radius: var(--r-md);
  padding: 9px 14px 9px 38px;
  font-size: .875rem;
  background: #fff;
  width: 260px;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font);
}

.search-input:focus {
  border-color: var(--c-500);
}

/* ── Products Content ── */
.products-content {
  padding: 52px 0 70px;
}

.div-section {
  margin-bottom: 60px;
}

.div-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.div-head h2 {
  color: var(--c-800);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.div-rule {
  flex: 1;
  height: 1.5px;
  background: #e2e8f0;
  border-radius: 1px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Product Card ── */
.prod-card {
  background: #fff;
}

.prod-img {
  background: #fff;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-img.light {
  background: #fff;
}

.prod-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.prod-body {
  padding: 20px;
}

.prod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.prod-name {
  color: var(--c-800);
  font-weight: 700;
  font-size: .875rem;
  line-height: 1.3;
}

.prod-code {
  color: #94a3b8;
  font-family: monospace;
  font-size: .74rem;
  margin-bottom: 10px;
}

.prod-desc {
  color: #64748b;
  font-size: .8rem;
  line-height: 1.57;
  margin-bottom: 14px;
}

.specs-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
  background: var(--c-50);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
}

.spec-k {
  color: #94a3b8;
  font-weight: 500;
}

.spec-v {
  color: var(--c-700);
  font-weight: 700;
}

.products-empty {
  text-align: center;
  padding: 60px 0;
  color: #64748b;
  font-size: .9rem;
}

/* ── Product Line Sub-sections ── */
.line-section {
  margin-bottom: 44px;
}

.line-section:last-child {
  margin-bottom: 0;
}

.line-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.line-head h3 {
  color: var(--c-500);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

.line-rule {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  border-radius: 1px;
}

/* ── Line Card Variant List ── */
.line-dims {
  margin-bottom: 14px;
}

.line-dims-label {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}

.line-dims-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.line-dim-link {
  display: block;
  color: var(--c-700);
  font-size: .76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-xs);
  background: var(--c-50);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.line-dim-link:hover {
  background: var(--c-100);
  color: var(--c-800);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .filter-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Desarrollos Especiales — editorial card inside div-section
   ============================================================ */
.de-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--c-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s;
}

.de-card:hover {
  box-shadow: var(--sh-lg);
}

.de-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: var(--c-200);
}

.de-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .32s;
}

.de-card:hover .de-mosaic img {
  transform: scale(1.04);
}

.de-content {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.de-badge {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-600);
  margin-bottom: 10px;
}

.de-content h3 {
  font-family: var(--font-c);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-900);
  line-height: 1.22;
  margin-bottom: 12px;
}

.de-content>p {
  font-size: .875rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.de-bullets {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.de-bullets li {
  font-size: .74rem;
  font-weight: 600;
  color: var(--c-700);
  background: var(--c-50);
  border: 1px solid var(--c-200);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.de-bullets li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--c-500);
  border-radius: 50%;
  flex-shrink: 0;
}

.de-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .de-card {
    grid-template-columns: 1fr;
  }

  .de-mosaic {
    aspect-ratio: 2 / 1;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .de-content {
    padding: 20px;
  }
}