/* =========================================
   QUALITY SOLUTION CONSULTING
   blog.css — estilos específicos de blog
   Cargar SIEMPRE después de qsc-core.css
   ========================================= */

/* =========================================
   11. BLOG — INDEX, ARTÍCULOS Y PAGINACIÓN
   ========================================= */
.blog-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-top: 1rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow var(--tr), transform var(--tr); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card__img-link { display: block; overflow: hidden; }
.blog-card__img,
.blog-card__img-link img,
.blog-card-img { aspect-ratio: 16/9; width: 100%; object-fit: cover; display: block; background: var(--light); transition: transform .4s ease; }
.blog-card:hover .blog-card__img-link img { transform: scale(1.04); }
.blog-card__body,
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card__meta,
.blog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .76rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }
.blog-card__cat { color: var(--red); font-weight: 800; }
.blog-card h3,
.blog-card__title { font-size: clamp(1.1rem, 2vw, 1.32rem); font-weight: 700; line-height: 1.3; color: var(--dark); margin: 0; }
.blog-card h3 a:hover,
.blog-card__title a:hover { color: var(--red); }
.blog-card__excerpt,
.blog-card p { font-size: .92rem; color: var(--text-secondary); line-height: 1.55; flex: 1; max-width: none; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__link,
.blog-card-link { font-size: .88rem; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; transition: gap var(--tr); }
.blog-card__link:hover,
.blog-card-link:hover { gap: 8px; }

.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.blog-pagination a,
.blog-pagination span { min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--text); font-size: var(--text-sm); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: all var(--tr); }
.blog-pagination a:hover { border-color: var(--red); color: var(--red); background: rgba(204,34,41,.06); transform: translateY(-1px); }
.blog-pagination .current { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 0 6px 18px rgba(204,34,41,.22); }
.blog-pagination .disabled { opacity: .45; pointer-events: none; }
.blog-pagination .pagination-prev,
.blog-pagination .pagination-next { padding-inline: 18px; }

.article-hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; background: linear-gradient(180deg, #f7f7f7 0%, #fff 100%); }
.article-container { max-width: 1040px; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.03em; max-width: 920px; margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; color: var(--text-secondary); font-size: .85rem; margin: 1rem 0 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.article-intro,
.article-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.75; color: var(--text-secondary); max-width: 850px; margin: 1.5rem 0 2rem; }
.article-hero img,
.article-featured-img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-md); object-fit: cover; max-height: 520px; margin: 2rem 0 2.5rem; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 52px; align-items: start; }
.article-body { max-width: none; font-size: var(--text-base); line-height: 1.8; color: var(--text); }
.article-content { max-width: none; }
.article-body h1,
.article-content h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.article-body h2,
.article-content h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.18; margin: 2.6rem 0 1rem; }
.article-body h3,
.article-content h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.25; margin: 2rem 0 .75rem; }
.article-body p,
.article-content p { max-width: none; margin-bottom: 1.25rem; color: var(--text); line-height: 1.8; }
.article-content ul,
.article-content ol { margin: 1rem 0 1.5rem; padding-left: 0; }
.article-body ul,
.article-body ol { margin: 1rem 0 1.25rem 0; display: flex; flex-direction: column; gap: 6px; }
.article-content li,
.article-body li { position: relative; padding-left: 1.6rem; margin-bottom: .65rem; line-height: 1.65; font-size: var(--text-base); }
.article-content li::before,
.article-body li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 800; }

.cost-highlight,
.article-cta-inline,
.final-cta-card { border-radius: 16px; padding: clamp(22px, 4vw, 32px); margin: 2rem 0; }
.cost-highlight { background: #fff7f7; border-left: 5px solid var(--red); }
.cost-highlight h2 { margin-top: 0; }
.article-cta-inline { background: var(--dark); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.article-cta-inline p { color: rgba(255,255,255,.86); margin: 0; font-weight: 600; max-width: none; }
.final-cta-card { background: linear-gradient(135deg, var(--dark), #2b1416); color: var(--white); }
.final-cta-card h2 { color: var(--white); margin-top: 0; }
.final-cta-card p { color: rgba(255,255,255,.82); }

.cost-table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: 14px; box-shadow: var(--shadow); }
.cost-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 720px; }
.cost-table th { background: var(--dark); color: var(--white); text-align: left; padding: 14px 16px; font-size: .88rem; }
.cost-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: top; }
.cost-table tr:nth-child(even) td { background: var(--lighter); }
.cost-table-total td { font-weight: 800; color: var(--red); }

.article-sidebar { position: sticky; top: calc(var(--header-h) + 28px); }
.article-sidebar-card,
.sidebar-card,
.sidebar-widget,
.sidebar-cta { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-card h3,
.sidebar-widget h3,
.sidebar-cta h3,
.sidebar-card h4,
.sidebar-widget h4 { font-size: 1rem; margin-bottom: .75rem; }
.sidebar-card p,
.sidebar-widget p,
.sidebar-cta p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; margin: 0; max-width: none; }
.sidebar-card ul,
.sidebar-widget ul { display: flex; flex-direction: column; gap: 10px; }
.sidebar-card li a,
.sidebar-widget li a,
.sidebar-links li a { font-size: .9rem; color: var(--text); line-height: 1.45; }
.sidebar-card li a:hover,
.sidebar-widget li a:hover,
.sidebar-links li a:hover { color: var(--red); }
.sidebar-cta { background: var(--dark); color: var(--white); border: none; }
.sidebar-cta h3 { color: var(--white); }
.sidebar-cta p { color: rgba(255,255,255,.78); margin-bottom: 1rem; }
.brand-proof { font-size: .92rem; color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2.5rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.article-tags span,
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(204,34,41,.08); color: var(--red); font-size: .78rem; font-weight: 700; }

.related-guides { padding-top: 72px; padding-bottom: 72px; }
.related-guides .section-header { margin-bottom: 56px; }
.related-guides .eyebrow { color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.related-guides h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; }
.related-guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.related-guide-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 42px 32px; min-height: 190px; box-shadow: 0 8px 28px rgba(0,0,0,.08); transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
.related-guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(0,0,0,.12); border-color: rgba(204,34,41,.35); }
.related-guide-card h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin-bottom: 1rem; color: var(--dark); }
.related-guide-card p { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); max-width: none; margin: 0; }


/* =========================================
   RESPONSIVE BLOG
   ========================================= */
@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related-guides-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-hero { padding-top: calc(var(--header-h) + 32px); }
  .article-cta-inline { flex-direction: column; align-items: flex-start; }
  .article-cta-inline .btn,
  .final-cta-card .btn { width: 100%; white-space: normal; text-align: center; }
  .blog-pagination { margin-top: 36px; gap: 6px; }
  .blog-pagination a,
  .blog-pagination span { min-width: 38px; height: 38px; padding: 0 12px; font-size: .8rem; }
  .blog-pagination .pagination-prev,
  .blog-pagination .pagination-next { width: 100%; max-width: 260px; margin-inline: auto; }
}

@media (max-width: 600px) {
  .related-guide-card { min-height: auto; }
}
