/* El Alma y la Alquimia — blog (listado + artículo)
   Se carga junto a style.css: reutiliza sus variables, tipografías y
   componentes (.nav, .footer, .eaa-link, botones) para mantener coherencia
   con el resto del sitio. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- CABECERA DEL BLOG ---------- */
.blog-hero {
  --blog-gold: #D6B36A;
  --blog-ink: #F8F3E9;
  --blog-ink-soft: #C7BECE;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.blog-hero__bg {
  position: absolute;
  inset: -15% 0;
  background: url("/img/hero-blog-3.webp") center/cover no-repeat;
}
.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13, 9, 6, 0.38), rgba(13, 9, 6, 0.45));
}
.blog-hero__content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 220px;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .blog-hero__bg { transform: none !important; }
}
.blog-hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blog-gold);
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--blog-ink);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.blog-hero p {
  font-size: 16.5px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  color: var(--blog-ink-soft);
  max-width: 600px;
  margin: 0 auto;
}
.blog-hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 32px auto;
}
.blog-hero__divider-line {
  width: 64px;
  height: 1px;
  background: rgba(214, 179, 106, 0.45);
}
.blog-hero__divider svg {
  color: var(--blog-gold);
  flex: none;
}
.blog-hero__search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-lavender);
  border-radius: 4px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.blog-hero__search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 0;
}
.blog-hero__search input::placeholder {
  color: var(--ink-soft);
}
.blog-hero__search input:focus {
  outline: none;
}
.blog-hero__search-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #3A4A38;
  color: #F2E9D8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.blog-hero__search-btn:hover,
.blog-hero__search-btn:focus-visible {
  background: #2E3B2C;
}
.blog-hero__no-results {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}
.blog-hero__no-results.is-visible {
  display: block;
}

/* ---------- AREAS / CATEGORIAS ---------- */
.blog-areas {
  max-width: 1000px;
  margin: 0 auto 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.blog-area-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--border-lavender-2);
  border-radius: 20px;
  padding: 7px 16px;
}

/* ---------- LISTADO DE ARTICULOS ---------- */
.blog-list {
  width: 100%;
  padding: 64px 24px;
}
.blog-list__layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 48px;
  align-items: start;
}
.blog-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.blog-list__load-more {
  display: block;
  margin: 28px auto 0;
  padding: 11px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-lavender-2);
  border-radius: 30px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.blog-list__load-more[hidden] { display: none; }
.blog-list__load-more:hover,
.blog-list__load-more:focus-visible {
  background: var(--bg-lavender);
  border-color: var(--accent);
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}
.post-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.post-card__body {
  padding: 16px 18px 18px;
  min-width: 0;
}
.post-card__meta {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.post-card__category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(46% 0.01 85);
}
.post-card__dot {
  color: oklch(46% 0.01 85);
  font-size: 10px;
}
.post-card__read-time {
  font-size: 10.5px;
  font-weight: 500;
  color: oklch(46% 0.01 85);
  white-space: nowrap;
}
.post-card__title {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
}
.post-card__excerpt {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__link {
  font-size: 13px;
  font-weight: 600;
  color: oklch(28% 0.01 85);
}

/* ---------- SIDEBAR: DESTACADOS ---------- */
.blog-list__sidebar {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
.blog-list__sidebar-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 18px;
}
.blog-list__featured {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.blog-list__featured-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.blog-list__featured-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.blog-list__featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-list__featured-link:hover .blog-list__featured-title,
.blog-list__featured-link:focus-visible .blog-list__featured-title {
  color: var(--accent);
}
.blog-list__featured-category {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.blog-list__featured-title {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  transition: color 150ms ease;
}

/* ---------- ARTICULO ---------- */
.article-hero {
  width: 100%;
  background: var(--bg-lavender);
  padding: 48px 24px 0;
}
.article-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 40px;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.article-hero__category {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.article-hero__dot {
  color: var(--ink-softer);
}
.article-hero__read-time {
  font-size: 13px;
  color: var(--ink-softer);
  font-weight: 600;
}
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.22;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.article-hero__img {
  width: 100%;
  height: auto;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.article-hero__img-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.article {
  width: 100%;
  padding: 56px 24px 72px;
}
.article__body {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-body);
}
.article__body h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 44px 0 16px;
}
.article__body h2:first-child { margin-top: 0; }
.article__h2--center { text-align: center; }
.article__body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article__body p {
  margin: 0 0 18px;
}
.article__body ul,
.article__body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.article__body li {
  margin-bottom: 8px;
}
.article__body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-quote);
}
.article__body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.article__body strong {
  color: var(--ink);
}

.psalm-source {
  text-align: center;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-softer);
  margin: 0 0 18px;
}
.psalm-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.psalm-box__title {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 20px;
}
.psalm-box__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.psalm-box p {
  margin: 0 0 18px;
}
.psalm-box__cols p {
  font-size: 13.5px;
  line-height: 1.6;
}
.psalm-box__cols p:last-child {
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.psalm-box p:last-child {
  margin-bottom: 0;
}

.article-related {
  max-width: 700px;
  margin: 0 auto;
  padding: 8px 24px 0;
}
.article-related h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 16px;
}
.article-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: var(--accent);
  transform: translateX(3px);
}
.related-card__media {
  flex: none;
  width: 96px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-lavender);
  border-radius: 6px;
  overflow: hidden;
}
.related-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.related-card__body {
  min-width: 0;
}
.related-card__category {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(46% 0.01 85);
  margin-bottom: 4px;
}
.related-card__title {
  display: block;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}

.article-cta {
  width: 100%;
  background: var(--bg-lavender);
  padding: 56px 24px;
  text-align: center;
}
.article-cta__inner {
  max-width: 700px;
  margin: 0 auto;
}
.article-cta h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
}
.article-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.article-cta .btn-whatsapp {
  padding: 14px 30px;
  font-size: 15px;
}

/* ---------- VIDEO RELACIONADO (miniatura + modal) ---------- */
.article-video {
  margin: 8px 0 28px;
}
.article-video__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: #171126;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.article-video__thumb:hover,
.article-video__thumb:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}
.article-video__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 70%);
}
.article-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(13, 10, 24, 0.55);
  border: 1px solid #D6B36A;
  color: #F2DCAA;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-video__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  color: #F8F3E9;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
}

.article-video-modal[hidden] {
  display: none;
}
.article-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.article-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 10, 24, 0.85);
}
.article-video-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.article-video-modal__frame,
.article-video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.article-video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(214, 179, 106, 0.4);
  background: rgba(13, 10, 24, 0.6);
  color: #F2DCAA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.article-video-modal__close:hover,
.article-video-modal__close:focus-visible {
  border-color: #F2DCAA;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .blog-hero__content { padding: 56px 20px 130px; }
  .blog-hero__divider-line { width: 36px; }
  .blog-hero__search { padding: 6px 6px 6px 16px; }
  .blog-list { padding: 48px 20px; }
  .blog-list__layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-list__sidebar { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 28px; }
  .blog-list__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .article-hero { padding: 40px 20px 0; }
  .article-hero__img-wrap { padding: 0 20px 40px; }
  .article { padding: 44px 20px 56px; }
  .article__body { font-size: 16px; }
  .article__body h2 { font-size: 23px; }
  .article-cta { padding: 24px 20px; }
  .article-related { padding: 8px 20px 0; }
  .psalm-box { padding: 24px 20px; }
  .psalm-box__cols { grid-template-columns: 1fr; gap: 0; }
  .psalm-box__cols p:last-child { border-left: none; padding-left: 0; }
}
