/* ════════════════════════════════════════════════════════════
   Blog de Posfy (/blog, /blog/<slug>) y su vista previa en /platform/blog.
   Archivo aparte: el panel no carga public.css (afina .input y botones)
   y la vista previa tiene que verse igual que el artículo publicado.
   ════════════════════════════════════════════════════════════ */

.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.blog-cat { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .95rem; border-radius: 999px;
  border: 1px solid #d6dee8; font-size: .875rem; font-weight: 600; color: #334155; background: #fff; }
.blog-cat:hover { border-color: #94a3b8; }
.blog-cat[aria-current="page"] { background: #0f766e; border-color: #0f766e; color: #fff; }

.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog-card { border: 1px solid rgba(15, 23, 42, .08); border-radius: 1rem; overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .18); transform: translateY(-2px); }
.blog-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.blog-card__img { display: block; aspect-ratio: 16 / 9; background: #f1f5f9; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__img--none { display: flex; align-items: flex-end; padding: 1rem;
  background: linear-gradient(135deg, #0b3b39 0%, #0f766e 60%, #14b8a6 100%); }
.blog-card__img--none span { font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }
.blog-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.blog-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; }
.blog-card__t { font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: #0b1f24; }
.blog-card__d { font-size: .9rem; line-height: 1.55; color: #526072; }
.blog-card__meta { margin-top: auto; padding-top: .4rem; font-size: .8rem; color: #64748b; }

.blog-pager { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 2.5rem; font-size: .9rem; color: #526072; }
.blog-pager a { font-weight: 600; color: #0f766e; }

.blog-cta { margin-top: 4rem; padding: 2rem 1.5rem; border-radius: 1.25rem; text-align: center; color: #e6fffb;
  background: linear-gradient(135deg, #0b3b39 0%, #0f766e 100%); }
.blog-cta h2 { font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.3; }
.blog-cta p { margin-top: .6rem; font-size: .95rem; }
.blog-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }

.blog-crumbs { font-size: .82rem; color: #64748b; display: flex; flex-wrap: wrap; gap: .35rem; }
.blog-crumbs a { color: #0f766e; }
.blog-title { margin-top: 1rem; font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 800; color: #0b1f24;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.blog-meta { margin-top: 1rem; font-size: .85rem; color: #64748b; }
.blog-cover { margin-top: 1.75rem; width: 100%; height: auto; border-radius: 1rem; aspect-ratio: 1200 / 630; object-fit: cover; }

.blog-toc { border: 1px solid rgba(15, 23, 42, .08); border-radius: .9rem; padding: 1rem 1.25rem; background: #f8fafc; margin-bottom: 2rem; }
.blog-toc p { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; }
.blog-toc ol { margin-top: .5rem; padding-left: 1.2rem; list-style: decimal; font-size: .92rem; line-height: 1.7; }
.blog-toc a { color: #334155; }
.blog-toc a:hover { color: #0f766e; text-decoration: underline; }

.blog-prose { color: #334155; font-size: 1.06rem; line-height: 1.75; overflow-wrap: anywhere; }
.blog-prose > * + * { margin-top: 1.1em; }
.blog-prose h2 { margin-top: 2em; font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.3; color: #0b1f24; scroll-margin-top: 6rem; }
.blog-prose h3 { margin-top: 1.6em; font-weight: 700; font-size: 1.15rem; color: #0b1f24; }
.blog-prose a { color: #0f766e; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.blog-prose strong { color: #0b1f24; }
.blog-prose ul { list-style: disc; padding-left: 1.4rem; }
.blog-prose ol { list-style: decimal; padding-left: 1.4rem; }
.blog-prose li + li { margin-top: .35em; }
.blog-prose blockquote { border-left: 4px solid #14b8a6; background: #f0fdfa; padding: .8rem 1.1rem; border-radius: 0 .6rem .6rem 0; color: #0b3b39; }
.blog-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: #f1f5f9; padding: .1em .35em; border-radius: .35rem; }
.blog-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
.blog-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blog-prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.blog-prose th, .blog-prose td { border-bottom: 1px solid #e2e8f0; padding: .55rem .7rem; text-align: left; vertical-align: top; }
.blog-prose th { background: #f8fafc; color: #0b1f24; font-weight: 700; }

.blog-share { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .88rem; color: #526072; }
.blog-share a { padding: .35rem .8rem; border: 1px solid #d6dee8; border-radius: 999px; font-weight: 600; color: #334155; }
.blog-share a:hover { border-color: #0f766e; color: #0f766e; }

/* Los últimos tres (portada y panel): tres columnas desde tableta. */
@media (min-width: 768px) { .blog-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* Suscripción al boletín dentro del blog. */
.blog-nl { margin-top: 3.5rem; display: grid; gap: 1.25rem; align-items: center; padding: 1.75rem 1.5rem; border-radius: 1.25rem;
  border: 1px solid rgba(15, 118, 110, .18); background: #f0fdfa; }
@media (min-width: 768px) { .blog-nl { grid-template-columns: 1fr 1fr; padding: 2rem; } }
.blog-nl h2 { font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-size: 1.3rem; font-weight: 700; color: #0b1f24; line-height: 1.3; }
.blog-nl p { margin-top: .4rem; font-size: .92rem; color: #526072; }
.blog-nl + .blog-cta { margin-top: 2rem; }
