/* =====================================================================
   CyberNotes — Editorial theme (inspirado en Medium / Notion)
   ===================================================================== */

/* Tipografías:
   - Fraunces  → display / títulos (serif con personalidad, variable axes)
   - Newsreader → body de artículos (serif de lectura óptica)
   - Inter      → UI (nav, botones, meta)
   - JetBrains Mono → código y meta técnica */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,400..800,0..100;1,9..144,400..800,0..100&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* === Backgrounds: blanco hielo (cool white, ligero toque azul) === */
  --bg-0: #f3f6fa;     /* fondo principal — ice white */
  --bg-1: #e8edf3;     /* alternado de sección */
  --bg-2: #dee5ec;     /* cards / suscribir / inputs */
  --bg-3: #ccd5de;     /* hover state */

  /* === Borders / dividers === */
  --line:        rgba(15, 30, 50, 0.09);
  --line-strong: rgba(15, 30, 50, 0.16);

  /* === Texto (alto contraste sobre blanco) === */
  --text:        #1a1a1a;     /* principal */
  --text-soft:   #4a4a4a;     /* secundario fuerte */
  --muted:       #6e6e6e;     /* meta info */
  --muted-faded: #9a9a9a;     /* placeholder, decorativo */

  /* === Acento (verde tipo Medium) === */
  --neon:       #1a8917;
  --neon-soft:  rgba(26, 137, 23, .12);
  --neon-glow:  0 0 0 rgba(0, 0, 0, 0);

  /* === Otros === */
  --blue:   #2563eb;
  --pink:   #db2777;
  --red:    #dc2626;
  --yellow: #d97706;

  --radius: 6px;
  --radius-lg: 10px;

  /* === Bootstrap overrides === */
  --bs-body-color: var(--text);
  --bs-body-color-rgb: 26, 26, 26;
  --bs-secondary-color: var(--muted);
  --bs-secondary-color-rgb: 110, 110, 110;
  --bs-tertiary-color: var(--muted-faded);
  --bs-body-bg: var(--bg-0);
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; }

a { color: var(--neon); text-decoration: none; transition: color .15s ease; }
a:hover { color: #0e5e0a; text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Override Bootstrap text-muted */
.text-muted, .text-secondary { color: var(--muted) !important; }

.text-glow {
  color: var(--neon);
  font-weight: 600;
}

/* ====================== NAV ====================== */
.cyber-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--line);
  padding-block: .85rem;
}
.cyber-nav .navbar-brand {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-logo {
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon);
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: none;
}
.brand-text { color: var(--text); }

.cyber-nav .nav-link {
  color: var(--text-soft);
  font-weight: 500;
  font-size: .92rem;
  padding: .45rem .9rem !important;
  border-radius: 8px;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  transition: background .15s ease, color .15s ease;
}
.cyber-nav .nav-link:hover,
.cyber-nav .nav-link:focus {
  color: var(--text);
  background: rgba(0, 0, 0, .04);
}
.cyber-nav .nav-link::after { display: none; }

/* Estado activo: pill verde suave + texto neón + acento underline.
   Triple señal visual (fondo, color, subrayado) para que el item activo
   sea obvio incluso para alguien que recién entra al sitio. */
.cyber-nav .nav-link.active {
  color: var(--neon);
  background: var(--neon-soft);
  font-weight: 700;
}
.cyber-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .2rem;
  height: 2px;
  background: var(--neon);
  border-radius: 2px;
}
.cyber-nav .nav-link.active .nav-prefix { color: var(--neon); opacity: 1; }

/* nav-prefix visible: el "~/", "$", "@" antes de cada item da contexto
   terminal y separa visualmente los items aunque el activo no esté pintado. */
.nav-prefix {
  display: inline;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--text-soft);
  opacity: .55;
  font-weight: 500;
}

.cyber-nav .navbar-toggler {
  border-color: var(--line-strong);
  padding: .35rem .55rem;
}
.cyber-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231a1a1a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ====================== BUTTONS ====================== */
.btn-cyber {
  background: var(--text);
  color: var(--bg-0);
  border: 1px solid var(--text);
  font-weight: 600;
  letter-spacing: 0;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  transition: all .15s ease;
}
.btn-cyber:hover, .btn-cyber:focus {
  background: var(--neon);
  border-color: var(--neon);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-cyber {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-weight: 500;
  padding: .55rem 1.15rem;
  border-radius: 999px;
}
.btn-outline-cyber:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg-2);
}

.btn-sm { padding: .35rem .85rem; font-size: .85rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }

/* ====================== HERO ====================== */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
  background: var(--bg-0);
}
.hero-mini { padding: 4.5rem 0 2.5rem; background: var(--bg-1); border-bottom: 1px solid var(--line); }

.hero-grid { display: none; }                  /* sacamos la grilla cyber */

.hero-title {
  font-family: 'Newsreader', 'Charter', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.hero-title .text-glow {
  color: var(--neon);
  font-style: italic;
  font-weight: 600;
}
.hero-lead {
  color: var(--text-soft);
  font-size: 1.2rem;
  max-width: 580px;
  margin-bottom: 0;
  line-height: 1.55;
  font-family: 'Newsreader', Georgia, serif;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stats > div { border: none; padding: 0; }
.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: .25rem;
  font-family: 'Newsreader', Georgia, serif;
  letter-spacing: -0.02em;
}
.hero-stats span {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* Terminal badge */
.terminal-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .85rem;
  font-size: .82rem;
  color: var(--muted);
}
.terminal-badge .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

/* Terminal window — código siempre oscuro, contrasta con el theme light */
.terminal-window {
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.25),
              0 2px 8px rgba(0,0,0,.06);
  transform: none;
}
.terminal-window:hover { transform: translateY(-2px); transition: transform .25s ease; }
.terminal-bar {
  background: #2a2a2a;
  border-bottom: 1px solid #1a1a1a;
  padding: .55rem .9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #aaa;
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-body {
  padding: 1.1rem 1.2rem;
  font-size: .78rem;
  line-height: 1.7;
  color: #d4d4d4;
  height: 380px;
  max-height: 380px;
  overflow: hidden;
  position: relative;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-body > span,
.terminal-body .t-cmd,
.terminal-body .t-out,
.terminal-body .t-ok,
.terminal-body .t-err,
.terminal-body .t-warn { white-space: pre-wrap; word-break: break-all; }

.t-cmd  { color: #6fdc8c; display: block; }   /* verde brillante para comandos */
.t-out  { color: #c6c6c6; display: block; }
.t-ok   { color: #6fdc8c; display: block; font-weight: 500; }
.t-err  { color: #ff8389; display: block; }
.t-warn { color: #f1c21b; display: block; }

.cursor {
  display: inline-block;
  width: .55em;
  background: #6fdc8c;
  color: #6fdc8c;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ====================== SECTIONS ====================== */
.section-block {
  padding: 6rem 0;
  position: relative;
}
.section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  margin-bottom: 3rem;
  max-width: 720px;
}
.section-head h2 {
  font-family: 'Newsreader', 'Charter', Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: .4rem 0 .6rem;
  color: var(--text);
}
.section-head p {
  color: var(--text-soft);
  max-width: 580px;
  font-size: 1.08rem;
  line-height: 1.55;
}
.kicker {
  display: inline-block;
  color: var(--neon);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  padding-left: 0;
}
.kicker::before { display: none; }

/* ====================== CATEGORY CARDS ====================== */
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  color: var(--text);
  transition: all .2s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.cat-card:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.15);
  text-decoration: none;
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover h5 { color: var(--neon); }

.cat-tag {
  color: var(--neon);
  font-size: .78rem;
  font-weight: 600;
}
.cat-count {
  background: var(--neon-soft);
  color: var(--neon);
  border-radius: 999px;
  padding: .12rem .55rem;
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  border: none;
  font-weight: 600;
}
.cat-card h5 {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  transition: color .15s ease;
  margin-bottom: .25rem;
}
.cat-card p { color: var(--text-soft); font-size: .92rem; }

/* ====================== POST CARDS ====================== */
.post-card {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
}
.post-card:not(.has-img) { padding: 1.7rem; }
.post-card.has-img .post-card-body { padding: 1.4rem 1.5rem 1.5rem; }
.post-card-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.post-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.post-card-img::after { display: none; }
.post-card:hover {
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -15px rgba(0,0,0,.12);
}
.post-card:hover .post-title { color: var(--neon); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: .85rem;
  color: var(--muted);
  font-size: .82rem;
}
.post-cat {
  color: var(--neon);
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 600;
}
.post-cat::before { content: '#'; }
.post-date { color: var(--muted); }
.post-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: .55rem;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  transition: color .15s ease;
}
.post-excerpt {
  color: var(--text-soft);
  font-size: .96rem;
  margin-bottom: 1.2rem;
  flex: 1;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--neon);
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}

/* Artículo destacado */
.post-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s ease;
  min-height: 340px;
}
.post-feature:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.15);
}
.post-feature:hover .post-title { color: var(--neon); }
.post-feature-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
}
.post-feature-img::after { display: none; }
.post-feature-body {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-feature-body .post-title { font-size: 1.85rem; line-height: 1.2; }
.post-feature-body .post-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }

.badge-cyber-inline {
  display: inline-block;
  background: var(--neon);
  color: #fff;
  padding: .12rem .55rem;
  border-radius: 999px;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

@media (max-width: 768px) {
  .post-feature { grid-template-columns: 1fr; min-height: auto; }
  .post-feature-img { aspect-ratio: 16 / 9; }
  .post-feature-body { padding: 1.5rem; }
  .post-feature-body .post-title { font-size: 1.45rem; }
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg-1);
}

/* ====================================================================
   FEED LOG — adaptado al theme light (minimalista tipo Substack/Notion)
   ==================================================================== */
.feed-head { margin-bottom: 2rem; }

.feed-log {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-0);
  overflow: hidden;
}

.feed-prompt {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.4rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.feed-prompt .prompt-sym {
  color: var(--neon);
  font-weight: 700;
}
.feed-prompt .prompt-cmd { color: var(--text-soft); }
.feed-prompt::before {
  content: "● ● ●";
  letter-spacing: .15em;
  color: var(--line-strong);
  margin-right: .85rem;
  font-size: .65rem;
}

.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-row {
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: var(--bg-1); }

.feed-link {
  display: grid;
  grid-template-columns: 72px 100px 135px 1fr auto 24px;
  align-items: start;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: padding-left .18s ease;
}
.feed-link::before { display: none; }
.feed-link:hover { padding-left: 1.8rem; text-decoration: none; }
.feed-link:hover .feed-title { color: var(--neon); }
.feed-link:hover .feed-arrow { color: var(--neon); transform: translateX(4px); }

.feed-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
  transition: border-color .18s ease, transform .18s ease;
}
.feed-thumb::after { display: none; }
.feed-thumb.is-placeholder {
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed-thumb-letter {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
  opacity: .35;
}
.feed-link:hover .feed-thumb { border-color: var(--text); transform: scale(1.03); }

.feed-date {
  color: var(--muted);
  font-size: .82rem;
  padding-top: .3rem;
  font-weight: 500;
  align-self: center;
}
.feed-cat {
  font-size: .82rem;
  color: var(--neon);
  padding-top: .3rem;
  font-weight: 600;
  align-self: center;
}
.feed-body { min-width: 0; align-self: center; }
.feed-title {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color .15s ease;
}
.feed-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.55;
  margin-top: .4rem;
}
.feed-meta {
  font-size: .8rem;
  color: var(--muted);
  padding-top: .35rem;
  white-space: nowrap;
  align-self: center;
}
.feed-meta .feed-sep { margin: 0 .35rem; opacity: .6; }
.feed-arrow {
  color: var(--muted-faded);
  font-size: 1.1rem;
  padding-top: .3rem;
  transition: color .15s ease, transform .15s ease;
  align-self: center;
}

.feed-foot {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}
.feed-all-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: .9rem;
  text-decoration: none;
  transition: all .15s ease;
}
.feed-all-btn .bracket { color: var(--muted); }
.feed-all-btn:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  text-decoration: none;
}
.feed-all-btn:hover .bracket { color: #fff; }
.feed-all-btn .arrow { transition: transform .15s ease; }
.feed-all-btn:hover .arrow { transform: translateX(3px); }

/* ====================================================================
   PAGINACIÓN
   ==================================================================== */
.pag-nav {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pag-info {
  color: var(--muted);
  font-size: .85rem;
}
.pag-info .pag-info-cmd { color: var(--neon); font-weight: 700; margin-right: .35rem; }
.pag-info .pag-num { color: var(--text); font-weight: 600; }
.pag-info .pag-sep { margin: 0 .35rem; opacity: .5; }
.pag-info .pag-range { color: var(--text); }

.pag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  padding: 0; margin: 0;
  align-items: center;
  justify-content: center;
}
.pag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 40px;
  height: 38px;
  padding: 0 .85rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-0);
  color: var(--text);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  transition: all .15s ease;
  text-decoration: none;
}
.pag-link:hover {
  border-color: var(--text);
  background: var(--bg-1);
  color: var(--text);
  transform: translateY(-1px);
}
.pag-link.is-current {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  cursor: default;
}
.pag-link.is-current:hover { transform: none; background: var(--text); }
.pag-link.is-disabled { opacity: .35; pointer-events: none; }
.pag-gap { color: var(--muted); padding: 0 .25rem; align-self: flex-end; }

@media (max-width: 576px) {
  .pag-link { min-width: 36px; height: 34px; padding: 0 .55rem; font-size: .8rem; }
}

/* Filtros del archivo / blog */
.archivo-filtros {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-0);
  padding: 1.35rem;
}
.archivo-search {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.archivo-search > .mono { color: var(--neon); font-size: .9rem; font-weight: 600; }
.archivo-search input[type=search] {
  flex: 1 1 240px;
  min-width: 200px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: .9rem;
  padding: .55rem .9rem;
  border-radius: 999px;
}
.archivo-search input[type=search]:focus {
  background: var(--bg-0);
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
  color: var(--text);
  outline: none;
}

.archivo-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .82rem;
  text-decoration: none;
  transition: all .15s ease;
}
.cat-chip:hover { background: var(--bg-2); color: var(--text); text-decoration: none; }
.cat-chip.on {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.cat-chip-n {
  background: rgba(0,0,0,.06);
  color: inherit;
  padding: 0 .45rem;
  border-radius: 999px;
  font-size: .7rem;
  border: none;
  font-family: 'JetBrains Mono', monospace;
}
.cat-chip.on .cat-chip-n { background: rgba(255,255,255,.2); color: #fff; }

/* Mobile feed */
@media (max-width: 768px) {
  .feed-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: .25rem .85rem;
    padding: 1rem 1.1rem;
    align-items: start;
  }
  .feed-link:hover { padding-left: 1.3rem; }
  .feed-thumb { width: 64px; height: 64px; grid-column: 1; grid-row: 1 / span 5; align-self: start; }
  .feed-date, .feed-cat, .feed-body, .feed-meta { grid-column: 2; padding: 0; align-self: auto; }
  .feed-date { font-size: .76rem; }
  .feed-cat  { font-size: .76rem; margin-top: -.15rem; }
  .feed-title { font-size: 1rem; }
  .feed-excerpt { font-size: .88rem; margin-top: .25rem; }
  .feed-meta { font-size: .72rem; margin-top: .35rem; }
  .feed-arrow { display: none; }
  .feed-prompt { padding: .65rem 1rem; font-size: .76rem; flex-wrap: wrap; }
  .feed-prompt::before { display: none; }
}

/* ====================== SUSCRIBIR ====================== */
.suscribir-box {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -10px rgba(0,0,0,.05);
}
.suscribir-box::before { display: none; }
.suscribir-box h2 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--text);
  letter-spacing: -0.02em;
}

.suscribir-form .input-group {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.suscribir-form .input-group:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}
.suscribir-form .input-group-text {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  padding-inline: 1rem;
}
.suscribir-form .form-control {
  background: transparent;
  border: none;
  color: var(--text);
  padding: .9rem 1rem;
  font-size: 1rem;
}
.suscribir-form .form-control:focus {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border: none;
}
.suscribir-form .btn-cyber { border-radius: 999px; margin: 4px; padding: .55rem 1.3rem; }
#suscribirMsg.ok  { color: var(--neon); }
#suscribirMsg.err { color: var(--red); }

@media (max-width: 768px) {
  .suscribir-box { padding: 2rem 1.5rem; }
}

/* ====================== FEATURES ====================== */
.feature-card {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: all .2s ease;
}
.feature-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -15px rgba(0,0,0,.1);
}
.feature-ico {
  display: inline-block;
  color: var(--neon);
  font-size: .85rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.feature-card h6 {
  color: var(--text);
  margin-bottom: .55rem;
  font-size: 1.08rem;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
}

/* ====================== ARTICLE PAGE ====================== */
.article-hero {
  padding: 5rem 0 2rem;
  background: var(--bg-0);
}
.article-meta { color: var(--muted); font-size: .85rem; }
.article-meta a { color: var(--muted); }
.article-meta a:hover { color: var(--text); }
.article-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-weight: 700;
}
.article-lead {
  color: var(--text-soft);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
}
.article-byline {
  color: var(--muted);
  font-size: .85rem;
}
.article-byline strong { color: var(--text); }
.article-byline .sep { margin: 0 .5rem; }

.article-body {
  padding: 3rem 0 4rem;
  font-family: 'Newsreader', 'Charter', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}
.article-body > *:first-child { margin-top: 0; }
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: 'Newsreader', Georgia, serif;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
}
.article-body h2 { font-size: 1.85rem; padding-bottom: 0; border-bottom: none; }
.article-body h3 { font-size: 1.45rem; color: var(--text); }
.article-body h4 { font-size: 1.2rem; }
.article-body p { margin-bottom: 1.4rem; }
.article-body ul, .article-body ol { padding-left: 1.6rem; margin-bottom: 1.4rem; }
.article-body ul li::marker { color: var(--neon); }
.article-body ol li::marker { color: var(--neon); }
.article-body li { margin-bottom: .55rem; }
.article-body code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: .12em .4em;
  border-radius: 4px;
  font-size: .9em;
  color: #c2410c;
}
.article-body strong { color: var(--text); font-weight: 700; }

/* Drop cap en el primer párrafo (Medium-style) */
.article-body > p:first-of-type::first-letter {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  padding: .35rem .6rem 0 0;
  color: var(--text);
}

.article-body pre {
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  padding: 0;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
  margin: 1.75rem 0;
  position: relative;
}
.article-body pre.has-copy { padding-top: 0; }
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1rem;
  background: #2a2a2a;
  border-bottom: 1px solid #1a1a1a;
  position: sticky; top: 0;
}
.code-lang {
  color: #6fdc8c;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1px solid #444;
  color: #c6c6c6;
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  padding: .25rem .55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s ease;
}
.code-copy:hover { color: #6fdc8c; border-color: #6fdc8c; background: rgba(111,220,140,.1); }
.code-copy.is-ok { color: #6fdc8c; border-color: #6fdc8c; }

.article-body pre code,
.article-body pre code.hljs {
  display: block;
  background: transparent !important;
  border: none;
  padding: 1.15rem 1.2rem;
  color: #d4d4d4;
  font-family: 'JetBrains Mono', monospace;
}

.article-body blockquote {
  border-left: 3px solid var(--text);
  margin: 1.8rem 0;
  padding: .25rem 0 .25rem 1.5rem;
  background: transparent;
  color: var(--text-soft);
  border-radius: 0;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 2rem auto;
  border: none;
}
.article-body a {
  color: var(--text);
  border-bottom: 1px solid var(--muted-faded);
  text-decoration: none;
}
.article-body a:hover {
  color: var(--neon);
  border-color: var(--neon);
  background: transparent;
}
.article-body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
}

/* Tags abajo del artículo */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.article-tag {
  display: inline-block;
  padding: .3rem .85rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text-soft);
  border-radius: 999px;
  font-size: .85rem;
  transition: all .15s ease;
  text-decoration: none;
}
.article-tag:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  text-decoration: none;
}

/* Imagen destacada del artículo */
.article-featured {
  margin: 2rem 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.article-cta {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
}
.article-cta h5 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
}

.related-block {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
}

/* ====================== CONFIRM PAGE ====================== */
.confirm-box {
  max-width: 560px;
  margin: 4rem auto;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 20px -10px rgba(0,0,0,.05);
}
.confirm-box.is-ok { border-color: var(--neon); }
.confirm-box.is-error { border-color: var(--red); }
.confirm-icon {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  margin-bottom: 1rem;
  letter-spacing: .12em;
  font-weight: 600;
}
.is-error .confirm-icon {
  background: rgba(220, 38, 38, .08);
  color: var(--red);
}

/* ====================== FOOTER ====================== */
.cyber-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2.5rem;
}
.cyber-footer::before { display: none; }
.footer-title {
  color: var(--text);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
  font-weight: 600;
}
.cyber-footer a {
  color: var(--text-soft);
  text-decoration: none;
}
.cyber-footer a:hover { color: var(--neon); text-decoration: underline; }
.cyber-footer ul li { margin-bottom: .45rem; }
.cyber-footer p { color: var(--text-soft); }

/* ====================== WHOAMI ====================== */
.whoami-hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  background: var(--bg-0);
}
.whoami-hero .hero-grid { display: none; }
.whoami-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.whoami-hero-text { order: 1; }
.whoami-terminal { order: 2; transform: none; }

.whoami-id-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.whoami-id-text { min-width: 0; flex: 1; }
.whoami-id-text .kicker { display: inline-block; margin-bottom: .5rem; }
.whoami-id-text .hero-title { margin-bottom: .4rem; }

.whoami-avatar {
  --avatar-size: 200px;
  width: var(--avatar-size);
  height: var(--avatar-size);
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 3px solid var(--bg-0);
  outline: 1px solid var(--line-strong);
  outline-offset: 4px;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whoami-avatar:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px -10px rgba(0,0,0,.2);
}
.whoami-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.whoami-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--avatar-img);
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(.95) saturate(.9);
  transform: scale(1.15);
  z-index: 0;
}
.whoami-avatar img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}
.whoami-avatar::after { display: none; }

.whoami-role {
  color: var(--neon);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: none;
}
.whoami-role::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon);
  margin-right: .55rem;
  vertical-align: middle;
  animation: whoami-pulse 2.2s ease-in-out infinite;
}
@keyframes whoami-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}

.whoami-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.75rem;
}
.whoami-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-0);
  color: var(--text);
  font-size: .9rem;
  text-decoration: none;
  transition: all .15s ease;
}
.whoami-link:hover {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 991px) {
  .whoami-hero .container { grid-template-columns: 1fr; gap: 2rem; }
  .whoami-terminal { order: -1; }
}
@media (max-width: 575px) {
  .whoami-id-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .whoami-avatar { --avatar-size: 150px; }
}

/* Resumen técnico (prosa editorial) */
.resumen-prosa {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}
.resumen-prosa p { margin-bottom: 1.4rem; }
.resumen-prosa p:last-child { margin-bottom: 0; }
.resumen-prosa p:first-of-type::first-letter {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  padding: .35rem .55rem 0 0;
  color: var(--text);
}
.resumen-prosa strong { color: var(--text); font-weight: 700; }
.resumen-prosa em { color: var(--text-soft); font-style: italic; }

/* Skill cards */
.skill-card {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: all .15s ease;
}
.skill-card:hover { border-color: var(--text); transform: translateY(-2px); }
.skill-card-head {
  padding: .85rem 1.15rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .82rem;
  font-family: 'JetBrains Mono', monospace;
}
.skill-card-head .skill-prompt { color: var(--neon); font-weight: 700; margin-right: .2rem; }
.skill-list { list-style: none; padding: 1.1rem 1.25rem; margin: 0; }
.skill-list li { padding: .3rem 0; color: var(--text); font-size: .92rem; }
.skill-bullet { color: var(--neon); margin-right: .4rem; }

/* CTA */
.whoami-cta { max-width: 640px; margin: 0 auto; text-align: center; padding: 2rem; }
.whoami-cta h2 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--text);
}

/* ====================== CONTACTO ====================== */
.contact-card {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px -10px rgba(0,0,0,.05);
}
.contact-card-bar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: .85rem 1.2rem;
  color: var(--muted);
}
.contact-form { padding: 2rem 2rem; }
.contact-form .form-control {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .75rem .9rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: var(--radius);
}
.contact-form .form-control:focus {
  background: var(--bg-0);
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
  color: var(--text);
}
.contact-form .form-label.mono.small {
  color: var(--text);
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: .35rem;
  font-size: .75rem;
}

.contact-success { padding: 3rem 2rem; text-align: center; }
.text-success-glow { color: var(--neon); font-weight: 600; }

.alert-cyber-error {
  background: rgba(220, 38, 38, .06);
  border: 1px solid rgba(220, 38, 38, .25);
  color: var(--red);
  border-radius: var(--radius);
  padding: .9rem 1.15rem;
  margin: 0 2rem;
  margin-top: 1.5rem;
  font-size: .9rem;
}

.hp-field {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.contact-side {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-channel { margin-bottom: 1rem; }
.contact-channel-label {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: .25rem;
}
.contact-channel a { word-break: break-all; font-size: .92rem; color: var(--text); }
.contact-channel a:hover { color: var(--neon); }
.contact-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 1.25rem 0;
}

/* ====================================================================
   TYPOGRAPHY OVERRIDE — Fraunces para títulos display
   Body en Newsreader (reading) · UI en Inter · Display en Fraunces
   ==================================================================== */
.hero-title,
.article-title,
.section-head h2,
.article-body h2,
.article-body h3,
.article-body h4,
.whoami-cta h2,
.article-cta h5,
.suscribir-box h2 {
  font-family: 'Fraunces', 'Newsreader', 'Charter', Georgia, serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 700;
  letter-spacing: -0.028em;
}

/* Italic suave en el highlight del hero (la palabra acentuada) */
.hero-title .text-glow {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 500;
  font-style: italic;
}

/* Números display de stats */
.hero-stats strong {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'wght' 600;
}

/* Drop caps con Fraunces (más carácter que Newsreader en este tamaño) */
.article-body > p:first-of-type::first-letter,
.resumen-prosa p:first-of-type::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'wght' 700;
}

/* Refinos de Newsreader para reading: optical size grande en body de artículo */
.article-body,
.resumen-prosa,
.article-lead,
.hero-lead,
.feed-title,
.post-title {
  font-family: 'Newsreader', 'Charter', Georgia, serif;
  font-variation-settings: 'opsz' 24;
}
.article-body blockquote {
  font-family: 'Newsreader', Georgia, serif;
  font-variation-settings: 'opsz' 36, 'wght' 400;
  font-style: italic;
}

/* ====================== PDF CTA (material adjunto) ====================== */
.pdf-cta {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin: 3rem 0 2rem;
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 8px 24px -12px rgba(15, 30, 50, 0.15);
}
.pdf-cta-icon {
  width: 56px;
  height: 70px;
  border-radius: 6px;
  background: var(--neon);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(26, 137, 23, .35);
}
.pdf-cta-body { flex: 1; min-width: 0; }
.pdf-cta-kicker {
  color: var(--neon);
  letter-spacing: .12em;
  text-transform: lowercase;
  font-weight: 600;
  margin-bottom: .25rem;
}
.pdf-cta-title {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 72, 'SOFT' 30, 'wght' 600;
  font-size: 1.4rem;
  margin: 0 0 .35rem;
  line-height: 1.25;
  color: var(--text);
}
.pdf-cta-desc {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0 0 .55rem;
  line-height: 1.55;
}
.pdf-cta-meta {
  color: var(--muted);
  margin-bottom: 1rem;
}
.pdf-cta-meta .sep { margin: 0 .35rem; opacity: .5; }
.pdf-cta-form .input-group .form-control,
.pdf-cta-form .input-group .input-group-text { font-size: .92rem; }
.pdf-cta-msg.ok  { color: #15803d; font-weight: 500; }
.pdf-cta-msg.err { color: var(--red); font-weight: 500; }
.pdf-cta-hint { line-height: 1.45; }

@media (max-width: 600px) {
  .pdf-cta { flex-direction: column; align-items: stretch; padding: 1.2rem; }
  .pdf-cta-icon { width: 48px; height: 60px; }
}

/* ====================== YOUTUBE EMBED ====================== */
.article-body .yt-embed,
.md-preview .yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -10px rgba(15, 30, 50, 0.18);
}
.article-body .yt-embed iframe,
.md-preview .yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ====================== TABLAS MARKDOWN ====================== */
.article-body .table-wrap {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.article-body .md-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  margin: 0;
}
.article-body .md-table thead {
  background: var(--bg-3);
}
.article-body .md-table th {
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 2px solid var(--line-strong);
  color: var(--text-1, #0f1e32);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-body .md-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-1, #0f1e32);
  line-height: 1.55;
}
.article-body .md-table tbody tr:last-child td {
  border-bottom: 0;
}
.article-body .md-table tbody tr:hover {
  background: var(--bg-1);
}
.article-body .md-table code {
  font-size: 0.85em;
  padding: 0.12em 0.4em;
}

/* ====================== SLIDE-IN SUSCRIPCIÓN ====================== */
.sub-slidein {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 18px 48px rgba(15, 30, 50, 0.18), 0 4px 12px rgba(15, 30, 50, 0.08);
  z-index: 1080;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: opacity .28s ease, transform .32s cubic-bezier(.2,.7,.2,1);
}
.sub-slidein.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.sub-slidein-close {
  position: absolute;
  top: .5rem;
  right: .65rem;
  background: transparent;
  border: 0;
  color: var(--text-2, #6b7280);
  font-size: 1.4rem;
  line-height: 1;
  padding: .25rem .45rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.sub-slidein-close:hover {
  background: var(--bg-3);
  color: var(--text-1, #0f1e32);
}
.sub-slidein-kicker {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--accent, #b45309);
  margin-bottom: .35rem;
}
.sub-slidein-title {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 36, 'SOFT' 30, 'wght' 600;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 .4rem;
  color: var(--text-1, #0f1e32);
}
.sub-slidein-text {
  font-size: .92rem;
  line-height: 1.45;
  color: var(--text-2, #4b5563);
  margin: 0 0 .9rem;
}
.sub-slidein-form .input-group { gap: 0; }
.sub-slidein-form .form-control,
.sub-slidein-form .input-group-text,
.sub-slidein-form .btn { font-size: .9rem; }
.sub-slidein-msg.ok  { color: #047857; }
.sub-slidein-msg.err { color: #b91c1c; }

@media (max-width: 480px) {
  .sub-slidein {
    right: .75rem;
    left: .75rem;
    bottom: .75rem;
    width: auto;
    padding: 1.1rem 1.1rem 1rem;
  }
  .sub-slidein-title { font-size: 1.1rem; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }
  .section-block { padding: 3.5rem 0; }
  .article-body { padding: 2.5rem 0 3rem; font-size: 1.1rem; }
  .article-body h2 { font-size: 1.55rem; }
  .article-body h3 { font-size: 1.25rem; }
  .article-body > p:first-of-type::first-letter { font-size: 3.5rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats strong { font-size: 1.5rem; }
  .article-hero { padding: 3rem 0 1.5rem; }
}
