/* =========================================
   PÁGINAS LEGACY /pes/*.html
========================================= */

.psw-pes-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.65;
    color: #1e3b2c;
}
/* ======================
   PÁRRAFOS LEGACY /pes
====================== */

.psw-pes-text p {
    margin: 0 0 16px 0;
}

/* Fecha */
.psw-pes-meta {
    margin-bottom: 16px;
    color: #3b6f54;
    font-size: 14px;
}

/* ======================
   IMÁGENES LEGACY
====================== */

.psw-pes-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Varias imágenes seguidas */
.psw-pes-text img + img {
    margin-top: 20px;
}

/* ======================
   LISTAS
====================== */

.psw-pes-text ul,
.psw-pes-text ol {
    margin: 14px 0 14px 26px;
}

.psw-pes-text li {
    margin-bottom: 6px;
}

/* ======================
   STRONG / TÍTULOS LEGACY
====================== */

.psw-pes-text strong {
    font-weight: 600;
    color: #155e3a;
}

/* Subrayados antiguos */
.psw-pes-text u {
    text-decoration: none;
    font-weight: 600;
}

/* ======================
   CENTER LEGACY
====================== */

.psw-pes-text center {
    display: block;
    text-align: center;
    margin: 18px 0;
}

/* ======================
   ENLACES
====================== */

.psw-pes-text a {
    color: #0b7a4b;
    text-decoration: underline;
}

.psw-pes-text a:hover {
    color: #095c39;
}

/* ======================
   TABLAS LEGACY (BASE)
====================== */

.psw-pes-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    background: #eaf2ea;
    border-radius: 10px;
    overflow: hidden;
}

.psw-pes-text th {
    background: #d8e8dd;
    font-weight: 600;
    text-align: center;
}

.psw-pes-text td,
.psw-pes-text th {
    padding: 10px 12px;
    border: 1px solid #cfded6;
    text-align: center;
}

.psw-pes-text tr:not(:last-child) {
    border-bottom: 1px solid #d5e0d5;
}

/* ======================
   TABLAS PEQUEÑAS
====================== */

.psw-pes-text table {
    max-width: 600px;
}

/* ======================
   MODO MÓVIL – TABLAS
====================== */

@media (max-width: 600px) {

    .psw-pes-text table,
    .psw-pes-text tbody,
    .psw-pes-text tr,
    .psw-pes-text td,
    .psw-pes-text th {
        display: block;
        width: 100%;
    }

    .psw-pes-text table {
        background: transparent;
        box-shadow: none;
    }

    .psw-pes-text tr {
        margin-bottom: 14px;
        background: #eaf2ea;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .psw-pes-text td,
    .psw-pes-text th {
        border: none;
        padding: 6px 4px;
        text-align: center;
    }
}

/* ======================
   AJUSTES GENERALES MÓVIL
====================== */

@media (max-width: 768px) {
    .psw-pes-text {
        font-size: 15px;
        padding: 0 12px;
    }
}

/* =================================================
   BLOQUE ADBLOCK (FIX DEFINITIVO TEXTO PARTIDO)
================================================= */

.psw-adblock-box {
    border: 2px solid #4caf50;
    background: #f1f8f4;
    padding: 20px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* 🔧 FIX CLAVE: evitar herencias legacy */
.psw-adblock-box p,
.psw-adblock-box li {
    display: block;
    width: 100%;
    max-width: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.psw-adblock-title {
    text-align: center;
    color: #16a34a;
    background: #e8f5e9;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.psw-adblock-subtitle {
    color: #16a34a;
    border-bottom: 2px solid #16a34a;
    padding-bottom: 6px;
    margin-top: 30px;
}

.psw-adblock-text {
    font-size: 1rem;
    color: #374151;
    margin-top: 12px;
}

.psw-adblock-list {
    margin-top: 12px;
    padding-left: 20px;
}

.psw-adblock-list li {
    margin-bottom: 8px;
}

.psw-adblock-center {
    text-align: center;
    margin-top: 28px;
}

.psw-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.psw-btn-blue {
    background: #3498db;
}

.psw-btn-green {
    background: #22c55e;
}

.psw-adblock-note {
    font-size: 0.95rem;
    color: #555;
    margin-top: 24px;
    text-align: center;
}
/* FIX definitivo: eliminar <br> legacy en bloque AdBlock */
.psw-adblock-box br {
    display: none;
}
/* FIX definitivo AdBlock en /pes/: anula white-space legacy */
.psw-pes-text .psw-adblock-box,
.psw-pes-text .psw-adblock-box p,
.psw-pes-text .psw-adblock-box li {
    white-space: normal !important;
}
/* ======================
   FIX LISTAS LEGACY /pes
====================== */

.psw-pes-text ul {
    list-style: disc;
    padding-left: 26px;
    margin: 14px 0;
}

.psw-pes-text ol {
    list-style: decimal;
    padding-left: 26px;
    margin: 14px 0;
}

.psw-pes-text li {
    margin-bottom: 6px;
}
/* =========================================
   FIX DEFINITIVO BLOQUE ADBLOCK EN /pes/
========================================= */

/* Anular herencias legacy */
.psw-pes-text .psw-adblock-box {
    white-space: normal;
    font-size: 16px;
    line-height: 1.6;
}

/* Párrafos normales */
.psw-pes-text .psw-adblock-box p {
    display: block;
    margin: 12px 0;
}

/* LISTAS: ESTO ES LO QUE FALTABA */
.psw-pes-text .psw-adblock-box ul {
    list-style: disc !important;
    padding-left: 22px;
    margin: 14px 0;
}

.psw-pes-text .psw-adblock-box li {
    display: list-item;
    margin-bottom: 8px;
}

/* Evitar cortes raros */
.psw-pes-text .psw-adblock-box * {
    word-break: normal;
    overflow-wrap: break-word;
}
/* =========================================
   FIX DEFINITIVO TEXTO PARTIDO ADBLOCK /pes
========================================= */

/* Evitar que <strong> se comporte como título */
.psw-pes-text .psw-adblock-box p > strong {
    display: inline !important;
    margin: 0 !important;
    font-size: inherit !important;
}
/* =========================================
   FIX STRONG INLINE EN PÁRRAFOS /pes/
========================================= */

/* Por defecto, strong dentro de párrafo ES INLINE */
.psw-pes-text p strong {
    display: inline;
    margin: 0;
    font-size: inherit;
}

