/* =========================================================================
   QENT — Estilos compartidos de las paginas de articulo del blog
   (blog/*.php). Se carga junto a marketing.css, que ya pone el tema
   oscuro global; aqui solo van los estilos propios del articulo:
   tipografia del cuerpo, cajas destacadas, breadcrumb, hero y sidebar
   flotante (tabla de contenidos + tarjeta de CTA).
   ========================================================================= */

.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- Hero del articulo ---------- */
.article-hero h1 {
    letter-spacing: -0.02em;
}
.article-hero .article-excerpt {
    color: rgba(255,255,255,0.62);
}

/* ---------- Cuerpo del articulo ---------- */
.article-body {
    font-size: 16px;
}
.article-body p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
}
.article-body strong {
    color: #fff;
    font-weight: 600;
}
.article-body h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-top: 48px;
    margin-bottom: 16px;
    border-left: 3px solid #2563eb;
    padding-left: 16px;
    line-height: 1.3;
    scroll-margin-top: 110px;
}
.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-top: 32px;
    margin-bottom: 10px;
    scroll-margin-top: 110px;
}
.article-body ul,
.article-body ol {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin: 0 0 24px 0;
    padding-left: 1.4em;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
    margin-bottom: 0.6em;
    padding-left: 0.3em;
}
.article-body li::marker { color: #3b82f6; }
.article-body a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-body a:hover { color: #22d3ee; }

/* ---------- Caja destacada ---------- */
.callout-box {
    background: rgba(37,99,235,0.08);
    border-left: 4px solid #2563eb;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    color: rgba(255,255,255,0.85);
    margin: 32px 0;
}
.callout-box p {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 0;
}
.callout-box strong { color: #93c5fd; }
.callout-box .callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #93c5fd;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.breadcrumb-nav a { color: rgba(255,255,255,0.55); transition: color 0.2s ease; }
.breadcrumb-nav a:hover { color: #60a5fa; }

/* ---------- Meta del hero (tiempo de lectura / autor) ---------- */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.48);
}
.article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.article-meta .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ---------- Sidebar flotante (TOC + CTA lateral) ---------- */
.blog-sidebar-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px;
}
.sidebar-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}
.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.toc-nav a {
    display: block;
    font-size: 13.5px;
    line-height: 1.4;
    color: rgba(255,255,255,0.62);
    border-left: 2px solid rgba(255,255,255,0.08);
    padding: 7px 0 7px 12px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.toc-nav a:hover {
    color: #60a5fa;
    border-left-color: #2563eb;
}
.sidebar-card-text {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    margin-bottom: 16px;
}
.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(37,99,235,0.35);
    transition: all 0.2s ease;
}
.sidebar-cta-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 0 22px rgba(37,99,235,0.5);
}
