/* CraniaMed — estilos propios de blog, artículos y páginas legales.
   Se cargan después de sitio.css (estilos comunes). */

/* ========== BLOG ========== */
.nav a.is-active { color: var(--blue); }

.blog-hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.blog-hero .eyebrow { color: var(--coral); }
.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-bottom: 14px; }
.blog-hero h2.subtitle {
  font-family: var(--font-body); font-weight: 600;
  color: var(--blue); font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 22px;
}
.blog-hero p { max-width: 720px; color: var(--muted); font-size: 1.05rem; }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb {
  aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-50), var(--cream-soft));
  display: flex; align-items: center; justify-content: center;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-ph { font-family: var(--font-display); font-size: 0.85rem; color: var(--blue); opacity: .55; text-align: center; padding: 0 20px; }
.post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--coral); margin-bottom: 12px;
}
.post-body h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 12px; }
.post-body h3 a:hover { color: var(--blue); }
.post-excerpt { color: var(--muted); font-size: 0.95rem; flex: 1; margin-bottom: 18px; }
.post-more {
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  color: var(--blue); display: inline-flex; align-items: center; gap: 6px;
}
.post-more .arrow { transition: transform .2s ease; }
.post-more:hover .arrow { transform: translateX(4px); }

.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; margin-top: 56px;
}
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid var(--border); color: var(--text);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .is-current { background: var(--blue); border-color: var(--blue); color: var(--white); }

.blog-cta {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-lg); text-align: center;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 60px);
  margin-top: clamp(72px, 9vw, 120px);
}
.blog-cta h2 { color: var(--white); margin-bottom: 16px; }
.blog-cta p { color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ========== ENTRADA DEL BLOG ========== */
.articulo-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); background: var(--bg-soft); }
.articulo-hero .container, .articulo-cuerpo { max-width: 840px; }
.articulo-volver { display: flex; width: fit-content; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--blue); margin-bottom: 28px; }
.articulo-volver:hover { color: var(--blue-dark); }
.articulo-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin-bottom: 20px; }
.articulo-meta { color: var(--muted); font-size: 0.95rem; }
.articulo-portada { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); transform: translateY(-8px); }
.articulo-portada img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
section.articulo { padding-top: clamp(40px, 6vw, 72px); }

/* Texto migrado (contenido/entradas y contenido/legal) */
.prosa { max-width: 760px; margin: 0 auto; font-size: 1.06rem; }
.prosa > * + * { margin-top: 1.1em; }
.prosa h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.12; margin-top: 2em; }
.prosa h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); line-height: 1.2; margin-top: 1.7em; }
.prosa h4 { font-size: 1.15rem; margin-top: 1.5em; }
.prosa a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prosa a:hover { color: var(--blue-dark); }
.prosa ul, .prosa ol { padding-left: 1.4em; }
.prosa ul { list-style: disc; }
.prosa ol { list-style: decimal; }
.prosa li + li { margin-top: 0.4em; }
.prosa li::marker { color: var(--blue); }
.prosa strong { color: var(--ink); }
.prosa blockquote { border-left: 4px solid var(--coral); padding: 4px 0 4px 22px; font-style: italic; color: var(--ink); }
.prosa figure { margin-top: 2em; margin-bottom: 2em; }
.prosa figure img { margin: 0 auto; height: auto; border-radius: var(--radius); }
.prosa figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.prosa iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }
.prosa .tabla { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prosa table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prosa th, .prosa td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prosa tr:first-child td, .prosa th { background: var(--blue-50); font-weight: 700; color: var(--ink); }
.prosa tr:last-child td { border-bottom: 0; }

.articulo-mas { margin-top: clamp(72px, 9vw, 120px); }
.articulo-mas > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 32px; }

/* ========== PÁGINAS LEGALES ========== */
.legal-actualizado { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.prosa-legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

.aviso-traduccion { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.aviso-traduccion a { color: var(--blue); text-decoration: underline; }
.aviso-vista-previa { background: var(--coral); color: var(--white); text-align: center; font-weight: 700; font-size: 0.85rem; padding: 10px 16px; letter-spacing: 0.04em; }

/* Firma del autor junto a la fecha */
.articulo-meta { display: flex; flex-direction: column; gap: 4px; }
.articulo-autor { color: var(--text); }
.articulo-autor strong { color: var(--ink); font-weight: 600; }
.articulo-cargo { display: block; font-size: 0.88rem; color: var(--muted); }
