/* =========================
   ARTICLE CARD
=========================
*/

.article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

/* =========================
   META
========================= */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: #64748b;
}

/* =========================
   TAGS (FIX DEFINITIVO)
========================= */

.article-meta .tag,
.article-footer .tag {
  display: inline-block !important;
  background: #e2e8f0 !important;
  color: #1f2937 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1;
}

.date {
  margin-left: 0.25rem;
}

/* =========================
   TITLES
========================= */

.article-title {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #0f172a;
}

/* =========================
   IMAGE
========================= */

.article-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
  margin: 1rem 0 1.5rem;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   CONTENT (TIPOGRAFÍA PRO)
========================= */

.article-content {
  max-width: 720px;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 1.2rem;
}

/* fallback si no usas article-content */
.article-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 1.2rem;
}

/* =========================
   META EXTRA
========================= */

.reading-time,
.author {
  margin-left: 0.25rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .article-card {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .article-image {
    height: 200px;
  }

  .article-content {
    max-width: 100%;
  }

}

body.blog-page .article-meta {
  position: static !important;
}

body.blog-page .article-meta span.tag {
  position: static !important;
  display: inline-flex !important;
}

