/* ============================================================
   POST — artículo individual · Rvolucion
   ============================================================ */
.po-hero { position: relative; padding: 8rem 0 2rem; background: var(--ink); }
.po-hero-glow {
    position: absolute; top: -100px; right: 10%;
    width: 500px; height: 350px;
    background: radial-gradient(ellipse, rgba(255,87,34,0.12), transparent 70%);
    filter: blur(100px); pointer-events: none;
}
.po-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.po-breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-dim);
    margin-bottom: 1.5rem;
}
.po-breadcrumb a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
.po-breadcrumb a:hover { color: var(--fire); }
.po-breadcrumb span { margin: 0 0.4rem; }
.po-cat {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fire);
    font-weight: 600;
    margin-bottom: 1rem;
}
.po-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.po-meta {
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray);
}
.po-author { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); }
.po-author-av {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--grad-fire);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.9rem;
}

/* Barra de progreso de lectura */
.po-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0;
    background: var(--grad-fire);
    z-index: 100;
    transition: width 0.1s linear;
}

/* Imagen destacada */
.po-cover {
    margin: 2rem 0 0;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
}
.po-cover img { width: 100%; height: 100%; object-fit: cover; }
.po-cover.po-noimg {
    position: relative;
}
.po-cover.po-noimg::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,87,34,0.2), transparent 55%),
        radial-gradient(circle at 75% 65%, rgba(44,232,245,0.15), transparent 55%);
}

/* ============================================================
   LAYOUT: TOC + contenido
   ============================================================ */
.po-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
    align-items: start;
}

/* TOC lateral fija */
.po-toc {
    position: sticky;
    top: 2rem;
}
.po-toc-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-dim);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}
.po-toc-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.po-toc-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.45rem 0.8rem;
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
}
.po-toc-link:hover { color: var(--white); }
.po-toc-link.is-sub { padding-left: 1.6rem; font-size: 0.85rem; }
.po-toc-link.active {
    color: var(--fire);
    border-left-color: var(--fire);
    background: rgba(255,87,34,0.05);
}

/* Compartir */
.po-share { margin-top: 2.5rem; }
.po-share-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-dim);
    margin-bottom: 0.8rem;
}
.po-share-btns { display: flex; gap: 0.6rem; }
.po-share-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    color: var(--gray);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.po-share-btn:hover { border-color: var(--fire); color: var(--fire); transform: translateY(-2px); }
.po-share-btn svg { width: 17px; height: 17px; }

/* ============================================================
   CONTENIDO DEL ARTÍCULO
   ============================================================ */
.po-content {
    max-width: 720px;
    font-size: 1.12rem;
    line-height: 1.8;
    color: #c3c8d4;
}
.po-lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--white);
    font-weight: 400;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}
.po-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    color: var(--white);
    margin: 2.8rem 0 1rem;
    scroll-margin-top: 2rem;
}
.po-content h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    margin: 2rem 0 0.8rem;
    scroll-margin-top: 2rem;
}
.po-content p { margin-bottom: 1.4rem; }
.po-content a { color: var(--fire); text-decoration: underline; text-underline-offset: 3px; }
.po-content ul, .po-content ol { margin: 0 0 1.4rem 1.4rem; }
.po-content li { margin-bottom: 0.6rem; }
.po-content img { max-width: 100%; border-radius: 16px; margin: 2rem 0; }
.po-content blockquote {
    border-left: 3px solid var(--fire);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    color: var(--white);
    font-size: 1.25rem;
    font-style: italic;
}
.po-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(255,255,255,0.06);
    padding: 0.15em 0.4em;
    border-radius: 5px;
    color: var(--cyan);
}

/* ============================================================
   CTA dentro del post
   ============================================================ */
.po-cta { padding: 2rem 0 4rem; background: var(--ink); }
.po-cta-box {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    background: linear-gradient(120deg, rgba(255,87,34,0.1), rgba(44,232,245,0.06));
    border: 1px solid rgba(255,87,34,0.25);
    border-radius: 20px;
    padding: 2.2rem 2.5rem;
    flex-wrap: wrap;
}
.po-cta-text h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}
.po-cta-text p { color: var(--gray); margin: 0; }

/* ============================================================
   POSTS RELACIONADOS
   ============================================================ */
.po-related { padding: 5rem 0; background: var(--ink-2); }
.po-related-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}
.po-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.po-rel-card {
    display: block;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.po-rel-card:hover { border-color: rgba(255,87,34,0.3); transform: translateY(-5px); }
.po-rel-cat {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fire);
    font-weight: 600;
}
.po-rel-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.25;
    color: var(--white);
    margin: 0.8rem 0;
}
.po-rel-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gray); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .po-layout { grid-template-columns: 1fr; gap: 2rem; }
    .po-toc {
        position: static;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 1.5rem;
    }
    .po-content { max-width: none; }
    .po-related-grid { grid-template-columns: 1fr; }
    .po-cta-box { flex-direction: column; text-align: center; }
}
