/* ============================================================
   PORTADA — Estilos exclusivos para index_responsive.php
   ============================================================ */

.psw-home {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 16px 50px;
    box-sizing: border-box;
}

/* ===========================
   SECCIONES
   =========================== */
.psw-section {
    margin-bottom: 50px;
}

.psw-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #065f46;
    text-align: left;
}

/* ===========================
   BLOQUES INTERNOS (descargas/noticias)
   Se respetan exactamente las clases internas
   de los bloques modernos v3 / v1.
   =========================== */

/* Wrapper general de bloques */
.psw-block {
    background: #eef9ee;
    border: 1px solid #d1e7d1;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

/* ===========================
   GRID de tarjetas (descargas y noticias)
   =========================== */

.psw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Tarjeta */
.psw-item {
    background: #ffffff;
    border: 1px solid #d1e7d1;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.psw-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Miniaturas */
.psw-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 12px;
}

.psw-thumb img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

/* Título */
.psw-item-title {
    font-size: 15px;
    font-weight: 600;
    min-height: 40px;
    margin: 6px 0 10px;
    color: #111827;
}

.psw-item-title a {
    color: inherit;
    text-decoration: none;
}

.psw-item-title a:hover {
    text-decoration: underline;
}

/* Botón */
.psw-btn {
    background: #2563eb;
    color: #ffffff;
    padding: 9px 0;
    border-radius: 6px;
    display: block;
    text-decoration: none;
    font-weight: 600;
    transition: background .15s ease;
}

.psw-btn:hover {
    background: #1d4ed8;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 720px) {
    .psw-section h2 {
        font-size: 22px;
        margin-top: 10px;
    }

    .psw-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .psw-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   SECCIÓN: Últimas Descargas PES — versión PRO (CORREGIDA FINAL)
   ============================================================ */

/* ---------- CABECERA ---------- */
.psw-section-header {
    background: #4ea24e;
    color: #fff;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px 6px 0 0;
}

/* ---------- ANUNCIOS MOSTRADOS ---------- */
/* ---------- ANUNCIOS (PRO) ---------- */
.psw-ad-infeed,
.psw-ad-multiplex {
    padding: 12px 0;
    background: transparent;
    border: 0;
    text-align: center;
}

/* ============================================================
   2 CARDS GRANDES (DESTACADAS)
   ============================================================ */

.psw-dl-big-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 18px;
}

.psw-dl-big-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.psw-dl-big-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.psw-dl-big-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.psw-dl-big-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.psw-dl-big-title {
    font-size: 17px;
    font-weight: 700;
    color: #0b5010;
    margin-bottom: 8px;
    text-decoration: none;
}

.psw-dl-desc {
    color: #244;
    font-size: 14px;
    margin: 0 0 12px;
    flex-grow: 1;
}

.psw-dl-meta {
    font-size: 12px;
    color: #667;
    margin-bottom: 14px;
}

/* Botón alineado siempre abajo */
.psw-btn-green {
    background: #16a34a;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    margin-top: auto;
}

.psw-btn-green:hover {
    background: #15803d;
}

/* ============================================================
   4 CARDS COMPACTAS (PEQUEÑAS)
   ============================================================ */

.psw-dl-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 14px 18px;
}

.psw-dl-compact-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,.1);
    display: flex;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: #111;
}

.psw-dl-compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,.15);
}

.psw-dl-compact-card img {
    width: 40%;
    height: 110px; /* CONSISTENTE */
    object-fit: cover;
    border-radius: 6px;
}

.psw-dl-compact-body {
    flex: 1;
}

.psw-dl-compact-title {
    font-size: 14px;
    font-weight: 700;
    color: #0b5010;
    margin-bottom: 4px;
}

.psw-dl-compact-desc {
    font-size: 12px;
    color: #244;
    margin-bottom: 6px;
}

/* CTA */
.psw-cta-center {
    padding: 18px;
    text-align: center;
}

.psw-btn-green-lg {
    padding: 12px 20px;
    background: linear-gradient(180deg, #4ea24e 0%, #3b893b 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

/* ============================================================
   RESPONSIVE FINAL (PERFECTO)
   ============================================================ */

/* Tablets y pantallas medianas */
@media (max-width: 960px) {
    .psw-dl-big-grid {
        grid-template-columns: 1fr;
    }

    .psw-dl-big-thumb img {
        height: 220px;
    }
}

/* Móviles estándar */
@media (max-width: 720px) {

    .psw-section-header {
        font-size: 14px;
        padding: 10px 14px;
    }

    .psw-dl-big-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .psw-dl-big-thumb img {
        height: 200px;
    }

    .psw-dl-big-title {
        font-size: 15px;
    }

    .psw-dl-compact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
    }

    .psw-dl-compact-card img {
        height: 95px; /* Más pequeñas aún en móvil */
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {

    .psw-dl-big-thumb img {
        height: 170px;
    }

    /* Compactas estilo lista */
    .psw-dl-compact-card {
        flex-direction: row;
    }

    .psw-dl-compact-card img {
        width: 35%;
        height: 85px;
    }

}
/* ============================================================
   SECCIÓN: Últimas Noticias PES — versión PRO (Compacta B)
   ============================================================ */

/* Cabecera */
.psw-news-header {
    background: #4ea24e;
    color: #fff;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px 6px 0 0;
}

/* Anuncios — PRO */
.psw-news-ad-infeed,
.psw-news-ad-multiplex {
    padding: 12px 0;
    background: transparent;
    border: 0;
    text-align: center;
}

/* ============================================================
   2 NOTICIAS GRANDES (igual concepto que Descargas)
   ============================================================ */

.psw-news-big-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 18px;
}

.psw-news-big-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.psw-news-big-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.psw-news-big-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.psw-news-big-body {
    padding: 16px;
}

.psw-news-big-title {
    font-size: 17px;
    font-weight: 700;
    color: #0b5010;
    margin-bottom: 6px;
    text-decoration: none;
}

.psw-news-desc {
    font-size: 14px;
    color: #244;
    margin-bottom: 8px;
}

.psw-news-meta {
    font-size: 12px;
    color: #667;
    margin-top: 8px;
}

/* ============================================================
   3 NOTICIAS COMPACTAS (Opción B: Imágenes a la IZQUIERDA)
   ============================================================ */

.psw-news-compact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 14px 18px;
}

.psw-news-compact-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    padding: 10px;
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #111;
    transition: transform .2s, box-shadow .2s;
}

.psw-news-compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,.15);
}

.psw-news-compact-card img {
    width: 40%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
}

.psw-news-compact-body {
    flex: 1;
}

.psw-news-compact-title {
    font-size: 14px;
    font-weight: 700;
    color: #0b5010;
    margin-bottom: 4px;
}

.psw-news-compact-desc {
    font-size: 12px;
    color: #244;
    margin-bottom: 6px;
}

.psw-news-compact-meta {
    font-size: 11px;
    color: #667;
}

/* CTA */
.psw-news-cta {
    text-align: center;
    padding: 16px;
}

.psw-news-btn {
    padding: 10px 18px;
    background: linear-gradient(180deg,#4ea24e 0%,#3b893b 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .psw-news-big-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {

    .psw-news-compact-grid {
        grid-template-columns: 1fr;
    }

    .psw-news-big-thumb img {
        height: 200px;
    }

    .psw-news-compact-card img {
        height: 90px;
        width: 35%;
    }
}

@media (max-width: 480px) {
    .psw-news-big-thumb img {
        height: 170px;
    }

    .psw-news-compact-card img {
        height: 80px;
    }
}

