/* ============================================================
   BLOG STYLES — ABC Plantas y Equipos SAS
   ============================================================ */

/* Reading Progress Bar */
.reading-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--primary), #60c3ff);
  z-index: 9999; transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background: rgba(15,23,42,0.6);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.breadcrumbs {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 0; font-size: 0.85rem;
  list-style: none; margin: 0;
}
.breadcrumbs a { color: var(--text-muted); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--glass-border); }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* ============================================================
   BLOG INDEX
   ============================================================ */

/* Blog Header Row */
.blog-header-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  margin: 5rem 0 2.5rem;
}
.blog-header-row .section-title { margin: 0; font-size: 2.2rem; }

/* Filter Tabs */
.blog-filters {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.filter-btn {
  padding: 0.45rem 1.2rem; border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-muted);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  backdrop-filter: blur(5px);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}

/* Featured Post */
.post-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--glass-border);
  border-radius: 20px; overflow: hidden; margin-bottom: 2.5rem;
  transition: var(--transition); cursor: pointer;
}
.post-featured:hover {
  border-color: var(--primary); box-shadow: var(--shadow);
  transform: translateY(-5px);
}
.post-featured-image { position: relative; overflow: hidden; min-height: 420px; }
.post-featured-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.post-featured:hover .post-featured-image img { transform: scale(1.05); }
.post-featured-content {
  padding: 3.5rem; display: flex; flex-direction: column; justify-content: center;
}
.post-featured-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; background: rgba(43,129,194,0.12);
  border: 1px solid rgba(43,129,194,0.3); border-radius: 50px;
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1.5rem; width: fit-content;
}
.featured-label {
  background: var(--primary); color: white;
  padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.65rem;
}
.post-featured-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1rem; line-height: 1.2; color: var(--text);
}
.post-featured-content p {
  color: var(--text-muted); margin-bottom: 2rem;
  font-size: 1.05rem; line-height: 1.75;
}
.post-meta { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.post-meta-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.83rem; color: var(--text-muted); }
.post-meta-item svg { color: var(--primary); flex-shrink: 0; }

/* Blog Cards */
.blog-card {
  background: var(--surface); border: 1px solid var(--glass-border);
  border-radius: 20px; overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column; position: relative;
}
.blog-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), #60c3ff);
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.blog-card:hover::before { transform: scaleX(1); }
.blog-card:hover {
  transform: translateY(-8px); border-color: rgba(43,129,194,0.4);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.blog-card-image { height: 210px; overflow: hidden; position: relative; }
.blog-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease; display: block;
}
.blog-card:hover .blog-card-image img { transform: scale(1.08); }
.blog-card-category {
  position: absolute; bottom: 0.8rem; left: 0.8rem;
  padding: 0.28rem 0.8rem; background: rgba(15,23,42,0.85);
  backdrop-filter: blur(8px); border: 1px solid rgba(43,129,194,0.4);
  border-radius: 50px; color: var(--primary);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.blog-card-body {
  padding: 1.8rem; flex: 1; display: flex; flex-direction: column;
}
.blog-card-body h3 {
  font-size: 1.15rem; margin-bottom: 0.8rem;
  line-height: 1.35; transition: color 0.3s;
}
.blog-card-body h3 a { color: var(--text); }
.blog-card:hover .blog-card-body h3 a { color: var(--primary); }
.blog-card-body > p {
  color: var(--text-muted); font-size: 0.92rem;
  line-height: 1.7; margin-bottom: 1.5rem; flex: 1;
}
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.2rem; border-top: 1px solid var(--glass-border);
  font-size: 0.82rem; color: var(--text-muted);
}
.blog-card-footer a {
  color: var(--primary); font-weight: 700;
  display: flex; align-items: center; gap: 0.3rem; transition: gap 0.3s;
}
.blog-card-footer a:hover { gap: 0.6rem; }

/* Empty state */
.blog-card--coming { opacity: 0.6; }
.blog-empty { text-align: center; padding: 5rem 0; }

/* ============================================================
   ARTICLE POST PAGE
   ============================================================ */

/* Article Header */
.article-header { max-width: 860px; margin: 0 auto; padding: 4rem 2rem 3rem; }
.article-category-badge {
  display: inline-block; padding: 0.4rem 1.2rem;
  background: rgba(43,129,194,0.12); border: 1px solid rgba(43,129,194,0.3);
  border-radius: 50px; color: var(--primary); font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}
.article-title {
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1;
  margin-bottom: 1.5rem; letter-spacing: -0.03em;
}
.article-excerpt {
  font-size: 1.2rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 2.5rem; max-width: 680px;
}

/* Meta Bar */
.article-meta-bar {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.2rem 1.5rem; background: var(--surface);
  border: 1px solid var(--glass-border); border-radius: 12px;
}
.author-info { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: white; flex-shrink: 0;
}
.author-details .name { font-weight: 700; font-size: 0.9rem; }
.author-details .role { font-size: 0.78rem; color: var(--text-muted); }
.meta-divider { width: 1px; height: 28px; background: var(--glass-border); }
.meta-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.83rem; color: var(--text-muted); }
.meta-item svg { color: var(--primary); }
.share-group { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.share-group .share-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-right: 0.3rem; }
.share-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); color: var(--text-muted);
  text-decoration: none;
}
.share-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* Featured Image */
.article-cover { max-width: 1060px; margin: 0 auto 4rem; padding: 0 2rem; }
.article-cover img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: 20px; border: 1px solid var(--glass-border); display: block;
}
.article-cover figcaption {
  text-align: center; color: var(--text-muted);
  font-size: 0.83rem; margin-top: 0.8rem; font-style: italic;
}

/* Two-column layout */
.article-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem 6rem; display: grid;
  grid-template-columns: 1fr 300px; gap: 4rem; align-items: start;
}

/* Article Body */
.article-body { min-width: 0; }
.article-body h2 {
  font-size: 1.75rem; margin: 3rem 0 1.2rem;
  padding-left: 1.2rem; border-left: 4px solid var(--primary);
  color: var(--text); line-height: 1.25;
}
.article-body h3 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; color: var(--text); }
.article-body h4 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; color: var(--primary); font-weight: 700; }
.article-body p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { margin: 1.2rem 0 1.5rem 2rem; color: var(--text-muted); }
.article-body ul li { list-style: disc; margin-bottom: 0.6rem; font-size: 1.03rem; line-height: 1.7; }
.article-body ol li { list-style: decimal; margin-bottom: 0.6rem; font-size: 1.03rem; line-height: 1.7; }
.article-body a { color: var(--primary); text-decoration: underline !important; text-underline-offset: 3px; }
.article-body strong { color: var(--text); }

.article-body blockquote {
  margin: 2.5rem 0; padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: rgba(43,129,194,0.07); border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0; font-size: 1.1rem;
  font-style: italic; color: var(--text); position: relative;
}
.article-body blockquote::before {
  content: '"'; position: absolute; top: -0.8rem; left: 0.8rem;
  font-size: 4rem; color: var(--primary); opacity: 0.25;
  font-family: Georgia, serif; line-height: 1;
}

/* Callout boxes */
.callout {
  display: flex; gap: 1rem; padding: 1.3rem 1.5rem;
  border-radius: 12px; margin: 2rem 0; font-size: 0.97rem; line-height: 1.65;
}
.callout.info { background: rgba(43,129,194,0.08); border: 1px solid rgba(43,129,194,0.25); color: var(--text); }
.callout.warning { background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.25); color: var(--text); }
.callout.success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); color: var(--text); }
.callout-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.5; }

/* Tags */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--glass-border);
}
.article-tags-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); align-self: center; margin-right: 0.5rem; letter-spacing: 1px; }
.article-tag {
  padding: 0.3rem 0.9rem; background: var(--surface);
  border: 1px solid var(--glass-border); border-radius: 50px;
  font-size: 0.8rem; color: var(--text-muted); transition: var(--transition);
}
.article-tag:hover { border-color: var(--primary); color: var(--primary); }

/* Author Bio */
.author-bio {
  background: var(--surface); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 2.5rem; margin: 3rem 0;
  display: flex; gap: 2rem; align-items: flex-start;
}
.author-bio-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: white; flex-shrink: 0;
}
.author-bio-content .bio-name { font-size: 1.15rem; margin-bottom: 0.25rem; }
.author-bio-content .bio-role { color: var(--primary); font-size: 0.83rem; font-weight: 700; margin-bottom: 0.8rem; }
.author-bio-content p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; margin: 0; }

/* Sidebar */
.article-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2rem; z-index: 10; }
.sidebar-card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 16px; padding: 1.8rem; }
.sidebar-card-title {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary); margin-bottom: 1.2rem; font-weight: 700;
}

/* TOC */
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: 0.3rem; }
.toc-list a {
  font-size: 0.88rem; color: var(--text-muted); transition: all 0.3s;
  display: block; padding: 0.3rem 0 0.3rem 0.8rem;
  border-left: 2px solid transparent;
}
.toc-list a:hover, .toc-list a.toc-active { color: var(--primary); border-left-color: var(--primary); }
.toc-h3 { padding-left: 1.8rem !important; font-size: 0.82rem !important; }

/* Sidebar CTA */
.sidebar-cta { background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 100%); border: none; text-align: center; }
.sidebar-cta h3 { font-size: 1.2rem; margin-bottom: 0.8rem; color: white; }
.sidebar-cta p { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-bottom: 1.5rem; line-height: 1.6; }
.sidebar-cta .btn { background: white; color: var(--primary); width: 100%; font-size: 0.85rem; }
.sidebar-cta .btn:hover { background: var(--bg); color: white; }

/* Post Navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: 4rem 0; border-top: 1px solid var(--glass-border);
}
.post-nav-item {
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--glass-border); border-radius: 12px;
  transition: var(--transition);
}
.post-nav-item:hover { border-color: var(--primary); }
.post-nav-item.next { text-align: right; }
.post-nav-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 0.5rem; }
.post-nav-title { font-size: 0.98rem; font-weight: 700; color: var(--text); transition: color 0.3s; }
.post-nav-item:hover .post-nav-title { color: var(--primary); }

/* Related Posts */
.related-section { padding: 6rem 0; border-top: 1px solid var(--glass-border); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-image { min-height: 280px; }
  .article-layout { grid-template-columns: 1fr; gap: 3rem; }
  .article-sidebar { position: static; }
  .article-cover img { height: 320px; }
}
@media (max-width: 768px) {
  .blog-header-row { flex-direction: column; align-items: flex-start; }
  .article-meta-bar { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .meta-divider { display: none; }
  .share-group { margin-left: 0; }
  .post-featured-content { padding: 2rem; }
  .author-bio { flex-direction: column; text-align: center; align-items: center; }
  .post-nav { grid-template-columns: 1fr; }
  .article-header { padding: 2rem 1.5rem; }
  .article-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .blog-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
  .filter-btn { flex-shrink: 0; }
}
