/* ============================================================
   blog.css — Artículo de blog (diseño editorial "Diario")
   Portado del diseño CUMBRE. Tipografías reemplazadas a 'Albert Sans'
   (Bodoni Moda / Hanken Grotesk -> Albert Sans, ya self-hosted en cumbre.css).
   ============================================================ */

@keyframes blog-rise { from { transform: translateY(22px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* ── Contenedor general del artículo ───────────────────────── */
.blog-article {
  --accent: #2F77BE;
  --deep: #1C4E86;
  font-family: 'Albert Sans', sans-serif;
  background: #EEF3F8;
  color: #15222E;
  position: relative;
  overflow: hidden;
}
.blog-article ::selection { background: #2F77BE; color: #EEF3F8; }

/* ── Cabecera del artículo ─────────────────────────────────── */
.blog-article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}
.blog-breadcrumb {
  font-size: 13px;
  color: #6B7886;
  font-weight: 600;
  margin-bottom: 24px;
}
.blog-breadcrumb a { color: #6B7886; text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--accent); }
.blog-breadcrumb .sep { color: #A9B7C5; margin: 0 8px; }
.blog-breadcrumb .current { color: var(--deep); }

.blog-eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.blog-title {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-top: 16px;
  animation: blog-rise .7s ease both;
}
.blog-lead {
  font-size: 19px;
  line-height: 1.55;
  color: #5A6776;
  margin-top: 20px;
  font-family: 'Albert Sans', sans-serif;
  font-style: italic;
}
.blog-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 13px;
  color: #6B7886;
  font-weight: 600;
  flex-wrap: wrap;
}
.blog-byline .author { color: var(--deep); }
.blog-byline .dot { color: #A9B7C5; }

/* ── Imagen de portada (opcional) ──────────────────────────── */
.blog-hero {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: clamp(220px, 42vw, 480px);
  object-fit: cover;
  margin: 36px auto 0;
  border-radius: 10px;
  position: relative;
  z-index: 10;
}
.blog-hero-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  height: clamp(200px, 34vw, 380px);
  margin: 36px auto 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #1A4061, #0F2B42);
  font-size: clamp(70px, 12vw, 140px);
  position: relative;
  z-index: 10;
}

/* ── Cuerpo del artículo (HTML real de $post['content']) ───── */
.blog-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 20px;
  position: relative;
  z-index: 10;
}
.blog-body p {
  font-size: 18px;
  line-height: 1.75;
  color: #26303A;
  margin-top: 22px;
}
.blog-body > p:first-child { margin-top: 0; }

/* drop-cap en el primer párrafo */
.blog-body > p:first-of-type::first-letter {
  float: left;
  font-family: 'Albert Sans', sans-serif;
  font-size: 74px;
  line-height: .78;
  font-weight: 700;
  color: var(--deep);
  margin: 6px 14px 0 0;
}

.blog-body h2 {
  font-family: 'Albert Sans', sans-serif;
  font-size: 30px;
  font-weight: 600;
  margin-top: 44px;
  line-height: 1.1;
}
.blog-body h3 {
  font-family: 'Albert Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-top: 30px;
}
.blog-body h2 + p,
.blog-body h3 + p { margin-top: 10px; }

.blog-body ul,
.blog-body ol {
  font-size: 18px;
  line-height: 1.75;
  color: #26303A;
  margin-top: 16px;
  padding-left: 26px;
}
.blog-body li { margin-top: 8px; }

.blog-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-body a:hover { color: var(--deep); }

.blog-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
}

.blog-body blockquote {
  margin: 38px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--accent);
}
.blog-body blockquote p {
  font-family: 'Albert Sans', sans-serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: #15222E;
  margin-top: 0;
}

.blog-body strong { font-weight: 700; }
.blog-body em { font-style: italic; }

/* ── Bloque autor ──────────────────────────────────────────── */
.blog-author-card {
  max-width: 680px;
  margin: 10px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
.blog-author-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #F8FBFE;
  border: 1px solid rgba(21, 34, 46, .12);
  border-radius: 12px;
  padding: 22px 24px;
}
.blog-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A4061, #0F2B42);
  color: var(--accent);
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
}
.blog-author-name {
  font-family: 'Albert Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
}
.blog-author-bio {
  font-size: 13.5px;
  color: #5A6776;
  line-height: 1.5;
  margin-top: 4px;
}

/* ── Volver ────────────────────────────────────────────────── */
.blog-back {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 0 24px 80px;
  position: relative;
  z-index: 10;
}
.blog-back a {
  display: inline-block;
  text-decoration: none;
  color: var(--deep);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}
.blog-back a:hover { color: var(--accent); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-body { padding: 36px 20px 20px; }
  .blog-body p,
  .blog-body ul,
  .blog-body ol { font-size: 17px; }
  .blog-body > p:first-of-type::first-letter { font-size: 58px; }
  .blog-body blockquote p { font-size: 22px; }
  .blog-author-inner { flex-direction: column; text-align: center; }
}
