/* ============================================
   FUNERARIA RENACER — BLOG
   Complementa css/style.css (mismos tokens, fuentes y header/footer).
   Solo agrega lo que el inicio no tiene: listado, artículo, tabla y FAQ.
   ============================================ */

/* Enlace "saltar al contenido": invisible hasta recibir foco con teclado. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--gold-dark);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* 🔴 La página activa se marca con aria-current y NO con .active:
   js/script.js quita .active de todos los enlaces del menú al hacer scroll. */
.nav a[aria-current="page"] { border-bottom-color: var(--white); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Cabecera de la página ---------- */
.blog-hero {
  background: var(--cream);
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--hairline);
}
.blog-hero .container,
.article-wrap {
  max-width: 820px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold-light); }
.breadcrumbs a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.blog-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.blog-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 64ch;
}
.post-meta {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--text-muted);
}

/* ---------- Listado ---------- */
.blog-list {
  padding: 56px 0 90px;
  background: var(--cream-dark);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(43,38,32,.1); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .eyebrow { margin-bottom: 8px; }
.post-card h2 { font-size: 26px; color: var(--gold-dark); margin-bottom: 10px; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }
.post-card .plan-link { margin-top: auto; }

/* ---------- Artículo ---------- */
.article {
  background: var(--white);
  padding: 0 0 70px;
}
.article-cover {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  object-fit: cover;
}
.article-wrap { padding-top: 40px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--text-dark); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-size: clamp(25px, 3.4vw, 32px);
  color: var(--gold-dark);
  margin-top: 1.9em;
}
.prose h3 {
  font-size: 22px;
  color: var(--gold-dark);
  margin-top: 1.5em;
}
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold-light); }
.prose strong { color: var(--text-dark); }

/* Caja de resumen ("en pocas palabras") */
.summary-box {
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.summary-box p.summary-title {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}
.summary-box ol, .summary-box ul { margin-top: 0; }

/* Nota prudente sobre trámites oficiales */
.note {
  font-size: 15px;
  color: var(--text-muted);
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* Tabla de precios (datos del sitio y del PDF) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  min-width: 480px;
}
.price-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 8px;
}
.price-table th, .price-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(138,106,31,.18);
  text-align: right;
}
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table thead th {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  background: var(--cream);
}

/* Llamado a la acción dentro del artículo */
.cta-box {
  margin-top: 2.2em;
  background: linear-gradient(135deg, #d98b2f 0%, #b07c24 48%, #8a6a1f 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
}
.prose .cta-box h2, .cta-box h2 { color: var(--white); margin-top: 0; font-size: clamp(24px, 3.4vw, 30px); }
.cta-box p { color: rgba(255,255,255,.92); }
.cta-box .cta-phone {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin-top: 4px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.prose .cta-actions a { text-decoration: none; }
.prose .btn-plan--primary { color: var(--gold-dark); }
.prose .btn-plan--ghost { color: var(--white); }

/* Preguntas frecuentes */
.faq details {
  border-bottom: 1px solid rgba(138,106,31,.2);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 32px 14px 0;
  position: relative;
  font-weight: 500;
  color: var(--gold-dark);
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 22px;
  color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--text-dark); }

/* Entradas relacionadas */
.related {
  margin-top: 2.6em;
  padding-top: 1.6em;
  border-top: 1px solid var(--hairline);
}
.related p.related-title {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.related ul { list-style: none; padding: 0; }
.related li { margin-top: .6em; }

@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .prose { font-size: 16.5px; }
  .cta-actions { flex-direction: column; }
  .btn-plan { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card { transition: none; }
  .post-card:hover { transform: none; }
}

.blog-lead a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
