/* ─── Fuentes ────────────────────────────────────────────────── */
@import url('https://use.typekit.net/zcb7cvb.css'); /* omnes-pro */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #000312;
  --surface:      #080c1a;
  --surface-2:    #0e1324;
  --border:       rgba(255, 255, 255, 0.07);
  --text:         #dde2f0;
  --text-muted:   rgba(255, 255, 255, 0.4);
  --white:        #ffffff;
  --font:         'omnes-pro', 'Nunito', 'Helvetica Neue', sans-serif;
  --radius:       14px;

  /* Categorías */
  --cat-podcast:    #0eccdb;
  --cat-streaming:  #0eccdb;
  --cat-produccion: #3b50ea;
  --cat-sonido:     #FF6D6D;
  --cat-live:       #FF6D6D;
  --cat-industria:  #a78bfa;
  --cat-default:    rgba(255,255,255,0.35);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; color-scheme: dark; }
body  {
  font-family: var(--font);
  background:  var(--bg);
  color:       var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }

/* ─── Header ─────────────────────────────────────────────────── */
.blog-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 3, 18, 0.85);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.blog-header__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 5%;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.blog-header__logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.blog-header__logo img { height: 28px; width: auto; }
.blog-header__logo-sep {
  width: 1px; height: 16px; background: var(--border);
}
.blog-header__logo-word {
  color: var(--white);
  font-size: 0.95rem; letter-spacing: 0.05em;
}
.blog-header__back {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.blog-header__back:hover { color: var(--white); }
.blog-header__back svg  { transition: transform 0.2s; }
.blog-header__back:hover svg { transform: translateX(-3px); }

/* ─── Layout ─────────────────────────────────────────────────── */
.blog-main { min-height: 100vh; padding-bottom: 80px; }
.container  { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* ─── Category tag ───────────────────────────────────────────── */
.cat-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.cat-tag[data-cat="Podcast"],
.cat-tag[data-cat="Streaming"],
.cat-tag[data-cat="IRL"],
.cat-tag[data-cat="Media"] {
  background: rgba(14, 204, 219, 0.12); color: #0eccdb;
}
.cat-tag[data-cat="Producción"],
.cat-tag[data-cat="Vídeo"] {
  background: rgba(59, 80, 234, 0.15); color: #7b8ff8;
}
.cat-tag[data-cat="Sonido"],
.cat-tag[data-cat="Live"],
.cat-tag[data-cat="Eventos"] {
  background: rgba(255, 109, 109, 0.12); color: #FF6D6D;
}
.cat-tag[data-cat="Industria"],
.cat-tag[data-cat="Tendencias"] {
  background: rgba(167, 139, 250, 0.12); color: #a78bfa;
}

/* ─── Featured post ──────────────────────────────────────────── */
.featured {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 420px;
  transition: border-color 0.2s;
}
.featured:hover { border-color: rgba(255,255,255,0.14); }
.featured__image-wrap {
  position: relative; overflow: hidden;
}
.featured__image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.featured:hover .featured__image { transform: scale(1.03); }
.featured__image-placeholder {
  width: 100%; height: 100%; min-height: 360px;
  background: linear-gradient(135deg, #0a0e1a 0%, #111827 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.featured__body {
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.featured__eyebrow {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
}
.featured__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800; line-height: 1.2;
  color: var(--white);
  transition: color 0.2s;
}
.featured:hover .featured__title { color: #e0e6ff; }
.featured__desc {
  font-size: 0.97rem; line-height: 1.65;
  color: var(--text-muted); max-width: 480px;
}
.featured__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.77rem; color: var(--text-muted);
}
.featured__meta-sep { opacity: 0.35; }
.featured__cta {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white);
  transition: gap 0.2s;
}
.featured:hover .featured__cta { gap: 12px; }

/* ─── Section heading ────────────────────────────────────────── */
.section-heading {
  margin-top: 72px; margin-bottom: 32px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.section-heading h2 {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Post grid ──────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── Post card ──────────────────────────────────────────────── */
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.post-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}
.post-card__image-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.post-card__image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__image { transform: scale(1.04); }
.post-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface-2) 0%, #0e1830 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.post-card__body {
  flex: 1; display: flex; flex-direction: column;
  padding: 20px 22px 22px; gap: 10px;
}
.post-card__title {
  font-size: 1rem; font-weight: 800; line-height: 1.35;
  color: var(--white); display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.post-card:hover .post-card__title { color: #e0e6ff; }
.post-card__excerpt {
  font-size: 0.85rem; line-height: 1.6; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.post-card__footer {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.73rem; color: var(--text-muted);
}

/* ─── Empty state ────────────────────────────────────────────── */
.empty-state {
  padding: 64px 0; text-align: center;
  color: var(--text-muted); font-size: 0.95rem;
}

/* ─── Article page ───────────────────────────────────────────── */
.post-hero {
  position: relative; overflow: hidden;
  height: clamp(300px, 45vw, 520px);
  background: var(--surface);
}
.post-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.post-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,3,18,0.15) 0%, rgba(0,3,18,0.75) 100%);
}
.post-hero__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #080c1a 0%, #0e1830 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
}

.post-header {
  max-width: 760px; margin: 48px auto 0; padding: 0 5%;
  display: flex; flex-direction: column; gap: 16px;
}
.post-header__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15; color: var(--white);
}
.post-header__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  font-size: 0.8rem; color: var(--text-muted);
}
.post-header__meta-sep { opacity: 0.3; }

/* ─── Prose (article body) ───────────────────────────────────── */
.prose {
  max-width: 760px; margin: 48px auto 80px; padding: 0 5%;
  font-size: 1.05rem; line-height: 1.8; color: var(--text);
}
.prose h2 {
  font-size: 1.55rem; font-weight: 800; line-height: 1.25;
  color: var(--white); margin: 2.5em 0 0.8em;
  padding-bottom: 0.4em; border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.2rem; font-weight: 800; line-height: 1.3;
  color: var(--white); margin: 2em 0 0.6em;
}
.prose p  { margin: 0 0 1.5em; }
.prose strong { color: var(--white); }
.prose em { color: rgba(255,255,255,0.75); font-style: italic; }
.prose a  {
  color: #0eccdb; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(14,204,219,0.35);
  transition: text-decoration-color 0.2s;
}
.prose a:hover { text-decoration-color: #0eccdb; }
.prose ul, .prose ol {
  margin: 0 0 1.5em 1.5em;
}
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 2em 0; padding: 1em 1.5em;
  border-left: 3px solid #0eccdb;
  background: rgba(14,204,219,0.05);
  border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}
.prose blockquote p { margin: 0; }
.prose code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px;
  color: #0eccdb;
}
.prose pre {
  background: #080c1a; border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px;
  overflow-x: auto; margin: 0 0 1.5em;
}
.prose pre code {
  background: none; border: none; padding: 0;
  font-size: 0.9rem; color: var(--text);
}
.prose img {
  border-radius: 10px; margin: 2em 0;
  border: 1px solid var(--border);
}
.prose hr {
  border: none; border-top: 1px solid var(--border); margin: 3em 0;
}

/* ─── Service links ──────────────────────────────────────────── */
.service-links {
  max-width: 760px; margin: 0 auto 48px; padding: 0 5%;
}
.service-links__label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}
.service-links__grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service-links__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.55);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  text-decoration: none;
}
.service-links__item:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  background: rgba(255,255,255,0.07);
}
.service-links__icon { font-size: 1rem; line-height: 1; }
.service-links__text { flex: 1; }
.service-links__item svg { opacity: 0.4; flex-shrink: 0; }
.service-links__item:hover svg { opacity: 0.8; }

/* ─── Post nav (back) ────────────────────────────────────────── */
.post-back {
  max-width: 760px; margin: 0 auto; padding: 0 5% 64px;
}
.post-back a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color 0.2s;
}
.post-back a:hover { color: var(--white); }
.post-back a:hover svg { transform: translateX(-3px); }
.post-back svg { transition: transform 0.2s; }

/* ─── Footer ─────────────────────────────────────────────────── */
.blog-footer {
  border-top: 1px solid var(--border);
  padding: 32px 5%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  max-width: 100%;
}
.blog-footer__copy {
  font-size: 0.78rem; color: var(--text-muted);
}
.blog-footer__link {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color 0.2s;
}
.blog-footer__link:hover { color: var(--white); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured__image-wrap { min-height: 240px; }
  .featured__body { padding: 32px 28px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .featured__body { padding: 24px 20px; }
  .prose { font-size: 1rem; }
}
