/* ============================================================
   IMAM en Español — Article / News / Book Detail Page
   ============================================================ */

.article-page { background: var(--bg); min-height: 60vh; }

/* Full-width hero image */
.article-hero { width: 100%; max-height: 460px; overflow: hidden; }
.article-hero__img { width: 100%; max-height: 460px; object-fit: cover; display: block; }

/* Body wrapper */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* Header */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

/* Content typography — generous line-height for Spanish text */
.article-content {
  font-size: 1.02rem;
  line-height: 1.92;
  color: var(--text);
}

.article-content p { margin-bottom: 1.25em; }

.article-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--blue);
  margin: 2em 0 0.65em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-border);
}

.article-content h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue);
  margin: 1.6em 0 0.5em;
}

.article-content h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 1.4em 0 0.4em; }
.article-content strong { font-weight: 600; }
.article-content em     { font-style: italic; }
.article-content a      { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold-border); }
.article-content a:hover { color: var(--blue-dark); }

.article-content ul, .article-content ol { padding-left: 1.6em; margin-bottom: 1.25em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.5em; }

.article-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 1.8em 0;
  padding: 0.8em 1.4em;
  background: var(--bg-warm);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-content figure       { margin: 1.8em 0; text-align: center; }
.article-content figure img   { max-width: 100%; border-radius: 10px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.article-content figcaption   { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.article-content img          { max-width: 100%; height: auto; border-radius: 10px; }

.article-content .alignright  { float: right; margin: 0 0 1em 1.5em; max-width: 280px; }
.article-content .alignleft   { float: left;  margin: 0 1.5em 1em 0; max-width: 280px; }
.article-content .aligncenter { display: block; margin: 1em auto; }

/* === BOOK DETAIL LAYOUT === */
.book-detail {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 36px;
}
.book-detail__cover {
  position: sticky;
  top: 24px;
}
.book-detail__cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(26,81,168,0.18);
  display: block;
}
.book-detail__cover-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.book-detail__cover-actions .btn-gold,
.book-detail__cover-actions .btn-pdf {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  padding: 10px 14px;
}
.btn-pdf {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  transition: opacity 0.15s;
}
.btn-pdf:hover { opacity: 0.85; }
.book-detail__author {
  font-size: 1rem;
  color: var(--blue);
  font-style: italic;
  margin-bottom: 16px;
}
.book-detail__description {
  font-size: 0.97rem;
  line-height: 1.85;
}
.book-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Responsive */
@media (max-width: 700px) {
  .article-body   { padding: 28px 18px 56px; }
  .article-title  { font-size: 1.55rem; }
  .article-hero   { max-height: 260px; }
  .article-hero__img { max-height: 260px; }
  .article-content .alignright, .article-content .alignleft { float: none; margin: 1em 0; max-width: 100%; }
  .book-detail { grid-template-columns: 1fr; gap: 24px; }
  .book-detail__cover { position: static; max-width: 200px; }
  .book-detail__cover-actions { flex-direction: row; flex-wrap: wrap; }
}
