/* ==========================================================================
   Blog & Article Styles
   ========================================================================== */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin: 36px 0 14px;
}

.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 26px 0 10px;
}

.article-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--ink);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.post-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--thread-ui);
  background: var(--canvas-deep);
  padding: 5px 10px;
  border-radius: 4px;
}

.post-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 10px -4px rgba(21, 33, 58, 0.08);
  margin-bottom: 4px;
}

.post-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
}

.post-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.article-body a:not(.btn):not(.btn-outline-ink):not(.btn-whatsapp):not(.btn-ghost-dark) {
  color: var(--thread-ui);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a.link {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--thread-ui);
  border-bottom: 1px solid var(--thread-ui);
  align-self: flex-start;
  padding-top: 4px;
  text-decoration: none;
}

/* Tablas comparativas dentro de artículos */
.article-body .table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(16, 43, 67, 0.04);
}

.article-body .compare-table {
  width: 100%;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.article-body .compare-table th,
.article-body .compare-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  vertical-align: top;
}

.article-body .compare-table thead th,
.article-body table.compare-table thead th,
.article-body table.compare-table tr:first-child th {
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--thread-ui);
}

.article-body table.compare-table tbody tr td:first-child {
  background: var(--canvas-deep) !important;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 0.9rem;
  width: 25%;
  min-width: 140px;
  border-right: 2px solid var(--line) !important;
  border-bottom-color: var(--line) !important;
}

.article-body table.compare-table tbody tr:hover td:first-child {
  background: #eaeef5 !important;
}

.article-body table.compare-table tbody td {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .article-body .compare-table {
    min-width: 540px;
  }
  .article-body .compare-table th,
  .article-body .compare-table td {
    padding: 12px 14px;
    font-size: 0.84rem;
  }
}

.closing-cta {
  background: var(--canvas-deep);
  border-radius: 8px;
  padding: 24px;
  margin-top: 32px;
}

.closing-cta p {
  color: var(--ink);
  margin-bottom: 14px;
}
