/* ============================================================
   VERTEX — blog.css
   Estilos específicos del blog. Complementa style.css (reutiliza
   sus variables: --gold, --bg, --surface, .btn, .section, etc.)
   ============================================================ */

/* ─── OFFSET NAV (páginas sin hero) ─────────────────────────── */
.blog-body { padding-top: var(--nav-h); }

/* La navbar del blog siempre lleva fondo (no hay hero detrás) */
.navbar.navbar-solid {
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

/* ─── CABECERA DEL ÍNDICE ───────────────────────────────────── */
.blog-hero {
  padding: 72px 0 48px;
  text-align: center;
}
.blog-hero .breadcrumb { margin-bottom: 20px; }

.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--silver); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ─── GRID DE POSTS ─────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding-bottom: 100px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.post-card:hover {
  border-color: rgba(232,255,0,0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.post-card a.post-card-link { display: flex; flex-direction: column; height: 100%; }

.post-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg2);
}
.post-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.05); }

.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.post-meta .dot { color: var(--gold); }

.post-card h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
}
.post-card:hover h2 { color: var(--gold); }

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232,255,0,0.35);
  border-radius: 999px;
  padding: 4px 12px;
}

.post-readmore {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}

/* ─── ARTÍCULO ──────────────────────────────────────────────── */
.article {
  max-width: 760px;      /* ~70ch de cuerpo */
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.article-header { margin-bottom: 36px; }
.article-header .breadcrumb { margin-bottom: 24px; }

.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.article-meta .dot { color: var(--gold); }
.article-meta .article-tag { color: var(--gold); }

.article-hero {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 32px 0 8px;
}

/* Cuerpo */
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article-body p { margin: 0 0 22px; }
.article-body strong { color: var(--white); }

.article-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 48px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);   /* barra/acento amarillo */
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 34px 0 14px;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 20px 26px;
  background: var(--bg2);
  border-left: 4px solid var(--gold);    /* acento amarillo */
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
}

.article-body ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.article-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.article-body figure { margin: 32px 0; }
.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ─── CTA FINAL DEL ARTÍCULO ────────────────────────────────── */
.article-cta {
  margin: 56px auto 0;
  max-width: 760px;
  background: var(--bg2);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-gold);
}
.article-cta h3 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.article-cta p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 520px;
  margin: 0 auto 26px;
}
.article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  background: #25D366;
  color: #fff;
  transition: var(--transition);
}
.btn-whatsapp-cta:hover { background: #1ebe57; transform: translateY(-2px); }
.btn-whatsapp-cta svg { width: 20px; height: 20px; fill: currentColor; }

/* ─── SECCIÓN BLOG EN HOME (one-page) ───────────────────────── */
.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.blog-home-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.blog-home-card:hover {
  border-color: rgba(232,255,0,0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.blog-home-card .card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg2); }
.blog-home-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-home-card:hover .card-media img { transform: scale(1.05); }
.blog-home-card .card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-home-card .card-meta {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blog-home-card .card-meta .dot { color: var(--gold); }
.blog-home-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 8px;
}
.blog-home-card:hover h3 { color: var(--gold); }
.blog-home-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.55; flex: 1; }

/* Tarjeta "Próximamente" desactivada */
.blog-home-card.is-soon {
  opacity: 0.5;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 220px;
  border-style: dashed;
}
.blog-home-card.is-soon .soon-icon {
  width: 40px; height: 40px; margin: 0 auto 14px;
  color: var(--text-muted);
}
.blog-home-card.is-soon .soon-label {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tarjeta "Ver todos" */
.blog-home-card.is-all {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 220px;
  background: linear-gradient(135deg, var(--gold-glow) 0%, var(--surface) 60%);
}
.blog-home-card.is-all .all-inner {
  padding: 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.blog-home-card.is-all:hover .all-inner { color: var(--gold); }
.blog-home-card.is-all .all-arrow { color: var(--gold); display: block; margin-top: 8px; font-size: 1.4rem; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article { padding: 40px 20px 72px; }
  .article-cta { padding: 32px 22px; }
}
