/* Catálogo de colores — integrado en tema FIXSYS */
.catalogo-colores {
  --cat-paper: rgba(255, 255, 255, 0.04);
  --cat-line: rgba(255, 255, 255, 0.1);
  --cat-ink: #f0f0f0;
  --cat-ink-soft: rgba(255, 255, 255, 0.5);
  --cat-accent: #48c6b1;
  --cat-code-bg: #1a5255;
}

.catalogo-colores .wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

.catalogo-colores header {
  display: none;
}

.catalogo-colores .family {
  margin-bottom: 2rem;
}

.catalogo-colores .family[data-hidden="true"] {
  display: none;
}

.catalogo-colores .family-title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cat-ink-soft);
  border-bottom: 1px solid var(--cat-line);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.catalogo-colores .count {
  color: var(--cat-accent);
  font-weight: 400;
}

.catalogo-colores .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.75rem;
}

.catalogo-colores .card {
  background: var(--cat-paper);
  border: 1px solid var(--cat-line);
  border-radius: 0.75rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s, opacity 0.2s;
}

.catalogo-colores .card[data-hidden="true"] {
  display: none;
}

.catalogo-colores .card:hover {
  border-color: rgba(72, 198, 177, 0.4);
}

.catalogo-colores .swatch {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.catalogo-colores .swatch::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 18%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.catalogo-colores .swatch.transparent {
  background: repeating-conic-gradient(#fff 0% 25%, #e7e2d6 0% 50%) 50% / 12px 12px;
}

.catalogo-colores .swatch.metallic {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 40%);
}

.catalogo-colores .meta {
  text-align: center;
}

.catalogo-colores .name-es {
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: var(--cat-ink);
}

.catalogo-colores .name-en {
  font-size: 0.625rem;
  font-style: italic;
  margin: 0 0 0.2rem;
  color: var(--cat-ink-soft);
  line-height: 1.2;
}

.catalogo-colores .code {
  display: inline-block;
  background: var(--cat-code-bg);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 4px;
}

.catalogo-colores .hex {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.55rem;
  color: var(--cat-ink-soft);
  font-family: 'Courier New', monospace;
}

.catalogo-filter {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.catalogo-filter:hover {
  border-color: rgba(72, 198, 177, 0.35);
  color: #48c6b1;
}

.catalogo-filter.is-active {
  background: rgba(72, 198, 177, 0.15);
  border-color: rgba(72, 198, 177, 0.5);
  color: #48c6b1;
  font-weight: 600;
}

/* data-family en familias — asignado por JS */
.catalogo-colores .family:nth-of-type(1) { --family-slug: neutros; }
.catalogo-colores .family:nth-of-type(2) { --family-slug: azules; }
.catalogo-colores .family:nth-of-type(3) { --family-slug: verdes; }
.catalogo-colores .family:nth-of-type(4) { --family-slug: rojos; }
.catalogo-colores .family:nth-of-type(5) { --family-slug: violetas; }
.catalogo-colores .family:nth-of-type(6) { --family-slug: calidos; }
.catalogo-colores .family:nth-of-type(7) { --family-slug: tierra; }
.catalogo-colores .family:nth-of-type(8) { --family-slug: metalicos; }
