/* ==============================================================
   BLOG & CONTENT — extiende style.css, mismos tokens de diseño
================================================================== */

/* Breadcrumbs */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-faint);
  padding: 128px 0 0;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span.sep { opacity: 0.5; }
.breadcrumbs span.current { color: var(--gold); }

/* ---------- BLOG HERO (index de blog) ---------- */
.blog-hero { padding: 60px 0 70px; text-align: center; }
.blog-hero .section-title { margin: 0 auto 18px; }
.blog-hero .section-subtitle { margin: 0 auto; }

/* ---------- BLOG GRID / CARDS ---------- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 20px;
}
.blog-card {
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .3s, border-color .3s;
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.blog-card-image {
  width: 100%; aspect-ratio: 16/9; background: var(--ink-3);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; position: relative; overflow: hidden;
}
.blog-card-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2;
}
.blog-card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
}
.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600; color: var(--cream); line-height: 1.3;
}
.blog-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.blog-card-meta { font-size: 0.72rem; color: var(--text-faint); margin-top: 4px; }
.blog-card.pillar { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; }
.blog-card.pillar .blog-card-image { aspect-ratio: auto; height: 100%; }
.blog-card.pillar .blog-card-title { font-size: 1.8rem; }
.blog-card-badge {
  display: inline-block; background: var(--gold-dim); color: var(--gold);
  border: 1px solid var(--border); font-size: 0.68rem; font-weight: 600;
  padding: 4px 12px; border-radius: 99px; letter-spacing: 1px; text-transform: uppercase;
  width: fit-content; margin-bottom: 4px;
}

/* ---------- HOME: bloque de blog al final del index ---------- */
.home-blog { padding: 120px 0; background: var(--ink-2); }
.home-blog-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 56px;
}
.home-blog-header .section-title { margin-bottom: 8px; }
.home-blog-viewall {
  color: var(--gold); text-decoration: none; font-size: 0.85rem; font-weight: 500;
  white-space: nowrap; padding-bottom: 6px; border-bottom: 1px solid var(--border);
  transition: border-color .2s;
}
.home-blog-viewall:hover { border-color: var(--gold); }

/* ---------- ARTICLE PAGE ---------- */
.article-hero { padding: 24px 0 56px; }
.article-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.article-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 0.78rem; color: var(--text-faint); margin-top: 24px; flex-wrap: wrap;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }
.article-cover {
  max-width: 1000px; margin: 0 auto 0; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.article-cover img { width: 100%; display: block; }

.article-body {
  max-width: 720px; margin: 0 auto; padding: 64px 24px 40px;
}
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--cream);
  margin: 48px 0 20px; line-height: 1.25;
}
.article-body h2 em, .article-body h3 em { font-style: italic; color: var(--gold); }
.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600; color: var(--cream);
  margin: 34px 0 14px;
}
.article-body p { font-size: 1rem; color: var(--text); opacity: 0.92; line-height: 1.85; margin-bottom: 20px; font-weight: 300; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.article-body li { font-size: 0.97rem; color: var(--text); opacity: 0.92; line-height: 1.7; font-weight: 300; }
.article-body a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.article-body a:hover { text-decoration-color: var(--gold); }
.article-body strong { color: var(--cream); font-weight: 600; }
.article-body blockquote {
  border-left: 2px solid var(--gold); padding: 4px 0 4px 24px; margin: 32px 0;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.25rem;
  color: var(--gold-pale); line-height: 1.6;
}

/* Table of contents */
.toc {
  background: var(--ink-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 30px; margin: 0 0 12px;
}
.toc-title {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: 0.87rem; }
.toc li::before { content: counter(toc) '. '; color: var(--gold); font-weight: 600; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--gold); }

/* Inline WhatsApp CTA dentro del artículo */
.article-cta {
  background: linear-gradient(145deg, rgba(200,150,62,0.1), var(--ink-3));
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
  padding: 36px 34px; margin: 44px 0; text-align: center;
}
.article-cta-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600;
  color: var(--cream); margin-bottom: 10px;
}
.article-cta p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; max-width: 460px; margin-left: auto; margin-right: auto; }
.article-cta .btn-wa { max-width: 320px; margin: 0 auto; }

/* Tags */
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 36px 0; }
.article-tag {
  font-size: 0.75rem; color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 99px; padding: 5px 14px;
}

/* Author box */
.article-author {
  display: flex; align-items: center; gap: 16px; padding: 24px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 36px 0;
}
.article-author-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--gold-dim);
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.article-author-name { font-weight: 500; color: var(--cream); font-size: 0.92rem; }
.article-author-role { font-size: 0.78rem; color: var(--text-muted); }

/* Related articles */
.related { max-width: 1140px; margin: 0 auto; padding: 20px 24px 100px; }
.related-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600;
  color: var(--cream); margin-bottom: 28px; text-align: center;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ==============================================================
   ACTIVITY TOAST — notificaciones de "actividad reciente" (index)
================================================================== */
#activityToast {
  position: fixed; bottom: 28px; left: 28px; z-index: 98;
  max-width: 340px;
}
.activity-toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity .35s ease, transform .35s ease;
}
.activity-toast.visible { opacity: 1; transform: translateY(0) scale(1); }
.activity-toast-icon {
  color: var(--gold); font-size: 1rem; line-height: 1; flex-shrink: 0; margin-top: 2px;
}
.activity-toast-body { flex: 1; min-width: 0; }
.activity-toast-text { font-size: 0.82rem; color: var(--cream); line-height: 1.4; }
.activity-toast-time { font-size: 0.7rem; color: var(--text-faint); margin-top: 4px; }
.activity-toast-close {
  background: none; border: none; color: var(--text-faint); cursor: pointer;
  font-size: 0.8rem; padding: 2px; line-height: 1; flex-shrink: 0;
}
.activity-toast-close:hover { color: var(--gold); }
@media (max-width: 768px) {
  #activityToast { left: 16px; right: 16px; bottom: 100px; max-width: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .blog-card.pillar { grid-column: span 2; grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.pillar { grid-column: span 1; }
  .related-grid { grid-template-columns: 1fr; }
  .article-body { padding: 44px 20px 20px; }
  .breadcrumbs { padding: 108px 20px 0; }
  .home-blog-header { flex-direction: column; align-items: flex-start; }
}
