@charset "UTF-8";
/* Kenya Marín — Blog y Recomendados */
[hidden] { display: none !important; }

.blog-hero { overflow: hidden; }
.blog-hero h1 { max-width: 900px; }
.blog-hero .lead { margin-top: 8px; }
.blog-list { padding: 0; }

/* ---------- Filtros ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--gap); }
.chip {
  border: 0;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: .6em 1.3em;
  font-family: var(--font-body);
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { background: var(--card-strong); }
.chip.active { background: var(--butter); color: var(--ink); }
.empty { color: var(--text-muted); background: var(--card); border-radius: var(--radius-lg); padding: var(--pad); margin: 0; }

/* ---------- Tarjetas de artículos ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
  transition: background .25s ease;
}
.post-card:hover { background: var(--card-strong); }
.post-cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.post-cover span { font-family: var(--font-display); font-size: 4rem; text-transform: uppercase; color: var(--ink); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-info { padding: 18px 12px 14px; }
.post-info h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.post-info p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: .8rem; color: var(--text-muted);
}
.post-cat {
  display: inline-block;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: .35em .9em;
}

/* ---------- Artículo ---------- */
.post-head {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 96px) var(--pad) var(--pad);
}
.post-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-top: 18px; max-width: 900px; }
.post-head .lead { color: var(--text-muted); }
.back-link { display: inline-block; font-size: .9rem; color: var(--text-muted); margin-bottom: 28px; }
.back-link:hover { color: var(--accent); }
.post-cover-wide { margin-top: var(--gap); }
.post-cover-wide img { width: 100%; border-radius: var(--radius-lg); }

.prose { max-width: 720px; margin: 56px auto 0; font-size: 1.05rem; }
.prose p, .prose li { font-weight: 300; color: var(--text); }
.prose h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: 1.8em 0 .5em; }
.prose h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 1.6em 0 .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-md); margin: 1.6em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.6em 0; padding: .4em 0 .4em 1.4em;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft); font-size: 1.15rem;
}
.prose code { background: var(--card); border: 0; border-radius: 6px; padding: .1em .4em; font-size: .9em; }
.prose pre { background: var(--card); border: 0; border-radius: var(--radius-md); padding: 18px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------- Productos afiliados ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.product-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
}
.product-img {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.product-img img { max-height: 100%; width: auto; object-fit: contain; }
.product-body { padding: 18px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.25rem; margin: 12px 0 8px; }
.product-desc { color: var(--text-muted); font-size: .93rem; flex: 1; }
.product-desc p { margin: 0 0 .8em; }
.product-body .btn { margin-top: 14px; white-space: normal; text-align: center; }
.post-products { margin-top: 72px; }
.post-products h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 28px; }
.disclosure { font-size: .82rem; color: var(--text-muted); max-width: 640px; margin-top: 20px; }

/* ---------- CTA al final del artículo ---------- */
.post-cta {
  margin: 72px 0 0; text-align: center;
  border-radius: var(--radius-lg);
  padding: var(--pad); background: var(--butter);
}
.post-cta p { color: var(--ink); }

@media (max-width: 1000px) {
  .post-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid, .product-grid { grid-template-columns: 1fr; }
}
