/* @import url('http://example.com/example_style.css'); */

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/*****************************************/
/* Start your style declarations here    */
/*****************************************/

.hero-section__top-decoration {
  width: 460px;
  height: auto;;
  background: none;
  top: -242px;
  aspect-ratio: auto;
  border-radius: 0;
}


.hero-images {
  
  &.left {
    width: 908px !important;
    min-width: 908px;
    left: clamp(calc(50% - (960px + 454px)), -454px, 0px);
    bottom: -594px !important;
  }
  &.right {
    width: 908px !important;
    min-width: 908px;
    right: clamp(calc(50% - (960px + 454px)), -454px, 0px);
    bottom: -594px !important;
  }
}




@media (max-width: 920px) {
  .hero-images {
    &.left {
      width: 600px !important;
      min-width: 600px;
      left: -300px;
      bottom: -394px !important;
    }
    &.right {
      width: 600px !important;
      min-width: 600px;
      right: -300px;
      bottom: -394px !important;
    }
  }
}



@media (max-width: 480px) {
  .hero-section__top-decoration {
    width: 178px;
    top: -52px;
  }
  .hero-images {
    &.left {
      width: 371px !important;
      min-width: 371px;
      left: -208px;
      bottom: -252px !important; 
    }
    &.right {
      width: 371px !important;
      min-width: 371px;
      right: -208px !important;
      bottom: -252px !important;
    }
  }
}



/* ++++++++++++++++++++++++++++***** */
.featured-post-section {
  max-width: 1200px;
    padding: 0px 20px;
    margin: 0 auto;
}


.home-blog-section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 48px;
    align-items: center;
    justify-content: center;
    
}
.home-blog-section .mobile {
  display: none;
}
.home-blog-section .deco-img {
    width: 210px;
    height: auto;
    flex: 0 0 auto;
    @media (max-width: 1320px) {
        display: none;
    }
}
.home-blog-section__blog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width 100%;
    max-width: 792px;
    @media (max-width: 1320px) { 
      gap: 24px;
    }
}
.home-blog-section__blog-link {
  display: flex;
}
.home-blog-section__blog-image {
    /* 1. Define el ancho máximo, no el ancho fijo */
    width: 792px;
    height: 443px;
    border-radius: 12px;
    
    /* 2. Dile que ocupe el 100% del espacio disponible hasta llegar a ese máximo */
    
    /* 3. Permite que se achique (min-width: 0 o auto) */
    min-width: 0 !important; 
    
    /* 4. Altura automática para no deformar la imagen */
    
    /* 5. Flex: grow(0), shrink(1 = sí encogete), basis(auto) */
    flex: 0 0 auto; 

    /* Opcional: Para que la imagen se vea bien si cambia la proporción */
    object-fit: cover; 

    @media (max-width: 1320px) {
        /* Aquí solo necesitas cambiar el comportamiento del flex si pasa a columna */
        width: 100%;
        height: auto;
        flex: 1 1 100% !important;
        max-width: 800px !important;
    }
}
.home-blog-section__blog-header {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}
.home-blog-section__blog-title {
    color: var(--text-primary);
    font-family: "Lora";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 57.6px */
    letter-spacing: -0.48px;
}
.home-blog-section__blog-date {
    color: var(--text-primary);
    font-family: "Karla";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 26px */
}
.home-blog-section__blog-paragraph {
    color: var(--text-secondary);
    text-align: justify;
    font-family: "Karla";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 26px */
}
.home-blog-section__bottom-line {
    width: 100%;
    max-width: 792px;
    height: 6px;
}

@media (max-width: 480px) {
  .home-blog-section__blog-header {
    gap: 0px;
  }
  .home-blog-section__blog-title {
    font-size: 24px;
  }
  .home-blog-section__blog-date {
    font-size: 16px;
  }
  .home-blog-section .mobile {
    display: block;
  }
  .home-blog-section .desktop {
    display: none;
  }
}


/* ++++++++++++++++++++++++++++++++++++++++++++ */



.blog-grid-section {
  max-width: 1200px;
  padding: 136px 20px 120px 20px;
  margin: 0 auto;
}

.blog-posts-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 72px;
  column-gap: 24px;
  justify-content: center;
  align-items: center;
}

.blog-grid-card {
  width 100%;
  max-width: 360px;
  height: 463px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-grid-card__image-wrapper {
  width: 360px;
  height: 203px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: clip;
}
.blog-grid-card__image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.blog-grid-card__title {
  text-align: center;
  font-family: Lora;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 38.4px */
}

.blog-grid-card__date {
  text-align: center;
  font-family: Karla;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 26px */
}


.blog-grid-card__content p {
  /* Dimensiones */
  width: 100%;
  
  /* Esto define cuántas líneas se ven antes de cortar */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Corta después de la 3ra línea */
  -webkit-box-orient: vertical;
  
  /* Obligatorio para que funcione */
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* Estilos de texto opcionales para asegurar que entren 3 lineas en 78px */
  text-align: justify;
  font-family: Karla;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 26px */
  max-height: 78px; /* 3 líneas * line-height */
}


@media (max-width: 480px) {
  .blog-grid-section .desktop {
    display: none;
  }
  .blog-grid-section {
    padding: 40px 0;
  }
  .blog-posts-grid {
    gap: 40px;
  }
  .blog-grid-card {
    gap: 0px;
    height: auto;
  }
  .blog-grid-card__title {
    font-size: 20px;
  }
  .blog-grid-card__date {
    margin: 4px 0px 32px;
    font-size: 16px;
  }
  .blog-grid-card__decoration {
    margin: 32px 0px 0px;
  }
  
}


/* ********************************************* */

.more-articles-section {
  width: 100%;
  max-width: 1200px;
  padding: 0px 20px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.more-articles-flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 64px 0px;
}
.more-article-row {
  width: 100%;
}

.more-article-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  
  align-items: flex-end;
  gap: 24px;
  row-gap: 0px;
  margin-bottom: 12px;
}

.more-article-title {
  text-align: left;
  font-family: Lora;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%; /* 41.6px */
}

.more-article-date{
  text-align: left;
  font-family: Karla;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 26px */
}

.more-article-decoration svg {
  width: 100%;
}
.more-article-decoration img {
  width: 100%;
}
.more-article-decoration img.mobile {
  display: none;
}

.pagination-buttons-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}


@media (max-width: 480px) {
  .more-articles-flex-column {
    padding: 32px 0px;
  }
  .more-article-info {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
  }
  .more-article-title {
    font-size: 20px;
    text-align: center;
  }
  .more-article-date {
    font-size: 16px;
    text-align: center;
  }
  .more-article-decoration img.desktop {
    display: none;
  }
  .more-article-decoration img.mobile {
    display: block;
  }
  .pagination-buttons-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}