/* Blog de Diferénciate Marketing: listado y artículos.
   Las páginas del blog no usan las secciones de una pantalla de la portada: son páginas de lectura. */
:root {
  --p-bg: #fbf8f6; --p-surface: #f3eeff; --p-ink: #422329; --p-muted: #7a6164;
  --p-accent: #422329; --p-accent-ink: #fbf8f6; --p-action: #422329; --p-action-ink: #fbf8f6;
  --p-inv-bg: #422329; --p-inv-surface: #4e3035; --p-inv-ink: #fbf8f6; --p-inv-muted: #c9b9bb;
  --p-inv-accent: #dbcdff; --p-inv-accent-ink: #422329; --p-inv-action: #dbcdff; --p-inv-action-ink: #422329;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-text: "Poppins", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.012em;
  --display-tracking-xl: -0.016em;
  --ly-scale: 1.12;
}
.nav__logo img { display: block; height: 26px; width: auto; }
.footer__logo img { display: block; height: 44px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 22px; } .footer__logo img { height: 34px; } }
h1 em, h2 em { font-style: italic; }

/* cabecera de página (listado y artículo) */
.page-top { padding: calc(var(--nav) + clamp(48px, 8vw, 112px)) 0 clamp(40px, 6vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); opacity: .6; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--ink); }
.page-top h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h1); line-height: 1.02; letter-spacing: var(--display-tracking-xl); max-width: 18ch; margin: 0; }
.page-top .t-lead { max-width: 56ch; margin-top: var(--s-5); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-6); font-size: var(--t-small); color: var(--muted); }
.post-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.post-meta strong { color: var(--ink); font-weight: 500; }

/* listado */
.posts { padding-bottom: clamp(64px, 9vw, 128px); }
.post-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center; color: inherit; text-decoration: none; }
.post-card + .post-card { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.post-card__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.post-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease, ease); }
.post-card:hover .post-card__img img { transform: scale(1.025); }
.post-card__body { display: grid; gap: var(--s-4); align-content: center; }
.post-card__tag { font-size: var(--t-small); color: var(--muted); }
.post-card h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h2); line-height: 1.05; letter-spacing: var(--display-tracking); margin: 0; }
.post-card p { margin: 0; max-width: 46ch; }
.post-card .link { justify-self: start; }
@media (max-width: 767px) { .post-card { grid-template-columns: 1fr; } }

/* artículo */
.post-cover { max-width: 68ch; margin: 0 0 clamp(48px, 6vw, 80px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); font-size: 17px; }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.prose { max-width: 68ch; padding-bottom: clamp(64px, 9vw, 128px); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; letter-spacing: var(--display-tracking); margin-top: 2.2em; }
.prose h2 + p { margin-top: .7em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 500; }
.prose figure { margin: 2.4em 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
.prose .note { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-6); margin-top: 2.4em; }
.prose .note p { margin: 0; }
.prose .note p + p { margin-top: .8em; }
.prose a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose .btn { margin-top: var(--s-5); }
