/* ==========================================================================
   MXA · sections/blog.css — Blog (listado + artículo)
   --------------------------------------------------------------------------
   Piezas: .blog / .blog-grid / .blog-chip / .blog-note · .post-card (listado)
           .page-article (cabecera) · .article-meta · .article-cover
           .article-body (bloques) · .article-aside · .article-nav
   ========================================================================== */

/* --- Listado -------------------------------------------------------------- */
.blog { background: linear-gradient(180deg, var(--cream-gold) 0%, var(--cream) 100%); position: relative; overflow: hidden; }
.blog::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%); }
.blog-header { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; align-items: end; }
@media (min-width: 1024px) { .blog-header { grid-template-columns: 5fr 7fr; gap: 48px; } }
.blog-header-right { display: flex; flex-direction: column; gap: 20px; }
.blog-subtitle { font-family: 'Playfair Display', serif; font-style: italic; color: rgba(26,26,26,0.6); font-size: 18px; max-width: 520px; }
@media (min-width: 1024px) { .blog-subtitle { font-size: 20px; } }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.blog-note {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 40px; padding: 18px 22px;
  background: rgba(211,155,72,0.08); border-left: 3px solid var(--gold);
  font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.7; color: var(--text-body);
}
.blog-note svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--gold-dark); margin-top: 2px; }
.blog-chip {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 11px;
  letter-spacing: 0.2em; color: var(--gold-dark);
  border: 1px solid var(--gold); background: rgba(211,155,72,0.08); padding: 8px 14px;
}

/* --- Tarjeta de artículo (listado) --------------------------------------- */
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s, border-color 0.4s;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(15,15,15,0.14); }
.post-card-figure { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--stone); }
.post-card-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.post-card:hover .post-card-figure img { transform: scale(1.06); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-card-date {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 11px;
  letter-spacing: 0.18em; color: var(--gold-dark);
}
.post-card-date svg { width: 14px; height: 14px; }
.post-card-title {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 700;
  font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; color: var(--charcoal);
  margin-bottom: 12px;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--gold-dark); }
.post-card-excerpt {
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.7; color: var(--text-body);
  margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-more {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 11px;
  letter-spacing: 0.2em; font-weight: 600; color: var(--gold-dark);
  border-bottom: 2px solid var(--gold); padding-bottom: 4px; transition: all 0.3s;
}
.post-card-more svg { width: 14px; height: 14px; }
.post-card-more:hover { color: var(--ink); border-color: var(--ink); gap: 16px; }

/* --- Artículo (ficha /blog/<slug>/) -------------------------------------- */
.article { background: var(--cream); }

/* Cabecera del artículo: título más contenido + metadatos */
.page-article .page-hero-title { font-size: 28px; line-height: 1.15; max-width: 940px; }
@media (min-width: 1024px) { .page-article .page-hero-title { font-size: 40px; } }
.page-article .breadcrumb { flex-wrap: nowrap; overflow: hidden; }
.page-article .breadcrumb-current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 11px;
  letter-spacing: 0.18em; color: var(--text-muted);
}
.article-meta svg { width: 14px; height: 14px; color: var(--gold-dark); }
.article-meta-sep { color: var(--gold); }

.article-cover { position: relative; margin: 0 0 48px; aspect-ratio: 16/7; overflow: hidden; background: var(--stone); border-bottom: 3px solid var(--gold); }
@media (max-width: 767px) { .article-cover { aspect-ratio: 16/10; margin-bottom: 32px; } }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .article-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; } }

.article-body { max-width: 820px; }
.article-body > p { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.85; color: var(--text-body); margin-bottom: 24px; }
.article-body > p:first-of-type { font-size: 18px; line-height: 1.8; color: var(--charcoal); }
.article-body h2 {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 700;
  font-size: 26px; line-height: 1.15; color: var(--charcoal); margin: 40px 0 16px;
}
.article-body h3 {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 600;
  font-size: 20px; line-height: 1.2; color: var(--charcoal);
  margin: 32px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.8; color: var(--text-body); margin-bottom: 10px; }
.article-body blockquote {
  margin: 36px 0; padding: 22px 28px; border-left: 3px solid var(--gold);
  background: rgba(211,155,72,0.08);
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 17px; line-height: 1.7; color: var(--charcoal);
}
.article-body a { color: var(--gold-dark); text-decoration: underline; word-break: break-word; }
.article-body a:hover { color: var(--ink); }

.article-figure { margin: 36px 0; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.article-figure figcaption { margin-top: 10px; font-family: 'Inter', sans-serif; font-size: 12px; line-height: 1.6; color: var(--text-muted); text-align: center; }

.article-video { position: relative; margin: 36px 0; aspect-ratio: 16/9; background: var(--ink); }
.article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Columna lateral (más artículos) ------------------------------------- */
.article-aside { display: flex; flex-direction: column; gap: 16px; }
.article-aside-title {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 600;
  font-size: 12px; letter-spacing: 0.2em; color: var(--charcoal);
  padding-bottom: 12px; border-bottom: 2px solid var(--gold);
}
.article-aside-list { display: flex; flex-direction: column; }
.article-aside-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.article-aside-item img { width: 72px; height: 56px; object-fit: cover; display: block; }
.article-aside-date { display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 10px; letter-spacing: 0.16em; color: var(--gold-dark); margin-bottom: 4px; }
.article-aside-item a { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 600; font-size: 12px; line-height: 1.35; color: var(--charcoal); }
.article-aside-item a:hover { color: var(--gold-dark); }

/* --- Navegación anterior / siguiente ------------------------------------- */
.article-nav { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .article-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article-nav-link { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); transition: all 0.3s; }
.article-nav-link:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,15,15,0.08); }
.article-nav-label { display: inline-flex; align-items: center; gap: 8px; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 10px; letter-spacing: 0.2em; color: var(--gold-dark); }
.article-nav-label svg { width: 13px; height: 13px; }
.article-nav-title { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--charcoal); }
.article-nav-link--next { align-items: flex-end; text-align: right; }
.article-nav-link--next .article-nav-label { flex-direction: row-reverse; }

.article-back { margin-top: 32px; }

