/* ═══════════════ BLOG · Salvads Growth ═══════════════
   Se carga después de /landing.css (usa sus variables). */

/* ── Cabecera del blog / artículo ── */
.b-hero { padding: calc(var(--topbar) + var(--nav) + 56px) 0 40px; position: relative; }
.b-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(67,97,238,.14), transparent 70%);
}
.b-hero .container { position: relative; }
.b-hero__inner { max-width: 820px; }
.b-hero--center .b-hero__inner { margin: 0 auto; text-align: center; }
.b-h1 {
    font-family: var(--fd); font-size: clamp(32px, 4.6vw, 52px); font-weight: 800;
    letter-spacing: -0.035em; line-height: 1.08; margin: 16px 0 18px;
}
.b-h1 .ac { color: var(--blue); }
.b-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--g2); line-height: 1.7; max-width: 720px; }
.b-hero--center .b-lead { margin: 0 auto; }
.b-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; color: var(--g2); }
.b-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Imagen destacada ── */
.b-cover { max-width: 1040px; margin: 8px auto 0; padding: 0 24px; }
.b-cover figure { margin: 0; }
.b-cover img {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
    border-radius: var(--r); border: 1px solid var(--border); background: var(--card);
}
.b-cover figcaption, .b-fig figcaption { font-size: 12px; color: var(--g2); margin-top: 10px; text-align: right; }
.b-cover figcaption a, .b-fig figcaption a { color: var(--g1); text-decoration: underline; text-underline-offset: 2px; }

/* ── Cuerpo del artículo ── */
.b-wrap { padding: 48px 0 24px; }
.b-body { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.8; color: var(--g1); }
.b-body > * + * { margin-top: 1.1em; }
.b-body h2 {
    font-family: var(--fd); font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; color: var(--white);
    letter-spacing: -0.025em; line-height: 1.25; margin-top: 2.2em; scroll-margin-top: 120px;
}
.b-body h3 {
    font-family: var(--fd); font-size: 20px; font-weight: 700; color: var(--white);
    letter-spacing: -0.015em; line-height: 1.35; margin-top: 1.8em; scroll-margin-top: 120px;
}
.b-body p { margin-bottom: 0; }
.b-body strong { color: var(--white); font-weight: 700; }
.b-body a { color: #7d93ff; text-decoration: underline; text-underline-offset: 3px; }
.b-body a:hover { color: var(--white); }
.b-body ul, .b-body ol { padding-left: 1.3em; }
.b-body li { margin: .45em 0; padding-left: .2em; }
.b-body li::marker { color: var(--blue); font-weight: 700; }
.b-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em;
    background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--white);
}

/* Índice */
.b-toc {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--rs);
    padding: 20px 24px; font-size: 15px;
}
.b-toc__t { font-family: var(--fd); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g2); margin-bottom: 10px; }
.b-toc ol { margin: 0; padding-left: 1.2em; }
.b-toc li { margin: .3em 0; }
.b-toc a { color: var(--g1); text-decoration: none; }
.b-toc a:hover { color: var(--white); text-decoration: underline; }

/* Recuadros */
.b-note, .b-formula, .b-warn {
    border-radius: var(--rs); padding: 18px 22px; font-size: 16px; line-height: 1.7;
    border: 1px solid var(--border-b); background: rgba(67,97,238,.07);
}
.b-note strong:first-child, .b-warn strong:first-child { display: block; margin-bottom: 4px; }
.b-warn { border-color: rgba(245,166,35,.4); background: rgba(245,166,35,.07); }
.b-formula { text-align: center; font-family: var(--fd); font-weight: 700; color: var(--white); font-size: clamp(15px, 1.8vw, 18px); }
.b-formula small { display: block; margin-top: 6px; font-family: var(--fb); font-weight: 400; color: var(--g2); font-size: 13px; }

/* Tabla */
.b-table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.b-table th, .b-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.b-table th { font-family: var(--fd); font-size: 13px; color: var(--white); background: var(--card); white-space: nowrap; }
.b-table td:first-child { color: var(--white); font-weight: 600; }

/* Checklist */
.b-check { list-style: none; padding-left: 0 !important; }
.b-check li { position: relative; padding-left: 34px !important; }
.b-check li::before {
    content: '✓'; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 6px;
    background: rgba(67,97,238,.15); color: #7d93ff; font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

/* CTA dentro del artículo */
.b-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--border-b);
    background: linear-gradient(135deg, rgba(67,97,238,.16), rgba(67,97,238,.04));
}
.b-cta p { margin: 0; font-size: 16px; color: var(--g1); max-width: 440px; }
.b-cta p strong { display: block; font-family: var(--fd); font-size: 18px; margin-bottom: 2px; }
.b-body .b-cta a.btn { color: #fff; text-decoration: none; }

/* Fuentes */
.b-sources { font-size: 14px; color: var(--g2); border-top: 1px solid var(--border); padding-top: 22px; margin-top: 2.6em !important; }
.b-sources h2 { font-size: 15px !important; letter-spacing: .1em !important; text-transform: uppercase; color: var(--g2) !important; margin: 0 0 8px !important; }
.b-sources ul { padding-left: 1.1em; }
.b-sources a { color: var(--g1) !important; }
.b-disclaimer { font-size: 13px !important; color: var(--g2); font-style: italic; }

/* ── Tarjetas (índice y relacionados) ── */
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.b-card {
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden; transition: border-color .25s, transform .25s;
}
.b-card:hover { border-color: var(--border-b); transform: translateY(-3px); }
.b-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg2); }
.b-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-card__tag { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7d93ff; }
.b-card__t { font-family: var(--fd); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: var(--white); }
.b-card__x { font-size: 14px; color: var(--g2); line-height: 1.65; }
.b-card__m { margin-top: auto; font-size: 12px; color: var(--g2); }
.b-list { padding: 24px 0 88px; }
.b-related { padding: 56px 0 80px; }
.b-related__t { font-family: var(--fd); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }

@media (max-width: 640px) {
    .b-hero { padding-top: calc(var(--topbar) + var(--nav) + 36px); }
    .b-body { font-size: 16px; }
    .b-cover { padding: 0 16px; }
    .b-cta { padding: 20px; }
    .b-cta .btn { width: 100%; justify-content: center; }
}
