/* =========================================
   PLANTILLA DE ARTÍCULOS (SINGLE POST)
   ========================================= */

/* Layout Principal */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 992px) {
    .post-layout { display: flex; flex-direction: column-reverse;}
}
.post-article { max-width: 720px; }
.post-aside { position: sticky; top: 6rem; }

/* Cabecera (Hero) */
.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.post-hero-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}
.post-hero-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}
.post-hero-tag.teal {
    background: rgba(13, 181, 165, 0.15);
    color: var(--teal-lt);
}

/* Tipografía del Artículo */
.post-intro {
    font-size: 1.1rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 2rem;
}
.post-h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
}
.post-h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 1.5rem 0 0.5rem;
}
.post-p-mt {
    margin-top: 1rem;
}

/* Cajas Laterales (Sidebar) */
.sidebar-box {
    border-radius: var(--r-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    background: #fff;
}
.sidebar-box.bg-off { background: var(--off); }
.sidebar-box.bg-red { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.15); }
.sidebar-box:last-child { margin-bottom: 0; }

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-lt);
    margin-bottom: 0.75rem;
}
.sidebar-title.mb-lg { margin-bottom: 1rem; }
.sidebar-title.red { color: #DC2626; }

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.sidebar-link {
    font-size: 0.84rem;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}
.sidebar-link:hover { color: var(--teal); }

.sidebar-list-custom {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.sidebar-list-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--slate);
}
.sidebar-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}
.sidebar-bullet.navy {
    background: var(--navy);
}

/* Promo Box (CTA Final del Post) */
.post-promo {
    background: var(--navy);
    border-radius: var(--r-lg);
    padding: 2rem;
    margin-top: 3rem;
}
.post-promo h3 {
    color: #fff;
    margin-bottom: 0.75rem;
}
.post-promo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Elementos Comunes (Alertas, Listas, Código) */
.alert-box {
    border-radius: var(--r-lg);
    padding: 1.25rem;
    margin-bottom: 2.5rem;
}
.alert-box.teal { background: rgba(10, 143, 130, 0.06); border: 1px solid rgba(10, 143, 130, 0.2); }
.alert-box.red { background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-text { font-size: 0.875rem; color: var(--slate); margin: 0; }

.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0;
}
.check-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.code-box {
    background: #0d1117;
    border-radius: var(--r-md);
    padding: 1.25rem;
    margin: 1.25rem 0;
    overflow-x: auto;
}
.code-box pre {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.7;
    color: #e6edf3;
}   