/* ══════════════════════════════════════════════════════════════════
   blog.css — CSS específico de blog.php
   ══════════════════════════════════════════════════════════════════ */

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--ink-soft); padding: 96px 0 0; }
.breadcrumb-inner {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.breadcrumb-inner a { color: rgba(255,255,255,.3); transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--mint); }
.breadcrumb-inner span { color: rgba(255,255,255,.18); }
.breadcrumb-inner .current { color: rgba(255,255,255,.6); }

/* ── HERO BLOG ── */
.blog-hero { background: var(--ink-soft); padding: 28px 0 72px; }
.blog-hero h1 {
  font-size: clamp(2.6rem,5vw,4.2rem); font-weight: 800;
  letter-spacing: -.04em; color: var(--white); line-height: 1.08; margin-bottom: 16px;
}
.blog-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg,var(--mint),#089b80);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.blog-hero p { font-size: 1rem; color: rgba(255,255,255,.45); max-width: 520px; line-height: 1.75; }

/* ── FILTROS ── */
.filtros-bar { background: var(--off); border-bottom: 1px solid var(--line); }
.filtros-inner { display: flex; align-items: center; gap: 8px; padding: 20px 0; flex-wrap: wrap; }
.filtro-btn {
  padding: 7px 18px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 50px;
  background: none; color: var(--mid); cursor: pointer; transition: all .2s; font-family: inherit;
}
.filtro-btn:hover { border-color: var(--mint-dim); color: var(--ink); }
.filtro-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ── POST DESTACADO ── */
.blog-section { padding: 64px 0 80px; }
.section-sep { border: none; border-top: 1px solid var(--line); margin: 64px 0; }

.post-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--off); border-radius: var(--r-lg); overflow: hidden;
  border: 1.5px solid var(--line); transition: all .35s var(--ease);
  margin-bottom: 64px; text-decoration: none; color: inherit;
}
.post-featured:hover { border-color: var(--mint); box-shadow: 0 16px 48px rgba(18,227,188,.08); }
.post-featured-img { background: var(--ink-soft); overflow: hidden; min-height: 360px; position: relative; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-featured:hover .post-featured-img img { transform: scale(1.03); }
.post-featured-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--mint); color: var(--ink);
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 50px;
}
.post-featured-body { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.post-featured-body .post-cat { margin-bottom: 14px; }
.post-featured-body h2 {
  font-size: clamp(1.4rem,2.2vw,1.9rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.2; color: var(--ink); margin-bottom: 14px;
}
.post-featured-body p { font-size: .9rem; color: var(--mid); line-height: 1.75; margin-bottom: 28px; flex: 1; }
.post-featured-body .read-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; color: var(--mint-dim);
  border-bottom: 1.5px solid var(--mint); padding-bottom: 1px;
  transition: color .2s; align-self: flex-start;
}
.post-featured-body .read-link:hover { color: var(--ink); }

/* ── CATEGORÍA LABEL ── */
.post-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-dim); }
.post-cat::before { content: ''; width: 14px; height: 2px; background: var(--mint); display: block; flex-shrink: 0; }

/* ── GRID DE POSTS ── */
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 56px; }
.post-card {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: all .3s var(--ease);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.post-card:hover { border-color: var(--mint); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(18,227,188,.08); }
.post-card-img { background: var(--off); overflow: hidden; aspect-ratio: 16/9; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-img-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,var(--mint-pale),var(--line)); display: flex; align-items: center; justify-content: center; }
.post-card-img-placeholder svg { width: 36px; height: 36px; opacity: .25; }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card-body .post-cat { margin-bottom: 10px; }
.post-card-title { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; color: var(--ink); margin-bottom: 10px; }
.post-card-excerpt { font-size: .83rem; color: var(--mid); line-height: 1.7; flex: 1; margin-bottom: 0; }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-size: .68rem; color: var(--mid); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 16px; }
.post-card-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex-shrink: 0; display: inline-block; }
.post-card-meta .sep { color: var(--line); }

/* ── PAGINACIÓN ── */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pag-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: none; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; color: var(--mid); cursor: pointer; transition: all .2s; font-family: inherit; text-decoration: none; }
.pag-btn:hover { border-color: var(--mint-dim); color: var(--ink); }
.pag-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pag-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: none; display: inline-flex; align-items: center; justify-content: center; color: var(--mid); cursor: pointer; transition: all .2s; text-decoration: none; }
.pag-arrow:hover { border-color: var(--mint-dim); color: var(--ink); }
.pag-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── EMPTY STATE ── */
.blog-empty { text-align: center; padding: 80px 0; font-size: .9rem; color: var(--mid); }
.blog-empty a { color: var(--mint-dim); font-weight: 700; border-bottom: 1px solid var(--mint); }

/* ── CTA FINAL ── */
.blog-cta { background: var(--mint); padding: 96px 0; text-align: center; }
.blog-cta h2 { font-size: clamp(2rem,4vw,3.2rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); margin-bottom: 14px; }
.blog-cta p { font-size: 1rem; color: rgba(9,16,14,.6); margin-bottom: 36px; line-height: 1.7; }
.blog-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-img { min-height: 280px; }
  .post-featured-body { padding: 32px 32px 40px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .blog-cta-btns { flex-direction: column; align-items: center; }
}
