/* ==========================================================================
   OMBU Renovaciones · Blog (índice y artículos)
   ========================================================================== */

/* Migas */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--fs-xs); color: var(--text-soft); margin-bottom: 1.25rem; }
.crumbs a { color: var(--text-soft); text-decoration: none; padding: .5rem 0; }
.crumbs a:hover { color: var(--ombu-carbon); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ombu-carbon); font-weight: 500; }

/* ---------- Índice ---------- */
.bhero {
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 2.5rem) 0 2rem;
  background: radial-gradient(120% 70% at 100% 0%, rgb(215 218 239 / .75), transparent 60%), linear-gradient(180deg, #fff, var(--ombu-niebla));
  --text-soft: var(--text-soft-on-mist);
}
.bhero .wrap { display: grid; gap: 1rem; }
.bhero__title { font-size: var(--fs-3xl); max-width: 14ch; }
.bhero__title em { display: block; color: var(--ombu-pizarra); }
.bhero .lead { max-width: 52ch; }

.blist { padding-block: 2rem var(--section); display: grid; gap: 2rem; }

.feature[hidden] { display: none; }
.feature__link {
  display: grid; overflow: hidden; border-radius: var(--radius); text-decoration: none;
  background: var(--ombu-carbon); color: #fff; box-shadow: var(--shadow);
}
.feature__media { aspect-ratio: 16 / 10; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.feature__link:hover .feature__media img { transform: scale(1.03); }
.feature__body { display: grid; gap: .9rem; padding: 1.5rem; align-content: center; justify-items: start; }
.feature__body .post__meta { color: var(--ombu-lavanda); }
.feature__title { font-size: var(--fs-xl); font-weight: 600; line-height: 1.2; }
.feature__title em { font-weight: 300; color: var(--ombu-lavanda); }
.feature__body .post__excerpt { color: var(--ombu-lavanda); }
.feature__body .btn { --btn-bg: var(--ombu-lavanda); --btn-fg: var(--ombu-carbon); margin-top: .25rem; }
.feature__link:hover .btn { --btn-bg: #fff; }

.filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 44px; padding: .5rem 1.2rem; border: 0; border-radius: var(--pill);
  background: #fff; color: var(--ombu-carbon); font-size: var(--fs-sm); font-weight: 500;
  box-shadow: inset 0 0 0 1.5px rgb(54 56 64 / .22); transition: background-color .2s, color .2s, box-shadow .2s;
}
.filter:hover { box-shadow: inset 0 0 0 1.5px var(--ombu-carbon); }
.filter[aria-pressed="true"] { background: var(--ombu-carbon); color: #fff; box-shadow: none; }
.posts { list-style: none; display: grid; gap: 1rem; }
.posts__empty { color: var(--text-soft); }

/* ---------- Artículo ---------- */
.art__head { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 2rem); display: grid; gap: 1rem; max-width: 820px; }
.art__head .crumbs { margin-bottom: .25rem; }
.art__title { font-size: var(--fs-2xl); }
.art__title em { display: block; color: var(--ombu-pizarra); }
.art__lead { max-width: 60ch; }
.art__by { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-xs); color: var(--text-soft); margin-top: .25rem; }
.art__by strong { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ombu-carbon); }
.art__avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ombu-lavanda); }
.art__avatar svg { width: 20px; height: 20px; fill: var(--ombu-carbon); }
.art__cover { margin: 2rem auto 0; }
.art__cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.art__cover figcaption, .prose figcaption { margin-top: .6rem; font-size: var(--fs-xs); color: var(--text-soft); }
.art__layout { display: grid; gap: 2rem; padding-block: 2.5rem 1rem; max-width: 820px; }

/* Texto largo */
.prose { font-size: var(--fs-md); font-weight: 300; line-height: 1.8; color: var(--ombu-carbon); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.prose strong { font-weight: 600; }
.prose__lead { font-size: var(--fs-lg); line-height: 1.6; font-weight: 300; color: var(--ombu-carbon); }
.prose__quote {
  margin: 2.25rem 0; padding: 1.5rem 1.5rem 1.5rem 1.75rem; border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 4px solid var(--ombu-carbon); background: var(--ombu-lavanda);
  font-size: var(--fs-lg); font-style: italic; font-weight: 300; line-height: 1.5;
}
.prose__fig { margin: 2rem 0; }
.prose__fig img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.prose__pair { margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.prose__pair div { position: relative; }
.prose__pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.prose__pair span {
  position: absolute; top: 10px; left: 10px; padding: .25rem .65rem; border-radius: var(--pill);
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgb(54 56 64 / .85); color: #fff;
}
.prose__pair div + div span { background: rgb(215 218 239 / .94); color: var(--ombu-carbon); }
.prose__pair figcaption { grid-column: 1 / -1; }

.share { display: flex; align-items: center; gap: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share p { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-right: .25rem; }
.share .icon-btn.is-done { background: var(--ombu-carbon); color: #fff; }
.share__ok { font-size: var(--fs-xs); color: var(--ombu-carbon); font-weight: 500; }

.art__cta { padding-block: 1rem var(--section); max-width: 820px; }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 1rem; justify-items: start;
  padding: 2rem 1.5rem; border-radius: var(--radius); background: var(--ombu-carbon);
}
.cta-box__mark { position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 220px; height: 220px; fill: rgb(215 218 239 / .07); }
.cta-box__title { font-size: var(--fs-xl); font-weight: 900; letter-spacing: -.02em; }
.cta-box__title em { font-weight: 300; color: var(--ombu-lavanda); }
.cta-box p { color: var(--ombu-lavanda); font-weight: 300; }
.cta-box__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }

.related { background: var(--ombu-niebla); --text-soft: var(--text-soft-on-mist); }

@media (min-width: 600px) {
  .posts { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .filters { margin-inline: 0; padding-inline: 0; }
  .cta-box { padding: 2.5rem; }
}
@media (min-width: 960px) {
  .feature__link { grid-template-columns: 1.3fr 1fr; }
  .feature__media { aspect-ratio: auto; min-height: 420px; }
  .feature__body { padding: 2.5rem; }
  .posts { grid-template-columns: repeat(3, 1fr); }
  .art__layout { grid-template-columns: 1fr 64px; gap: 3rem; max-width: 900px; }
  .art__side { order: 2; }
  .share { position: sticky; top: calc(var(--header-h) + 2rem); flex-direction: column; padding-top: 0; border-top: 0; }
  .share p { margin: 0 0 .25rem; writing-mode: vertical-rl; transform: rotate(180deg); }
  .art__cover { max-width: 1040px; }
  .art__cover img { aspect-ratio: 16 / 8; }
}
