/* Estilos públicos - Noticias */

.noticias-section {
  min-height: 100vh;
  padding: 2rem 0 3rem;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.noticias-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.noticias-section.noticias-con-fondo::before {
  background: rgba(0, 0, 0, 0.08);
}

.noticias-carousel {
  border-radius: 0;
  position: relative;
  --noticias-controls-top: 250px;
}

.noticia-item {
  transition: all 0.35s ease;
}

.noticia-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 42, 78, 0.1);
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(15, 42, 78, 0.08);
  padding: 0;
  overflow: hidden;
  min-height: 500px;
}

.noticia-layout {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.noticia-media-col {
  padding: 0;
}

.noticia-media-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px;
}

.noticia-imagen {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}

.noticia-texto-col {
  display: flex;
  align-items: stretch;
  background: transparent;
  padding: 0;
}

.noticia-texto {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: none;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.noticia-titulo {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #0f2a4e;
  margin-bottom: 0.9rem;
}

.noticia-contenido {
  color: #1f2e43;
  line-height: 1.75;
  max-height: 300px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.35s ease;
}

.noticia-contenido::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 85%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.noticia-item.noticia-expandida .noticia-contenido {
  max-height: none;
}

.noticia-item.noticia-expandida .noticia-contenido::after {
  opacity: 0;
}

.noticia-item.noticia-expandida[data-expandable="true"] .noticia-media-col {
  display: none !important;
}

.noticia-item.noticia-expandida[data-expandable="true"] .noticia-texto-col {
  flex: 0 0 100%;
  max-width: 100%;
}

.noticia-item.noticia-expandida[data-expandable="true"] .noticia-texto {
  margin: 0;
}

.noticia-contacto {
  color: #0f2a4e;
  font-weight: 500;
}

.noticias-carousel .carousel-control-prev,
.noticias-carousel .carousel-control-next {
  width: 3rem;
  height: 3rem;
  top: var(--noticias-controls-top);
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
  z-index: 3;
}

.noticias-carousel .carousel-control-prev {
  left: -4.25rem;
}

.noticias-carousel .carousel-control-next {
  right: -4.25rem;
}

.noticias-carousel .carousel-control-prev-icon,
.noticias-carousel .carousel-control-next-icon {
  background-color: rgba(15, 42, 78, 0.82);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  background-size: 55%;
  box-shadow: 0 8px 20px rgba(15, 42, 78, 0.25);
}

.noticias-vacio {
  background: rgba(232, 236, 242, 0.74);
  border: 1px dashed rgba(15, 42, 78, 0.2);
  border-radius: 16px;
  padding: 2.2rem 1.2rem;
}

@media (max-width: 991.98px) {
  .noticia-panel {
    padding: 1rem;
    min-height: auto;
    overflow: visible;
  }

  .noticia-texto-col {
    padding: 0;
  }

  .noticia-layout {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .noticia-imagen {
    height: 340px;
    max-width: 100%;
    object-fit: contain;
  }

  .noticia-texto {
    margin: 0;
    padding: 1.25rem;
    box-shadow: none;
  }

  .noticias-carousel {
    --noticias-controls-top: 170px;
  }

  .noticias-carousel .carousel-control-prev,
  .noticias-carousel .carousel-control-next {
    width: 2.6rem;
    height: 2.6rem;
  }

  .noticias-carousel .carousel-control-prev {
    left: -1.25rem;
  }

  .noticias-carousel .carousel-control-next {
    right: -1.25rem;
  }
}

@media (max-width: 767.98px) {
  .noticias-section {
    padding: 1.2rem 0 2rem;
  }

  .noticia-panel {
    padding: 1rem;
  }

  .noticia-texto {
    padding: 1rem;
    margin: 0;
  }

  .noticia-contenido {
    max-height: 240px;
  }

  .noticia-imagen {
    height: 250px;
  }

  .noticia-media-wrap {
    min-height: 250px;
  }

  .noticias-carousel {
    --noticias-controls-top: 125px;
  }

  .noticias-carousel .carousel-control-prev,
  .noticias-carousel .carousel-control-next {
    width: 2.35rem;
    height: 2.35rem;
  }

  .noticias-carousel .carousel-control-prev {
    left: 0.35rem;
  }

  .noticias-carousel .carousel-control-next {
    right: 0.35rem;
  }
}
