/* Páginas de las notas de la bitácora */
.article { padding: clamp(40px, 7vw, 72px) 0 clamp(64px, 9vw, 110px); background: var(--bg); }
.article__shell { max-width: 780px; }

.article__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 36px; font-size: .92rem; font-weight: 600; color: var(--blue-500); transition: color .2s var(--ease), gap .2s var(--ease); }
.article__back:hover { color: #1f55b8; gap: 12px; }

.article__head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.article__head h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.article__excerpt { margin-top: 20px; font-size: 1.15rem; line-height: 1.6; color: var(--text); }

.article__body section { margin-bottom: 40px; }
.article__body h2 { margin-bottom: 14px; font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 700; }
.article__body p { margin-bottom: 16px; max-width: 70ch; }
.article__body section > p:last-child { margin-bottom: 0; }
.article__body a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.article__body a:hover { color: #1f55b8; }
.article__body pre { margin: 0 0 16px; padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: .88rem; line-height: 1.6; color: #e6efff; background: var(--navy-900); border-radius: var(--radius-sm); }
.article__body table { display: block; max-width: 100%; margin-bottom: 16px; overflow-x: auto; border-collapse: collapse; }
.article__body img { border-radius: var(--radius-sm); }

.article-references { margin-top: 48px; padding: 26px 28px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); }
.article-references h2 { margin-bottom: 14px; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article-references ul { display: grid; gap: 4px; }
.article-references li a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.article-references li:last-child a { border-bottom: 0; }
.article-references li a:hover { text-decoration: underline; }

.article__pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.pn:hover { transform: translateY(-3px); border-color: rgba(47, 111, 228, .3); box-shadow: var(--shadow-md); }
.pn span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-500); }
.pn strong { font-size: 1rem; line-height: 1.35; color: var(--ink); }
.pn--next { grid-column: 2; text-align: right; }
.pn--prev:only-child { grid-column: 1; }

.article__end { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; font-weight: 600; color: var(--blue-500); }
.article__end a:hover { color: #1f55b8; }

@media (max-width: 600px) {
  .article__pn { grid-template-columns: 1fr; }
  .pn--next { grid-column: 1; text-align: left; }
  .article-references { padding: 20px; }
}
.nav { background: rgba(7, 18, 38, .97); }
