/* ============================================================
   blog.css — Artículos del blog (CJ_CRISTIA)
   Página de lectura: tipografía clara sobre fondo oscuro,
   misma piel HUD cyan que el resto del sitio.
   Reutiliza el patrón de chrome de legal.css.
   ============================================================ */

/* Nebulosa de fondo (igual que el resto del sitio) */
.tech-nebula-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.04), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.03), transparent 40%);
    pointer-events: none;
}

/* Sidebar: 70px fijo, se expande en hover (igual que el resto) */
#sidebar {
    width: 70px;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
}
#sidebar:hover {
    width: 240px;
}
#sidebar .opacity-0 {
    opacity: 0;
    transition: opacity 0.3s ease;
}
#sidebar:hover .opacity-0 {
    opacity: 1;
}

/* El main arranca tras la sidebar de 70px */
#main-content {
    left: 70px;
}

/* ---------- Columna de lectura ---------- */
.post-wrap {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

/* Miga de pan */
.post-crumbs {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.4);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}
.post-crumbs a {
    color: rgba(0, 240, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-crumbs a:hover {
    color: #00F0FF;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
.post-crumbs .sep {
    color: rgba(0, 240, 255, 0.25);
}
.post-crumbs .current {
    color: rgba(227, 225, 233, 0.6);
}

/* ---------- Cabecera del artículo ---------- */
.post-head {
    border-bottom: 1px dashed rgba(0, 240, 255, 0.2);
    padding-bottom: 1.75rem;
    margin-bottom: 2.25rem;
}
.post-eyebrow {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.45);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.post-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: rgba(0, 240, 255, 0.5);
    display: inline-block;
}
.post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    color: #fff;
    letter-spacing: 0.005em;
    text-wrap: balance;
}
.post-meta {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(227, 225, 233, 0.4);
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}
.post-meta a {
    color: rgba(0, 240, 255, 0.7);
    text-decoration: none;
}
.post-meta a:hover {
    color: #00F0FF;
}
.post-meta .dot {
    color: rgba(0, 240, 255, 0.3);
}

/* ---------- Cuerpo / prosa ---------- */
.post-body {
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(227, 225, 233, 0.78);
    font-size: 17px;
    line-height: 1.78;
}
.post-body .post-lead {
    font-size: 19px;
    line-height: 1.7;
    color: rgba(227, 225, 233, 0.92);
    margin-bottom: 2.25rem;
}
.post-body p {
    margin: 0 0 1.35rem;
}
.post-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.6vw, 26px);
    color: #00F0FF;
    letter-spacing: 0.01em;
    line-height: 1.25;
    margin: 2.75rem 0 1.1rem;
    padding-top: 0.4rem;
}
.post-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 1.9rem 0 0.6rem;
}
.post-body strong {
    color: rgba(0, 240, 255, 0.9);
    font-weight: 600;
}
.post-body a {
    color: rgba(0, 240, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.post-body a:hover {
    color: #00F0FF;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Listas */
.post-body ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.post-body ul li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    line-height: 1.65;
}
.post-body ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: rgba(0, 240, 255, 0.55);
    font-family: monospace;
    font-weight: 700;
}

/* Tablas de precios — panel de datos */
.post-body .post-table-wrap {
    overflow-x: auto;
    margin: 0 0 1.75rem;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-left: 2px solid rgba(0, 240, 255, 0.5);
    background: rgba(13, 14, 19, 0.4);
    border-radius: 2px;
}
.post-body table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Space Grotesk', sans-serif;
}
.post-body thead th {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.7);
    text-align: left;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
.post-body tbody td {
    padding: 0.85rem 1.25rem;
    font-size: 15px;
    color: rgba(227, 225, 233, 0.8);
    border-bottom: 1px dashed rgba(0, 240, 255, 0.08);
}
.post-body tbody tr:last-child td {
    border-bottom: none;
}
.post-body tbody td:last-child {
    color: rgba(0, 240, 255, 0.85);
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- CTA final ---------- */
.post-cta {
    margin-top: 3rem;
    background: rgba(13, 14, 19, 0.55);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-left: 2px solid rgba(0, 240, 255, 0.6);
    border-radius: 2px;
    padding: 2rem 2rem;
}
.post-cta .post-cta-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.45);
    margin-bottom: 0.9rem;
}
.post-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.6vw, 26px);
    color: #fff;
    margin: 0 0 0.7rem;
    line-height: 1.2;
}
.post-cta p {
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(227, 225, 233, 0.7);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}
.post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid #00F0FF;
    color: #00F0FF;
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    padding: 0.85rem 1.75rem;
    text-decoration: none;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.post-cta-btn:hover {
    background: #00F0FF;
    color: #0a0b10;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

/* Cierre tipo terminal */
.post-end {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.2);
    text-align: center;
    padding: 2.5rem 0 0.5rem;
}

/* ============================================================
   Índice del blog (/blog) — rejilla de tarjetas
   ============================================================ */
.blog-list-wrap {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}
.blog-list-head {
    border-bottom: 1px dashed rgba(0, 240, 255, 0.2);
    padding-bottom: 1.75rem;
    margin-bottom: 2.5rem;
}
.blog-list-head h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.08;
    color: #fff;
    letter-spacing: 0.005em;
    margin: 0.6rem 0 0;
}
.blog-list-head p {
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(227, 225, 233, 0.62);
    font-size: 16px;
    line-height: 1.7;
    max-width: 640px;
    margin: 1rem 0 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(13, 14, 19, 0.55);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-left: 2px solid rgba(0, 240, 255, 0.5);
    border-radius: 2px;
    padding: 1.6rem 1.6rem 1.4rem;
    text-decoration: none;
    transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.blog-card:hover {
    background: rgba(0, 240, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.4);
    border-left-color: #00F0FF;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.blog-card-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.blog-card-tag::before {
    content: "";
    width: 20px;
    height: 1px;
    background: rgba(0, 240, 255, 0.5);
    display: inline-block;
}
.blog-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.25;
    color: #fff;
    letter-spacing: 0.005em;
    margin: 0 0 0.7rem;
    text-wrap: balance;
    transition: color 0.3s ease;
}
.blog-card:hover .blog-card-title {
    color: #00F0FF;
}
.blog-card-excerpt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(227, 225, 233, 0.62);
    margin: 0 0 1.4rem;
}
.blog-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 240, 255, 0.12);
}
.blog-card-date {
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(227, 225, 233, 0.4);
}
.blog-card-cta {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease, color 0.3s ease;
}
.blog-card:hover .blog-card-cta {
    color: #00F0FF;
    gap: 0.7rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #main-content {
        left: 70px;
    }
    .post-body {
        font-size: 16px;
    }
    .post-body .post-lead {
        font-size: 17px;
    }
    .post-cta {
        padding: 1.5rem 1.35rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
