/* Blog EpiARQ - módulo independiente */
.blog-page,
.article-page {
  background: #000;
  color: #f4f4f4;
  min-height: 100vh;
}

.blog-page {
  padding-bottom: 20px;
}

.blog-container,
.article-container {
  width: min(1180px, calc(100% - 140px));
  margin: 0 auto;
}

.blog-hero {
  width: 100%;
  padding: 32px 0 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.blog-kicker,
.article-breadcrumb,
.article-meta,
.blog-card-category,
.blog-card-meta {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 18px 0 16px;
  color: #FFFFFF;
  font-family: 'Helvetica Neue', 'HelveticaNeue', Montserrat, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 5vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-hero p {
  max-width: 760px;
  margin: 0 auto 18px;
  color: #e8e8e8;
  font-size: 22px;
  line-height: 1.7;
  font-weight: 300;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0 0 22px;
  padding-bottom: 12px;
  justify-content: center;
}

.blog-category-btn {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 0 8px;
  cursor: pointer;
}

.blog-category-btn:hover,
.blog-category-btn.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  background: #050505;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, opacity .25s ease;
}

.blog-card:hover {
  border-color: rgba(255,255,255,.38);
  transform: translateY(-2px);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 1.42 / 1;
  background: #111;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.78) saturate(.9);
  transition: transform .45s ease, filter .45s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.035);
  filter: brightness(.9) saturate(.95);
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  color: rgba(0,0,0,.78);
  background: rgba(255, 255, 255, 0.5);
  padding: 7px 10px;
  font-size: 10px;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 18px;
}

.blog-card h2 {
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.22;
  margin: 0 0 14px;
  font-weight: 500;
}

.blog-card-description {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 26px;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}

.blog-card-footer span {
  opacity: .75;
}

.blog-card-arrow {
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.blog-empty {
  color: rgba(255,255,255,.7);
  padding: 40px 0 140px;
}

.article-root {
  padding: 42px 0 40px;
  border-top: 1px solid rgba(255,255,255,.12);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-header {
  max-width: 1100px;
  margin-bottom: 34px;
}

.article-breadcrumb {
  margin-bottom: 20px;
}

.article-header h1 {
  margin: 0 0 22px;
  color: #fff;
  font-family: 'Helvetica Neue', 'HelveticaNeue', Montserrat, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-align: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.article-hero-image {
  width: 100%;
  max-width: 1100px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin: 0 auto 48px;
  filter: brightness(.86) saturate(.9);
}

.article-intro {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto 36px;

  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.85;
  text-align: justify;
}


.article-index {
  width: 100%;
  max-width: 520px;

  align-self: center;
  transform: translateX(-290px);

  border: 1px solid rgba(255,255,255,.14);
  padding: 24px 26px;
  margin: 0 0 48px;

  background: rgba(255,255,255,.025);
}

.article-index-title {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-index ol {
  margin: 0;
  padding-left: 20px;
}

.article-index li {
  margin: 10px 0;
  color: rgba(255,255,255,.76);
}

.article-index a {
  color: inherit;
  text-decoration: none;
}

.article-index a:hover { color: #fff; }

.article-content {
    max-width: 1100px;
    margin: 0 auto;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.85;
    text-align: justify;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #fff;
    font-weight: 300;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
}

.article-content h2 {
    font-size: 36px !important;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin: 72px 0 28px;
    text-transform: uppercase;
}

.article-content h3 {
    font-size: 22px;
    margin: 36px 0 14px;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content strong {
    color: #fff;
    font-weight: 700;
}

.article-content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
    padding-left: 22px;
    margin: 0 0 24px;
}

.article-content li {
    margin: 8px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px 0;
}

.related-posts {
  width: 100%;
  max-width: 1100px;
  margin: 72px auto 0;
  padding-top: 42px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.related-posts > h2 {
  color: #fff;
  font-family: 'Helvetica Neue', 'HelveticaNeue', Montserrat, Arial, sans-serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}


.article-back {
  display: inline-block;
  margin-top: 54px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.article-back:hover { color: #fff; }

@media (max-width: 980px){
  .blog-container,
  .article-container {
    width: min(100% - 48px, 1180px);
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .blog-container,
  .article-container {
    width: min(100% - 32px, 1180px);
  }

  .blog-hero {
    padding: 42px 0 28px;
  }

  .blog-hero h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.15;
    letter-spacing: 0.06em;
    font-weight: 300;
    margin: 14px 0 18px;
  }

  .blog-hero p {
    font-size: 1.18rem;
    line-height: 1.5;
    font-weight: 300;
    color: #e8e8e8;
    max-width: 320px;
    margin: 0 auto 22px;
  }

  .blog-kicker {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-categories {
    gap: 18px;
  }

  .article-root {
    padding-top: 28px;
  }

  .article-index {
    padding: 20px;
  }

  .article-header {
   margin-bottom: 28px;
  }

 .article-header h1 {
   font-size: 34px;
   line-height: 1.08;
   letter-spacing: .035em;
  }

 .article-meta {
   font-size: 10px;
   line-height: 1.35;
  }

 .article-hero-image {
   max-height: 300px;
  }

 .article-intro {
   max-width: 100%;
   font-size: 15px;
   line-height: 1.75;
   margin-bottom: 32px;
   text-align: justify;
  }

 .article-index {
   width: 100%;
   min-width: unset;
   max-width: 100%;
   padding: 20px;
   margin-bottom: 36px;
   transform: none;
  }

 .article-content {
   max-width: 100%;
   font-size: 15px;
   line-height: 1.75;
  }

 .article-content h2 {
   font-size: 26px !important;
   line-height: 1.18;
   margin: 48px 0 20px;
  }

 .article-content h3 {
   font-size: 19px !important;
   margin: 34px 0 14px;
  }

 .article-content h4 {
   font-size: 16px !important;
   margin: 28px 0 12px;
  }

 .article-content p {
   margin-bottom: 16px !important; 
  }

 .related-posts {
   margin-top: 52px;
   padding-top: 32px;
  }

 .related-posts h2 {
   font-size: 22px;
   margin-bottom: 22px;
  }

 .related-posts-grid {
   grid-template-columns: 1fr;
  }


}