#noticias-sector {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #fff;
}

.date-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--bs-primary);
}

.date-custom .day {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  color: var(--bs-primary);
}

.date-custom .month,
.date-custom .year {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--bs-primary);
}

#noticias-sector .hero {
  text-align: center;
  background: #fff;
  padding: 2rem 1rem 4rem;
  position: relative;
}

#noticias-sector .hero__image {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  margin-bottom: -4rem;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 35px;
}

#noticias-sector .hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#noticias-sector .hero__title {
  margin-top: 5rem;
  font-size: 2.5rem;
  font-weight: 300;
  color: #004894;
  line-height: 1.2;
}

.news-image-custom {
  max-width: 550px;
  height: 280px;
  overflow: hidden;
}

.news-image-custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-link {
  white-space: nowrap;
  font-weight: 500;
}

.news-link:hover {
  text-decoration: underline;
}

.news-link .arrow-green {
  fill: #b2e81b;
  width: 24px;
  height: 28px;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.news-link:hover .arrow-green {
  transform: translateX(4px) translateY(-6px);
}

.date-line {
  width: 6px;
  background-color: #004894;
  border-radius: 2px;
  top: 0;
  bottom: 0;
  position: absolute;
  left: 100%;
  transform: translateX(-50%);
  margin-left: 90px;  
  height: 27rem;
  margin-top: 50px;
}


.news-sector-date {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  color: #004894;
  font-size: 1rem;
  font-weight: 500;
  padding-left: 15.5rem;
  margin-top: -100px;
}

.news-sector-date .date-text {
  margin: 0;
  text-align: right;
}

@media (max-width: 767.98px) {

  #noticias-sector .hero__image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    margin-bottom: -4rem;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 35px;
  }

  #noticias-sector .hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #noticias-sector .hero__title {
    margin-top: 5rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: #004894;
    line-height: 1.2;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .news-sector-list-mobile .news-content-mobile {
    border-left: 5px solid #004894;
    margin-left:30px;
  }

  .news-sector-list-mobile .date-text {
    font-size: 1.5rem;
    color: #004894;
    line-height: 1.2;
    padding-left: 1rem;

  }

  .news-sector-list-mobile .news-image-custom {
    height: 130px;
    overflow: hidden;
    width: 100%;
    max-width: 240px;
    margin: 0 auto 1rem;
  }

  .news-sector-list-mobile .news-image-custom img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .news-sector-list-mobile .news-title {
    font-size: 1.4rem;
    margin: 0;
  }

  .news-sector-list-mobile .news-link {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    gap: .5rem;
  }

  .news-sector-list-mobile .arrow-green {
    transition: transform .3s;
  }

  .news-sector-list-mobile .news-link:hover .arrow-green {
    transform: translateX(4px);
  }

  /* Ajustes de espaciado general */
  .news-sector-list-mobile article {
    padding: .5rem 0;
  }
}


#noticias-sector .hero__image{
  width: 320px;
  height: 320px;
  margin: 35px auto -4rem; 
  border-radius: 50%;
  overflow: hidden;
  transition: width .25s ease, height .25s ease, margin .25s ease;
}

/* Título base */
#noticias-sector .hero__title{
  margin-top: 5rem;
  transition: margin .25s ease;
}


@media (min-width: 1400px){
  #noticias-sector .hero__image{
    width: 340px;
    height: 340px;
    margin-top: 10px;    
  }
  #noticias-sector .hero__title{
    margin-top: 4.5rem;   
  }
}

@media (min-width: 1600px){
  #noticias-sector .hero__image{
    width: 355px;
    height: 355px;
    margin-top: -10px;    
  }
  #noticias-sector .hero__title{
    margin-top: 4rem;
  }
}

@media (min-width: 1800px){
  #noticias-sector .hero__image{
    width: 370px;
    height: 370px;
    margin-top: -25px;    
  }
  #noticias-sector .hero__title{
    margin-top: 3.5rem;
  }
}

.news-sector-list .news-image-custom{
  width: 100%;
  max-width: none;        height: 300px;        
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}
.news-sector-list .news-image-custom img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.news-sector-list .news-content{
  max-width: 600px !important;
}


@media (min-width: 1400px){
  .news-sector-list .news-image-custom{ height: 340px; }
  .news-sector-list .news-content{ max-width: 650px !important; }
}
@media (min-width: 1600px){
  .news-sector-list .news-image-custom{ height: 370px; }
  .news-sector-list .news-content{ max-width: 700px !important; }
}
@media (min-width: 1800px){
  .news-sector-list .news-image-custom{ height: 400px; }
  .news-sector-list .news-content{ max-width: 750px !important; }
}

/* ==== NEWS LIST — tablets (768–1199px) ==== */
@media (min-width: 768px) and (max-width: 1199px) {

  .news-sector-item .col-md-2 {
    position: relative;
  }

  .news-sector-date {
    padding-left: 0 !important;
    margin-top: 0 !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
  }

  .news-sector-item .date-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: calc(-.5 * var(--bs-gutter-x, 24px)); 
    transform: none;
    margin: 0;
    height: auto;
    width: 6px;
    border-radius: 2px;
  }

 
  .news-sector-list .news-content {
    max-width: none !important;
  }
  .news-sector-list .news-image-custom {
    width: 100%;
    height: 300px; 
    margin-left: 0;
    margin-right: 0;
  }
}

