/* Páginas hub de categoría — catálogo Hera (SEO + confianza) */
:root {
  --hub-dark: #1a1a1a;
  --hub-mid: #6b6560;
  --hub-coral: #c45c4a;
  --hub-line: #e9e6e1;
  --hub-foam: #faf9f7;
  --hub-sand: #f5efe6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--hub-dark);
  background: linear-gradient(180deg, var(--hub-sand) 0%, var(--hub-foam) 35%, #fff 100%);
  line-height: 1.55;
  min-height: 100vh;
}

.cat-hub__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--hub-dark);
  color: #fdfaf6;
}

.cat-hub__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.cat-hub__brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.cat-hub__brand span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.cat-hub__bar-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 250, 246, 0.85);
  text-decoration: none;
  white-space: nowrap;
}

.cat-hub__bar-link:hover { color: #fff; }

.cat-hub {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.cat-hub__crumb {
  font-size: 12px;
  color: var(--hub-mid);
  margin-bottom: 20px;
}

.cat-hub__crumb a {
  color: var(--hub-coral);
  font-weight: 600;
  text-decoration: none;
}

.cat-hub__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hub-coral);
  font-weight: 600;
  margin: 0 0 8px;
}

.cat-hub__hero {
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  padding: 24px 22px 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.04);
}

.cat-hub h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.cat-hub__intro {
  color: var(--hub-mid);
  font-size: 16px;
  margin: 0 0 18px;
}

.cat-hub__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.cat-hub__chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hub-foam);
  border: 1px solid var(--hub-line);
  color: var(--hub-dark);
}

.cat-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-hub__cta {
  display: inline-block;
  padding: 13px 20px;
  background: var(--hub-dark);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--hub-dark);
  transition: background 0.2s, border-color 0.2s;
}

.cat-hub__cta:hover {
  background: var(--hub-coral);
  border-color: var(--hub-coral);
}

.cat-hub__cta--ghost {
  background: transparent;
  color: var(--hub-dark);
  border-color: var(--hub-line);
}

.cat-hub__cta--ghost:hover {
  color: #fff;
}

.cat-hub__tiles {
  margin-bottom: 20px;
}

.cat-hub__tiles-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 12px;
}

.cat-hub__tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.cat-hub__tile {
  display: block;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cat-hub__tile:hover {
  border-color: var(--hub-coral);
  box-shadow: 0 4px 16px rgba(196, 92, 74, 0.12);
}

.cat-hub__tile strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.cat-hub__tile span {
  font-size: 12px;
  color: var(--hub-mid);
}

.cat-hub__card {
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  padding: 18px 18px 6px;
  margin-bottom: 12px;
}

.cat-hub__card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--hub-dark);
}

.cat-hub__card p {
  color: var(--hub-mid);
  font-size: 15px;
  margin: 0 0 12px;
}

.cat-hub__trust {
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  padding: 20px 18px;
  margin: 20px 0;
}

.cat-hub__trust-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hub-mid);
  margin: 0 0 14px;
}

.cat-hub__pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 14px;
}

.cat-hub__pay-logos img {
  height: 28px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  filter: grayscale(0.05);
}

.cat-hub__trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--hub-mid);
}

.cat-hub__trust-list li {
  padding: 6px 0 6px 22px;
  position: relative;
}

.cat-hub__trust-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hub-coral);
  font-weight: 700;
}

.cat-hub__related {
  margin-top: 8px;
}

.cat-hub__related h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 10px;
}

.cat-hub__related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.cat-hub__related a {
  color: var(--hub-coral);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.cat-hub__related a:hover { text-decoration: underline; }

.cat-hub__footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hub-line);
  font-size: 12px;
  color: var(--hub-mid);
  line-height: 1.7;
}

.cat-hub__footer a {
  color: var(--hub-coral);
  font-weight: 600;
  text-decoration: none;
}

.cat-hub__footer a:hover { text-decoration: underline; }

.cat-hub__badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hub-mid);
}

/* Grilla en vivo (Supabase) */
.cat-hub__live {
  margin-bottom: 24px;
}

.cat-hub__live-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 6px;
}

.cat-hub__live-hint,
.cat-hub__live-note {
  font-size: 13px;
  color: var(--hub-mid);
  margin: 0 0 14px;
}

.cat-hub__live-note a {
  color: var(--hub-coral);
  font-weight: 600;
  text-decoration: none;
}

.cat-hub__live-note a:hover { text-decoration: underline; }

.cat-hub__live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.cat-hub__live-skeleton {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: linear-gradient(110deg, #ece8e2 8%, #f7f4ef 18%, #ece8e2 33%);
  background-size: 200% 100%;
  animation: cat-hub-shimmer 1.2s linear infinite;
}

@keyframes cat-hub-shimmer {
  to { background-position-x: -200%; }
}

.cat-hub__live-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.cat-hub__live-card:hover {
  border-color: var(--hub-coral);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  transform: translateY(-2px);
}

.cat-hub__live-img-wrap {
  display: block;
  aspect-ratio: 4 / 5;
  background: #f0ebe4;
  overflow: hidden;
}

.cat-hub__live-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cat-hub__live-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}

.cat-hub__live-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-hub__live-ref {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-mid);
}

.cat-hub__live-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--hub-dark);
  margin-top: 4px;
}

.cat-hub__live-colors {
  font-size: 11px;
  color: var(--hub-coral);
  font-weight: 600;
}

.cat-hub__live-empty {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--hub-mid);
  margin: 0;
}

.cat-hub__live-empty a {
  color: var(--hub-coral);
  font-weight: 600;
}

/* FAQ SEO */
.cat-hub__faq {
  margin: 8px 0 20px;
}

.cat-hub__faq-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 12px;
}

.cat-hub__faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-hub__faq-item {
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  padding: 0 14px;
}

.cat-hub__faq-q {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--hub-dark);
  padding: 14px 0;
  list-style: none;
}

.cat-hub__faq-q::-webkit-details-marker { display: none; }

.cat-hub__faq-a {
  font-size: 14px;
  color: var(--hub-mid);
  margin: 0 0 14px;
  padding-top: 0;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .cat-hub__hero { padding: 18px 16px; }
  .cat-hub__cta { width: 100%; text-align: center; }
}
