/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-brand {
  font-size: 1.2rem; font-weight: 900; letter-spacing: -.5px;
  background: linear-gradient(135deg, #a78bfa, var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex; flex-direction: column; line-height: 1.2;
}
.nav-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
  background: none;
}

.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: .875rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--white); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px; transition: .3s;
}

/* ── TICKER ── */
.ticker {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border-sub);
  padding: 6px 1.5rem;
  display: flex; gap: 2rem; overflow: hidden;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim);
}
.ticker-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ticker-dot { color: #10b981; }

/* ── HERO ── */
.hero {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 3rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(124,58,237,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: #6ee7b7; margin-bottom: .6rem;
  display: flex; align-items: center; gap: 6px;
}
.hero-tag::before { content: '●'; color: #10b981; font-size: 8px; }
.hero h1 {
  font-size: clamp(22px, 3.5vw, 34px); font-weight: 800;
  line-height: 1.15; margin-bottom: .75rem;
  letter-spacing: -.5px;
}
.hero-meta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); margin-bottom: 1.25rem;
}
.hero-meta span { color: var(--text-muted); }
.hero-img {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 11px;
  overflow: hidden;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── MAIN GRID ── */
.main-layout {
  max-width: var(--max-w); margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

/* ── SECCIÓN HEAD ── */
.section-head {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.section-head-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
.section-head-line { flex: 1; border-top: 1px solid var(--border-sub); }

/* ── GRID DE ARTÍCULOS (index) ── */
.posts-grid { display: flex; flex-direction: column; gap: 1rem; }

/* ── ASIDE ── */
.aside { display: flex; flex-direction: column; gap: 1.75rem; }

.aside-block {}
.aside-block h3 {
  font-size: 15px; font-weight: 700; margin-bottom: .75rem;
  color: var(--text);
}

.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--border-sub); }
.cat-list a {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 13px; color: var(--text-muted);
  font-family: var(--font-mono); text-decoration: none;
  transition: color .2s;
}
.cat-list a:hover { color: var(--white); }
.cat-count {
  font-size: 11px; background: var(--card);
  padding: 1px 6px; border-radius: 4px; color: var(--text-dim);
}

/* ── NEWSLETTER ASIDE ── */
.newsletter-block {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.newsletter-block h3 { color: var(--white); font-size: 15px; margin-bottom: .35rem; }
.newsletter-block p {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: .85rem;
  font-family: var(--font-mono);
}
.newsletter-input {
  width: 100%; padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white); font-size: 13px;
  font-family: var(--font-sans);
  margin-bottom: .5rem; transition: border-color .2s;
}
.newsletter-input::placeholder { color: var(--text-dim); }
.newsletter-input:focus { outline: none; border-color: var(--purple); }
.newsletter-btn {
  width: 100%; padding: 8px;
  background: var(--purple); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans); transition: background .2s, box-shadow .2s;
}
.newsletter-btn:hover {
  background: var(--purple-lt);
  box-shadow: 0 0 18px var(--purple-glow);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-sub);
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.footer-copy {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-legal {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.04);
  padding-top: .6rem;
}
.footer-legal a {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); text-decoration: none; transition: color .2s;
  letter-spacing: .03em;
}
.footer-legal a:hover { color: var(--accent-light); }
.footer-sep { color: rgba(255,255,255,.15); font-size: 10px; }

/* ── CARD DE POST ── */
.post-card {
  background: var(--card);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 1.25rem;
  align-items: start;
  transition: border-color .2s, background .2s;
}
.post-card:hover {
  border-color: var(--border);
  background: var(--card-hover);
}
.post-card-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .5rem; margin-bottom: .6rem;
}
.post-card-date, .post-card-read {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.post-card-title {
  font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: .5rem;
}
.post-card-title a { color: var(--text); text-decoration: none; transition: color .2s; }
.post-card-title a:hover { color: var(--purple-lt); }
.post-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.post-card-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 4/3;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb--placeholder {
  background: var(--dark-3);
  border: 1px solid var(--border-sub);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 10px;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .main-layout { grid-template-columns: 1fr; }
  .aside { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-nav { padding: 1rem 1.25rem; }
}
@media (max-width: 500px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card-thumb { display: none; }
}
