.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: .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: .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: 16px; /* Tamaño de fuente */
    line-height: 1.5; /* Altura de línea */
    color: #333; /* Color del texto */
}

/* Estilo adicional para resaltar los elementos */
li:hover {
    background-color: #f0f0f0; /* Color de fondo al pasar el mouse */
    padding: 5px; /* Espaciado interno */
    border-radius: 4px; /* Bordes redondeados */
    transition: background-color 0.3s ease, padding 0.3s ease; /* Transición suave */
    cursor: pointer; /* Cambiar el cursor a pointer */
}

.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 */
}