.noticias-home.row {
    display: grid;
    place-content: start center;
    place-items: stretch;
    grid-template-columns: 1fr;
    gap: 20px;
}

.noticias-home.row .upper-bar {
    padding: 0 0 10px;
    border-bottom: solid 1px #B3B3B3;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: end;
}

.noticias-home.row .upper-bar h2 {
    color: #157BAC;
    font-size: 22px;
    font-family: 'Helvetica', sans-serif;
    font-weight: 300;
    margin: 0;
}

.noticias-home.row .upper-bar a {
    color: #29ABE2;
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
    font-size: 10px;
    text-decoration: none;
}

section.page.noticias article a,
.noticias-home.row article a {
    display: grid;
    grid-template-columns: 172px 1fr;
    place-content: start center;
    place-items: start center;
    gap: 15px;
    text-decoration: none;
}

section.page.noticias article img,
.noticias-home.row article img {
    aspect-ratio: 1/1;
    height: 172px;
    width: 100%;
    object-fit: cover; 
}

.single.noticia h2,
section.page.noticias article h3,
.noticias-home.row article h3 {
    color: #157BAC;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    text-align: left;
}

.single.noticia span.date,
section.page.noticias article span.date,
.noticias-home.row article span.date {
    color: #29ABE2;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
    font-family: 'Helvetica', sans-serif;
    font-size: 10px;
    display: block;
}

section.page.noticias article p,
.noticias-home.row article p {
    color: #4D4D4D;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;

    /* LIMITAR A N LINEAS EL CONTENIDO DE LAS NOTICIAS */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

section.page.noticias article .content-container,
.noticias-home.row article .content-container {
    display: grid;
    gap: 10px;
}

.noticias-home section.list.posts.post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    text-wrap: balance;
}

section.list.posts.post + .paginator {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    padding: 10px 0 0;
    border-top: solid 1px #B3B3B3;
    margin: 2rem 0;
}

section.list.posts.post + .paginator * {
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
    font-size: 11px;
}

section.list.posts.post + .paginator a.next.page-numbers,
section.list.posts.post + .paginator a.prev.page-numbers,
section.list.posts.post + .paginator span {
    color: #29ABE2;
}

section.list.posts.post + .paginator a {
    color: #CCCCCC;
    text-decoration: none;
}

section.list.posts.post + .paginator a.prev.page-numbers,
section.list.posts.post + .paginator a.next.page-numbers {
    position: absolute;
}

section.list.posts.post + .paginator a.prev.page-numbers {
    left: 0;
}

section.list.posts.post + .paginator a.next.page-numbers {
    right: 0;
}

.page.noticias section.list.posts.post {
    display: grid;
    gap: 20px;
    padding: 0 15px 20px;
}

.single.noticia .content::after {
    content: "";
    display: block;
    clear: both; /* evita que la imagen se salga del contenedor */
}

.single.noticia .content > img {
    float: left;
    width: auto;
    aspect-ratio: 1;
    max-width: 400px;
    height: auto;
    margin: 0 24px 16px 0;
}

.single.noticia .content p {
    margin: 0 0 14px;
}

.single.noticia h2 {
    font-size: 23px;
    font-weight: 700;
}

.single.noticia .content a,
.single.noticia .content p,
.single.noticia .content li {
    font-size: 15px;
    font-weight: 400;
    font-family: 'Helvetica', sans-serif;
    color: #808080;
}

.single.noticia .content ul {
    padding: revert;
    margin: 0 0 14px;
}

.single.noticia .content ul li {
    list-style-type: disc;
}

.single.noticia .content ol li {
    list-style-type: decimal;
}

.single.noticia span.date {
    margin: 0 0 10px;
}

@media (max-width: 1000px) {
    .noticias-home section.list.posts.post {
        gap: 20px;
    }
}

@media (max-width: 860px) {
    .noticias-home section.list.posts.post {
        grid-template-columns: 1fr;
    }
}

/* En móvil: imagen arriba, a todo el ancho */
@media (max-width: 768px) {
    .single.noticia .content > img {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px;
    }
}

@media (max-width: 510px) {
    .page.noticias section.list.posts.post,
    .noticias-home section.list.posts.post {
        gap: 60px;
    }

    section.page.noticias article a,
    .noticias-home.row article a {
        grid-template-columns: 1fr;
    }

    section.page.noticias article .thumb-container,
    .noticias-home.row article .thumb-container {
        width: 100%;
    }

    section.page.noticias article img, .noticias-home.row article img {
        aspect-ratio: unset;
        height: unset;
    }
}