/**
 * Fichas de detalle de programas Ayudas (tercer nivel).
 * Ámbito: fichas detalle (item-page) en body.ivace-ayudas-section.
 * Excluye selector de años (ivace-years-nav) salvo hotfixes puntuales.
 * No exige .cabeceraTable-prog (muchas convocatorias usan otro HTML legacy).
 */

/* —— Selector base —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article {
    --ivace-ayudas-gray: #5d5b61;
    --ivace-programa-accent: var(--ivace-ayudas-gray);
    --ivace-programa-card-border: #dce8f5;
    background: #ffffff !important;
    border: 1px solid var(--ivace-programa-card-border) !important;
    border-top: 3px solid var(--ivace-programa-accent) !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
    padding: 24px 28px !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
}

/* Color único en toda la sección Ayudas */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article {
    --ivace-programa-accent: var(--ivace-ayudas-gray) !important;
}

/* Título siempre visible en cualquier ficha de Ayudas */
body.ivace-ayudas-section #t3-content .item-page > article > .article-header .module-title,
body.ivace-ayudas-section #t3-content .item-page > article > .article-header .module-title a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* —— Avisos (ES / VAL): listado blog — tarjeta Ayudas (igual que Energía) + sin metadatos —— */
body.ivace-avisos-listing #t3-content .com-content-category-blog article {
    background: #fff !important;
    border: 1px solid #dce8f5 !important;
    border-top: 3px solid #333 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
    padding: 18px 24px !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
}

body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog.blog-info:has(.article-header a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"])
) article > .article-aside {
    display: none !important;
}

body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="/ayudas/avisos"]) > article,
body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="/val/ajudes/avisos"]) > article {
    --ivace-programa-accent: var(--ivace-ayudas-gray);
}

/* Avisos: tabla legacy → texto dentro de la cajita (sin caja gris/roja interior) */
body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content):has(table) > p:first-child,
body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content):has(table) > p:last-child {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    table-layout: auto !important;
}

body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table :is(tbody, tr) {
    display: block !important;
    width: 100% !important;
}

body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table td[style*="width: 10%"],
body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table td:first-child:not([style*="#f5f5f5"]),
body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table td:last-child:not([style*="#f5f5f5"]) {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table td[style*="#f5f5f5"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
}

body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table td p {
    margin: 0 0 12px !important;
    text-align: left !important;
}

body.ivace-ayudas-section #t3-content :is(
    .com-content-category-blog:has(.category-name a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.category-name a[href*="/val/ajudes/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/ayudas/avisos"]),
    .com-content-category-blog:has(.article-header a[href*="/val/ajudes/avisos"]),
    .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    .item-page:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table td p:last-child {
    margin-bottom: 0 !important;
}

/* Hotfix: Digitaliza 2025 debe heredar diseño aunque tenga ivace-years-nav */
body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article {
    --ivace-programa-accent: var(--ivace-ayudas-gray);
    --ivace-programa-card-border: #dce8f5;
    background: #ffffff !important;
    border: 1px solid var(--ivace-programa-card-border) !important;
    border-top: 3px solid var(--ivace-programa-accent) !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
    padding: 24px 28px !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
}

body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-header,
body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-content {
    background: transparent !important;
}

body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-aside {
    display: none !important;
}

body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-header {
    margin-bottom: 20px !important;
    padding-bottom: 6px !important;
    border-bottom: 0 !important;
}

body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-header .module-title,
body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-header h1.module-title {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    text-align: right !important;
}

body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-header .module-title a {
    color: inherit !important;
    text-decoration: none !important;
}

body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-header .module-title a:hover,
body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-header .module-title a:focus {
    color: var(--ivace-programa-accent) !important;
    text-decoration: none !important;
}

body.ivace-ayudas-section #t3-content .item-page:has(.article-header a[href*="57068-digitaliza-2025"]) > article > .article-content {
    color: #333333 !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

/* Hijos transparentes dentro de la tarjeta */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-header,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content {
    background: transparent !important;
}

/* —— Cabecera: ocultar metadatos —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-aside {
    display: none !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-header {
    margin-bottom: 20px !important;
    padding-bottom: 6px !important;
    border-bottom: 0 !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-header .module-title,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-header h1.module-title {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    text-align: right !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-header .module-title a {
    color: inherit !important;
    text-decoration: none !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-header .module-title a:hover,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-header .module-title a:focus {
    color: var(--ivace-programa-accent) !important;
    text-decoration: none !important;
}

/* —— Contenido: tipografía —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content {
    color: #333333 !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content ul,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content ol {
    margin: 12px 0 16px !important;
    padding-left: 1.5em !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content li {
    margin-bottom: 8px !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content a:not(:has(img)) {
    color: var(--ivace-programa-accent) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content a:not(:has(img)):hover,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content a:not(:has(img)):focus {
    text-decoration: underline !important;
}

/* Nota DOGV */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(a[href*="dogv.gva.es"]) {
    font-size: 14px !important;
    color: #555555 !important;
    margin: 12px 0 !important;
}

/* —— Banner superior e imágenes en párrafo aislado —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(> img),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(> a > img) {
    text-align: center !important;
    padding-left: 0 !important;
    margin: 16px auto 20px !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(> img) > img,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(> a > img) img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
}


/* —— Imágenes con float dentro de un <p> (p. ej. banner con float:left) —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(img[style*="float: left"]),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(img[style*="float:left"]) {
    text-align: center !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(img[style*="float: left"]) img,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(img[style*="float:left"]) img {
    float: none !important;
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* —— Bloque teléfonos / correos de información (becas y fichas similares) —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(span[style*="#ff6600"] em),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(span[style*="#ff6600"] strong em),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(span[style*="color: #ff6600"] em),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p[style*="padding-left: 60px"]:has(span[style*="#ff6600"]),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p[style*="padding-left:60px"]:has(span[style*="#ff6600"]),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(a[href^="mailto:"]),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(span[style*="#ff6600"]):has(a[href^="mailto:"]) {
    text-align: center !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(span[style*="#ff6600"] em),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(span[style*="#ff6600"] strong em) {
    margin-bottom: 10px !important;
}

/* —— Teléfonos/correos con color #dd3979 (p. ej. internacional) —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(span[style*="#dd3979"]):has(strong),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content > p:has(span[style*="#dd3979"]):has(a[href^="mailto:"]) {
    text-align: center !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* No centrar imágenes dentro de columnas flotantes del contenido */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content div[style*="float"] p:has(> img) {
    text-align: inherit !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content div[style*="float"] p:has(> img) > img {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* —— Ficha resumen .tableCenter —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--ivace-programa-card-border) !important;
    border-top: 3px solid var(--ivace-ayudas-gray) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter td {
    padding: 18px 20px !important;
    vertical-align: middle !important;
    text-align: left !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter td:last-child {
    text-align: left !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter td:last-child img {
    float: none !important;
    display: block !important;
    max-width: 150px !important;
    height: auto !important;
    margin: 0 !important;
}

/* —— Banners de acción y contacto —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(a > img[src*="antesdepresentar"]),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(a > img[src*="aclaracionespreg"]),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(img[src*="tel-innovacion"]),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(img[src*="mailinnovacion"]) {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px 20px !important;
    margin: 16px 0 !important;
    text-align: left !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(a > img[src*="antesdepresentar"]) a,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(a > img[src*="aclaracionespreg"]) a,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(img[src*="tel-innovacion"]) img,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(img[src*="mailinnovacion"]) img,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(img[src*="tel-innovacion"]) a {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(a > img[src*="antesdepresentar"]) img,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(a > img[src*="aclaracionespreg"]) img,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(img[src*="tel-innovacion"]) img,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(img[src*="mailinnovacion"]) img {
    max-width: 100% !important;
    height: auto !important;
}

/* Párrafo con ambos banners solicitud + aclaraciones */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(a > img[src*="antesdepresentar"]):has(a > img[src*="aclaracionespreg"]) {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px 20px !important;
}

/* —— Secciones .cabeceraTable-prog —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.cabeceraTable-prog {
    width: 100% !important;
    max-width: 100% !important;
    margin: 28px 0 12px !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.cabeceraTable-prog td {
    padding: 0 !important;
    border: 0 !important;
    vertical-align: middle !important;
    background: transparent !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.cabeceraTable-prog td:first-child {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.cabeceraTable-prog td.cabeceraText-programasComoSolicitar,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td.cabeceraText-programasComoSolicitar):not(.cabeceraTable-prog) td.cabeceraText-programasComoSolicitar {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #5d5b61 !important;
    padding: 12px 16px !important;
    background: #f4f8fb !important;
    border-left: 4px solid #5d5b61 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}

/* Espaciado tras cabeceras de sección */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.cabeceraTable-prog + div,
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td.cabeceraText-programasComoSolicitar) + div {
    margin-bottom: 8px !important;
}

/* —— Tabla de plazos (cabecera roja #d10026) —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content {
    overflow-x: visible !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) {
    width: 100% !important;
    min-width: 560px;
    max-width: 100% !important;
    margin: 16px 0 24px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) td {
    padding: 12px 10px !important;
    vertical-align: middle !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody > tr:first-child td {
    background-color: #d10026 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 0 !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody > tr:first-child td span {
    color: #ffffff !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody > tr:not(:first-child) td {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #dcdcdc !important;
    border-top: 0 !important;
}

/* Scroll horizontal para tabla de plazos */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content p:has(+ table:has(td[style*="#d10026"])),
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content div:has(+ table:has(td[style*="#d10026"])) {
    margin-bottom: 0 !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content:has(table:has(td[style*="#d10026"])) {
        overflow-x: visible !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 14px 0 18px !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody,
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) td {
        display: block !important;
        width: 100% !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody {
        display: flex !important;
        flex-direction: column !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tr {
        display: contents !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) td {
        border: 1px solid #dcdcdc !important;
        border-top: 0 !important;
        border-radius: 0 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        padding: 12px 12px !important;
        text-align: center !important;
        background: #ffffff !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(-n+4) {
        background-color: #d10026 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        border: 0 !important;
        border-radius: 8px 8px 0 0 !important;
        padding: 14px 12px 20px !important;
        margin-bottom: 0 !important;
        line-height: 1.45 !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(n+5) {
        border-top: 1px solid #e8e8e8 !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(-n+4) span {
        color: #ffffff !important;
        display: inline-block !important;
        line-height: 1.45 !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(-n+4) p {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.45 !important;
    }

    /* Reordenar para mostrar título + descripción por bloque */
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(1) { order: 1; }
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(5) { order: 2; border-radius: 0 0 8px 8px !important; margin-bottom: 14px !important; }
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(2) { order: 3; }
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(6) { order: 4; border-radius: 0 0 8px 8px !important; margin-bottom: 14px !important; }
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(3) { order: 5; }
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(7) { order: 6; border-radius: 0 0 8px 8px !important; margin-bottom: 14px !important; }
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(4) { order: 7; }
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table:has(td[style*="#d10026"]):not(.tableCenter):not(.cabeceraTable-prog) tbody td:nth-child(8) { order: 8; border-radius: 0 0 8px 8px !important; margin-bottom: 0 !important; }
}

/* —— Limpieza visual solo-CSS —— */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content span[style*="z-index: 8675309"] {
    display: none !important;
}

body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content div:empty {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* —— Responsive —— */
@media (max-width: 767px) {
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article {
        padding: 16px !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-header .module-title {
        font-size: 1.25rem !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter,
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter tbody,
    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter tr {
        display: block !important;
        width: 100% !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter td {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }

    body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content table.tableCenter td:last-child {
        text-align: center !important;
        padding-top: 12px !important;
    }
}

/* ============================================================
   SIDEBAR Ayudas: módulos Remository (doc. anexa, justificación, etc.)
   + banners de artículo. Solo body.ivace-ayudas-section
   ============================================================ */

/* Ámbito común: cualquier módulo ivace con lista Remository en sidebar */

body.ivace-ayudas-section {
    --ivace-sidebar-accent: #5d5b61;
}

/* —— Módulos Remository en sidebar (doc. anexa, solicitud, justificación, etc.) —— */
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) {
    margin-bottom: 28px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .module-inner {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .module-title {
    display: block !important;
    position: relative !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e8eef5 !important;
    color: var(--ivace-sidebar-accent) !important;
    text-align: right !important;
    text-transform: uppercase !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    padding: 0 2px 10px 0 !important;
    margin: 0 0 12px 0 !important;
    background: transparent !important;
    letter-spacing: 0.01em !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .module-title::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: -1px !important;
    width: 60% !important;
    height: 2px !important;
    background: var(--ivace-sidebar-accent) !important;
}


body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .module-title > span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: inherit !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .module-ct {
    padding: 0 0 0 8px !important;
    text-align: left !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 7px 0 7px 6px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    background: transparent !important;
    transition: color 0.15s ease !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-row.ontab,
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-row.offtab {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-row:hover {
    border: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-color: transparent !important;
}



body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-cell.rem-module-item-icon {
    flex: 0 0 22px !important;
    width: 22px !important;
    min-width: 22px !important;
    padding: 2px 0 0 0 !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-cell.rem-module-item-icon img {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    margin: 0 !important;
    opacity: 0.85 !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-cell.rem-module-item-title {
    flex: 1 1 auto !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    min-width: 0 !important;
    padding: 2px 0 !important;
    margin: 0 !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-cell.rem-module-item-title a {
    display: block !important;
    position: relative !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    text-decoration: none !important;
    line-height: 1.45 !important;
    padding: 2px 14px 2px 0 !important;
    margin: 0 !important;
    transition: color 0.15s ease !important;
}



body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-cell.rem-module-item-title a:hover,
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-cell.rem-module-item-title a:focus {
    color: var(--ivace-sidebar-accent) !important;
    text-decoration: none !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-cell.rem-module-item-title a:hover::after,
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-cell.rem-module-item-title a:focus::after {
    color: var(--ivace-sidebar-accent) !important;
}

/* Destacar trámites (presentar solicitud, registro telemático) */
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-row:has(a[href*="Presentar-una-solicitud"]),
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-row:has(a[href*="presentar-una-solicitud"]),
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-row:has(a[href*="Registro-telem"]),
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .rem-table-row:has(a[href*="registro-telem"]) {
    padding-top: 9px !important;
    margin-top: 3px !important;
    border-top: 1px solid #d8d8d8 !important;
}



body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module:has(.rem-module) .rem-module .remversion:empty {
    display: none !important;
}


/* —— Banners: libres, apilados con separación —— */
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] {
    margin-top: 8px !important;
    margin-bottom: 24px !important;
    padding-top: 20px !important;
    padding-bottom: 0 !important;
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .module-inner {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .module-ct {
    padding: 0 !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .mod-banners {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .mod-banners__item,
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .banneritem {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .mod-banners img,
body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .banneritem img {
    display: inline-block !important;
    max-width: 85% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
}


@media (max-width: 767px) {
    body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .mod-banners img,
    body.ivace-ayudas-section :is(.t3-sidebar, .t3-sidebar-right) .t3-module[data-ivace-mod-slug*="banner-"][data-ivace-mod-slug*="-articulo"] .banneritem img {
        max-width: 100% !important;
    }
}

/* Ficha programa (3er nivel): sin width en CSS — manda el editor Joomla */
body.ivace-ayudas-section #t3-content .item-page:not(:has(.article-content .ivace-years-nav)) > article > .article-content img:not([src*="ray.png"]):not([src*="rayafin"]):not([src*="redondelp"]):not([src*="redonfa"]):not([width="13"]):not([width="22"]) {
    max-width: 100% !important;
    height: auto !important;
}
