.noticias {
  height: 100vh;
}

.bolder {
  font-weight: bold;
}

.barra-navegar {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 100px 0 10px 0;
}

.barra-navegar a {
  color: inherit;
  text-decoration: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
  max-width: 1100px;
  margin: auto;
}

@media screen and (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* 2 tarjetas por fila en pantallas menores a 768px */
  }
}

@media screen and (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr; /* 1 tarjeta por fila en pantallas menores a 480px */
  }
}

.post {
  display: flex;
  padding: 20px;
  box-shadow: 0 1px 14px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid #000000;
  border-radius: 20px;
  transition: 0.2s;
}

.post:hover {
  transform: scale(1.1);
}

.post-header {
  display: flex;
  flex-direction: column;
  width: auto;
  margin: 20px 0;
}

.post-header h2 {
  color: #1f1f1f;
}

.post-img-only {
  display: flex;
  min-height: 45vh;
  width: 100%;
  justify-content: center; /* Cambiado de 'start' a 'center' para centrar la imagen */
}

.post-img {
  display: flex;
  min-height: 45vh;
  width: 100%;
  justify-content: start;
}

.post-img img {
  margin-right: 20px;
}

.post-img-box {
  width: 100%;
  flex-direction: row;
}

.post-img span {
  color: #5e5c5c82;
}
.post-body {
  display: flex;
  flex-direction: column;
}

.post-body object {
  width: 100%;
  height: 800px;
}

.post-body h2 {
  font-weight: 800;
  font-size: 32px;
  color: black;
}

.post-body p {
  font-size: 18px;
  margin: 10px 0;
}
.card-title h2 {
  font-weight: 400;
  font-size: 22px;
  color: black;
}

.lista-noticias {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.lista-noticias h2 {
  color: #1f1f1f;
  margin: 40px 0;
}

.card-img-top {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  transition: transform 0.3s;
  overflow: hidden;
}

.card-img-top:hover {
  transform: scale(1.05);
}

.post-img-1 {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  transition: 0.2s;
  margin-bottom: 10px;
}

.noticia p {
  color: #5e5c5c;
  line-height: 1.4;
}
.noticia-container {
  display: flex;
  margin: auto;
  max-width: 1200px;
}

.post-title h2 {
  color: #1f1f1f;
  font-size: 48px;
  margin: 20px 0;
}

.post-noticia {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.img-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@media screen and (max-width: 768px) {
  .container {
    display: grid;
    grid-gap: 20px;
    max-width: 1100px;
    margin: 30px auto;
  }

  .card {
    margin-bottom: 25px;
  }
  .barra-navegar {
    padding: 0;
  }

  .post-header h2 {
    font-size: 22px;
  }

  .post-noticia {
    max-width: 380px;
  }

  .post-title h2 {
    color: #1f1f1f;
    font-size: 36px;
  }

  .post-body object {
    width: 100%;
    height: 500px;
  }

  .post-img {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 450px;
  }

  .post-img img {
    width: 380px;
  }

  .post-img-box img {
    width: 350px;
  }

  .img-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .img-1 {
    margin: 0 0 20px 0;
  }

  .grid-container {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* 2 tarjetas por fila en pantallas menores a 768px */
  }
}

@media screen and (min-width: 1200px) and (min-height: 800px) {
  .lista-noticias h2 {
    color: #1f1f1f;
    margin: 0 0 40px 0;
  }

  .card-img-top {
    width: 100%;
    height: 30vh;
    object-fit: cover;
  }
}

@media screen and (min-width: 1024px) {
  .p-news-top {
    padding-top: 4rem;
  }
}

@media screen and (min-width: 1200px) {
  .p-news-top {
    padding-top: 6rem;
  }
}

.truncate-text {
  display: -webkit-box;
  display: box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; /* Cambia a 1 si solo quieres una línea */
  line-clamp: 5; /* Propiedad estándar para compatibilidad */
  overflow: hidden;
  text-overflow: ellipsis;
}

.truncate-text-2 {
  display: -webkit-box;
  display: box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* Cambia a 1 si solo quieres una línea */
  line-clamp: 4; /* Propiedad estándar para compatibilidad */
  overflow: hidden;
  text-overflow: ellipsis;
}

.truncate-text-3 {
  display: -webkit-box;
  display: box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6; /* Cambia a 1 si solo quieres una línea */
  line-clamp: 6; /* Propiedad estándar para compatibilidad */
  overflow: hidden;
  text-overflow: ellipsis;
}

.wrapper {
  max-width: 1200px; /* Ancho máximo del contenedor */
  margin: 0 auto; /* Centra el contenedor */
  padding: 20px; /* Padding en los costados */
}

.card-group {
  display: grid; /* Cambia a grid para controlar mejor las filas */
  grid-template-columns: repeat(4, 1fr); /* 4 tarjetas por fila */
  gap: 20px; /* Espacio entre las tarjetas */
}

/* Media queries para la card-group */
@media screen and (min-width: 601px) and (max-width: 768px) {
  .card-group {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* 2 tarjetas por fila en pantallas menores a 768px */
  }
}

@media screen and (max-width: 600px) {
  .card-group {
    grid-template-columns: 1fr; /* 1 tarjeta por fila en pantallas muy pequeñas */
  }

  .grid-container {
    grid-template-columns: 1fr; /* 1 tarjeta por fila en pantallas menores a 480px */
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .card-group {
    grid-template-columns: repeat(
      3,
      1fr
    ); /* 3 tarjetas por fila en pantallas menores a 1200px */
  }
}

.titulo-destacado {
  font-weight: bold; /* O cualquier otro estilo que desees */
  font-size: larger;
  color: #307ecc; /* Cambia el color si es necesario */
}

/* Estilos para la lista ordenada */
.lista-varios {
  max-width: 1200px; /* Ancho máximo del contenedor */
  margin: 40px auto; /* Centra el contenedor */
}

.lista-varios h2 {
  color: #1f1f1f;
  text-align: center;
  margin: 40px 0;
}

ol {
  margin: 20px 0; /* Espaciado superior e inferior */
  padding-left: 20px; /* Espaciado a la izquierda */
  list-style-type: decimal; /* Estilo de numeración */
}

/* Estilos para los elementos de la lista */
li {
  margin-bottom: 10px; /* Espaciado entre elementos */
  font-size: 14px; /* Tamaño de fuente */
  line-height: 1.4; /* Altura de línea */
  color: #333; /* Color del texto */
}

.lista-punteo {
  text-align: center;
  margin: 20px 0;
}

.lista-punteo p {
  font-size: 26px;
  margin: 20px 0;
}

.punteo-horizontal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style-type: none;
}

.punteo-horizontal li {
  flex: 1 1 30%; /* Cada elemento ocupa aproximadamente un tercio del contenedor */
  margin: 10px;
  font-size: 18px; /* Tamaño de fuente más grande */
  line-height: 1.5;
  color: #333;
  text-align: center; /* Centrar el texto */
  transition: background-color 0.3s ease, padding 0.3s ease; /* Transición suave */
}

.punteo-horizontal li:hover {
  background-color: #f0f0f0; /* Color de fondo al pasar el mouse */
  padding: 5px; /* Espaciado interno */
  border-radius: 4px; /* Bordes redondeados */
  cursor: pointer; /* Cambiar el cursor a pointer */
}

.noticias-hr {
  border: none;
  height: 4px; /* Grosor del hr */
  background: #000000; /* Color del hr */
  border-radius: 2px; /* Bordes redondeados */
  margin: 40px 0; /* Espaciado superior e inferior */
}

hr:not([size]) {
  height: 4px; /* Forzar la altura del hr */
  background: #000000; /* Color del hr */
  border: none;
  border-radius: 2px; /* Bordes redondeados */
  margin: 40px 0; /* Espaciado superior e inferior */
}

/* Estilo para el botón de "Ver más" */
/* Animaciones suaves */
.news-section .card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.news-section .card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos del botón */
#loadMoreBtn {
  position: relative;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  outline: none;
  border: none;
  background: #007bff;
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#loadMoreBtn:hover {
  background: #0056b3;
}

#loadMoreBtn.loading {
  opacity: 0.8;
  cursor: wait;
}

.spinner-border {
  margin-left: 8px;
  width: 1.2rem;
  height: 1.2rem;
  border-width: 0.25em;
}

.fade-in {
  opacity: 0;
  animation: fadeIn ease 0.6s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
