/* ==============================================
   Post — tipografía y layout
   ============================================== */

.post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 0 18px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-hero h1 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.post-hero .sub {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.7;
  font-size: 1.12rem;
}

.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #64748b;
  font-weight: 600;
  margin: 0 0 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: .95rem;
}

.toc {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  margin: 18px 0 24px;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.7;
}

.toc a {
  color: #2563eb;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-content {
  color: #0f172a;
  line-height: 1.8;
  font-size: 1.05rem;
}

.post-content h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.post-content h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.post-content p {
  margin: 0 0 14px;
  color: #334155;
}

.post-content ul,
.post-content ol {
  margin: 10px 0 16px;
  padding-left: 20px;
  color: #334155;
}

.callout {
  border-radius: 18px;
  padding: 16px 18px;
  margin: 18px 0;
  border: 1px solid #dbeafe;
  background: #eff6ff;
}

.callout strong {
  display: inline-block;
  margin-bottom: 6px;
}

.callout.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.post-cta {
  margin: 28px 0 0;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.post-cta h2 {
  margin: 0 0 8px;
}

.post-cta p {
  margin: 0 0 14px;
  color: #475569;
}

@media (max-width: 680px) {
  .post-container {
    padding: 34px 0 12px;
  }
  .post-content {
    font-size: 1.02rem;
  }
}


/* --- Imagen de cabecera del post --- */
.post-cover {
  margin: 18px 0 24px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}
.post-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --- Callouts --- */
.callout {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.9);
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin: 18px 0 22px;
}
.callout h2, .callout h3 {
  margin-top: 0;
}
.callout ul {
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.75;
}
.callout.tldr {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
}
.callout.tip {
  border-color: rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.07);
}
.callout.warn {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
}

/* ==============================================
   v4 — lectura tipo “revista”
   ============================================== */
.breadcrumbs { flex-wrap: wrap; row-gap: 6px; }
.post-hero { padding: 10px 0 0; }
.post-hero h1 {
  font-size: clamp(2rem, 2.6vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}
.post-hero .sub {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 62ch;
  color: #475569;
}
.post-cover { margin-top: 18px; }
.post-cover img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.post-content h2 { margin-top: 28px; scroll-margin-top: 90px; letter-spacing: -0.01em; }
.post-content h3 { margin-top: 18px; }
.post-content p { margin: 0 0 14px; }
.post-content ul, .post-content ol { margin: 0 0 16px 1.1rem; }
.post-content li { margin: 8px 0; }
.post-content a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-content a:hover { text-decoration: none; }
.post-footer { margin-top: 34px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.related-posts { margin-top: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.related-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(15, 23, 42, .10); }
.related-card a { color: inherit; display: block; }
.related-cover { height: 140px; overflow: hidden; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .35s ease; }
.related-card:hover img { transform: scale(1.06); }
.related-body { padding: 14px 14px 16px; }
.related-body h3 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.25; }
.related-body p { margin: 0; color: #475569; font-size: .95rem; line-height: 1.5; }
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-cover { height: 180px; }
}


/* --- Post meta (v19.4) --- */
.post-updated{
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.95rem;
}

.post-series{margin:6px 0 0;color:#475569;font-weight:600;}
.post-series a{font-weight:800;color:inherit;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;}

.post-quicklinks{
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.95rem;
}
.post-quicklinks a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

