/* =========================================================
   PAGES.CSS
   Estilos propios de cada tipo de página (no reutilizables
   entre componentes): hero de inicio, cabecera de blog,
   cuerpo de artículo.
   ========================================================= */

/* ---------- Hero de inicio ---------- */

.hero {
  position: relative;
  padding-block: var(--space-2xl) var(--space-xl);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.hero__bg-rune {
  position: absolute;
  top: 50%;
  right: -6%;
  width: 46vw;
  max-width: 620px;
  transform: translateY(-50%);
  opacity: 0.08;
  color: var(--color-text);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.hero__eyebrow svg {
  width: 20px;
  height: 20px;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-sm);
}

.hero__title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 0.1em;
}

.hero__lede {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ---------- Franja de cifras / confianza ---------- */

.stat-strip {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-block: var(--space-lg);
}

.stat {
  flex: 1;
  min-width: 140px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--color-text);
  display: block;
}

.stat__label {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------- Cabecera de sección de página interior (Blog) ---------- */

.page-header {
  padding-block: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.page-header__title {
  font-size: var(--fs-h1);
}

.page-header__lede {
  color: var(--color-text-muted);
  max-width: 60ch;
  font-size: 1.08rem;
}

/* ---------- Artículo individual ---------- */

.article-header {
  padding-block: var(--space-lg) var(--space-md);
}

.article-header__title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-xs);
}

.article-header__meta {
  color: var(--color-text-faint);
  font-size: 0.9rem;
}

.article-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.article-body {
  max-width: var(--content-width-narrow);
}

.article-body p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.article-body h2 {
  font-size: var(--fs-h2);
  margin-top: var(--space-lg);
}

.article-body figure {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.article-footer {
  max-width: var(--content-width-narrow);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.article-footer__author {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.article-footer__author strong {
  color: var(--color-text);
  display: block;
  font-family: var(--font-display);
}

/* ---------- Placeholder decorativo (artículos sin foto) ---------- */

.decorative-panel {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.decorative-panel svg {
  width: 90px;
  height: 90px;
  color: var(--color-text-faint);
  opacity: 0.7;
}
