/* =============================================
   HECHOSRD — Estilos de la página de artículo
   ============================================= */

.article-main {
  padding: 40px 0 60px;
  background: var(--paper);
}

.article-container {
  max-width: 1100px;
}

/* Layout de 2 columnas en artículo (contenido + sidebar) */
@media (min-width: 900px) {
  .article-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
  }
  .article { grid-column: 1; }
  .related-section { grid-column: 1 / -1; }
}

/* Breadcrumb */
.article__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faded);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article__breadcrumb a { color: var(--navy); transition: color .2s; }
.article__breadcrumb a:hover { color: var(--red); }

/* Categoría badge */
.article__category { margin-bottom: 16px; }
.article__category a {
  display: inline-block;
  padding: 5px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
}

/* Título */
.article__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -.03em;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 144;
}

/* Lead */
.article__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  border-left: 4px solid var(--red);
  padding-left: 18px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-style: italic;
}

/* Meta */
.article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.article__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article__author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.article__author strong { display: block; font-size: 14px; }
.article__author time, .article__author div { font-size: 12px; color: var(--ink-faded); font-family: var(--mono); }

/* Botones de compartir */
.article__share {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  color: #fff;
}
.share-btn--wa { background: #25D366; }
.share-btn--wa:hover { background: #1da851; transform: translateY(-1px); }
.share-btn--fb { background: #1877f2; }
.share-btn--fb:hover { background: #0f5bbf; transform: translateY(-1px); }
.share-btn--tw { background: #000; }
.share-btn--tw:hover { background: #333; transform: translateY(-1px); }

/* Imagen portada */
.article__image {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.article__image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.article__image figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-faded);
  text-align: right;
  font-family: var(--mono);
  background: var(--bg);
}

/* Contenido del artículo */
.article__content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 40px;
}
.article__content p {
  margin-bottom: 20px;
}
.article__content h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.article__content h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}
.article__content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--navy);
}
.article__content strong { font-weight: 700; color: var(--ink); }
.article__content em { font-style: italic; }
.article__content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article__content a:hover { color: var(--red-dark); }
.article__content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px auto;
  box-shadow: var(--shadow);
}
.article__content blockquote {
  border-left: 5px solid var(--red);
  margin: 28px 0;
  padding: 8px 20px;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
}
.article__content ul, .article__content ol {
  padding-left: 28px;
  margin-bottom: 20px;
}
.article__content ul { list-style: disc; }
.article__content ol { list-style: decimal; }
.article__content li { margin-bottom: 8px; }
.article__content figure { margin: 28px 0; }
.article__content figcaption {
  font-size: 13px;
  color: var(--ink-faded);
  text-align: center;
  font-family: var(--mono);
  margin-top: 8px;
}
.article__content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin: 24px 0;
}

/* Pie del artículo */
.article__footer {
  padding: 24px 0;
  border-top: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.article__tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.article__share--bottom {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Relacionadas */
.related-section {
  padding-top: 48px;
  border-top: 2px solid var(--navy);
  position: relative;
}
.related-section::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 60px; height: 4px;
  background: var(--red);
}
.related-section__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

/* Category banner */
.category-banner {
  background: var(--navy);
}

@media (max-width: 860px) {
  .article__meta { flex-direction: column; align-items: flex-start; }
  .article__share { flex-wrap: wrap; }
  .article__footer { flex-direction: column; align-items: flex-start; }
  .article__title { font-size: 28px; }
  .article__lead { font-size: 16px; }
  .article__content { font-size: 16px; }
  .article-main { padding: 24px 0 40px; }
}
