/* ═══════════════════════════════════════════════════════════════
   BLOG / NOTICIAS
════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   ENCABEZADO
════════════════════════════════════════════════════════════════ */
.blog-header {
  padding: 50px 0 65px;
  background-color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   ARTÍCULO DESTACADO
════════════════════════════════════════════════════════════════ */
.blog-featured {
  padding: 0 0 90px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #e5e9e6;
  border-radius: 18px;
  background-color: #f8f9f8;
}

.featured-image {
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.03);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px;
}

.featured-content h2 {
  margin: 15px 0;
  color: #111111;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 600;
}

.featured-content p {
  margin-bottom: 30px;
  color: #666666;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   META
════════════════════════════════════════════════════════════════ */
.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.article-meta span:first-child {
  color: #008A3D;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.article-meta span:last-child {
  color: #999999;
  font-size: 0.68rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   ENLACE
════════════════════════════════════════════════════════════════ */
.article-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 0 0 3px;
  border: none;
  border-bottom: 1px solid transparent;
  background: none;
  color: #008A3D;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.article-link:hover {
  border-bottom-color: #008A3D;
}

.article-link i {
  transition: transform 0.3s ease;
}

.article-link:hover i {
  transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════════════════
   ARTÍCULOS
════════════════════════════════════════════════════════════════ */
.blog-articles {
  padding: 90px 0;
  background-color: #f8f9f8;
}

.blog-section-heading {
  margin-bottom: 45px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.article-card {
  overflow: hidden;
  border: 1px solid #e5e9e6;
  border-radius: 16px;
  background-color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.article-image {
  height: 240px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.04);
}

.article-card-content {
  padding: 30px;
}

.article-card h3 {
  margin: 15px 0;
  color: #111111;
  font-size: 1.25rem;
  line-height: 1.35;
}

.article-card p {
  margin-bottom: 25px;
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   SECCIÓN INVERSIÓN
════════════════════════════════════════════════════════════════ */
.blog-investment {
  padding: 90px 0;
  background-color: #f7f9f8;
}

.blog-investment-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.blog-investment-content h2 {
  max-width: 750px;
  margin: 0 0 15px;
  color: #111111;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
  font-weight: 600;
}

.blog-investment-content p {
  max-width: 650px;
  margin: 0;
  color: #666666;
  line-height: 1.8;
}

.blog-investment-content .btn {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CTA
════════════════════════════════════════════════════════════════ */
.blog-cta {
  padding: 90px 0;
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
}

.blog-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.blog-cta-text {
  max-width: 720px;
}

.blog-cta-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #008A3D;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.blog-cta h2 {
  margin: 0 0 15px;
  color: #111111;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
}

.blog-cta h2 span {
  color: #008A3D;
}

.blog-cta p {
  max-width: 600px;
  margin: 0;
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   BOTÓN
════════════════════════════════════════════════════════════════ */
.blog-cta-action {
  flex-shrink: 0;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid #008A3D;
  border-radius: 8px;
  background-color: #008A3D;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-cta-btn i {
  transition: transform 0.3s ease;
}

.blog-cta-btn:hover {
  background-color: #006f31;
  border-color: #006f31;
}

.blog-cta-btn:hover i {
  transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════════════ */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.article-modal.active {
  visibility: visible;
  opacity: 1;
}

.article-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.article-modal-container {
  position: relative;
  z-index: 1;
  width: min(850px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 18px;
  background-color: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.article-modal.active .article-modal-container {
  transform: translateY(0);
}

.article-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: #f1f1f1;
  color: #333333;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.article-modal-close:hover {
  background-color: #008A3D;
  color: #ffffff;
}

.article-modal-content {
  max-height: 90vh;
  overflow-y: auto;
  padding: 50px 55px 60px;
  scrollbar-width: thin;
  scrollbar-color: #cccccc transparent;
}

.article-modal-content::-webkit-scrollbar {
  width: 6px;
}

.article-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.article-modal-content::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 10px;
}

.article-modal-content>h2 {
  margin: 0 0 35px;
  padding-bottom: 25px;
  padding-right: 40px;
  border-bottom: 1px solid #eeeeee;
  color: #111111;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
  font-weight: 600;
}

.article-modal-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.article-modal-meta span:first-child {
  color: #008A3D;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.article-modal-meta span:last-child {
  color: #999999;
  font-size: 0.7rem;
}

.article-modal-body {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.9;
}

.article-modal-body h3 {
  margin: 30px 0 12px;
  color: #111111;
  font-size: 1.2rem;
  font-weight: 600;
}

.article-modal-body p {
  margin-bottom: 18px;
}

.article-modal-body ul,
.article-modal-body ol {
  margin: 0 0 22px;
  padding-left: 25px;
}

.article-modal-body li {
  margin-bottom: 8px;
}

.article-modal-body li::marker {
  color: #008A3D;
  font-weight: 700;
}

.article-highlight {
  margin-top: 35px;
  padding: 25px 30px;
  border-left: 4px solid #008A3D;
  background-color: #f5f8f6;
}

.article-highlight h4 {
  margin: 0 0 8px;
  color: #111111;
  font-size: 1rem;
}

.article-highlight p {
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   BLOQUEO DEL SCROLL
════════════════════════════════════════════════════════════════ */
body.modal-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .blog-cta {
    padding: 65px 0;
  }

  .blog-cta-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .blog-cta-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image {
    height: 350px;
  }

  .featured-content {
    padding: 40px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .blog-investment-content,
  .blog-cta-content {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 600px) {

  .blog-header {
    padding: 30px 0 50px;
  }

  .blog-featured {
    padding-bottom: 70px;
  }

  .featured-image {
    height: 240px;
  }

  .featured-content {
    padding: 30px 25px;
  }

  .blog-articles,
  .blog-investment {
    padding: 70px 0;
  }

  .article-image {
    height: 210px;
  }

  .article-card-content {
    padding: 25px;
  }

  .blog-cta {
    padding: 60px 0;
  }

  .article-modal {
    padding: 15px;
  }

  .article-modal-container {
    max-height: 92vh;
    border-radius: 15px;
  }

  .article-modal-content {
    padding: 40px 25px 45px;
  }

  .article-modal-close {
    top: 12px;
    right: 12px;
  }
}