@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

.anc-blog,
.anc-blog *{
  box-sizing:border-box;
  font-family:'Poppins',Arial,sans-serif;
}

.anc-blog{
  position:relative;
  overflow:hidden;
  padding:105px 5%;
  background:
    radial-gradient(circle at 88% 12%,rgba(31,98,174,.10),transparent 32%),
    radial-gradient(circle at 8% 88%,rgba(14,113,57,.08),transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 58%,#eef6ff 100%);
}

.anc-blog-wrap{
  max-width:1500px;
  margin:auto;
}

.anc-blog-head{
  max-width:850px;
  margin-bottom:58px;
}

.anc-blog-head span{
  display:flex;
  align-items:center;
  gap:18px;
  color:#0E7139;
  font-size:14px;
  font-weight:900;
  letter-spacing:5px;
  text-transform:uppercase;
}

.anc-blog-head span:after{
  content:"";
  width:76px;
  height:4px;
  border-radius:20px;
  background:#0E7139;
}

.anc-blog-head h2{
  margin:30px 0 0;
  color:#08264f;
  font-size:60px;
  line-height:1.08;
  letter-spacing:-1.2px;
  font-weight:900;
}

.anc-blog-head h2 strong{
  display:block;
  color:#0E7139;
  font-size:60px;
  line-height:1.08;
  letter-spacing:-1.2px;
  font-weight:900;
}

.anc-blog-head p{
  margin:24px 0 0;
  max-width:760px;
  color:#253b55;
  font-size:17px;
  line-height:1.75;
}

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

.anc-blog-card{
  overflow:hidden;
  border-radius:30px;
  background:#fff;
  border:1px solid rgba(8,38,79,.08);
  box-shadow:
    0 30px 75px rgba(8,38,79,.11),
    0 12px 28px rgba(14,113,57,.05);
  transition:.34s ease;
}

.anc-blog-card:hover{
  transform:translateY(-10px);
  box-shadow:
    0 42px 95px rgba(8,38,79,.16),
    0 18px 34px rgba(14,113,57,.08);
}

.anc-blog-extra{
  display:none;
}

.anc-blog.anc-blog-open .anc-blog-extra{
  display:block;
  animation:ancBlogShow .45s ease both;
}

@keyframes ancBlogShow{
  from{
    opacity:0;
    transform:translateY(24px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.anc-blog-image{
  position:relative;
  height:280px;
  overflow:hidden;
  background:#eaf3ff;
  display:block;
  text-decoration:none !important;
}

.anc-blog-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(8,38,79,0) 30%,rgba(8,38,79,.45) 100%),
    radial-gradient(circle at 82% 16%,rgba(14,113,57,.22),transparent 34%);
  pointer-events:none;
}

.anc-blog-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  transition:.8s ease;
}

.anc-blog-card:hover .anc-blog-image img{
  transform:scale(1.08);
}

.anc-blog-image span{
  position:absolute;
  z-index:2;
  left:22px;
  bottom:22px;
  padding:9px 15px;
  border-radius:999px;
  background:linear-gradient(90deg,#0053A3 0%,#0E7139 100%);
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

.anc-blog-content{
  padding:30px 28px 32px;
}

.anc-blog-content small{
  display:block;
  color:#0E7139;
  font-size:12px;
  font-weight:900;
  letter-spacing:2.2px;
  text-transform:uppercase;
}

.anc-blog-content h3{
  margin:14px 0 0;
  color:#08264f;
  font-size:25px;
  line-height:1.22;
  letter-spacing:-.8px;
  font-weight:900;
}

.anc-blog-content p{
  margin:18px 0 0;
  color:#536678;
  font-size:15.5px;
  line-height:1.75;
}

.anc-blog-content a:not(.anc-blog-image){
  margin-top:24px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#0053A3 !important;
  text-decoration:none !important;
  font-size:15px;
  font-weight:900;
}

.anc-blog-content a svg,
.anc-blog-btn svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:.28s ease;
}

.anc-blog-content a:hover{
  color:#0E7139 !important;
}

.anc-blog-content a:hover svg,
.anc-blog-btn:hover svg{
  transform:translateX(5px);
}

.anc-blog-action{
  display:flex;
  justify-content:center;
  margin-top:48px;
}

.anc-blog-btn{
  min-height:58px;
  padding:0 30px 0 34px;
  border:0;
  cursor:pointer;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:#fff !important;
  text-decoration:none !important;
  font-size:16px;
  font-weight:900;
  background:linear-gradient(90deg,#0053A3 0%,#0E7139 100%);
  box-shadow:
    0 22px 44px rgba(8,38,79,.18),
    0 12px 26px rgba(14,113,57,.16);
  transition:.28s ease;
}

.anc-blog-btn:hover{
  color:#fff !important;
  transform:translateY(-4px);
  box-shadow:
    0 30px 60px rgba(8,38,79,.22),
    0 16px 32px rgba(14,113,57,.20);
}

.anc-blog-empty{
  padding:28px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(8,38,79,.08);
  color:#08264f;
  font-weight:800;
}

body.elementor-editor-active .anc-blog-extra,
.elementor-editor-active .anc-blog-extra,
.elementor-editor-preview .anc-blog-extra{
  display:block !important;
}

@media(max-width:1100px){
  .anc-blog-grid{
    grid-template-columns:1fr 1fr;
  }

  .anc-blog-head h2,
  .anc-blog-head h2 strong{
    font-size:54px;
    line-height:1.1;
    letter-spacing:-1px;
  }
}

@media(max-width:768px){
  .anc-blog{
    padding:80px 22px;
  }

  .anc-blog-head h2,
  .anc-blog-head h2 strong{
    font-size:42px;
    line-height:1.12;
    letter-spacing:-.8px;
  }

  .anc-blog-head p{
    font-size:16px;
  }

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

  .anc-blog-image{
    height:240px;
  }

  .anc-blog-btn{
    width:100%;
  }
}


/* v0.7.6 - Blog Grid producción: fallback visible aunque el JS/animación no cargue */
.anc-blog,
.anc-blog .anc-blog-wrap,
.anc-blog .anc-blog-head,
.anc-blog .anc-blog-grid,
.anc-blog .anc-blog-card,
.anc-blog .anc-blog-empty{
  opacity:1 !important;
  visibility:visible !important;
}

.anc-blog .anc-blog-card{
  transform:none;
  filter:none;
}

.anc-blog .anc-blog-card.anc-blog-extra{
  display:none;
}

.anc-blog.anc-blog-expanded .anc-blog-card.anc-blog-extra{
  display:block;
}

.elementor-editor-active .anc-blog .anc-blog-card.anc-blog-extra,
.elementor-editor-preview .anc-blog .anc-blog-card.anc-blog-extra{
  display:block;
}
