/* CLW Level-2 Vehicle Category Showroom (/volqueta/, /camion-hidrosuccionador/, etc.)
   Unified with Homepage Hero & /productos/ Obsidian + Terracotta + Warm Stone System */

.clw-l2-page {
  --l2-obsidian: #080f1a;
  --l2-navy: #0f1e32;
  --l2-ink: #0e1c2c;
  --l2-muted: #4f6174;
  --l2-accent: #e85d2a;
  --l2-accent-dark: #c9481a;
  --l2-accent-soft: #f39a76;
  --l2-stone: #f4f2ec;
  --l2-stage: #f6f8fa;
  --l2-line: #e2e7ee;
  font-family: var(--sans, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  color: var(--l2-ink);
}

.clw-l2-page *,
.clw-l2-page *::before,
.clw-l2-page *::after {
  box-sizing: border-box;
}

/* =========================================================
   BAND 1: Full-Bleed Dark Obsidian Category Masthead
   ========================================================= */
.clw-l2-hero {
  position: relative;
  overflow: hidden;
  background: var(--l2-obsidian);
  color: #f4f7fb;
  padding: 20px 0 34px;
}

.clw-l2-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, #e85d2a 0%, rgba(232, 93, 42, 0.28) 32%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.clw-l2-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.clw-l2-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 55%;
  opacity: 0.34;
  filter: contrast(1.06) saturate(0.88);
}

.clw-l2-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      98deg,
      rgba(8, 15, 26, 0.98) 0%,
      rgba(8, 15, 26, 0.93) 48%,
      rgba(8, 15, 26, 0.72) 76%,
      rgba(8, 15, 26, 0.48) 100%
    ),
    linear-gradient(180deg, rgba(8, 15, 26, 0.22) 0%, rgba(8, 15, 26, 0.88) 100%);
}

.clw-l2-hero .wrap {
  position: relative;
  z-index: 2;
}

.clw-l2-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #93a7be;
}

.clw-l2-crumb a {
  color: #c5d4e5;
  text-decoration: none;
}

.clw-l2-crumb a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clw-l2-crumb span[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

.clw-l2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.88fr);
  gap: 28px 44px;
  align-items: end;
}

.clw-l2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--l2-accent-soft);
}

.clw-l2-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--l2-accent);
  flex: none;
}

.clw-l2-hero h1 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(2.1rem, 3.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: #ffffff;
}

.clw-l2-lead {
  margin: 12px 0 0;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.62;
  color: #d2deec;
}

.clw-l2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}

.clw-l2-btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--l2-accent);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(232, 93, 42, 0.28);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.clw-l2-btn-brand:hover {
  background: var(--l2-accent-dark);
  transform: translateY(-1px);
}

.clw-l2-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.clw-l2-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.5);
}

.clw-l2-btn-brand svg,
.clw-l2-btn-ghost svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* Right Glass Quick-Facts Dock */
.clw-l2-summary {
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 15, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.clw-l2-stats {
  display: grid;
  grid-template-columns: 0.75fr 1.15fr 1.1fr;
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
}

.clw-l2-stats > div {
  padding: 16px 15px;
  background: rgba(9, 17, 30, 0.88);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clw-l2-stats dt {
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.clw-l2-stats dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #b2c2d6;
}

.clw-l2-summary-foot {
  padding: 10px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12px;
  color: #c2d1e2;
}

.clw-l2-summary-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clw-l2-summary-foot span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--l2-accent-soft);
}

/* =========================================================
   BAND 2: Sticky Smart Filter & Price-Sort Toolbar
   ========================================================= */
.clw-l2-toolbar {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-bottom: 1px solid var(--l2-line);
  box-shadow: 0 4px 18px rgba(10, 22, 40, 0.04);
}

.clw-l2-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 13px 0;
}

.clw-l2-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.clw-l2-filter-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #5b6d80;
  margin-right: 4px;
}

.clw-l2-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #f5f7fa;
  color: #26384c;
  font-family: var(--sans, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.clw-l2-chip:hover {
  background: #eaf0f6;
  border-color: #c2cedb;
  color: #0e1c2c;
}

.clw-l2-chip[aria-pressed="true"] {
  background: var(--l2-navy);
  border-color: var(--l2-navy);
  color: #ffffff;
}

.clw-l2-chip .chip-count {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #6b7d90;
}

.clw-l2-chip[aria-pressed="true"] .chip-count {
  color: var(--l2-accent-soft);
}

.clw-l2-controls-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.clw-l2-count-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--l2-muted);
  white-space: nowrap;
}

.clw-l2-count-text strong {
  color: var(--l2-ink);
}

.clw-l2-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clw-l2-sort-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: #55677a;
  white-space: nowrap;
}

.clw-l2-sort {
  height: 38px;
  padding: 0 32px 0 14px;
  border: 1px solid #d4dde7;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--l2-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.clw-l2-sort:focus {
  outline: none;
  border-color: var(--l2-accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 42, 0.14);
}

/* =========================================================
   BAND 3: Showroom Product Grid
   ========================================================= */
.clw-l2-stage {
  background: var(--l2-stage);
  padding: 26px 0 58px;
}

.clw-l2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.clw-l2-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--l2-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10, 22, 40, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clw-l2-card[hidden] {
  display: none;
}

.clw-l2-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 42, 0.42);
  box-shadow: 0 18px 36px rgba(10, 22, 40, 0.09);
}

.clw-l2-card-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10.5;
  padding: 12px 16px 8px;
  background: linear-gradient(180deg, #fafbfd 0%, #f3f6f9 100%);
  border-bottom: 1px solid #edf1f6;
  overflow: hidden;
}

.clw-l2-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
}

.clw-l2-card:hover .clw-l2-card-visual img {
  transform: scale(1.045);
}

.clw-l2-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 30, 50, 0.86);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  pointer-events: none;
}

.clw-l2-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 16px;
}

.clw-l2-card-body h2 {
  margin: 0 0 14px;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--l2-ink);
}

.clw-l2-card-body h2 a {
  text-decoration: none;
  color: inherit;
}

.clw-l2-card:hover .clw-l2-card-body h2 a {
  color: var(--l2-accent-dark);
}

.clw-l2-specs {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px dashed #e6ebf2;
}

.clw-l2-specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

.clw-l2-specs dt {
  color: #607285;
  flex: none;
}

.clw-l2-specs dd {
  margin: 0;
  color: var(--l2-ink);
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.clw-l2-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px 14px;
  background: #fafbfd;
  border-top: 1px solid #edf1f6;
  margin-top: auto;
}

.clw-l2-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.clw-l2-price-label {
  font-size: 12px;
  font-weight: 600;
  color: #64768a;
  line-height: 1.2;
}

.clw-l2-price-val {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
}

.clw-l2-price-val strong {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--l2-ink);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.clw-l2-price-val small {
  font-size: 12px;
  font-weight: 500;
  color: #64768a;
}

.clw-l2-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--l2-accent-dark);
  text-decoration: none;
  white-space: nowrap;
}

.clw-l2-card-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.16s ease;
}

.clw-l2-card:hover .clw-l2-card-cta svg {
  transform: translate(2px, -2px);
}

/* Volume Pricing Ribbon under Grid */
.clw-l2-volume-bar {
  margin-top: 28px;
  padding: 18px 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--l2-line);
  border-left: 4px solid var(--l2-accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.clw-l2-volume-bar p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--l2-muted);
}

.clw-l2-volume-bar strong {
  color: var(--l2-ink);
}

.clw-l2-volume-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--l2-accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

/* =========================================================
   BAND 4: Buying Modes Strip (Moved BELOW models)
   ========================================================= */
.clw-l2-modes {
  background: #ffffff;
  border-top: 1px solid var(--l2-line);
  padding: 56px 0;
}

.clw-l2-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}

.clw-l2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l2-accent-dark);
}

.clw-l2-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--l2-accent);
}

.clw-l2-section-head h2 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--l2-ink);
}

.clw-l2-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.clw-l2-mode-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 26px 22px;
  border-radius: 16px;
  background: #f9fafc;
  border: 1px solid var(--l2-line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.clw-l2-mode-card:hover {
  border-color: rgba(232, 93, 42, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 22, 40, 0.06);
}

.clw-l2-mode-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--l2-accent-dark);
  margin-bottom: 10px;
}

.clw-l2-mode-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 20px;
  color: var(--l2-ink);
}

.clw-l2-mode-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--l2-muted);
}

.clw-l2-mode-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--l2-accent-dark);
}

/* =========================================================
   BAND 5: Peer Categories + Tailored Closing Band
   ========================================================= */
.clw-l2-bottom {
  background: var(--l2-stone);
  border-top: 1px solid #e5dfd3;
  padding: 50px 0 60px;
}

.clw-l2-peers {
  margin-bottom: 36px;
}

.clw-l2-peers-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.clw-l2-peers-head h3 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 20px;
  color: var(--l2-ink);
}

.clw-l2-peers-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--l2-accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.clw-l2-peers-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.clw-l2-peer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e4dfd5;
  color: var(--l2-ink);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.clw-l2-peer-link:hover {
  border-color: var(--l2-accent);
  color: var(--l2-accent-dark);
}

.clw-l2-closing {
  padding: 34px 38px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0d1a2c 0%, #08111e 100%);
  color: #f4f7fb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
}

.clw-l2-closing h2 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  color: #ffffff;
}

.clw-l2-closing p {
  margin: 8px 0 0;
  max-width: 600px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #c5d3e3;
}

/* Responsive */
@media (max-width: 1080px) {
  .clw-l2-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .clw-l2-summary {
    max-width: 580px;
  }
  .clw-l2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .clw-l2-modes-grid,
  .clw-l2-peers-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .clw-l2-hero {
    padding: 18px 0 26px;
  }
  .clw-l2-hero h1 {
    font-size: 2rem;
  }
  .clw-l2-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .clw-l2-stats {
    grid-template-columns: 0.72fr 1.18fr 1.1fr;
  }
  .clw-l2-stats > div {
    padding: 12px 10px;
  }
  .clw-l2-stats dt {
    font-size: 16.5px;
  }
  .clw-l2-toolbar {
    position: static;
    overflow-x: clip;
  }
  .clw-l2-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .clw-l2-filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .clw-l2-filter-group::-webkit-scrollbar {
    display: none;
  }
  .clw-l2-chip {
    white-space: nowrap;
    flex: none;
  }
  .clw-l2-controls-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    width: 100%;
  }
  .clw-l2-sort-wrap {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }
  .clw-l2-sort-wrap label {
    display: none;
  }
  .clw-l2-sort {
    font-size: 16px;
    height: 40px;
    max-width: 100%;
  }
  .clw-l2-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .clw-l2-closing {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clw-l2-page * {
    transition: none !important;
  }
}
