/* ============================================
   BLOG — usa las variables definidas en css/style.css
   ============================================ */

.blog-hero{
  padding: 9rem clamp(1.5rem, 6vw, 6rem) 3rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.blog-hero__desc{
  font-size: 1.05rem;
  color: rgba(38,34,32,0.75);
  max-width: 56ch;
}

.blog-grid-wrap{
  padding: 2rem clamp(1.5rem, 6vw, 6rem) 7rem;
  max-width: 1240px;
  margin: 0 auto;
}
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.blog-empty{
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(38,34,32,0.55);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.blog-card{
  display: block;
  color: var(--ink);
  transition: transform var(--transition);
}
.blog-card:hover{ transform: translateY(-4px); }
.blog-card:hover .blog-card__title{ color: var(--accent); }

.blog-card__img-wrap{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1.1rem;
  background: var(--bg-panel);
}
.blog-card__img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card__img{ transform: scale(1.04); }
.blog-card__tag{
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--paper);
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-weight: 500;
}
.blog-card__title{
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  transition: color var(--transition);
}
.blog-card__excerpt{
  font-size: 0.92rem;
  color: rgba(38,34,32,0.65);
  margin: 0 0 0.8rem;
  line-height: 1.55;
}
.blog-card__date{
  font-size: 0.75rem;
  color: rgba(38,34,32,0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   ARTÍCULO INDIVIDUAL
   ============================================ */
.post-notfound{
  padding: 10rem 2rem;
  text-align: center;
}
.post-article{
  max-width: 760px;
  margin: 0 auto;
  padding: 8.5rem clamp(1.5rem, 6vw, 3rem) 6rem;
}
.post-article__back{
  font-size: 0.85rem;
  color: rgba(38,34,32,0.6);
  display: inline-block;
  margin-bottom: 2rem;
}
.post-article__back:hover{ color: var(--accent); }
.post-article__tag{
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.post-article__title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}
.post-article__date{
  font-size: 0.82rem;
  color: rgba(38,34,32,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-article__cover{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  margin: 2.5rem 0;
}
.post-article__body{
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(38,34,32,0.85);
}
.post-article__body p{ margin: 0 0 1.4rem; }
.post-article__body img{
  width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.post-article__body ul{
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
  list-style: disc;
}
.post-article__cta{
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(38,34,32,0.12);
  text-align: center;
}
.post-article__cta p{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 1.3rem;
}

@media (max-width: 900px){
  .blog-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .blog-grid{ grid-template-columns: 1fr; }
  .blog-hero{ padding-top: 7rem; }
}
