/* Estilos de las páginas de Blog: listado (page-news.php) y single de post (single.php). */
/* Reutiliza variables/clases (eyebrow, accent, section-head, wrap, btn, about-hero) definidas en style.css. */

/* ===== Listado ===== */
.blog-listing {
  padding:60px 0 100px;
}
.blog-filters {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding-bottom:36px;
  border-bottom:1px solid var(--line);
  margin-bottom:48px;
}
.blog-filter {
  font-family:inherit;
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--ink-60);
  background:transparent;
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 18px;
  cursor:pointer;
  transition:color .25s, border-color .25s, background .25s;
}
.blog-filter:hover {
  color:var(--white);
  border-color:var(--white);
}
.blog-filter[aria-pressed="true"] {
  color:var(--white);
  background:var(--orange);
  border-color:var(--orange);
}

.blog-featured {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:48px;
  align-items:center;
  margin-bottom:80px;
}
.blog-featured-thumb {
  position:relative;
  display:block;
  aspect-ratio:16/11;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--bg-1);
  border:1px solid var(--line);
}
.blog-featured-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.8,.2,1);
}
.blog-featured-thumb:hover img {
  transform:scale(1.04);
}
.blog-featured-body h2 {
  font-size:clamp(24px,3vw,36px);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.01em;
  margin:16px 0 14px;
}
.blog-featured-body h2 a:hover {
  color:var(--orange-2);
}
.blog-featured-body p {
  color:var(--ink-60);
  font-size:16px;
  line-height:1.7;
  margin-bottom:20px;
}

.blog-tag {
  position:absolute;
  left:14px;
  top:14px;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--bg-0);
  background:var(--white);
  border-radius:999px;
  padding:6px 12px;
}
.blog-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  font-size:13px;
  font-weight:500;
  color:var(--ink-40);
}
.blog-meta-dot {
  width:3px;
  height:3px;
  border-radius:50%;
  background:currentColor;
  opacity:.6;
  flex:none;
}

.blog-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:48px 28px;
}
.blog-card {
  display:flex;
  flex-direction:column;
}
.blog-card-thumb {
  position:relative;
  display:block;
  aspect-ratio:3/2;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--bg-1);
  border:1px solid var(--line);
  margin-bottom:18px;
}
.blog-card-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.8,.2,1);
}
.blog-card-thumb:hover img {
  transform:scale(1.05);
}
.blog-card-title {
  font-size:18px;
  font-weight:700;
  line-height:1.32;
  letter-spacing:-.01em;
  margin-bottom:10px;
}
.blog-card-title a:hover {
  color:var(--orange-2);
}
.blog-card-excerpt {
  font-size:14px;
  line-height:1.65;
  color:var(--ink-60);
  margin-bottom:14px;
}
.blog-card .blog-meta {
  margin-top:auto;
}

.blog-more {
  display:flex;
  justify-content:center;
  padding-top:60px;
}
.blog-more .btn[hidden] {
  display:none;
}
.blog-more .btn:disabled {
  opacity:.6;
  cursor:default;
  transform:none;
}

@media (max-width:900px) {
  .blog-featured {
    grid-template-columns:1fr;
    gap:24px;
  }
  .blog-grid {
    grid-template-columns:repeat(2,1fr);
  }
}
@media (max-width:600px) {
  .blog-grid {
    grid-template-columns:1fr;
  }
}

/* ===== Single post ===== */
.blog-single-hero {
  position:relative;
  min-height:420px;
  display:flex;
  align-items:flex-end;
  padding:140px 0 56px;
  background-color:var(--bg-1);
  background-size:cover;
  background-position:center;
}
.blog-single-hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(5,5,16,.15) 0%, rgba(5,5,16,.88) 100%);
}
.blog-single-hero .wrap {
  position:relative;
  z-index:1;
}
.blog-back {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  font-weight:600;
  color:var(--ink-60);
  margin-bottom:18px;
  transition:color .25s;
}
.blog-back:hover {
  color:var(--white);
}
.blog-back svg {
  width:16px;
  height:16px;
}
.blog-single-hero .eyebrow {
  margin-bottom:18px;
}
.blog-single-hero h2 {
  max-width:820px;
  font-size:clamp(28px,4.4vw,48px);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.02em;
  margin-bottom:18px;
}

.blog-article {
  background:var(--white);
  color:#16161d;
  padding:64px 0 80px;
}
.wrap-narrow {
  max-width:760px;
  margin:0 auto;
  padding:0 24px;
}
.blog-article-content {
  font-size:17.5px;
  line-height:1.85;
}
.blog-article-content p {
  margin-bottom:24px;
}
.blog-article-content h2 {
  font-size:28px;
  font-weight:800;
  letter-spacing:-.01em;
  margin:44px 0 18px;
  color:#0d0d12;
}
.blog-article-content h3 {
  font-size:22px;
  font-weight:800;
  margin:36px 0 14px;
  color:#0d0d12;
}
.blog-article-content img {
  max-width:100%;
  height:auto;
  border-radius:var(--radius);
  margin:32px 0;
}
.blog-article-content figcaption {
  text-align:center;
  font-size:13px;
  color:rgba(0,0,0,.5);
  margin-top:-20px;
  margin-bottom:32px;
}
.blog-article-content a {
  color:var(--orange);
  text-decoration:underline;
  text-underline-offset:3px;
}
.blog-article-content ul,
.blog-article-content ol {
  margin:0 0 24px 22px;
}
.blog-article-content li {
  margin-bottom:8px;
}
.blog-article-content blockquote {
  border-left:3px solid var(--orange);
  padding-left:22px;
  margin:32px 0;
  font-size:20px;
  font-style:italic;
  color:rgba(0,0,0,.72);
}

.blog-share {
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:44px;
  padding-top:32px;
  border-top:1px solid rgba(0,0,0,.08);
}
.blog-share span {
  font-size:13px;
  font-weight:600;
  color:rgba(0,0,0,.5);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.blog-share a {
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.12);
  color:#16161d;
  transition:background .25s, color .25s, border-color .25s;
}
.blog-share a:hover {
  background:#16161d;
  color:#fff;
  border-color:#16161d;
}
.blog-share svg {
  width:17px;
  height:17px;
}

.blog-related {
  padding:80px 0;
}

@media (max-width:767px) {
  .blog-single-hero {
    padding:90px 0 40px;
    min-height:320px;
  }
  .blog-article {
    padding:44px 0 56px;
  }
  .blog-article-content {
    font-size:16.5px;
  }
}
