/* ===== Nebula Ghost Theme — screen.css v8 =================================
   Diseño fiel a nebula-web-public (nebulasyst.com)
   Fuente: Figtree | Fondo: #060618 | Primary: #009dff | Accent: #bf00ff
========================================================================= */

/* ── Reset & tokens ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --clr-primary:           #009dff;
    --clr-primary-dark:      #0080d6;
    --clr-primary-light:     #48b9ff;
    --clr-primary-rgb:       0, 157, 255;
    --clr-primary-light-rgb: 72, 185, 255;
    --clr-accent:            #bf00ff;
    --clr-accent-hover:      #d864ff;
    --clr-accent-rgb:        191, 0, 255;
    --clr-space:             #060618;
    --clr-space-rgb:         6, 6, 24;
    --nb-text:               rgba(255, 255, 255, 0.88);
    --nb-text-muted:         rgba(255, 255, 255, 0.55);
    --nb-border:             rgba(255, 255, 255, 0.08);
    --nb-border-hover:       rgba(255, 255, 255, 0.25);
    --nb-radius:             16px;
    --nb-max-width:          1100px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--clr-space);
}

body {
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    background: var(--clr-space);
    color: var(--nb-text);
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary); text-decoration: none; transition: color 0.22s; }
a:hover { color: var(--clr-primary-light); }

/* ── Fondo cósmico fijo — idéntico a sobre-nosotros ─────────────────────── */
.nb-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.55) 0%, transparent 100%),
        radial-gradient(1px 1px at 64% 12%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(1px 1px at 86% 58%, rgba(255,255,255,0.50) 0%, transparent 100%),
        radial-gradient(1px 1px at 32% 82%, rgba(255,255,255,0.40) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 78%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 91% 44%, rgba(255,255,255,0.38) 0%, transparent 100%),
        radial-gradient(1px 1px at 22% 55%, rgba(255,255,255,0.32) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 38%, rgba(var(--clr-primary-light-rgb), 0.45) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 92% 26%, rgba(var(--clr-primary-light-rgb), 0.40) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 18% 72%, rgba(var(--clr-primary-light-rgb), 0.35) 0%, transparent 100%);
}

/* ── Glow hero — idéntico a .heroGlow de sobre-nosotros ─────────────────── */
.nb-bg::after {
    content: '';
    position: fixed;
    top: -10vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 130vw);
    height: 100vh;
    background: radial-gradient(
        ellipse at 50% 40%,
        rgba(var(--clr-primary-rgb), 0.22) 0%,
        rgba(var(--clr-primary-rgb), 0.08) 30%,
        transparent 60%
    );
    filter: blur(20px);
    pointer-events: none;
}

/* ── Eyebrow parpadeante (dot blink) ─────────────────────────────────────── */
.nb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.6rem;
}

.nb-eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--clr-primary-light);
    box-shadow:
        0 0 8px  rgba(var(--clr-primary-light-rgb), 0.85),
        0 0 18px rgba(var(--clr-primary-light-rgb), 0.55);
    animation: nb-dot-blink 2.4s ease-in-out infinite;
}

@keyframes nb-dot-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* ── Marquee — idéntico a sobre-nosotros ─────────────────────────────────── */
.nb-marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 1.8rem 0;
    margin: 0.5rem 0 2rem;
    border-top:    1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.nb-marquee-track {
    display: inline-flex;
    gap: 3.5rem;
    white-space: nowrap;
    animation: nb-marquee 35s linear infinite;
    will-change: transform;
}

.nb-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-size: clamp(1.4rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

.nb-marquee-star {
    color: var(--clr-primary-light);
    font-size: 0.65em;
    text-shadow: 0 0 14px rgba(var(--clr-primary-light-rgb), 0.55);
}

@keyframes nb-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.nb-viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

#nb-main {
    flex: 1;
    padding-top: 88px;
}

.nb-container {
    max-width: var(--nb-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}

/* ── Nav (idéntico al TopBar de nebulasyst.com) ──────────────────────────── */
#topbar {
    position: fixed;
    top: 1.3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: stretch;
    background: rgba(var(--clr-space-rgb), 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    white-space: nowrap;
    overflow: visible;
}

#topbar-left {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

#topbar-left a { display: flex; align-items: center; }

#topbar-logo {
    height: 20px;
    width: auto;
    opacity: 0.85;
}

#nb-logo-text {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(120deg, var(--clr-primary-light), var(--clr-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#nav-dots {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.4rem;
}

#nav-dots a {
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.22s, text-shadow 0.22s;
}

#nav-dots a:hover { color: #fff; }

#nav-dots .sep {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.56rem;
}

#topbar-right {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.2rem;
}

#topbar-login {
    color: rgba(255, 255, 255, 0.50);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.22s;
}

#topbar-login:hover { color: #fff; }

#topbar-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

#topbar-menu:hover, #topbar-menu:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

#nav-close { display: none; }

/* ── Mobile nav overlay ──────────────────────────────────────────────────── */
#nb-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(var(--clr-space-rgb), 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    padding: 6rem 2rem 7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

#nb-mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

#nb-mobile-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.80);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

#nb-mobile-close:hover, #nb-mobile-close:focus-visible, #nb-mobile-close:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.30);
}

#nb-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

#nb-mobile-links a {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.6rem 1.2rem;
    display: block;
    text-align: center;
    min-width: 60%;
    transition: color 0.22s;
}

#nb-mobile-links a:hover { color: #fff; }

#nb-mobile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
.nb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 2rem;
    border-radius: 99px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
                border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nb-btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow:
        0 0 0 1px rgba(var(--clr-primary-light-rgb), 0.30),
        0 0 28px rgba(var(--clr-primary-rgb), 0.45);
}

.nb-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(var(--clr-primary-light-rgb), 0.55),
        0 0 40px rgba(var(--clr-primary-rgb), 0.65);
}

.nb-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nb-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.30);
}

.nb-btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.82rem;
}

/* ── Tags ────────────────────────────────────────────────────────────────── */
.nb-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-primary-light);
    background: rgba(var(--clr-primary-light-rgb), 0.12);
    border: 1px solid rgba(var(--clr-primary-light-rgb), 0.30);
    border-radius: 99px;
    padding: 0.22rem 0.7rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nb-tag:hover {
    background: rgba(var(--clr-primary-light-rgb), 0.22);
    border-color: rgba(var(--clr-primary-light-rgb), 0.55);
    color: #fff;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.nb-hero {
    position: relative;
    text-align: center;
    padding: clamp(5rem, 10vh, 8rem) clamp(1.4rem, 6vw, 5rem) clamp(3rem, 6vh, 5rem);
    z-index: 1;
}

.nb-hero-logo {
    height: 52px;
    width: auto;
    margin: 0 auto 2rem;
    opacity: 0.92;
}

.nb-hero-author-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nb-hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 1.2rem;
    background: linear-gradient(
        120deg,
        var(--clr-primary-light) 0%,
        var(--clr-primary) 60%,
        rgba(var(--clr-primary-light-rgb), 0.65) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nb-hero-desc {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.66);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.nb-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Post grid ───────────────────────────────────────────────────────────── */
.nb-posts {
    padding-bottom: clamp(4rem, 8vh, 6rem);
}

.nb-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.nb-post-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Post card ───────────────────────────────────────────────────────────── */
.nb-card {
    background: rgba(var(--clr-space-rgb), 0.50);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--nb-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease,
                transform 0.3s ease, background 0.3s ease;
}

.nb-card:hover {
    background: rgba(var(--clr-space-rgb), 0.70);
    border-color: rgba(var(--clr-primary-light-rgb), 0.40);
    box-shadow:
        0 0 0 1px rgba(var(--clr-primary-light-rgb), 0.20),
        0 0 32px rgba(var(--clr-primary-rgb), 0.20),
        0 12px 36px rgba(0, 0, 0, 0.40);
    transform: translateY(-2px);
}

.nb-card-img-link {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}

.nb-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nb-card:hover .nb-card-img { transform: scale(1.04); }

.nb-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.4rem;
    flex: 1;
}

.nb-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.nb-card-title a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.22s;
}

.nb-card-title a:hover { color: var(--clr-primary-light); }

.nb-card-excerpt {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.nb-card-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
}

.nb-card-date {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.nb-card-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.nb-card-sep { color: rgba(255, 255, 255, 0.18); font-size: 0.56rem; }
.nb-locked { color: var(--clr-accent); display: flex; align-items: center; opacity: 0.8; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 0 1rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.30);
    color: #fff;
}

.pagination .page-number {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Article ─────────────────────────────────────────────────────────────── */
.nb-post-wrap { padding-bottom: clamp(4rem, 8vh, 6rem); }

.nb-article-header {
    position: relative;
    padding: clamp(3rem, 6vh, 5rem) 0 clamp(1.5rem, 3vh, 2.5rem);
    text-align: center;
}

.nb-article-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,157,255,0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.nb-article-header > * { position: relative; z-index: 1; }

.nb-article-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0.75rem 0 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.nb-article-excerpt {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.66);
    max-width: 600px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.nb-article-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.nb-author-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nb-article-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nb-author-info { text-align: left; }

.nb-article-author {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.22s;
}

.nb-article-author:hover { color: var(--clr-primary-light); }

.nb-article-dateline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.1rem;
}

/* Article image */
.nb-article-image {
    margin: 0 0 2rem;
    overflow: hidden;
}

.nb-img-wide {
    border-radius: var(--nb-radius);
}

.nb-article-image img { width: 100%; border-radius: inherit; }

.nb-article-image figcaption {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-top: 0.6rem;
    padding: 0 clamp(1.4rem, 6vw, 5rem);
}

/* Article body */
.nb-article-body {
    padding-top: 0.5rem;
    padding-bottom: 2.5rem;
    font-family: 'Figtree', system-ui, sans-serif;
}

.nb-article-body.gh-content h1,
.nb-article-body.gh-content h2,
.nb-article-body.gh-content h3,
.nb-article-body.gh-content h4 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    line-height: 1.25;
    margin: 2.2rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.nb-article-body.gh-content h2 { font-size: 1.6rem; }
.nb-article-body.gh-content h3 { font-size: 1.25rem; }
.nb-article-body.gh-content h4 { font-size: 1.05rem; }

.nb-article-body.gh-content p {
    margin: 0 0 1.4rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.nb-article-body.gh-content a {
    color: var(--clr-primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(var(--clr-primary-light-rgb), 0.35);
    transition: color 0.22s, text-decoration-color 0.22s;
}

.nb-article-body.gh-content a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

.nb-article-body.gh-content blockquote {
    border-left: 2px solid var(--clr-primary);
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.62);
    font-style: italic;
    font-size: 1.05rem;
}

.nb-article-body.gh-content code {
    font-size: 0.82em;
    background: rgba(var(--clr-primary-light-rgb), 0.10);
    color: var(--clr-primary-light);
    padding: 0.15em 0.45em;
    border-radius: 6px;
    border: 1px solid rgba(var(--clr-primary-light-rgb), 0.18);
}

.nb-article-body.gh-content pre {
    background: rgba(var(--clr-space-rgb), 0.80);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.75rem 0;
}

.nb-article-body.gh-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85em;
}

.nb-article-body.gh-content img {
    border-radius: 12px;
    width: 100%;
    margin: 1.5rem 0;
}

.nb-article-body.gh-content figure { margin: 1.5rem 0; }

.nb-article-body.gh-content figcaption {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-top: 0.5rem;
}

.nb-article-body.gh-content ul,
.nb-article-body.gh-content ol {
    padding-left: 1.5rem;
    margin: 0 0 1.4rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.nb-article-body.gh-content li { margin-bottom: 0.35rem; }

.nb-article-body.gh-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0;
}

/* Article tags */
.nb-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

/* Paywall */
.nb-paywall { padding-bottom: 0; }

.nb-paywall-inner {
    background: rgba(var(--clr-space-rgb), 0.50);
    border: 1px solid rgba(var(--clr-primary-light-rgb), 0.25);
    border-radius: var(--nb-radius);
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 0 0 1px rgba(var(--clr-primary-light-rgb), 0.12),
        0 0 32px rgba(var(--clr-primary-rgb), 0.15);
}

.nb-paywall-icon {
    color: var(--clr-primary);
    margin: 0 auto 1rem;
    opacity: 0.8;
}

.nb-paywall-inner h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.02em;
}

.nb-paywall-inner p {
    color: rgba(255, 255, 255, 0.62);
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

.nb-paywall-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Author card ─────────────────────────────────────────────────────────── */
.nb-author-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(var(--clr-space-rgb), 0.50);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--nb-radius);
    padding: 1.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nb-author-card-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.nb-author-card-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.25rem;
}

.nb-author-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: rgba(255, 255, 255, 0.92);
}

.nb-author-card-bio {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.6;
    margin: 0;
}

/* ── Related posts ───────────────────────────────────────────────────────── */
.nb-related {
    padding-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2.5rem;
}

.nb-related-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.25rem;
}

/* ── Error page ──────────────────────────────────────────────────────────── */
.nb-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 1rem;
}

.nb-error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(120deg, var(--clr-primary-light), var(--clr-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nb-error-msg {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 1.5rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
#nb-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem clamp(1.4rem, 6vw, 5rem);
}

#nb-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.nb-footer-logo {
    height: 22px;
    width: auto;
    opacity: 0.50;
}

.nb-footer-title {
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--clr-primary-light), var(--clr-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nb-footer-desc {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.28);
    max-width: 340px;
    line-height: 1.5;
    margin: 0.35rem 0 0;
}

#nb-footer-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

#nb-footer-nav a {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.22s;
}

#nb-footer-nav a:hover { color: rgba(255, 255, 255, 0.65); }

#nb-footer-bottom {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.02em;
}

/* ── Ghost upgrade CTA ───────────────────────────────────────────────────── */
.gh-post-upgrade-cta {
    margin: 2.5rem 0;
}

.gh-post-upgrade-cta-content {
    background: rgba(0, 157, 255, 0.08) !important;
    border: 1px solid rgba(0, 157, 255, 0.25) !important;
    border-radius: var(--nb-radius) !important;
    box-shadow: 0 0 0 1px rgba(0, 157, 255, 0.10), 0 0 32px rgba(0, 157, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: 'Figtree', system-ui, sans-serif !important;
}

.gh-post-upgrade-cta h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.gh-post-upgrade-cta p {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.95rem !important;
}

.gh-post-upgrade-cta a.gh-btn {
    background: linear-gradient(135deg, #009dff, #0080d6) !important;
    border-radius: 99px !important;
    color: #fff !important;
    font-family: 'Figtree', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.7rem 1.6rem !important;
    box-shadow: 0 0 0 1px rgba(72, 185, 255, 0.30), 0 0 24px rgba(0, 157, 255, 0.35) !important;
    transition: opacity 0.2s !important;
}

.gh-post-upgrade-cta a.gh-btn:hover {
    opacity: 0.88 !important;
}

/* ── Ghost card assets (kg-*) ────────────────────────────────────────────── */
.kg-width-wide {
    margin-left: -2rem;
    margin-right: -2rem;
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
}

.kg-gallery-container { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kg-gallery-row { display: flex; gap: 0.5rem; }
.kg-gallery-image { flex: 1; overflow: hidden; border-radius: 10px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(var(--clr-space-rgb), 0.50);
    border: 1px solid rgba(var(--clr-primary-light-rgb), 0.18);
    border-radius: 12px;
    margin: 1.5rem 0;
    backdrop-filter: blur(14px);
}

.kg-callout-emoji { font-size: 1.3rem; flex-shrink: 0; }
.kg-callout-text { color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.7; }

.kg-bookmark-card {
    display: flex;
    background: rgba(var(--clr-space-rgb), 0.50);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    margin: 1.5rem 0;
    transition: border-color 0.2s;
    backdrop-filter: blur(14px);
}

.kg-bookmark-card:hover { border-color: rgba(var(--clr-primary-light-rgb), 0.35); }
.kg-bookmark-content { padding: 1rem 1.25rem; flex: 1; }
.kg-bookmark-title { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.88); margin-bottom: 0.25rem; }
.kg-bookmark-description { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.kg-bookmark-url { font-size: 0.7rem; color: var(--clr-primary); margin-top: 0.5rem; opacity: 0.8; }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; overflow: hidden; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-header-card {
    background: rgba(6, 6, 28, 0.55) !important;
    border: 1px solid rgba(0, 157, 255, 0.18) !important;
    border-radius: var(--nb-radius) !important;
    padding: 3rem 2rem !important;
    margin: 2rem 0 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 0 0 1px rgba(0, 157, 255, 0.08), 0 0 40px rgba(0, 157, 255, 0.10), 0 16px 48px rgba(0, 0, 0, 0.40) !important;
}

.kg-header-card-heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-family: 'Figtree', system-ui, sans-serif !important;
    margin-bottom: 0.75rem !important;
}

.kg-header-card-subheading {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    line-height: 1.7 !important;
    font-family: 'Figtree', system-ui, sans-serif !important;
    font-weight: 400 !important;
    max-width: 640px !important;
}

.kg-header-card-text {
    padding: 0 !important;
}

.kg-header-card-button {
    background: linear-gradient(135deg, #009dff, #0080d6) !important;
    border-radius: 99px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-family: 'Figtree', system-ui, sans-serif !important;
    box-shadow: 0 0 0 1px rgba(72, 185, 255, 0.30), 0 0 24px rgba(0, 157, 255, 0.35) !important;
}

.kg-video-card {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
}
.kg-video-card iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ── Portal ──────────────────────────────────────────────────────────────── */
.gh-portal-trigger { display: none !important; }

/* ── Responsive (móvil touch) ────────────────────────────────────────────── */
@media (pointer: coarse) {
    #topbar {
        left: 0.75rem;
        right: 0.75rem;
        transform: none;
        top: 0.8rem;
        border-radius: 14px;
        padding: 0.32rem 0.45rem;
        justify-content: space-between;
    }

    #topbar-left {
        flex: 0 0 auto;
        border-right: none;
        padding: 0.25rem 0.55rem;
    }

    #topbar-logo { height: 18px; }

    #topbar-right {
        flex: 0 0 auto;
        padding: 0;
        border-left: none;
        gap: 0.2rem;
    }

    #topbar-login {
        width: 38px;
        height: 38px;
        justify-content: center;
        border-radius: 10px;
    }

    #topbar-login:hover, #topbar-login:focus-visible {
        background: rgba(255, 255, 255, 0.08);
    }

    #topbar-menu { display: inline-flex; }

    #nav-dots { display: none; }

    #nb-mobile-nav { display: flex; }

    #nav-close { display: inline-flex; }

    #nb-main { padding-top: 70px; }
}

@media (max-width: 700px) {
    .nb-post-grid,
    .nb-post-grid-3 { grid-template-columns: 1fr; }

    #nb-footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }

    #nb-footer-nav ul { justify-content: flex-start; gap: 1rem; }

    .nb-author-card { flex-direction: column; }
}

/* ── Accesibilidad ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
