.blog-hero{
  position:relative;
  overflow:hidden;
  color:var(--white);
  padding: 112px 24px 88px;
}
.blog-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(100deg, rgba(4,18,74,0.9) 0%, rgba(4,18,74,0.76) 42%, rgba(4,18,74,0.5) 100%),
    url('../img/casos/instalacion-planta.jpg');
  background-size:cover;
  background-position:center;
  z-index:0;
}
.blog-hero .wrap{
  position:relative;
  z-index:1;
  max-width:1180px;
}
.blog-hero .eyebrow{ color:var(--blue-lighter); }
.blog-hero .eyebrow::before{ background:var(--blue-lighter); }
.blog-hero .eyebrow{
  gap:10px;
}
.eyebrow-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--blue-lighter);
  opacity:0.98;
}
.eyebrow-icon svg{
  width:100%;
  height:100%;
  display:block;
}
.blog-hero h1{
  font-size: clamp(42px, 7vw, 76px);
  line-height:0.96;
  font-weight:900;
  letter-spacing:-0.04em;
  max-width:720px;
  margin-bottom:18px;
}
.blog-hero p{
  font-size:18px;
  color:rgba(255,255,255,0.82);
  max-width:540px;
  line-height:1.65;
  margin-bottom:28px;
}
.blog-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.blog-hero-meta span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.14);
  color:rgba(255,255,255,0.86);
  font-size:12px;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.articles-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:24px;
  padding: 48px 24px 72px;
  max-width:1180px;
  margin:0 auto;
}
.article-card{
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:24px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 18px 42px -28px rgba(0, 30, 159, 0.18);
}
.article-card:hover{
  transform:translateY(-6px);
  box-shadow: 0 28px 56px -30px rgba(0, 30, 159, 0.26);
  border-color:#cbddea;
}
.article-card.featured{
  grid-column: span 2;
}
.article-thumb{
  position:relative;
  height:220px;
  background-image:
    linear-gradient(180deg, rgba(5,20,74,0.05) 0%, rgba(5,20,74,0.38) 100%),
    var(--thumb-image);
  background-size:cover;
  background-position:center;
}
.article-card.featured .article-thumb{
  height:300px;
}
.article-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 38%, rgba(6,26,74,0.2) 100%);
}
.article-body{
  padding:24px 26px 26px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}
.article-tag{
  font-size:11.5px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color: var(--blue-main);
}
.article-body h2{
  font-size: clamp(22px, 2vw, 32px);
  font-weight:900;
  letter-spacing:-0.03em;
  line-height:1.14;
}
.article-card:not(.featured) .article-body h2{
  font-size:17px;
  line-height:1.3;
}
.article-body p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.65;
  flex:1;
}
.article-meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  color:var(--text-muted);
  margin-top:auto;
}

.article-header{
  background: linear-gradient(180deg, #f6fbff 0%, #eef7fc 100%);
  padding: 48px 24px 26px;
  border-bottom:1px solid var(--border);
}
.article-header .wrap{
  max-width:1180px;
}
.breadcrumb{
  font-size:13px;
  color:var(--text-muted);
  margin-bottom:18px;
}
.breadcrumb a{
  color:var(--blue-main);
  text-decoration:none;
  font-weight:700;
}
.breadcrumb a:hover{ text-decoration:underline; }
.article-header .article-tag{
  margin-bottom:14px;
  display:inline-block;
}
.article-header h1{
  font-size: clamp(34px, 5vw, 58px);
  font-weight:900;
  letter-spacing:-0.04em;
  line-height:1.02;
  margin-bottom:16px;
  max-width:900px;
}
.article-header .article-meta{
  font-size:13.5px;
  color:var(--text-muted);
}
.article-cover{
  max-width:1180px;
  margin: 28px auto 0;
  padding: 0 24px;
}
.article-cover img{
  width:100%;
  height: clamp(280px, 42vw, 540px);
  object-fit:cover;
  border-radius:24px;
  box-shadow: 0 24px 50px -30px rgba(0, 30, 159, 0.2);
}

.article-content{
  max-width:780px;
  margin:0 auto;
  padding: 48px 24px 32px;
  font-size:17px;
  line-height:1.82;
  color:var(--text);
}
.article-content h2{
  font-size:28px;
  font-weight:900;
  letter-spacing:-0.03em;
  margin:42px 0 16px;
}
.article-content h3{
  font-size:20px;
  font-weight:800;
  margin:30px 0 12px;
}
.article-content p{ margin-bottom:18px; }
.article-content ul, .article-content ol{ margin:0 0 18px 22px; }
.article-content li{ margin-bottom:8px; }
.article-content strong{ color:var(--text); }
.article-content blockquote{
  border-left:3px solid var(--blue-main);
  background:var(--blue-ghost);
  padding:18px 24px;
  border-radius:0 14px 14px 0;
  margin:26px 0;
  font-style:italic;
  color:var(--text);
}
.article-content .callout{
  background:linear-gradient(180deg, #f4fbff 0%, #eaf6fd 100%);
  border:1px solid #d5eaf7;
  border-radius:18px;
  padding:22px 24px;
  margin:30px 0;
}
.article-content .callout strong{
  display:block;
  margin-bottom:6px;
  color:var(--blue-deep);
}

.article-cta{
  max-width:980px;
  margin:0 auto 72px;
  padding:0 24px;
}
.article-cta-box{
  position:relative;
  overflow:hidden;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-main));
  border-radius:24px;
  padding:36px 34px;
  color:var(--white);
  text-align:center;
}
.article-cta-box h3{
  font-size:26px;
  font-weight:900;
  letter-spacing:-0.03em;
  margin-bottom:10px;
}
.article-cta-box p{
  font-size:15px;
  color:var(--blue-pale);
  margin-bottom:22px;
}

@media (max-width: 960px){
  .articles-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-card.featured{
    grid-column: span 2;
  }
}

@media (max-width: 800px){
  .blog-hero{
    padding: 92px 20px 68px;
  }
  .blog-hero h1{
    font-size: clamp(36px, 12vw, 56px);
    max-width:420px;
  }
  .blog-hero p{
    font-size:16px;
  }
  .articles-grid{
    grid-template-columns: 1fr;
    gap:20px;
    padding: 36px 20px 64px;
  }
  .article-card.featured{
    grid-column: span 1;
  }
  .article-thumb,
  .article-card.featured .article-thumb{
    height:220px;
  }
  .article-header{
    padding: 38px 20px 18px;
  }
  .article-cover{
    padding:0 20px;
  }
  .article-cover img{
    height:240px;
    border-radius:20px;
  }
  .article-content{
    padding: 38px 20px 28px;
    font-size:16px;
  }
  .article-content h2{
    font-size:24px;
  }
  .article-cta{
    padding:0 20px;
    margin-bottom:56px;
  }
  .article-cta-box{
    padding:30px 24px;
  }
}
