/* ── Estilos compartidos de las páginas de Opinión
   (catálogo /opinion + detalle /opinion/:slug, tanto SSR como CSR) ── */

/* ── ANIMACIONES DE ENTRADA ───────────────────────────── */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.op-page { min-height: 100vh; }
.op-state {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  animation: fade-in .3s ease-out both;
}
.op-state h2 { font-family: 'Syne', sans-serif; font-size: 1.6rem; color: var(--t1); }
.op-state p  { color: var(--t3); }

/* Cada bloque del artículo aparece con un fade-up escalonado */
.op-hero      { animation: fade-up .55s cubic-bezier(.22,.61,.36,1) .05s both; }
.op-yt-wrap   { animation: fade-up .55s cubic-bezier(.22,.61,.36,1) .20s both; }
.op-article   { animation: fade-up .55s cubic-bezier(.22,.61,.36,1) .25s both; }
.op-footer    { animation: fade-up .55s cubic-bezier(.22,.61,.36,1) .40s both; }
.op-hero-cover     { animation: fade-in .9s ease-out both; }
.op-hero-gradient  { animation: fade-in .9s ease-out .05s both; }
.op-hero-inner > * { animation: fade-up .55s cubic-bezier(.22,.61,.36,1) both; }
.op-hero-inner > *:nth-child(1) { animation-delay: .18s; }
.op-hero-inner > *:nth-child(2) { animation-delay: .26s; }
.op-hero-inner > *:nth-child(3) { animation-delay: .34s; }
.op-hero-inner > *:nth-child(4) { animation-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  .op-hero, .op-yt-wrap, .op-article, .op-footer,
  .op-hero-cover, .op-hero-gradient, .op-hero-inner > *,
  .op-state { animation: fade-in .2s ease-out both; }
}

/* ── HERO del artículo de opinión ─────────────────────── */
.op-hero {
  position: relative;
  padding: 140px 0 60px;
  min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
@media (max-width: 720px) { .op-hero { min-height: 460px; padding: 110px 0 40px; } }
.op-hero-cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.72) saturate(1.05);
}
.op-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(9,9,15,.10)  0%,
    rgba(9,9,15,.25) 35%,
    rgba(9,9,15,.75) 75%,
    rgba(9,9,15,.92) 92%,
    var(--bg) 100%);
}
.op-hero-inner {
  position: relative; max-width: 820px;
  display: flex; flex-direction: column; gap: 14px;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.op-hero .crumbs {
  font-size: .8rem; color: var(--t3); display: flex; gap: 8px; align-items: center;
}
.op-hero .crumbs a { color: var(--t3); }
.op-hero .crumbs a:hover { color: var(--purple-l); }
.op-hero .crumbs .sep { color: var(--t4); }
.op-hero .crumbs strong { color: var(--t1); }
.op-hero .cat-badge {
  align-self: flex-start; position: static;
}
.op-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.6px;
  color: var(--t1); margin: 4px 0;
}
.op-hero .summary {
  font-size: 1.1rem; line-height: 1.55; color: var(--t2);
  max-width: 720px;
}
.op-hero .byline {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--border); margin-top: 8px;
  font-size: .82rem; color: var(--t3);
}
.op-hero .byline-author {
  display: flex; align-items: center; gap: 10px;
}
.op-hero .byline-author img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(167,139,250,.4); background: var(--surf);
}
.op-hero .byline-author strong { color: var(--t1); font-size: .88rem; display: block; }
.op-hero .byline-meta { display: inline-flex; align-items: center; gap: 6px; }

/* ── CUERPO del artículo ─────────────────────────────── */
.op-article {
  max-width: 720px; margin: 0 auto;
  padding: 48px 24px 96px;
  font-size: 1.05rem; line-height: 1.75; color: var(--t2);
}
.op-article p          { margin-bottom: 18px; }
.op-article p strong   { color: var(--t1); font-weight: 600; }
.op-article p em       { color: var(--purple-l); font-style: italic; }
.op-article a          { color: var(--purple-l); text-decoration: underline; text-underline-offset: 3px; }
.op-article h3 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.35rem; color: var(--t1); margin: 32px 0 10px; letter-spacing: -.3px;
}
.op-article hr {
  border: none; height: 1px; background: var(--border); margin: 28px 0;
}
.op-article ul { padding-left: 22px; margin-bottom: 18px; }
.op-article ul li { margin-bottom: 8px; }
.op-article .ana-figure { margin: 28px 0; }
.op-article .ana-figure-img {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  border-radius: var(--rx); border: 1px solid var(--border);
}
.op-article figcaption {
  font-size: .8rem; color: var(--t3); text-align: center;
  margin-top: 10px; font-style: italic;
}

/* ── Vídeo de YouTube embebido ───────────────────────── */
.op-yt-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.op-yt {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--rx); overflow: hidden;
  border: 1px solid var(--border); background: #000;
}
.op-yt iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ── Pie del artículo ────────────────────────────────── */
.op-footer {
  max-width: 720px; margin: 0 auto;
  padding: 0 24px 80px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 32px;
}
.op-footer a {
  padding: 10px 18px; border-radius: var(--rx);
  font-weight: 600; font-size: .9rem; text-decoration: none;
  border: 1px solid var(--border); color: var(--t1);
  transition: border-color .15s, color .15s;
}
.op-footer a:hover { border-color: var(--purple-l); color: var(--purple-l); }
