/* ─── BLOG CRITERO ─── */

/* Archivo de artículos */
.blog-wrap { max-width: 860px; margin: 0 auto; padding: 64px 32px; }
.blog-header { text-align: center; margin-bottom: 48px; }
.blog-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,38px); color: var(--text); margin-bottom: 10px; }
.blog-header p { font-size: 15px; color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* Grid de posts */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

/* Card de post */
.post-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none; display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--purple-300); box-shadow: 0 4px 20px rgba(79,70,184,.08); }

.post-card-img { aspect-ratio: 16/9; background: var(--purple-bg); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-cat {
  display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; padding: 2px 9px; border-radius: 6px;
  background: var(--purple-50); color: var(--purple-600); margin-bottom: 10px;
  text-decoration: none;
}
.post-card-title {
  font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700;
  color: var(--text); line-height: 1.3; margin-bottom: 8px; text-decoration: none;
  display: block;
}
.post-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; }
.post-meta-date { font-size: 11px; color: var(--text-light); }
.post-read-time { font-size: 11px; color: var(--text-light); }

/* Post destacado (primero) */
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .post-card-img { width: 45%; flex-shrink: 0; aspect-ratio: unset; min-height: 240px; }
.post-card.featured .post-card-title { font-size: 22px; }
@media (max-width: 600px) { .post-card.featured { flex-direction: column; } .post-card.featured .post-card-img { width: 100%; aspect-ratio: 16/9; } }

/* Paginación */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--border); text-decoration: none; color: var(--text-muted);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--purple-300); color: var(--purple-600); }
.pagination .current { background: var(--purple-600); color: #fff; border-color: var(--purple-600); }

/* ─── SINGLE POST ─── */
.single-wrap { max-width: 680px; margin: 0 auto; padding: 48px 32px 80px; }

.post-hero { margin-bottom: 40px; }
.post-breadcrumb { font-size: 12px; color: var(--text-light); margin-bottom: 16px; }
.post-breadcrumb a { color: var(--purple-600); text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }

.post-hero-cat { margin-bottom: 12px; }
.post-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4.5vw, 38px); font-weight: 700;
  color: var(--text); line-height: 1.15; margin-bottom: 16px;
}
.post-hero-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.post-hero-meta span { font-size: 12px; color: var(--text-light); }
.post-hero-meta span strong { color: var(--text-muted); font-weight: 500; }

.post-hero-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.post-hero-img img { width: 100%; display: block; }

/* Contenido del artículo */
.post-content { font-size: 16px; line-height: 1.8; color: var(--text-muted); }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--text); margin: 36px 0 14px; }
.post-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content strong { color: var(--text); font-weight: 500; }
.post-content a { color: var(--purple-600); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote {
  border-left: 3px solid var(--purple-600); margin: 28px 0;
  padding: 14px 20px; background: var(--purple-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content blockquote p { color: var(--purple-900); font-style: italic; margin: 0; }

/* CTA inline en el post */
.post-cta-inline {
  background: var(--purple-900); border-radius: var(--radius-lg);
  padding: 28px 24px; margin: 36px 0; text-align: center;
}
.post-cta-inline h3 { font-family: 'Playfair Display', serif; color: #fff; font-size: 20px; margin-bottom: 8px; }
.post-cta-inline p { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 18px; }

/* Artículos relacionados */
.related-posts { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-posts h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--text); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .related-grid { grid-template-columns: 1fr; } }

/* Sidebar */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; max-width: 1000px; margin: 0 auto; padding: 64px 32px; }
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-sidebar { position: sticky; top: 80px; align-self: start; }
.widget { margin-bottom: 28px; }
.widget-title { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--text); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--purple-600); }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.widget ul li a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.widget ul li a:hover { color: var(--purple-600); }

/* CTA sidebar */
.sidebar-cta {
  background: var(--purple-900); border-radius: var(--radius-md);
  padding: 20px; text-align: center;
}
.sidebar-cta h4 { font-family: 'Playfair Display', serif; color: #fff; font-size: 15px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 16px; line-height: 1.6; }
