/* ── Artículo individual ─────────────────────────────────────────────────── */

/* Nota: Playfair Display y Lora se cargan vía @import en styles.css */

.article-main { padding: 1.5rem 0 3rem; }

.layout-grid--article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .layout-grid--article { grid-template-columns: 1fr; }
}

/* Cabecera */
.article-header { margin-bottom: 1.5rem; }
.article-cat    { margin-bottom: .6rem; }
.article-title  {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin: .4rem 0 .8rem;
}
.article-excerpt {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.55;
  margin-bottom: 1rem;
  font-style: italic;
}
.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: .7rem;
}

/* Imagen destacada */
.article-featured-img {
  margin: 0 0 1.8rem;
  border-radius: 6px;
  overflow: hidden;
}
.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}
.article-featured-img figcaption {
  font-size: .78rem;
  color: #888;
  padding: .4rem .6rem;
  background: #f8f8f8;
}

/* Contenido */
.article-content {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}
.article-content p  { margin-bottom: 1.2rem; }
.article-content h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .6rem; }
.article-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.article-content ul,
.article-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-content li { margin-bottom: .4rem; }
.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1.5rem 0;
  padding: .8rem 1.2rem;
  background: #f5f7fa;
  font-style: italic;
  color: #555;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

/* Footer del artículo */
.article-footer  { margin-top: 2rem; padding-top: 1.2rem; border-top: 2px solid #eee; }
.article-tags    { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Compartir */
.article-share {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
}
.article-share__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-right: .25rem;
}
.article-share__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: opacity .18s, transform .18s;
}
.article-share__icon svg { width: 20px; height: 20px; }
.article-share__icon:hover { opacity: .85; transform: translateY(-2px); }
.article-share__icon--wa { background: #25d366; }
.article-share__icon--fb { background: #1877f2; }
.article-share__icon--tw { background: #000; }
.article-share__icon--li { background: #0a66c2; }

/* ── Caja de autor ──────────────────────────────────────────────────────── */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: #f5f7fa;
  border-radius: 8px;
  border-left: 3px solid var(--color-primary, #0057a8);
}
.author-box__avatar-link { flex-shrink: 0; }
.author-box__avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.author-box__info { flex: 1; min-width: 0; }
.author-box__label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 2px;
}
.author-box__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-text, #111);
  text-decoration: none;
  display: block;
}
.author-box__name:hover { color: var(--color-primary, #0057a8); }
.author-box__date {
  display: block;
  font-size: .76rem;
  color: #888;
  margin-top: 3px;
}
.author-box__updated {
  font-size: .73rem;
  color: var(--color-primary, #0057a8);
  margin-top: 2px;
  font-style: italic;
}
.author-box__bio {
  font-size: .80rem;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .author-box { flex-direction: column; text-align: center; }
  .author-box__avatar { width: 60px !important; height: 60px !important; }
}
