/* ============================================================
   BLOG STYLES — Mi Estrategia
   ============================================================ */

/* Article body typography */
.blog-article {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2d3748;
}

.blog-article h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0062ce;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8eef8;
}

.blog-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2744;
  margin-top: 32px;
  margin-bottom: 12px;
}

.blog-article p {
  margin-bottom: 20px;
}

.blog-article ul,
.blog-article ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.blog-article li {
  margin-bottom: 8px;
}

.blog-article strong {
  color: #1a2744;
  font-weight: 700;
}

.blog-article em {
  font-style: italic;
  color: #555;
}

.blog-article a {
  color: #0062ce;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article a:hover {
  color: #317EFE;
}

.blog-article table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,98,206,.08);
}

.blog-article blockquote {
  border-left: 4px solid #317EFE;
  padding: 16px 20px;
  margin: 24px 0;
  background: #f0f6ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #444;
}

/* Blog index cards */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,98,206,.14);
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__category {
  font-size: 11px;
  font-weight: 700;
  color: #0062ce;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a2744;
  margin-bottom: 10px;
  line-height: 1.35;
  text-decoration: none;
}

.blog-card__title:hover { color: #0062ce; }

.blog-card__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: auto;
}

.blog-card__read-more {
  color: #0062ce;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card__read-more:hover { color: #317EFE; }

/* Blog hero */
.blog-hero h1 { letter-spacing: -0.5px; }

/* ── Texto blanco en fondos azules ─────────────────────────── */

/* Hero del artículo (gradiente azul) */
.blog-hero,
.blog-hero *:not(a) {
  color: #fff !important;
}

/* CTA box azul al final de cada artículo */
.blog-cta-box,
.blog-cta-box p,
.blog-cta-box h3 {
  color: #fff !important;
}

/* Encabezados de tabla con fondo azul */
.blog-article thead th,
.blog-article thead td {
  color: #fff !important;
}

/* strong dentro de .blog-article que caiga dentro de blue areas */
.blog-hero strong,
.blog-cta-box strong {
  color: #fff !important;
}

/* footer links sobre fondo azul (heredado del template) */
.footer__area-common a,
.footer__area-common p,
.footer__area-common span,
.footer__area-common li {
  color: rgba(255,255,255,.85);
}
.footer__area-common a:hover {
  color: #fff;
}

/* Related articles hover */
.blog-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,98,206,.12);
}

/* Table of contents (optional) */
.blog-toc {
  background: #f0f6ff;
  border-left: 3px solid #0062ce;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.blog-toc h4 {
  font-weight: 700;
  color: #0062ce;
  margin-bottom: 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc ul li { margin-bottom: 6px; }

.blog-toc ul li a {
  color: #1a2744;
  font-size: 0.9rem;
  text-decoration: none;
}

.blog-toc ul li a:hover { color: #0062ce; text-decoration: underline; }

/* Category filter chips */
.category-chip {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  background: #f0f4f8;
  color: #555 !important;
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.category-chip:hover {
  background: #dce8fc;
  color: #0062ce !important;
  border-color: #b8d0f8;
}

.category-chip.active,
.category-chip.active:hover {
  background: #0062ce !important;
  color: #ffffff !important;
  border-color: #0062ce !important;
}
