/* ════════════════════════════════════════════════════════════════
   BLOG — Fundación Semilla de Amor y Fe
   Hoja de estilos del blog (complementa style.css)
   ════════════════════════════════════════════════════════════════ */

/* ── Hero del blog ─────────────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: calc(var(--section-py) + 3rem) var(--container-px) var(--section-py);
  background: var(--grad-hero);
  text-align: center;
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(245,158,11,0.18), transparent 60%),
    radial-gradient(500px circle at 80% 30%, rgba(124,58,237,0.35), transparent 60%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.blog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 1.25rem;
  padding: 0.4rem 1rem; border-radius: 2rem;
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.08; margin-bottom: 1.25rem;
}
.blog-hero h1 .accent { color: var(--gold-400); }
.blog-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78); line-height: 1.7; max-width: 620px; margin: 0 auto;
}
.blog-hero .verse {
  margin-top: 1.75rem; font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: var(--gold-100);
}

.wave-blog {
  display: block; line-height: 0; background: var(--grad-hero);
}
.wave-blog svg { width: 100%; height: 70px; display: block; }

/* ── Layout general ────────────────────────────────────────────── */
.blog-main { background: var(--gray-900); padding: var(--section-py) 0; }
.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--container-px); }

.blog-section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.blog-section-head .label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-500);
}
.blog-section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; margin: 0.5rem 0 0.75rem; color: var(--white);
}
.blog-section-head p { color: var(--gray-400); line-height: 1.7; }

/* ── Filtros / categorías ─────────────────────────────────────── */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 3rem;
}
.blog-filter {
  padding: 0.5rem 1.15rem; border-radius: 2rem; font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); cursor: pointer;
  transition: all var(--transition-fast);
}
.blog-filter:hover { color: var(--white); border-color: var(--gold-400); }
.blog-filter.active { background: var(--grad-gold); color: #1e1b4b; border-color: transparent; }

/* ── Artículo destacado ───────────────────────────────────────── */
.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-bottom: 4.5rem;
  border-radius: 1.5rem; overflow: hidden;
  background: var(--grad-card); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.featured-post:hover { box-shadow: var(--shadow-lg); }
.featured-media { position: relative; min-height: 340px; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.featured-post:hover .featured-media img { transform: scale(1.05); }
.featured-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: 0.35rem 0.9rem; border-radius: 2rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; background: var(--grad-gold); color: #1e1b4b;
}
.featured-body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.featured-body .meta { font-size: 0.8rem; color: var(--gold-400); margin-bottom: 0.85rem; }
.featured-body h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--white);
}
.featured-body p { color: var(--gray-400); line-height: 1.7; margin-bottom: 1.5rem; }
.read-link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600;
  color: var(--gold-400); transition: gap var(--transition-fast);
}
.read-link:hover { gap: 0.85rem; }

/* ── Grid de artículos ────────────────────────────────────────── */
.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 2rem;
}
.post-card {
  display: flex; flex-direction: column; border-radius: 1.25rem; overflow: hidden;
  background: var(--grad-card); border: 1px solid var(--glass-border);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(245,158,11,0.4); }
.post-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-tag {
  position: absolute; top: 0.85rem; left: 0.85rem;
  padding: 0.3rem 0.8rem; border-radius: 2rem; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #1e1b4b;
}
.tag-reflexion { background: linear-gradient(135deg,#a78bfa,#7c3aed); color: #fff; }
.tag-devocional { background: var(--grad-gold); }
.tag-testimonio { background: var(--grad-emerald); color: #fff; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-body .meta { font-size: 0.76rem; color: var(--gold-400); margin-bottom: 0.6rem; }
.post-body h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 0.75rem; color: var(--white);
}
.post-body p { font-size: 0.92rem; color: var(--gray-400); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }
.post-footer { display: flex; align-items: center; justify-content: space-between; }
.post-author { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.post-author .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad-purple-gold);
  display: grid; place-items: center; font-size: 0.85rem;
}

/* ── Newsletter / suscripción ─────────────────────────────────── */
.blog-cta {
  margin-top: 4.5rem; text-align: center; padding: clamp(2.5rem, 5vw, 4rem) var(--container-px);
  border-radius: 1.5rem; background: var(--grad-hero); position: relative; overflow: hidden;
}
.blog-cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at 70% 30%, rgba(245,158,11,0.2), transparent 60%);
}
.blog-cta-inner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.blog-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem,3.5vw,2.3rem); font-weight: 700; margin-bottom: 0.85rem; }
.blog-cta p { color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 1.75rem; }
.cta-form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.cta-form input {
  flex: 1; min-width: 220px; padding: 0.9rem 1.2rem; border-radius: 2rem;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; font-size: 0.95rem;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.cta-form button {
  padding: 0.9rem 1.75rem; border-radius: 2rem; border: none; cursor: pointer;
  background: var(--grad-gold); color: #1e1b4b; font-weight: 700; font-size: 0.95rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.cta-form button:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* ════════════════════════════════════════════════════════════════
   PÁGINA DE ARTÍCULO
   ════════════════════════════════════════════════════════════════ */
.article-hero {
  position: relative; padding: calc(var(--section-py) + 3.5rem) var(--container-px) 3.5rem;
  background: var(--grad-hero); text-align: center; overflow: hidden;
}
.article-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px circle at 50% 0%, rgba(245,158,11,0.16), transparent 60%);
}
.article-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.article-cat {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 2rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.article-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.12; margin-bottom: 1.25rem;
}
.article-meta {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  color: rgba(255,255,255,0.7); font-size: 0.88rem;
}
.article-meta .author { display: flex; align-items: center; gap: 0.5rem; }
.article-meta .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad-purple-gold);
  display: grid; place-items: center; font-size: 1rem;
}
.article-meta .dot { opacity: 0.4; }

.article-cover {
  max-width: 900px; margin: -2.5rem auto 0; padding: 0 var(--container-px); position: relative; z-index: 3;
}
.article-cover img {
  width: 100%; border-radius: 1.25rem; box-shadow: var(--shadow-lg); display: block;
}

/* Cuerpo del artículo */
.article-body {
  max-width: 720px; margin: 0 auto; padding: 3rem var(--container-px) var(--section-py);
}
.article-body > * { animation: none; }
.article-body p {
  font-size: 1.12rem; line-height: 1.85; color: #d7d3e8; margin-bottom: 1.5rem;
}
.article-body h2 {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  color: var(--white); margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--gold-100); margin: 2rem 0 0.85rem;
}
.article-body a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: #fff; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.25rem; }
.article-body li { font-size: 1.08rem; line-height: 1.8; color: #d7d3e8; margin-bottom: 0.6rem; }
.article-body .lead {
  font-size: 1.28rem; line-height: 1.7; color: #efeafd; font-weight: 400; margin-bottom: 2rem;
}
.article-body blockquote {
  margin: 2.25rem 0; padding: 1.5rem 1.75rem; border-radius: 1rem;
  border-left: 4px solid var(--gold-500);
  background: var(--grad-card);
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.6; color: var(--gold-100);
}
.article-body blockquote cite { display: block; margin-top: 0.75rem; font-size: 0.9rem; font-style: normal; color: var(--gray-400); }
.verse-box {
  margin: 2.5rem 0; padding: 2rem; border-radius: 1.25rem; text-align: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(245,158,11,0.15));
  border: 1px solid rgba(245,158,11,0.3);
}
.verse-box .v-text { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.55; color: #fff; margin-bottom: 0.75rem; }
.verse-box .v-ref { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }

/* Compartir + autor */
.article-share { display: flex; align-items: center; gap: 0.75rem; margin: 2.5rem 0; flex-wrap: wrap; }
.article-share span { font-size: 0.85rem; color: var(--gray-400); font-weight: 600; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.share-btn:hover { background: var(--grad-gold); transform: translateY(-3px); }
.author-box {
  display: flex; gap: 1.25rem; align-items: center; margin-top: 3rem; padding: 1.75rem;
  border-radius: 1.25rem; background: var(--grad-card); border: 1px solid var(--glass-border);
}
.author-box .avatar-lg {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grad-purple-gold);
  display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0;
}
.author-box h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); margin-bottom: 0.3rem; }
.author-box p { font-size: 0.9rem; color: var(--gray-400); line-height: 1.6; margin: 0; }

/* Donación inline */
.article-donate {
  margin: 3rem auto 0; max-width: 720px; text-align: center;
  padding: 2.5rem var(--container-px); border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(245,158,11,0.12));
  border: 1px solid rgba(245,158,11,0.3);
}
.article-donate h3 { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 0.75rem; }
.article-donate p { color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 1.5rem; }

/* Artículos relacionados */
.related { background: var(--purple-950); padding: var(--section-py) 0; }

/* Botón volver */
.back-blog { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold-400); font-weight: 600; margin-bottom: 1.5rem; }
.back-blog:hover { gap: 0.85rem; }

/* ── Comentarios ──────────────────────────────────────────────── */
.comments {
  max-width: 720px; margin: 0 auto; padding: 0 var(--container-px) var(--section-py);
}
.comments h2 {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--white);
  margin-bottom: 0.4rem;
}
.comments .subtitle { color: var(--gray-400); margin-bottom: 1.75rem; font-size: 0.95rem; }
.comment-form {
  background: var(--grad-card); border: 1px solid var(--glass-border); border-radius: 1.25rem;
  padding: 1.5rem; margin-bottom: 2.5rem;
}
.comment-form .row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 0.75rem; font-size: 0.95rem; font-family: inherit;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: #fff;
  margin-bottom: 0.85rem; box-sizing: border-box;
}
.comment-form input::placeholder, .comment-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--gold-400); }
.comment-form button {
  padding: 0.85rem 1.75rem; border-radius: 2rem; border: none; cursor: pointer;
  background: var(--grad-gold); color: #1e1b4b; font-weight: 700; font-size: 0.95rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.comment-form button:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.comment-form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.comment-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.6rem; }
.comment-msg { margin: 0.75rem 0 0; font-size: 0.9rem; min-height: 1.2em; }

.comment-list { display: flex; flex-direction: column; gap: 1rem; }
.comment-item {
  background: var(--grad-card); border: 1px solid var(--glass-border); border-radius: 1rem; padding: 1.25rem 1.4rem;
}
.comment-item .c-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.5rem; }
.comment-item .c-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad-purple-gold);
  display: grid; place-items: center; font-size: 0.95rem; color: #fff; font-weight: 700; flex-shrink: 0;
}
.comment-item .c-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.comment-item .c-date { font-size: 0.75rem; color: var(--gold-400); }
.comment-item p { color: #d7d3e8; line-height: 1.65; font-size: 0.95rem; margin: 0; }
.comment-empty { color: var(--gray-400); font-style: italic; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 820px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-media { min-height: 240px; }
}
@media (max-width: 520px) {
  .posts-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
}
