/* Lista vertical */
.noticias-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* máximo de columnas */
    grid-auto-rows: minmax(100px, auto);
    gap: 8px;
    margin-top: 16px;
}

/* Tarjeta */
.noticia-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.noticia-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
    border-color: #d1d5db;
}

/* Placa de fecha */
.noticia-fecha {
    text-align: center;
    color: #333;
    padding: 8px 10px;
    border-radius: 10px;
    min-width: 72px;
}

.noticia-fecha .dia {
    font-size: .85rem;
    line-height: 1;
}

.noticia-fecha .mes {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.2;
    opacity: .95;
}

.noticia-fecha .year {
    font-size: .85rem;
    line-height: 1;
}

.noticia-fecha .hora {
    font-size: .85rem;
    margin-top: 4px;
    opacity: .95;
}

/* Título */
.noticia-titulo {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
}

.noticia-titulo a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.noticia-titulo a:hover {
    text-decoration: underline;
}

/* Navegación (carrusel/paginación sin recarga) */
.paginacion {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.paginacion .btn-page {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: .95rem;
    color: #111827;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}

.paginacion .btn-page:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.paginacion .btn-page:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.paginacion .act-status {
    font-size: .95rem;
    color: #6b7280;
}

@media(max-width:780px) {
    .noticias-list {
        grid-template-columns: repeat(1, 1fr);
        /* máximo de columnas */
    }
}