/* ══════════════════════════════════════════════
   blog.css — Índice del blog y páginas de artículo
   Depende de style.css (variables, navbar, footer, .container)
   y de servicio.css (.svc-prose, .svc-list, .svc-section,
   .svc-faq, .svc-cta, .svc-related, .svc-breadcrumb)
   ══════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: 10rem 0 3.5rem;
  color: #fff;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(123, 79, 212, .36), transparent 62%),
    radial-gradient(ellipse at 90% 100%, rgba(201, 168, 76, .14), transparent 55%),
    var(--bg-dark);
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, .45), transparent);
}
.blog-hero .container { max-width: 860px; }
.blog-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: .8rem;
}
.blog-hero h1 .gold { color: var(--gold-light); font-style: italic; }

.blog-cat {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 168, 76, .4);
  border-radius: 100px;
  padding: .3rem .85rem;
  margin-bottom: 1rem;
}
.blog-meta {
  font-size: .85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .62);
}
.blog-lead {
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, .8);
  max-width: 640px;
}

/* ── Cuerpo del artículo ─────────────────────── */
.blog-prose { max-width: 760px; margin: 0 auto; }
.blog-prose > p:first-of-type {
  font-size: 1.14rem;
  line-height: 1.8;
  color: var(--text-dark);
}
.blog-prose h2 { margin-top: 3rem; }
.blog-prose h3 { margin-top: 2.1rem; }
.blog-prose strong { font-weight: 600; color: var(--primary-dark); }
.blog-prose em { color: var(--text-muted); }

/* ── Índice: rejilla de artículos ────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  max-width: 1040px;
  margin: 0 auto;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card-cat {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .9rem;
}
.blog-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: .8rem;
}
.blog-card h2 a { transition: color var(--transition); }
.blog-card h2 a:hover { color: var(--primary-light); }
.blog-card p {
  font-size: .93rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.blog-card-meta {
  font-size: .78rem;
  color: var(--text-muted);
  opacity: .75;
  margin-bottom: 1rem;
}
.blog-card-link {
  font-size: .87rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}
.blog-card-link:hover { color: var(--primary-light); }

/* ── CTA con dos botones ─────────────────────── */
.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 600px) {
  .blog-hero { padding: 8.5rem 0 3rem; }
  .blog-prose h2 { margin-top: 2.4rem; }
  .blog-card { padding: 1.6rem 1.4rem; }
}
