/* CLW Flagship Catalog Hub (/productos/) — Unified with Homepage Obsidian + Terracotta + Warm Stone System */

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

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

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

.clw-cat-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-cat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.clw-cat-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 58%;
  opacity: 0.42;
  filter: contrast(1.06) saturate(0.92);
}

.clw-cat-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) 44%,
      rgba(8, 15, 26, 0.68) 72%,
      rgba(8, 15, 26, 0.42) 100%
    ),
    linear-gradient(180deg, rgba(8, 15, 26, 0.25) 0%, rgba(8, 15, 26, 0.86) 100%);
}

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

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

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

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

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

.clw-cat-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 32px 48px;
  align-items: end;
}

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

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

.clw-cat-hero h1 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.clw-cat-lead {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.62;
  color: #d2deec;
}

.clw-cat-stats {
  display: grid;
  grid-template-columns: 0.82fr 0.96fr 1.28fr;
  gap: 1px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.clw-cat-stats > div {
  padding: 16px 15px;
  background: rgba(8, 15, 26, 0.72);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.clw-cat-stats dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.38;
  color: #b4c3d6;
}

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

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

.clw-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.clw-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  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: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

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

.clw-cat-tab[aria-selected="true"] {
  background: var(--cat-navy);
  border-color: var(--cat-navy);
  color: #ffffff;
}

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

.clw-cat-tab[aria-selected="true"] .tab-count {
  color: var(--cat-accent-soft);
}

.clw-cat-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  flex: 0 1 320px;
}

.clw-cat-search-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #6a7d91;
  pointer-events: none;
}

.clw-cat-search input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 40px;
  border: 1px solid #d4dde7;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--cat-ink);
  font-size: 14px;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.clw-cat-search input::placeholder {
  color: #6e8093;
}

.clw-cat-search input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--cat-accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 42, 0.14);
}

.clw-cat-search-clear {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #e5ebf1;
  color: #2b3d50;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clw-cat-search-clear:hover {
  background: #d5dfe9;
}

.clw-cat-search-clear[hidden] {
  display: none;
}

/* =========================================================
   BAND 3: Visual 17-Family Showroom Grid
   ========================================================= */
.clw-cat-stage {
  background: var(--cat-stage);
  padding: 22px 0 60px;
}

.clw-cat-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.clw-cat-status {
  margin: 0;
  font-size: 14px;
  color: var(--cat-muted);
}

.clw-cat-status strong {
  color: var(--cat-ink);
  font-weight: 700;
}

.clw-cat-reset-inline {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--cat-accent-dark);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.clw-cat-reset-inline[hidden] {
  display: none;
}

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

.clw-cat-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--cat-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  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-cat-card[hidden] {
  display: none;
}

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

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

.clw-cat-card:hover .clw-cat-card-media img {
  transform: scale(1.045);
}

.clw-cat-count-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 30, 50, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.clw-cat-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 22px 18px;
}

.clw-cat-card-sector {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-accent-dark);
}

.clw-cat-card-title {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 20.5px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--cat-ink);
  transition: color 0.16s ease;
}

.clw-cat-card:hover .clw-cat-card-title {
  color: var(--cat-accent-dark);
}

.clw-cat-card-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.56;
  color: var(--cat-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clw-cat-card-modes {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #e6ebf2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12.5px;
  color: #5b6e82;
}

.clw-cat-card-modes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clw-cat-card-modes span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cat-accent);
  flex: none;
}

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

.clw-cat-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

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

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

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

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

.clw-cat-card-hint {
  font-size: 13px;
  font-weight: 600;
  color: #4f6174;
}

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

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

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

/* 18th Symmetrical Custom-Build Card (completes 6x3 grid on Todos) */
.clw-cat-card--custom {
  background: linear-gradient(155deg, #0d1a2c 0%, #08111e 100%);
  border-color: rgba(255, 255, 255, 0.10);
  color: #f4f7fb;
  justify-content: space-between;
  padding: 28px 26px 24px;
}

.clw-cat-card--custom:hover {
  border-color: rgba(232, 93, 42, 0.65);
  box-shadow: 0 20px 40px rgba(8, 15, 26, 0.24);
}

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

.clw-cat-custom-kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--cat-accent);
}

.clw-cat-card--custom h2 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.clw-cat-card--custom p.custom-desc {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: #c5d3e3;
}

.clw-cat-custom-list {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: #dde6f2;
}

.clw-cat-custom-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.clw-cat-custom-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-accent);
  flex: none;
}

.clw-cat-custom-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--cat-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  align-self: flex-start;
  transition: background-color 0.16s ease;
}

.clw-cat-card--custom:hover .clw-cat-custom-cta {
  background: var(--cat-accent-dark);
}

.clw-cat-custom-cta svg {
  width: 15px;
  height: 15px;
}

/* Empty State */
.clw-cat-empty {
  text-align: center;
  padding: 56px 24px;
  background: #ffffff;
  border: 1px solid var(--cat-line);
  border-radius: 16px;
}

.clw-cat-empty[hidden] {
  display: none;
}

.clw-cat-empty h3 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 22px;
  color: var(--cat-ink);
}

.clw-cat-empty p {
  margin: 10px auto 22px;
  max-width: 480px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cat-muted);
}

.clw-cat-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.clw-cat-btn-dark,
.clw-cat-btn-brand,
.clw-cat-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.clw-cat-btn-dark {
  background: var(--cat-navy);
  color: #ffffff;
}

.clw-cat-btn-dark:hover {
  background: #172d49;
}

.clw-cat-btn-brand {
  background: var(--cat-accent);
  color: #ffffff;
}

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

.clw-cat-btn-light {
  background: #ffffff;
  color: var(--cat-ink);
}

.clw-cat-btn-light:hover {
  background: #eef3f8;
  transform: translateY(-1px);
}

.clw-cat-btn-dark svg,
.clw-cat-btn-brand svg,
.clw-cat-btn-light svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   BAND 4: Full-Bleed Dual Procurement Decision Band
   ========================================================= */
.clw-cat-paths {
  background: var(--cat-stone);
  border-top: 1px solid #e5dfd3;
  padding: 58px 0 64px;
}

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

.clw-cat-path-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 36px;
  border-radius: 18px;
}

.clw-cat-path-card--dark {
  background: linear-gradient(145deg, #0d1a2c 0%, #091321 100%);
  color: #f4f7fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.clw-cat-path-card--light {
  background: #ffffff;
  color: var(--cat-ink);
  border: 1px solid #e4dfd5;
  border-top: 3px solid var(--cat-accent);
}

.clw-cat-path-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clw-cat-path-card--dark .clw-cat-path-kicker {
  color: var(--cat-accent-soft);
}

.clw-cat-path-card--light .clw-cat-path-kicker {
  color: var(--cat-accent-dark);
}

.clw-cat-path-card h2 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.clw-cat-path-card--dark h2 {
  color: #ffffff;
}

.clw-cat-path-card p.path-desc {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.62;
}

.clw-cat-path-card--dark p.path-desc {
  color: #c5d3e3;
}

.clw-cat-path-card--light p.path-desc {
  color: var(--cat-muted);
}

.clw-cat-path-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.clw-cat-path-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.clw-cat-path-card--dark .clw-cat-path-link {
  color: #d6e2f0;
  text-decoration-color: rgba(243, 154, 118, 0.65);
}

.clw-cat-path-card--dark .clw-cat-path-link:hover {
  color: #ffffff;
}

.clw-cat-path-card--light .clw-cat-path-link {
  color: var(--cat-ink);
  text-decoration-color: rgba(201, 72, 26, 0.55);
}

.clw-cat-path-card--light .clw-cat-path-link:hover {
  color: var(--cat-accent-dark);
}

.clw-cat-page :focus-visible {
  outline: 2px solid var(--cat-accent);
  outline-offset: 2px;
}

/* =========================================================
   Responsive: Tablet & Mobile
   ========================================================= */
@media (max-width: 1080px) {
  .clw-cat-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .clw-cat-stats {
    max-width: 540px;
  }
  .clw-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .clw-cat-paths-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .clw-cat-hero {
    padding: 20px 0 30px;
  }
  .clw-cat-hero h1 {
    font-size: 2rem;
  }
  .clw-cat-lead {
    font-size: 14.5px;
  }
  .clw-cat-stats > div {
    padding: 12px 10px;
  }
  .clw-cat-stats dt {
    font-size: 18px;
  }
  .clw-cat-stats dd {
    font-size: 12px;
  }
  .clw-cat-toolbar {
    position: static;
    overflow-x: clip;
  }
  .clw-cat-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0;
    min-width: 0;
  }
  .clw-cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .clw-cat-tabs::-webkit-scrollbar {
    display: none;
  }
  .clw-cat-tab {
    white-space: nowrap;
    flex: none;
  }
  .clw-cat-search {
    min-width: 0;
    flex: none;
    width: 100%;
  }
  .clw-cat-search input {
    font-size: 16px;
    height: 44px;
  }
  .clw-cat-stage {
    padding: 22px 0 46px;
  }
  .clw-cat-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .clw-cat-card-body {
    padding: 16px 18px 14px;
  }
  .clw-cat-card-foot {
    padding: 12px 18px;
  }
  .clw-cat-paths {
    padding: 38px 0 46px;
  }
  .clw-cat-path-card {
    padding: 24px 22px;
  }
}

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