/* ============================================================
   LISTADO NOTICIAS — GRID
============================================================ */

.psw-news-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* PANTALLAS MEDIANAS (tablets, móviles grandes) */
@media (max-width: 900px) {
    .psw-news-grid {
        grid-template-columns: 1fr !important;
    }

    .psw-news-card {
        flex-direction: column;
    }

    .psw-news-image img {
        height: 180px;
    }
}

/* ============================================================
   TARJETA NOTICIA HORIZONTAL
============================================================ */

.psw-news-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    overflow: hidden;
    display: flex;
    gap: 10px;
}

.psw-news-image {
    flex: 0 0 40%;
}

.psw-news-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.psw-news-body {
    padding: 10px;
    flex: 1;
}

.psw-news-plat {
    font: 700 10px Verdana;
    margin-bottom: 4px;
}

.psw-news-title {
    margin: 0 0 6px;
    font: 700 14px Verdana;
    color: #0b5010;
    text-decoration: none;
    display: block;
}

.psw-news-desc {
    color: #244;
    font: 12px Verdana;
}

.psw-news-footer {
    margin-top: 6px;
    color: #667;
    font: 11px Verdana;
}

/* HEADER */
.psw-news-header {
    background:#4ea24e;
    padding:12px 15px;
    border-radius:8px;
    margin-bottom:12px;
}

.psw-news-header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
	color:#0b2e4b !important;
}

/* ============================================================
   PAGINACIÓN
============================================================ */

.psw-pagination {
    text-align: center;
    padding: 18px 0;
}

.psw-pagination a,
.psw-pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    font: 12px Verdana;
    text-decoration: none;
    border-radius: 6px;
    transition: .2s;
}

.psw-pagination a {
    background: #eaf7ea;
    color: #0b5010;
    border: 1px solid #c6dfc6;
}

.psw-pagination a:hover {
    background: #d3eecd;
}

.psw-pagination .active {
    background: #4ea24e;
    color: #fff;
    border: 1px solid #3a7f3a;
    font-weight: bold;
}

.psw-pagination .dots {
    color: #777;
    padding: 6px 6px;
    background: transparent;
    border: none;
}

.psw-pagination .nav-btn {
    background: #d9ead9;
    color: #0b5010;
    border: 1px solid #bcdcbc;
}

.psw-pagination .nav-btn:hover {
    background: #c9e2c9;
}

/* ============================================================
   ENLACES EN TARJETAS
============================================================ */

.psw-news-card .psw-title,
.psw-news-title,
.psw-grid .psw-title {
    color: #064 !important;
    text-decoration: none;
    font-weight: 700;
}

.psw-news-card .psw-title:hover,
.psw-grid .psw-title:hover {
    text-decoration: underline;
}

.psw-news-card a {
    color: #064;
    text-decoration: none;
}

.psw-news-card a:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE REAL (MÓVILES < 640px)
============================================================ */

@media (max-width: 640px) {

    /* Igual que descargas */
    .psw-wrapper {
        padding: 16px 12px 32px !important;
    }

    .psw-news-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Grid a 1 columna real */
    .psw-news-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 10px !important;
    }

    /* Tarjetas verticales */
    .psw-news-card {
        flex-direction: column !important;
        padding-bottom: 6px;
    }

    /* Imagen más grande */
    .psw-news-image img {
        height: 200px !important;
        width: 100%;
        border-radius: 0;
    }

    /* Texto más legible */
    .psw-news-title {
        font-size: 15px;
        line-height: 1.25;
    }

    .psw-news-desc {
        font-size: 12px;
        line-height: 1.3;
    }

    .psw-news-footer {
        font-size: 11px;
    }
}
