﻿/**
 * Estilos sitio interior (no portada): ayudas, servicios, artículos, agenda, etc.
 * La portada carga además custom.css.
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('custom_pgs_servicios.css');

/* ==================== FULL WIDTH LAYOUT WITH SIDE MARGINS ==================== */
/* Full width sections with modern side padding for content */

html, body {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
    min-height: 100% !important;
}

.t3-wrapper {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 32px !important; /* Compensar topline fija compacta */
  overflow-x: hidden !important;
  box-sizing: border-box;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Sticky footer: si falta contenido, empuja el footer abajo */
.t3-mainbody {
    flex: 1 0 auto !important;
}

/* Header and navbar backgrounds extend full width */
#t3-header,
#t3-mainnav,
#t3-mainnav.navbar,
.t3-navbar {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 0 !important;
}

/* Cuando el navbar se fija al hacer scroll */
#t3-mainnav.navbar-fixed-top {
  position: fixed !important;
  top: 32px;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  z-index: 1090 !important;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Espacio superior del menú en modo sticky */
#t3-mainnav.navbar-fixed-top .t3-megamenu {
  padding-top: 10px !important;
}

/* Content inside header and navbar has side margins */
#t3-header > *,
#t3-mainnav > *,
.t3-navbar > * {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

.container,
.container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0px !important;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#t3-footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 30px !important;
  left: 0 !important;
  right: 0 !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    /*font-family: 'Arial',Arial;*/
    font-family: 'Roboto', sans-serif;
}

/* En desktop, respetar ancho de Bootstrap para #t3-content */
@media (min-width: 992px) {
    #t3-content {
        width: 100% !important;
    }
}

html {
    font-family: 'Roboto', sans-serif;
}

body {
    /*font-family: 'Arial',Arial;*/
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0;
    color: #444;
    font-size: 13.2px;
}

.tooltip {
    /*font-family: 'Arial',Arial;*/
    font-family: 'Roboto', sans-serif;
}

.popover {
    /*font-family: 'Arial',Arial;*/
    font-family: 'Roboto', sans-serif;
}

a {
    color: #5d5b61;
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Forzar visibilidad del bot?n hamburguesa en tablets */
    #t3-mainnav .navbar-header,
    .navbar-header {
        display: block !important;
        visibility: visible !important;
    }
    
    .navbar-toggle {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Asegurar que el navbar y megamenu est?n ocultos por defecto en tablets */
    #t3-mainnav .t3-navbar-collapse.collapse:not(.in),
    #t3-mainnav .t3-megamenu:not(.in) {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
    
    /* Ocultar completamente el megamenu fuera del collapse */
    .t3-megamenu.animate.slide {
        display: none !important;
        visibility: hidden !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Forzar visibilidad del botón hamburguesa en tablets */
    #t3-mainnav .navbar-header,
    .navbar-header {
        display: block !important;
        visibility: visible !important;
    }
    
    .navbar-toggle {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Asegurar que el navbar y megamenu estén ocultos por defecto en tablets */
    #t3-mainnav .t3-navbar-collapse.collapse:not(.in),
    #t3-mainnav .t3-megamenu:not(.in) {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    #t3-footer {
        padding: 0 40px !important;
    }
}

/* Forzamos que los elementos internos no ocupen todo el ancho */
.article-info-box dd, 
.article-info-box dt,
.article-info li {
    display: inline-flex !important; /* inline-flex ayuda a que se pongan uno al lado del otro */
    width: auto !important;          /* Evita que hereden un width: 100% de Bootstrap */
    flex: 0 1 auto !important;       /* No los deja crecer de más */
}

/* Si usas una lista (ul/li), quitamos los puntos y el padding lateral */
.article-info {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Ajuste por si el contenedor tiene un float que rompe el flex */
.article-info-box::before,
.article-info-box::after {
    display: none !important; /* Limpiamos posibles "clearflix" antiguos */
}

@media (min-width: 768px) and (max-width: 1199px) {
    .t3-copyright .container {
        padding: 0 !important;
    }

    .t3-copyright .container .custom {
        text-align: center !important;
    }

    .t3-copyright .container .customfooterlogos {
        margin-bottom: 20px !important;
    }
}

.module-title {
    border-top: 2px solid #dc002e;
    border-bottom: 2px solid #dc002e;
    color: #575353;
    text-align: right;
    text-transform: uppercase;
    padding: 8px 8px 8px 0px;
    letter-spacing: 0px;
    /*font-family: Arial Narrow, Arial;*/
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 14.52px;
    text-rendering: optimizeLegibility;
    margin-bottom: 0px;
}

.t3-wrapper, .t3-navhelper, .t3-footer {
    background-color: #fff;
}

/* Buscador Moderno */
#mod-search-searchword,
.js-finder-search-query {
    border: 2px solid #0c489b !important;
    height: 45px !important;
    margin-right: -4px;
    padding: 10px 15px !important;
    width: 250px !important;
    background: #fff !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 25px !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
}

#mod-search-searchword:focus,
.js-finder-search-query:focus {
    border-color: #136ceb !important;
    box-shadow: 0 0 0 3px rgba(13, 72, 155, 0.1) !important;
    outline: none !important;
}

.t3-header button,
.mod-finder__search button,
.mod-finder .btn-primary {
    background-color: #0c489b !important;
    background-image: none !important;
    background-repeat: no-repeat;
    height: 45px !important;
    width: 50px !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    border: 2px solid #0c489b !important;
    background-color: #0c489b !important;
    color: #fff !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.t3-header button:hover,
.mod-finder__search button:hover,
.mod-finder .btn-primary:hover {
    background-color: #136ceb !important;
    border-color: #136ceb !important;
    transform: scale(1.05) !important;
}

.head-search {
    text-align: right;
}

/* Contenedor del buscador moderno */
.mod-finder__search,
.mod-finder__search.input-group {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

.mod-finder__search input,
.mod-finder__search .form-control {
    height: 45px !important;
    font-size: 14px !important;
    padding: 10px 15px !important;
}

.mod-finder .awesomplete {
    flex: 1;
}

.t3-content .item-page {
    /* margin-top: -37px; */
}

.module-ct>ol.breadcrumb {
    background-color: transparent;
}

.t3-sidebar {
    border-right: 1px solid #D3D3D3;
    padding-top: 0px;
    padding-left:40px !important;
    padding-right:70px  !important;
}

.t3-navhelper .nav-pills>li {
    display: inline-block;
}

.t3-navhelper ul {
    margin-top: -40px;
    text-align: center;
}

.t3-sidebar ul {
    margin: 0;
    padding: 0;
}

.t3-sidebar .t3-module ul li {
    background: url(/images/icono_secundario.png) no-repeat top left 2px;
    background-size: auto;
    background-position-y: 4px;
    margin: 0px;
    padding-left: 9px;
    list-style-type: none;
}

.t3-sidebar ul li a:hover, .t3-sidebar ul .active a:hover {
    text-decoration: none;
    color: #0066cc;
    background-color: transparent;
}

.t3-sidebar ul .active a {
    text-decoration: none;
    color: rgb(112, 113, 115);
    background-color: transparent;
    font-weight: bold;
}

.t3-sidebar .t3-module {
    border-bottom: 0px solid #D3D3D3;
}

img[alt="Necesariatransformacion2"] {
    float: none;
}

.article-info {
    display: none;
}

.blog .readmore {
    clear: both;
    padding-top: 20px;
    font-style: italic;
}

.blog .readmore a {
    font-weight: bold;
    padding-left: 15px;
    position: relative;
}

.blog .readmore a:before {
    content: '>';
    position: absolute;
    left: 5px;
}

.breadcrumb-wrapper .t3-module {
    margin-bottom: 0;
}

.t3-content .page-header {
    margin-bottom: 0px;
}

.t3-content .page-header h2 {
    border-top: 2px solid #dc002e;
    border-bottom: 2px solid #dc002e;
    color: #575353;
    text-align: right;
    text-transform: uppercase;
    padding: 8px 8px 8px 0px;
    letter-spacing: 0px;
    /*font-family: Arial Narrow, Arial;*/
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 14.52px;
    text-rendering: optimizeLegibility;
    margin-bottom: 0px;
}

.t3-content .blog .page-header h2 {
    text-transform: none;
}

.module_menu .nav>li>a,
.module_menu .nav>li>.separator {
    padding-top: 1px;
    padding-bottom: 1px;
    background: transparent;
    outline: none;
}

.t3-module .module-title {
    margin-bottom: 15px;
}

.t3-sidebar .t3-module {
    border-bottom: 0px solid #D3D3D3;
}

.page-header {
    border-bottom: 0px solid #eeeeee;
}

.t3-sidebar-2 .banneritem {
    margin-bottom: 5px;
}

.t3-navhelper .nav-stacked li a:hover {
    text-decoration: underline;
    color: rgb(112, 113, 115);
    background-color: transparent;
}

.t3-navhelper .nav-pills>li.active>a {
    background-color: transparent;
    color: rgb(112, 113, 115);
    text-decoration: underline;
}

/* Viñetas de secundarias: ver bloque "Módulos sidebar (secundarias)" más abajo */

#t3-header>.cabecera-ppal {
    /*
    box-shadow: 0px 0px 18px 0px rgba(119, 119, 119, 0.62);
    -moz-box-shadow: 0px 0px 18px 0px rgba(119, 119, 119, 0.62);
    -webkit-box-shadow: 0px 0px 18px 0px rgba(119, 119, 119, 0.62);
    */
}

body>.t3-wrapper {
    overflow: hidden;
}

/* COMMENTED - GVA Menu styles will handle navbar styling
.navbar-default {
    background-color: transparent;
    border-color: transparent;
    color: #575353;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 13.52px;
    text-rendering: optimizeLegibility;
}
*/

#t3-header>.idiomas {
    margin-bottom: 5px;
}

.t3-header {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* FIX */
@media (min-width: 769px) {

    .modulemodtit2,
    .modulemodtit,
    .modulemodtit2agenda,
    .modulemodtitagenda,
    .modulemodenlaces,
    .modulemodenlacesagenda,
    .modulemoddelegaciones {
        float: left;
        width: 100%;
    }
}

/* Infobox Links Pagina principal */
.infobox {
    border: 0px #F0F0F0 solid;
    padding: 10px 20px;
    /*
	-webkit-box-shadow: 0px 25px 65px -45px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 25px 65px -45px rgba(0,0,0,0.75);
	box-shadow: 0px 25px 65px -45px rgba(0,0,0,0.75);
	*/
    font-size: 12px;
}

.infobox hr {
    margin-top: 5px;
    margin-bottom: 5px;
    border: 0;
    border-top: 1px solid #eeeeee;
}

.infobox li {
    list-style: none;
    margin-left: 13px;
    color: #000;
}

.infobox li::before {
    content: "?";
    color: red;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Modulo tabs pagina principal */

.rl_tabs>ul.nav-tabs-home {
    margin-bottom: 0;
    border-bottom: none;
    background: #f8fafc;
    padding: 8px 8px 0 8px;
    border-radius: 8px 8px 0 0;
}

.rl_tabs>ul.nav-tabs>li {
    width: calc(100% / 8);
}

.customhome-tabs-ag-act .rl_tabs>ul.nav-tabs>li {
    width: calc(100% / 2);
}

.rl_tabs>ul.nav-tabs-home>li {
    margin: 0 0 -1px !important;
    padding: 0 !important;
    list-style: none !important;
    background: 0 0 !important;
    overflow-y: visible !important;
    width: 50%;
    float: left;
}

.rl_tabs>ul.nav-tabs-home>li>a {
    transition-duration: .2s;
}

.rl_tabs .nav-tabs>li>a {
    margin-right: 4px;
    padding: 12px 20px;
    line-height: 20px;
    border: none;
    border-radius: 10px 10px 0 0;
    background: #e8ecf1;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.rl_tabs .nav-tabs-home>li>a {
    margin-right: 4px;
    padding: 12px 20px;
    line-height: 20px;
    border: none;
    border-radius: 10px 10px 0 0;
    background: #e8ecf1;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: block !important;
    transition: all 0.3s ease;
}

.rl_tabs.top>ul.nav-tabs>li.active a,
.rl_tabs.top>ul.nav-tabs>li.active a:hover {
    border: none;
    border-bottom: 3px solid #3b82f6;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rl_tabs.top>ul.nav-tabs-home>li.active a,
.rl_tabs.top>ul.nav-tabs-home>li.active a:hover {
    border: none;
    border-bottom: 3px solid #3b82f6;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rl_tabs.top>ul.nav-tabs-home>li.active>a:focus,
.rl_tabs.top>ul.nav-tabs-home>li>a:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rl_tabs>ul.nav-tabs-home>li.active>a:focus,
.rl_tabs>ul.nav-tabs-home>li>a:focus {
    outline: 0;
}

.rl_tabs.top>ul.nav-tabs>li>a {
    background: #e8ecf1;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
}

.rl_tabs.top>ul.nav-tabs>li>a:hover {
    background: #dbe1e8;
    color: #475569;
}

.rl_tabs.top>ul.nav-tabs-home>li>a {
    background: #e8ecf1;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
}

.rl_tabs.top>ul.nav-tabs-home>li>a:hover {
    background: #dbe1e8;
    color: #475569;
}

[data-rlta-element=container][data-rlta-state=ready][data-rlta-type=accordions] > [data-rlta-element=button] > [data-rlta-element=heading],
[data-rlta-element=container][data-rlta-state=ready][data-rlta-type=tabs] > [data-rlta-element=button-list] > [data-rlta-element=button] > [data-rlta-element=heading] {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.tabs-more {
    color: #3b82f6;
    font-weight: 700;
    text-align: right;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.tabs-more a {
    color: #3b82f6;
    transition: color 0.2s ease;
}

.tabs-more a:hover {
    color: #2563eb;
    text-decoration: none;
}

.agenda-no-events::after {
    content: "Proximamente publicaremos nuevas convocatorias";
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-top: 12px;
    font-weight: 400;
}

.tabs li {
    list-style: none;
    color: #000;
}

.tabs li::before {
    content: "?";
    color: red;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.head-search .search::before,
.search::before {
    content: none !important;
    display: none !important;
}

.head-search .mod-finder .btn,
.mod-finder .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    padding: 0;
    background: transparent;
    border: 1px solid #666;
    border-radius: 0px;
}

.head-search .mod-finder .icon-search:before,
.mod-finder .icon-search:before {
    content: "\f002";
    font-family: "FontAwesome";
    font-style: normal;
    font-weight: normal;
    speak: none;
}

.head-search .mod-finder .btn::before,
.mod-finder .btn::before {
    content: "";
    width: 10px;
    height: 10px;
    display: inline-block;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat center / contain;
}

.head-search .mod-finder .btn:hover,
.mod-finder .btn:hover {
    background: #f3f3f3;
    border-color: #c0c0c0;
}

.head-search .mod-finder .icon-search,
.mod-finder .icon-search {
    display: none;
}

/* Secci?n Informes, tendencias y casos de ?xito */

.outer-box {
    border-top: 2px #F5F5F5 solid;
    border-bottom: 15px #F5F5F5 solid;
    border-left: 5px #F5F5F5 solid;
    border-right: 5px #F5F5F5 solid;
    background: #F5F5F5;
    padding: 2px;
    text-align: center;
}

.inner-box {
    background: #fff;
    color: #000;
    border: 1px #efefef solid;
    font-weight: 600;
    font-size: 10px;
    -webkit-box-shadow: 0px 35px 40px -50px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 35px 40px -50px rgba(0, 0, 0, 0.75);
}

.inner-box-image {
    /*height: 110px;*/
    background: #F5F5F5;
}

.inner-box-caption {
    padding: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Features de la p?gina principal */

.feature-grid {
    height: 170px;
    text-align: center;
    padding: 10px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.feature-grid-image {
    text-align: center;
    padding-bottom: 10px;
}

.feature-grid-text {
    color: #fff;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
    padding: 0 5px;
    word-break: break-word;
}

.verde {
    background: #A0C72E;
}

.rojo {
    background: #EA5E3A;
    font-size: 17px;
}

.naranja {
    background: #EEB91D;
}

.azul-claro {
    background: #00B7BD;
}

.azul-oscuro {
    background: #00768E;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;

}

.tab-content a.mod-articles-category-title {
    list-style: none;
    margin-left: 0px;
    color: #000;
}

.tab-content ul.category-module li {
    border-top: 0 !important;
}

.tab-content ul.category-module li {
    padding: 5px 0;
}

.tab-content #agenda ul.category-module li .mod-articles-category-date {
    font-weight: bold;
}

@media (max-width: 767px) {
    .custommodtit2 {
        margin-top: 8% !important;
    }
}

.modulemodtit,
.modulemodtit2,
.modulemodtitagenda,
.modulemodtit2agenda {
    float: none;
    width: 100% !important;
}

.modulemodtit2,
.modulemodtit2agenda {
    display: none;
}

.modulemodtit2.mobile-only,
.modulemodtit2agenda.mobile-only {
    display: block;
    padding-top: 30px;
    clear: left;
}

@media only screen and (min-width: 768px) {

    .modulemodtit,
    .modulemodtit2,
    .modulemodtitagenda,
    .modulemodtit2agenda {
        float: left;
        width: 50% !important;
    }

    .modulemodtit2,
    .modulemodtit2agenda {
        display: block;
    }

    .modulemodtit2.mobile-only,
    .modulemodtit2agenda.mobile-only {
        display: none;
    }
}

.rl_tabs.top>ul.nav-tabs>li>a {
    /*padding-left: 40px;*/
    text-align: center;
}

.rl_tabs.top>ul.nav-tabs-home>li>a {
    /*padding-left: 40px;*/
    text-align: center;
}

.modulemodtit2,
.modulemodtit2agenda {
    margin-top: 60px;
}

.feature-grid-image {
    margin-top: -12px;
}

.feature-grid-image a {
    display: block;
}

.customfooterlogos {
    float: left;
    width: 100%;
    background-color: #f6f6f6;
    padding-bottom: 20px;
    padding-top: 20px;
}

.flex-control-paging li a {
    color: transparent;
}

.t3-module.margintop40 {
    margin-top: 40px;
}

.t3-module.modulemodinformes .inner-box-caption {
    font-size: 12px;
}

.t3-module.modulemodinformes .inner-box-image img {
    width: 100%;
}

@media (min-width: 635px) {
    /* COMMENTED - GVA Menu styles will handle navbar styling
    .navbar-default .navbar-toggle {
        top: -65px;
    }
    */
}

@media (min-width: 769px) {
    .buscar-mobile {
        display: none !important;
    }
}

.t3-module.fondogris {
    background-color: #f5f5f5;
}

.t3-module.modulevermascontenido a {
    background-color: #dc002e;
    color: white;
    padding: 5px 10px;
    margin-left: 10px;
    text-decoration: none !important;
    margin-top: 5px;
    float: left;
    text-align: center;
    margin: 0 auto;
    float: none;
}

.modulevermascontenido a {
    color: white;
    width: auto;
    text-decoration: none !important;
}

.customvermascontenido p {
    margin-bottom: 0px;
}

.modulevermascontenido {
    margin-top: 20px;
    margin-bottom: 20px !important;
}

/* COMMENTED - GVA Menu styles will handle navbar styling
.navbar-default .navbar-nav>li>a {
    text-decoration: none;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus,
.nav .open>a,
.nav .open>a:hover,
.nav .open>a:focus,
.t3-megamenu .mega-nav>li a:hover,
.t3-megamenu .dropdown-menu .mega-nav>li a:hover,
.t3-megamenu .mega-nav>li a:focus,
.t3-megamenu .dropdown-menu .mega-nav>li a:focus {
    background-color: #fff;
}

.navbar-default .navbar-nav>li>a>span {
    color: #000 !important;
    padding-bottom: 2px;
    position: relative;
    padding-right: 12px;
    display: inline-block;
}

.t3-megamenu .mega-nav>li a,
.t3-megamenu .dropdown-menu .mega-nav>li a,
.navbar-default .navbar-nav .open .dropdown-menu>li>a {
    color: #222 !important;
}

.navbar-default .navbar-nav>li.current.active>a>span {
}

.navbar-default .navbar-nav>.dropdown>a .caret {
    position: absolute;
    top: 8px;
    right: 0;
}

.t3-megamenu .nav>.dropdown>.dropdown-toggle .caret,
.navbar-default .navbar-nav>.dropdown>a .caret {
    display: none;
}

.navbar-default .navbar-nav>.dropdown>a .caret,
.navbar-default .navbar-nav>.dropdown>a:hover .caret,
.navbar-default .navbar-nav>.dropdown>a:focus .caret {
    border-top-color: #C62102;
    border-bottom-color: #C62102;
}
*/

.breadcrumb-wrapper {
    margin-top: 25px;
}

/* Breadcrumb sin fondo */
.breadcrumb-wrapper,
.breadcrumb-wrapper .modulepathway,
.breadcrumb-wrapper .modulepathway .module-inner,
.breadcrumb-wrapper .modulepathway .module-ct,
.breadcrumb-wrapper .modulepathway .breadcrumb {
    background: transparent !important;
    background-color: transparent !important;
}

/* Limpieza extra por si hereda estilos de Bootstrap */
.breadcrumb-wrapper .modulepathway .breadcrumb {
    border: 0 !important;
    box-shadow: none !important;
}

.com_blankcomponent .breadcrumb-wrapper {
    margin-top: 0px;
}

.navbar-default .navbar-nav>li.current.active a:after {
    width: 0;
    height: 0;
    /* border-style: solid;
    border-width: 8px 4px 0 4px;
    border-color: #333 transparent transparent transparent; */
}

.com_blankcomponent .feature-grid-text a {
    color: #fff;
}

.small>.hotspots-footer-box {
    display: none !important;
}

.com_hotspots .t3-mainbody {
    margin-bottom: 60px;
}

#cadre_alert_cookies .btn-warning {
    color: #ffffff;
    background-color: #dc002e !important;
    border-color: #dc002e !important;
}

.com_hotspots .page-header,
.com_hotspots #js-hs-tab-filter-region,
.com_hotspots #js-hs-tabs {
    display: none;
}

.com_hotspots .hs-tab-list-item {
    padding: 10px;
}

.com_hotspots .hs-tab-list-item h3 {
    font-size: 14px;
}

.com_hotspots .hs-place-summary-details {
    display: none;
}

.com_hotspots .hs-hotspots-overview-short p {
    font-size: 12px;
}

.com_hotspots .hs-address {
    display: none;
}

.com_hotspots .hs-hotspots-overview img,
.com_hotspots .hs-main-region img {
    max-width: 200px;
    height: auto;
}

@media only screen and (min-width: 665px) {
    .com_hotspots .js-pagination-main {
        padding: 0 15px;
    }
}

@media only screen and (min-width: 992px) {
    .com_hotspots .slide_menu {
        width: 450px;
    }

    .com_hotspots .hs-tab-list-item {
        padding: 15px;
    }
}

@media only screen and (min-width: 1400px) {
    .com_hotspots .slide_menu {
        width: 600px;
    }
}

.t3-megamenu .mega-nav>li a,
.t3-megamenu .dropdown-menu .mega-nav>li a {
    text-transform: none;
}

.t3-megamenu .dropdown-menu .mega-nav>li {
    list-style: none !important;
    /*margin-left: 30px;*/
}

.t3-megamenu .dropdown-menu .mega-nav>li::before {
    /*content: "?"; 
    color: #dc002e;
  display: inline-block; width: 1em;
  margin-left: -1em;
    float: left;
    margin-top: 5px;*/
}

.navbar-default .navbar-nav .open .dropdown-menu>li a::before {
    opacity: 0;
    content: "?";
    color: #dc002e;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    float: left;
    margin-top: 0px;
    margin-left: 10px;
}

.navbar-default .navbar-nav .open .dropdown-menu>li a {
    text-decoration: none;
    font-weight: bold;
}

.t3-megamenu .mega>.mega-dropdown-menu {
    /*width: auto!important;*/
    min-width: 300px;
}

.t3-megamenu li:first-of-type[data-level="1"] {
    /* primer elemento del menu (inicio) con menos espacios */
    /*width: 10%!important;*/
}

/*amplaria manual dels items de menu*/
/*castella*/
.t3-megamenu li[data-id="100407"] {
    width: 11% !important;
}

.t3-megamenu li[data-id="100408"] {
    width: 8% !important;
}

.t3-megamenu li[data-id="100420"] {
    width: 15% !important;
}

.t3-megamenu li[data-id="101252"] {
    width: 14% !important;
}

.t3-megamenu li[data-id="100513"] {
    width: 22% !important;
}

.t3-megamenu li[data-id="100881"] {
    width: 13% !important;
}

.t3-megamenu li[data-id="100405"] {
    width: 17% !important;
}

/*valencia*/
.t3-megamenu li[data-id="100484"] {
    width: 12% !important;
}

.t3-megamenu li[data-id="100485"] {
    width: 8% !important;
}

.t3-megamenu li[data-id="100486"] {
    width: 14% !important;
}

.t3-megamenu li[data-id="101253"] {
    width: 14% !important;
}

.t3-megamenu li[data-id="100528"] {
    width: 23% !important;
}

.t3-megamenu li[data-id="100877"] {
    width: 11% !important;
}

.t3-megamenu li[data-id="100482"] {
    width: 18% !important;
}

.modulo-colores {

    text-align: center !important;
}

.modulo-colores p a {
    color: #fff !important;
    font-weight: 600;
    text-align: center;
    font-size: 15px;
    text-decoration: none !important;
}

.modulo-colores .customazul-claro {
    background: #00B7BD;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

.modulo-colores .customverde {
    background: #A0C72E;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

.modulo-colores .customnaranja {
    background: #EEB91D;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

.modulo-colores .customrojo {
    background: #EA5E3A;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

#t3-content .moduleazul-oscuro {
    margin-top: 0;
}

/* Card moduleazul-oscuro ? todos los tamanios */
.moduleazul-oscuro .module-inner {
    background: #ffffff !important;
    border: 2px solid #dce8f5 !important;
    border-top: 3px solid #0066cc !important;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    height: 100%;
    text-align: center;
    padding: 18px 14px;
    box-sizing: border-box;
}

.moduleazul-oscuro .module-ct,
.moduleazul-oscuro .customazul-oscuro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.moduleazul-oscuro p {
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.3;
}

.moduleazul-oscuro p a,
.moduleazul-oscuro p {
    color: #0055bb !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    line-height: 1.35;
}

#t3-content .modulecuadro-inter {
    margin-top: 0;
}

.modulecuadro-inter .module-inner {
    background: #00768E;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 170px;
    text-align: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.modulecuadro-inter p,
.modulecuadro-inter p a {
    color: #fff;
    font-weight: 600;
    text-align: center;
    font-size: 18px
}

.moduleinfobox {
  
    padding: 20px;
    -webkit-box-shadow: 0px 25px 65px -45px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 25px 65px -45px rgba(0, 0, 0, 0.75);
    font-size: 12px;
}

.moduleinfobox ul {
    padding: 0 0 0 20px;
}

.moduleinfobox li,
.moduleinfobox li a {
    list-style: none;
    margin-left: 13px;
    color: #000;
}

.moduleinfobox li a {
    margin-left: 0px !important;
}

.moduleinfobox li {
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 4px;
    padding-bottom: 4px;
    margin-left: 0px !important;
    padding-left: 0px;
}

.moduleinfobox li::before {
    content: "?";
    color: red;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.modulemodinformes .module-inner {
    border-top: 2px #F5F5F5 solid;
    border-bottom: 8px #F5F5F5 solid;
    border-left: 5px #F5F5F5 solid;
    border-right: 5px #F5F5F5 solid;
    background: #F5F5F5;
    padding: 2px;
    text-align: center;
    margin-bottom: 8px;
}

.modulemodinformes .module-inner .module-ct {
    background: #fff;
    color: #000;
    border: 1px #efefef solid;
    font-weight: 600;
    font-size: 10px;
    -webkit-box-shadow: 0px 35px 40px -50px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 35px 40px -50px rgba(0, 0, 0, 0.75);
}

.modulemodinformes .module-inner .module-ct img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.modulemodinformes .module-inner .module-ct p {
    font-size: 12px;
    margin: 0;
}

.modulemodinformes .module-inner .module-ct p:nth-of-type(2) {
    padding: 10px;
    line-height: 1.3em;
    min-height: auto;
    /* 3 x line-height + 2 x padding-top */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

@media only screen and (max-width: 1599px) {
    .modulemodinformes .module-inner .module-ct p:first-of-type {}
}

@media (max-width: 580px) {
    .modulo-colores {
        max-height: 170px;
        font-size: 12px !important;
        margin-bottom: 30px !important;
    }

    .modulo-colores p,
    .modulo-colores a {
        font-size: 12px !important;
    }

    .moduleinfobox {
        margin-bottom: 20px !important;
    }
}

img[alt="REDEX-MAPAmoderno-19ene"] {
    max-width: inherit !important;
    width: 250px;
    height: auto;
}

img[alt="Mapa conectado color"] {
    max-width: inherit !important;
    width: 250px;
    height: auto;
}

img[alt="CartaServicios"] {
    height: auto !important;
}

.breadcrumb li.active {
    display: none;
}

.itemid-100583 td {
    border-color: #f5f5f5;
    border-width: 1px;
    background-color: #e7cbcf !important;
    border-style: solid;
}

.cabeceratablaPlazos,
.cabeceratablaPlazos span {
    background-color: #fff !important;
    color: #000 !important;
}

table tr td.cabeceratabla-programas {
    padding-bottom: 10px;
    padding-top: 10px;
    background: #DDDDDD !important;
}

table tr td.cabeceratabla-programas span {
    font-size: inherit !important;
}

.itemid-100613 table,
.itemid-100619 table {
    width: 100%;
}

@media (max-width: 1000px) {
    table {
        overflow-x: auto !important;
        max-width: 100% !important;
        /*display: block !important;*/
        /* NICO FIX: no se deberia cambiar el display a todos los elementos de un tipo; En la tabla de jevents da problemas */
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .modulo-colores p a {
        font-size: 12px !important;
    }
}

@media (max-width: 420px) {
    img {
        max-width: 100%;
        height: auto !important;
    }
}

body.com_blankcomponent #t3-content .item .parrafoimg img {
    margin: 15px;
}

body.com_blankcomponent #t3-content .item-page .parrafoimg img {
    margin: 15px;
}

body.com_blankcomponent #t3-content .blog img {
    margin: 15px;
}

body.com_blankcomponent #t3-content .item-page img,
body.com_blankcomponent #t3-content .blog img {
    margin: 0 15px 15px 15px;
}

.t3-sidebar .banneritem img {
    width: 75% !important;
    height: auto !important;
    padding-bottom: 7%;
}

@media (max-width: 767px) {
    .t3-sidebar .banneritem img {
        width: 95% !important;
        padding-bottom: 10px !important;
    }
}

/* Seguretat industrial (VAL): evitar iconos gigantes y mantener layout como castellano */
#t3-content article:has(.article-header a[href*="/val/serveis/seguretat-industrial/"]) .article-aside {
    display: none !important;
}

#t3-content article:has(.article-header a[href*="/val/serveis/seguretat-industrial/"]) .article-intro p[style*="text-align: justify"] {
    position: relative !important;
    top: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    text-align: left !important;
    margin-bottom: 20px !important;
}

#t3-content article:has(.article-header a[href*="/val/serveis/seguretat-industrial/"]) .article-intro table img {
    width: 30px !important;
    max-width: 30px !important;
    height: auto !important;
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
}

#t3-content article:has(.article-header a[href*="/val/serveis/seguretat-industrial/"]) .article-intro table td:first-child {
    width: 30px !important;
    min-width: 30px !important;
    padding-right: 0 !important;
}

#t3-content article:has(.article-header a[href*="/val/serveis/seguretat-industrial/"]) .article-intro table td + td {
    padding-left: 0 !important;
}

#t3-content .item table .parrafoimg img {
    margin: inherit;
}

#t3-content .item-page table .parrafoimg img {
    margin: inherit;
}

#t3-content .blog table img {
    margin: inherit;
}

#t3-content .item-page table img {
    margin: inherit;
    max-width: initial;
}

#t3-content table th,
#t3-content table td {
    padding: 10px 3px;
}

.flexslider .slides {
    padding-top: 10px;
}

.customlogoivace40,
.customlogoivace40val {
    position: absolute;
    /*left: 103px;*/
    left: 53px;
    /*left: 3px;*/
    /*top: 0px;*/
    top: 8px;
}

.customlogoivace40 {
    display: none !important;
}

.customlogoivace40 img,
.customlogoivace40val img {
    max-width: 185px;
}

.customgva_header a {
    background-color: transparent !important;
    color: #000 !important;
}

@media (min-width: 635px) and (max-width: 900px) {

    .customlogoivace40,
    .customlogoivace40val {
        left: -47px;
        top: 11px;
    }

    .customlogoivace40 img,
    .customlogoivace40val img {
        max-width: 170px;
    }
}

@media (max-width: 768px) {

    .customlogoivace40 img,
    .customlogoivace40val img {
        max-width: 160px;
    }
}

@media only screen and (min-width: 635px) and (max-width: 767px) {

    .customlogoivace40,
    .customlogoivace40val {
        top: -50px;
        left: 233px;
    }

    .customgva_header,
    .customlogo_generalitat_header {
        display: none !important;
    }
}

@media only screen and (min-width: 1600px) {

    .customlogoivace40,
    .customlogoivace40val {
        left: 103px;
        top: 0;
    }

    .customlogoivace40 img,
    .customlogoivace40val img {
        max-width: none;
    }
}

.modulo-colores .customazul-claro {
    background: #fff;
    border: 5px solid #00B7BD;
}

.modulo-colores .customazul-claro p a {
    color: #00B7BD !important;
}

.modulo-colores .customverde {
    background: #fff;
    border: 5px solid #A0C72E;

}

.modulo-colores .customverde p a {
    color: #A0C72E !important;
}

.modulo-colores .customnaranja {
    background: #fff;
    border: 5px solid #EEB91D;

}

.modulo-colores .customnaranja p a {
    color: #EEB91D !important;
}

.modulo-colores .customrojo {
    background: #fff;
    border: 5px solid #EA5E3A;

}

.modulo-colores .customrojo p a {
    color: #EA5E3A !important;
}

.azul-claro {
    background: #fff;
    background: transparent;
    color: #00B7BD;
}

.custom>.azul-claro,
.custom a>.azul-claro {
    border: 5px solid #00B7BD;
}

.azul-claro a {
    color: #00B7BD !important;
}

.verde {
    background: #fff;
    background: transparent;
    color: #A0C72E;
}

.verde a {
    color: #A0C72E !important;
}

.custom>.verde,
.custom a>.verde {
    border: 5px solid #A0C72E;
}

.naranja {
    background: #fff;
    background: transparent;
    color: #EEB91D;
}

.naranja a {
    color: #EEB91D !important;
}

.custom>.naranja,
.custom a>.naranja {
    border: 5px solid #EEB91D;
}

.rojo {
    background: #fff;
    background: transparent;
    color: #EA5E3A;
}

.rojo a {
    color: #EA5E3A !important;
}

.custom>.rojo,
.custom a>.rojo {
    border: 5px solid #EA5E3A;
}

.logo a {
    /*display: inline;
    max-width: 50%;*/
    float: left;
}

.logo-image a:nth-of-type(1) img {
    position: relative;
    top: 8px;
}

.logo-image a:nth-of-type(2) img {
    position: relative;
    bottom: -2px;
}

@media only screen and (min-width: 992px) {
    .logo-image a:nth-of-type(2) img {
        bottom: 0px;
    }
}

@media only screen and (min-width: 1092px) {
    .logo-image a:nth-of-type(2) img {
        bottom: 2px;
    }
}

@media only screen and (min-width: 1600px) {
    .logo-image a:nth-of-type(1) img {
        top: 4px;
    }

    .logo-image a:nth-of-type(2) img {
        bottom: 8px;
    }
}

/* FIX: ocultar bloques unidades, y 4 temas principales de la home de agenda; */
#Mod1089,
#Mod1113,
#Mod1114,
#Mod1121,
#Mod1115,
#Mod1116,
#Mod1117,
#Mod1118,
#Mod1121,
#Mod1121 {
    display: none;
}

/* END FIX: ocultar bloques unidades, y 4 temas principales de la home de agenda; */

.t3-content .page-header h2,
.module-title {
    border-top: 0px solid #575353;
    border-bottom: 1px solid #575353;
}

/* Responsive video embeds, repetir selectores para seccion home Noticias y Tendencias */
.videoWrapper,
.modulemodinformes .module-inner .module-ct p:first-of-type {
    position: relative;
    padding-bottom: 56.15%;
    /*padding-top: 25px;*/
    height: 0;
}

.videoWrapper iframe,
.modulemodinformes .module-inner .module-ct p:first-of-type iframe,
.modulemodinformes .module-inner .module-ct p:first-of-type img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* END Responsive video embeds */



/* Agenda - jEvents - Calendario de eventos */

.com_jevents .contentheading {
    display: none;
}

#jevents_body {
    border-radius: 0;
    background-color: transparent;
    border: 0;
    -webkit-box-shadow: 0 0 2px 0px #ccc;
    box-shadow: 0 0 2px 0px #ccc;
}

/* jevents navigation "anual, mensual..." y "meses" */
#jevents .nav-items>div,
.jev_toprow div.previousmonth,
.jev_toprow div.nextmonth,
.jev_toprow div.previousmonth,
.jev_toprow div.currentmonth,
.jev_toprow div.nextmonth,
#jevents_body .nav-items>div a:hover,
#jevents_body .nav-items div.active a:hover,
.jev_header2 .active a:hover {
    border-color: #d9dddd;
}

#jevents_body .nav-items div.active a,
.jev_header2 .active a,
.jev_toprow div.previousmonth,
.jev_toprow div.nextmonth {
    background-color: #d9dddd;
    color: #000;
}

.jev_toprow div.previousmonth,
.jev_toprow div.currentmonth,
.jev_toprow div.nextmonth {
    line-height: 2em;
    color: #444 !important;
}

#jevents_body .jev_toprow div.previousmonth a,
#jevents_body .jev_toprow div.nextmonth a {
    color: #000;
}

.jev_toprow .jev_header2 {
    height: auto;
    overflow: auto;
    padding-bottom: 25px;
}

/* END jevents navigation "anual, mensual..." y "meses" */




.jev_evdt .jev_evdt_title {
    padding-bottom: 30px;
    font-weight: 600;
}

#jevents_body .jev_evdt_summary,
#jevents_body .jev_evdt_hits,
#jevents_body .jev_evdt_creator,
#jevents_body .jev_evdt_contact {
    padding-bottom: 5px;
}

#jevents_body .jev_evdt_desc {
    padding-top: 25px;
}

#jevents_body .cal_table {
    margin-left: 0;
    margin-bottom: 25px;
}

#jevents .pagination {
    display: inline-block;
    width: auto;
}

#jevents .chzn-container {
    display: inline-block;
}

#jevents .chzn-container-single .chzn-search input[type="text"] {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#jevents .chzn-container-single .chzn-drop,
.chzn-container .chzn-drop {
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
}

#jevents_body div.event_legend_item {
    min-width: 0;
    padding-left: 15px;
}

/* END Agenda - jEvents - Calendario de eventos */

#Mod1094,
#Mod1100,
#Mod1204,
#Mod1209 {
    float: left;
    width: 100% !important;
}

.breadcrumb>li:nth-child(7),
.breadcrumb>li:nth-child(8) {
    display: none;
}

.module-descargascustom .remositorymodule td {
    width: inherit !important;
    padding: 8px 0;
}

.modulecuadro-inter-icon {
    /*padding-top: 5px!important;
    padding-right: 35px!important;
    padding-bottom: 80px!important;
    padding-left: 5px!important;*/
    padding-bottom: 0 !important;
    width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    top: auto;
    left: auto;
    z-index: auto;
    margin-bottom: 12px;
}

.modulecuadro-inter-icon img {
    float: none !important;
    display: block;
    margin: 0 auto !important;
    height: auto;
}

.modulecuadro-inter-titulo {
    width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    font-weight: bolder;
    color: #0a71b3;
    z-index: auto !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modulecuadro-inter-texto {
    width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    padding-top: 0;
    padding-left: 10px;
    padding-right: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modulecuadro-inter-boton {
    width: 40%;
    margin: 0 auto;
    margin-top: 0px;
    display: block;
    position: absolute;
    padding-top: px;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 310px;
    background-color: #005cb9;
    padding-top: 10px;
    padding-bottom: 10px;
}

.modulecuadro-inter-boton a {
    background-color: #005cb9;
    color: #fff;
    font-weight: bolder;
    padding: 10px;
}

/**** servicios de internacionalizacion ***/

.module-internacional {
    padding: 0 1%;
}

.module-internacional .module-inner {
    border: 1px solid #ddd;
    /* height: 400px; */
}

.blau .module-inner {
    border-top: 10px solid #bbd4d8;
}

.groc .module-inner {
    border-top: 10px solid #f7d89a;
}

.taronja .module-inner {
    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: 14px 16px !important;
}

.rosa .module-inner {
    border-top: 10px solid #f3b1dc;
}

.blau2 .module-inner {
    border-top: 10px solid #91c2f4;
}

.blau-araempreses .module-inner {
    border-top: 10px solid #234283;
}

.verd .module-inner {
    border-top: 10px solid #cbdb9f;
}

.module-internacional ul {
    width: 95%;
}

.module-internacional h3 {
    border: none;
    text-align: left;
    margin-left: 3%;
    text-transform: lowercase;
    color: #5d5b61;
    margin-bottom: 5px;
    font-size: 17px;
}

.module-internacional h3:first-letter {
    text-transform: uppercase;
}

.module-internacional ul li {
    text-transform: lowercase;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin: 5px 0 8px;
    padding-bottom: 5px;
}

/*
.module-internacional ul li:first-letter{
    text-transform: uppercase;
}
*/

.module-internacional ul li:last-child {
    border-bottom: none;
}

/* Otras medidas de apoyo: mismo acabado de tarjeta que los módulos vecinos (sin depender de ID) */
#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) .module-title,
#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) .module-title > span {
    text-align: left !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) ul.weblinks-internacional {
    display: block !important;
    width: 100% !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) ul.weblinks-internacional > li {
    display: flex !important;
    align-items: flex-start !important;
    margin: 0 0 12px 0 !important;
    padding: 10px 12px !important;
    background: #f7f9fc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) ul.weblinks-internacional > li:last-child {
    margin-bottom: 0 !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) ul.weblinks-internacional > li::before {
    content: none !important;
    display: none !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) ul.weblinks-internacional .d-flex,
#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) ul.weblinks-internacional .col {
    display: block !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    padding: 0 !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/serveis/internacionalizacio/"]) .t3-module.module-internacional:has(ul.weblinks-internacional) ul.weblinks-internacional a {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    font-weight: 700 !important;
    text-transform: none !important;
}

/* Fallback robusto: mismo look "botoncitos" para weblinks de internacional VAL */
.t3-module.module-internacional:has(ul.weblinks-internacional a[href*="/val/serveis/internacionalizacio/"]) ul.weblinks-internacional {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.t3-module.module-internacional:has(ul.weblinks-internacional a[href*="/val/serveis/internacionalizacio/"]) ul.weblinks-internacional > li {
    list-style: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f7f9fc !important;
    margin: 0 0 10px 0 !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.t3-module.module-internacional:has(ul.weblinks-internacional a[href*="/val/serveis/internacionalizacio/"]) ul.weblinks-internacional > li::before {
    content: none !important;
    display: none !important;
}

.t3-module.module-internacional:has(ul.weblinks-internacional a[href*="/val/serveis/internacionalizacio/"]) ul.weblinks-internacional > li:last-child {
    margin-bottom: 0 !important;
}

.t3-module.module-internacional:has(ul.weblinks-internacional a[href*="/val/serveis/internacionalizacio/"]) ul.weblinks-internacional a {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    text-decoration: none !important;
}

/**** modulos araempreses ***/

.module-araempreses {
    padding: 0 1%;
}

.module-araempreses .module-inner {
    border: 1px solid #ddd;
    height: 400px;
}

.blau-araempreses .module-inner {
    border-top: 10px solid #234283;
}

.module-araempreses ul {
    width: 95%;
}

.module-araempreses h3 {
    border: none;
    text-align: left;
    margin-left: 3%;
    /*text-transform: lowercase;*/
    color: #5d5b61;
    margin-bottom: 5px;
    font-size: 17px;
}

.module-araempreses h3:first-letter {
    text-transform: uppercase;
}

.module-araempreses ul li {
    /*text-transform: lowercase;*/
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin: 5px 0 8px;
    padding-bottom: 5px;
}

/*
.module-araempreses ul li:first-letter{
    text-transform: uppercase;
}
*/

.module-araempreses ul li:last-child {
    border-bottom: none;
}

/* Rejilla 3 columnas: altura igualada (custom_pgs_servicios.css) */
@media (min-width: 992px) {
    #t3-content .content-top-wrapper:has(.module-araempreses) > .t3-module,
    #t3-content .content-top-wrapper:has(.module-internacional) > .t3-module {
        float: left !important;
        clear: none !important;
        width: 33.33333333% !important;
        box-sizing: border-box !important;
    }

    #t3-content .content-top-wrapper:has(.module-araempreses),
    #t3-content .content-top-wrapper:has(.module-internacional) {
        display: block !important;
        overflow: hidden !important;
    }
}

.content-top-wrapper:has(.module-araempreses) .module-araempreses .module-inner,
.content-top-wrapper:has(.module-internacional) .module-internacional .module-inner {
    height: auto !important;
    min-height: 100% !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.content-top-wrapper:has(.module-araempreses) .module-araempreses .module-ct,
.content-top-wrapper:has(.module-internacional) .module-internacional .module-ct {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
}

.content-top-wrapper:has(.module-araempreses) .module-araempreses .module-title,
.content-top-wrapper:has(.module-internacional) .module-internacional .module-title {
    border: none !important;
    border-top: none !important;
    border-bottom: 1px solid #ddd !important;
    text-align: left !important;
    text-transform: none !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 12px 0 !important;
}

/* Internacionalización / Ara Empreses: rejilla alineada con migas (80px) */
#t3-content .item-page:has(.article-header a[href*="/servicios/internacionalizacion"]) ~ .content-top-wrapper:has(.module-internacional),
#t3-content > .item-page:has(.article-header a[href*="/servicios/internacionalizacion"]) + .content-top-wrapper:has(.module-internacional),
#t3-content .item-page:has(.article-header a[href*="/val/serveis/internacionalizacio"]) ~ .content-top-wrapper:has(.module-internacional),
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/internacionalizacion"]) ~ .content-top-wrapper:has(.module-internacional),
#t3-content > .com-content-category-blog:has(.category-name a[href*="/servicios/internacionalizacion"]) + .content-top-wrapper:has(.module-internacional) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 80px !important;
    padding-right: 80px !important;
}

@media (max-width: 767px) {
    #t3-content .content-top-wrapper:has(.module-internacional),
    #t3-content .content-top-wrapper:has(.module-araempreses) {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/****************************/
.logo-gva-recuperem {
    position: relative;
    height: 73px;
}

.logo-ivace {
    position: relative;
    height: 73px;
}

@media (max-width: 1599px) {
   .logo-gva-recuperem {
    position: relative;
    height: 65px;
}

.logo-ivace {
    position: relative;
    height: 65px;
}
}

@media (max-width: 1199px) {
   .logo-gva-recuperem {
    position: relative;
    height: 73px;
}

.logo-ivace {
    position: relative;
    height: 73px;
}
}

@media (max-width: 1059px) {
   .logo-gva-recuperem {
    position: relative;
    height: 55px;
}

.logo-ivace {
    position: relative;
    height: 55px;
}

.logo {
    padding-left: 15px !important;
}
}

@media (max-width: 829px) {
   .logo-gva-recuperem {
    position: relative;
    height: auto !important;
}

.logo-ivace {
    position: relative;
    height: auto !important;
}

.logo {
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.logo-gva-recuperem,
.logo-ivace {
    flex-shrink: 1 !important;
    width: 110px !important;
    height: auto !important;
    max-width: 85% !important;
}

.cabecera-ppal {
    padding: 10px 0 !important;
}

.head-search {
    margin-top: 0 !important;
}

.customgva_header,
.customlogo_generalitat_header {
    font-size: 11px !important;
}

.customlogo_generalitat_header a,
.customlogo_generalitat_header img {
    margin: 0 3px !important;
    width: 16px !important;
    height: 16px !important;
}
}

@media (min-width: 430px) and (max-width: 829px) {
    .logo-gva-recuperem,
    .logo-ivace {
        width: 150px !important;
    }
}

@media (max-width: 519px) {
   .logo-gva-recuperem {
    position: relative;
    height: 38px;
    margin-right: 8px;
}

.logo-ivace {
    position: relative;
    height: 38px;
}

.logo {
    padding: 8px 10px !important;
    max-width: 100% !important;
    left: 0 !important;
}

/* Ajustar bot?n hamburguesa en m?viles peque?os */
#t3-mainnav .navbar-header .navbar-toggle {
    width: 44px !important;
    height: 44px !important;
    padding: 5px !important;
}

#t3-mainnav .navbar-header .navbar-toggle .fa,
#t3-mainnav .navbar-header .navbar-toggle .fa-bars {
    font-size: 18px !important;
}


.head-search {
    padding: 0 10px !important;
}

.head-search .mod-languages {
    margin-bottom: 8px !important;
}

.head-search .search {
    width: 100% !important;
}

.customgva_header {
    font-size: 10px !important;
    line-height: 1.3 !important;
}

.customlogo_generalitat_header {
    font-size: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.customlogo_generalitat_header a {
    font-size: 9px !important;
}

.customlogo_generalitat_header img {
    width: 14px !important;
    height: 14px !important;
}
}

@media (max-width: 420px) {
   .logo-gva-recuperem {
    position: relative;
    /* height: 35px !important; */
    max-width: none !important;
    margin-right: 8px;
}

.logo-ivace {
    position: relative;
    /* height: 35px !important; */
    max-width: none !important;
}

.logo {
    padding: 6px 8px !important;
    gap: 8px;
}

.cabecera-ppal {
    padding: 8px 0 !important;
}

.head-search .mod-finder .btn {
    padding: 8px 12px !important;
}

.mod-languages ul li {
    font-size: 12px !important;
}
}

/* Remository: fix file card titles in grid/list */
#remositoryfilelisting .rem-file-card {
    overflow: hidden;
}

#remositoryfilelisting .rem-file-card .rem-file-card-text h3 {
    margin: 0 0 8px 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    line-height: 1.35;
}

#remositoryfilelisting .rem-file-card .rem-file-card-text h3 a {
    display: block;
    max-width: 100%;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-decoration: none;
}

#remositoryfilelisting .rem-file-card .rem-file-card-text h3 a:hover,
#remositoryfilelisting .rem-file-card .rem-file-card-text h3 a:focus {
    text-decoration: underline;
}

#remository .rem-file-card .rem-file-card-text h3 a,
.rem-page-wrapper .rem-file-card .rem-file-card-text h3 a,
.rem-file-card .rem-file-card-text h3 a.btn-primary,
.rem-file-card .rem-file-card-text h3 a.btn {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* PortalIvace: "descarregues" sin submen? ni flecha */
.t3-megamenu .nav > li > a[href*="/documents/descarregues"] .caret,
.t3-megamenu .nav > li > a[href*="/val/documents/descarregues"] .caret {
    display: none !important;
}

.t3-megamenu .nav > li > a[href*="/documents/descarregues"]::after,
.t3-megamenu .nav > li > a[href*="/val/documents/descarregues"]::after {
    content: none !important;
}

/* Ocultar su dropdown (requiere navegadores modernos con :has) */
.t3-megamenu .nav > li:has(> a[href*="/documents/descarregues"]) > .nav-child,
.t3-megamenu .nav > li:has(> a[href*="/documents/descarregues"]) > .dropdown-menu,
.t3-megamenu .nav > li:has(> a[href*="/documents/descarregues"]) > .mega-dropdown-menu {
    display: none !important;
}

/* Fallback sin :has (si el <li> viene con clase dropdown/mega) */
.t3-megamenu .nav > li.dropdown > a[href*="/documents/descarregues"] + .nav-child,
.t3-megamenu .nav > li.dropdown > a[href*="/documents/descarregues"] + .dropdown-menu,
.t3-megamenu .nav > li.dropdown > a[href*="/documents/descarregues"] + .mega-dropdown-menu,
.t3-megamenu .nav > li.mega > a[href*="/documents/descarregues"] + .nav-child,
.t3-megamenu .nav > li.mega > a[href*="/documents/descarregues"] + .dropdown-menu,
.t3-megamenu .nav > li.mega > a[href*="/documents/descarregues"] + .mega-dropdown-menu,
.t3-megamenu .nav > li.dropdown > a[href*="/val/documents/descarregues"] + .nav-child,
.t3-megamenu .nav > li.dropdown > a[href*="/val/documents/descarregues"] + .dropdown-menu,
.t3-megamenu .nav > li.dropdown > a[href*="/val/documents/descarregues"] + .mega-dropdown-menu,
.t3-megamenu .nav > li.mega > a[href*="/val/documents/descarregues"] + .nav-child,
.t3-megamenu .nav > li.mega > a[href*="/val/documents/descarregues"] + .dropdown-menu,
.t3-megamenu .nav > li.mega > a[href*="/val/documents/descarregues"] + .mega-dropdown-menu {
    display: none !important;
}

/* PortalIvace: quitar "Publicacions Energia" (id 101632) del submen? de descarregues */
li[data-id="101632"],
.mega-nav li[data-id="101632"],
.nav-child li[data-id="101632"],
.dropdown-menu li[data-id="101632"],
.mega-dropdown-menu li[data-id="101632"] {
    display: none !important;
}

.mega-nav a[href*="publicaciones-energ%C3%ADa"],
.mega-nav a[href*="publicaciones-energ?a"],
.mega-nav a[href*="/publicaciones-energ"],
.mega-nav a[href*="/view-filelist/655/"] {
    display: none !important;
}

/* M?dulo "Convocatorias anteriores" todo en may?sculas */
#Mod1304 .module-title span,
#Mod1304 .mod-articlescategory.category-module.mod-list .mod-articles-category-title {
    text-transform: uppercase;
}

/* Estilos para t?tulo del caption en slides */
.caption-title {
    display: block !important;
    position: relative !important;
    margin-bottom: 12px !important;
    color: #0c1d38 !important;
    font-size: clamp(20px, 2.5vw, 32px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: none !important;
}

/* ==================== MOBILE & TABLET MAIN MENU FIX ==================== */
@media (max-width: 991px) {
    /* COMENTADO - Permite animaciones suaves en el menú móvil
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapsing,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse.in,
    #t3-mainnav .t3-megamenu.animate.slide,
    #t3-mainnav .t3-megamenu.animate.slide * {
        -webkit-transition: none !important;
        transition: none !important;
        -webkit-animation: none !important;
        animation: none !important;
    }
    */

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapsing {
        display: block !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        transition: max-height 0.15s ease-out, 
                    opacity 0.12s ease-out !important;
    }

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapsing > ul.nav.navbar-nav.level0 {
        opacity: 0 !important;
        transform: translateY(-8px) !important;
        transition: transform 0.15s ease, opacity 0.12s ease !important;
    }

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse.in,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.in {
        display: block !important;
        max-height: 2000px !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0 !important;
        transition: max-height 0.15s ease-out, 
                    opacity 0.12s ease-out, 
                    visibility 0s linear 0s !important;
    }

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse.in > ul.nav.navbar-nav.level0,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.in > ul.nav.navbar-nav.level0 {
        display: block !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s !important;
    }

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse.in > ul.nav.navbar-nav.level0 > li,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.in > ul.nav.navbar-nav.level0 > li {
        display: block !important;
        float: none !important;
        width: 100% !important;
        clear: both !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
    }

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse.in > ul.nav.navbar-nav.level0 > li > a,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.in > ul.nav.navbar-nav.level0 > li > a {
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
        margin: 0 !important;
    }

    /* Submen? justo debajo de cada item padre (acorde?n m?vil) */
    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li {
        position: relative !important;
    }

    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li > .dropdown-menu,
    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li > .nav-child,
    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li > .mega-dropdown-menu {
        display: none !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        clear: both !important;
    }

    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li.open > .dropdown-menu,
    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li.open > .nav-child,
    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li.open > .mega-dropdown-menu {
        display: block !important;
    }

    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li.open > .dropdown-menu > li > a,
    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li.open > .nav-child .mega-nav > li > a,
    #t3-mainnav .t3-navbar-collapse > ul.nav.navbar-nav.level0 > li.open > .mega-dropdown-menu .mega-nav > li > a {
        padding-left: 22px !important;
    }

    /* Menú móvil: ancho completo, sin márgenes laterales ni hueco superior */
    #t3-mainnav > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #t3-mainnav .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse.in,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.in {
        margin-top: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse.in > ul.nav.navbar-nav.level0 > li > a,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.in > ul.nav.navbar-nav.level0 > li > a {
        color: #0c489b !important;
        font-weight: 500 !important;
        border-bottom: 1px solid #e8e8e8 !important;
    }

    #t3-mainnav .t3-navbar-collapse.navbar-collapse.collapse.in > ul.nav.navbar-nav.level0 > li > a > span,
    #t3-mainnav .t3-navbar-collapse.navbar-collapse.in > ul.nav.navbar-nav.level0 > li > a > span {
        color: inherit !important;
    }
}

/* ============================================================
   TABLET (768px - 991px): Logo izquierda | Hamburguesa + Buscador derecha
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {

    #t3-header .cabecera-ppal {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    /* Layout en columnas: logos | buscador | conselleria */
    #t3-header .cabecera-ppal .cabecera-ppal-left {
        flex: 0 0 33.333% !important;
        width: 33.333% !important;
        max-width: 33.333% !important;
        float: none !important;
        padding-left: 15px !important;
        padding-right: 10px !important;
    }

    #t3-header .cabecera-ppal .cabecera-search-col {
        flex: 0 0 33.333% !important;
        width: 33.333% !important;
        max-width: 33.333% !important;
        float: none !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #t3-header .cabecera-ppal .cabecera-conselleria-col {
        flex: 0 0 33.333% !important;
        width: 33.333% !important;
        max-width: 33.333% !important;
        float: none !important;
        padding-left: 8px !important;
        padding-right: 15px !important;
    }

    /* Sin columna buscador: logos (8) + conselleria (4) */
    #t3-header .cabecera-ppal .cabecera-ppal-left.col-sm-8 {
        flex: 0 0 62% !important;
        width: 62% !important;
        max-width: 62% !important;
    }

    #t3-header .cabecera-ppal .cabecera-ppal-left.col-sm-8 ~ .cabecera-conselleria-col {
        flex: 0 0 38% !important;
        width: 38% !important;
        max-width: 38% !important;
    }

    /* Logos en fila; separador vertical a altura completa de la fila */
    #t3-header .cabecera-ppal .logo {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 8px 0 !important;
        width: 100% !important;
    }

    #t3-header .cabecera-ppal .logo .cabecera-logo-gva-link,
    #t3-header .cabecera-ppal .logo .cabecera-logo-ivace-link {
        align-self: center !important;
    }

    #t3-header .cabecera-ppal .logo .logo-cabecera-sep {
        align-self: stretch !important;
        min-height: 48px !important;
    }

    #t3-header .cabecera-ppal .logo .logo-cabecera-sep::before {
        top: -12px !important;
    }

    /* Logos tablet (~captura proporcional, caben en columna estrecha) */
    #t3-header .cabecera-ppal .logo-gva-recuperem {
        height: 48px !important;
        width: auto !important;
        flex-shrink: 0 !important;
        max-width: 120px;
        object-fit: contain;
    }

    #t3-header .cabecera-ppal .logo-ivace {
        height: 48px !important;
        width: auto !important;
        flex-shrink: 1 !important;
        max-width: 180px !important;
    }

    #t3-header .cabecera-ppal .cabecera-logo-ivace-img {
        height: 48px !important;
        width: auto !important;
        max-width: 220px !important;
        flex-shrink: 1 !important;
        vertical-align: middle !important;
        object-fit: contain;
    }

    /* Ocultar contenido que no es esencial en tablet
       (Conselleria, redes sociales, flecha...) */
    #t3-header .head-search .customgva_header,
    #t3-header .head-search .customlogo_generalitat_header,
    #t3-header .head-search .custom_flecha3 {
        display: none !important;
    }

    /* Contenedor hamburguesa + buscador: fila completa */
    #t3-header .header-mobile-navsearch {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;   /* alinea el bot?n con la base del buscador */
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    /* Bot?n hamburguesa ? pegado al borde IZQUIERDO */
    #t3-header .header-mobile-navsearch .navbar-toggle,
    #t3-header .header-mobile-navsearch .navbar-toggle--header {
        flex: 0 0 45px !important;
        order: 1 !important;
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #0066cc 0%, #004999 100%) !important;
        border: none !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    #t3-header .header-mobile-navsearch .navbar-toggle .fa-bars,
    #t3-header .header-mobile-navsearch .navbar-toggle--header .fa-bars {
        color: #ffffff !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }

    /* head-search: ocupa todo el espacio restante */
    #t3-header .header-mobile-navsearch .head-search {
        flex: 1 1 auto !important;
        order: 2 !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* Idiomas y buscador sin floats, ocupan su ancho natural */
    #t3-header .head-search .mod-languages {
        float: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin: 0 0 4px 0 !important;
    }

    #t3-header .head-search .search,
    #t3-header .head-search .mod-finder,
    #t3-header .head-search .search-search,
    #t3-header .head-search .mod-finder__search,
    #t3-header .head-search .mod-finder form {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Input del buscador: ancho completo */
    #t3-header .head-search .js-finder-search-query,
    #t3-header .head-search #mod-finder-searchword2106 {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Ocultar duplicado del nav */
    #t3-mainnav .navbar-header .navbar-toggle {
        display: none !important;
    }
}

/* ============================================================
   M?VIL (< 768px): Hamburguesa a la izquierda, Logo a la derecha
   ============================================================ */
@media (max-width: 767px) {

    /* Cabecera en fila: hamburguesa izquierda + logo derecha */
    #t3-header .cabecera-ppal {
        display: flex !important;
        flex-direction: row !important;
        /* flex-wrap: wrap !important; */
        align-items: center !important;
    }

    /* Columna hamburguesa (solo sin buscador en cabecera) */
    #t3-header .cabecera-ppal .cabecera-hamburger-col {
        flex: 0 0 auto !important;
        width: auto !important;
        float: none !important;
        padding-left: 8px !important;
        padding-right: 0 !important;
        order: 1 !important;
    }

    /* Columna logos */
    #t3-header .cabecera-ppal .cabecera-ppal-left {
        flex: 1 1 auto !important;
        width: auto !important;
        float: none !important;
        padding-left: 8px !important;
        padding-right: 15px !important;
        order: 2 !important;
    }

    #t3-header .cabecera-ppal .cabecera-search-col {
        order: 1 !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }

    #t3-header .cabecera-ppal .cabecera-conselleria-col {
        order: 3 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding-top: 4px !important;
    }

    /* Ocultar contenido no esencial dentro de head-search en m?vil
       (igual que en tablet) para que la base del head-search
       coincida con la base del buscador */
    #t3-header .head-search .customgva_header,
    #t3-header .head-search .customlogo_generalitat_header,
    #t3-header .head-search .custom_flecha3 {
        display: none !important;
    }

    /* Eliminar espacio sobrante en la parte inferior del head-search */
    #t3-header .head-search {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    #t3-header .head-search .search,
    #t3-header .head-search .mod-finder,
    #t3-header .head-search .mod-finder form {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Contenedor flex: solo muestra hamburguesa */
    #t3-header .header-mobile-navsearch {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0 !important;
        width: auto !important;
        padding: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    /* Bot?n hamburguesa en m?vil */
    #t3-header .header-mobile-navsearch .navbar-toggle,
    #t3-header .header-mobile-navsearch .navbar-toggle--header {
        flex: 0 0 45px !important;
        order: 1 !important;
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #0066cc 0%, #004999 100%) !important;
        border: none !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        vertical-align: middle !important;
    }

    #t3-header .header-mobile-navsearch .navbar-toggle .fa-bars,
    #t3-header .header-mobile-navsearch .navbar-toggle--header .fa-bars {
        color: #ffffff !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    /* Ocultar head-search en m?vil (buscador se accede desde topline) */
    #t3-header .header-mobile-navsearch .head-search {
        display: none !important;
    }

    /* Ocultar duplicado del nav */
    #t3-mainnav .navbar-header .navbar-toggle {
        display: none !important;
    }

    /* Ocultar barra de navegación entera en móvil (hamburguesa está en el header) */
    #t3-mainnav {
        min-height: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: visible !important;
        z-index: 9999 !important;
        position: relative !important;
    }

    #t3-mainnav > .container {
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
    }

    #t3-mainnav .navbar-header {
        display: none !important;
    }

    /* Menú desplegable por encima de todo al expandir */
    #t3-mainnav .t3-navbar-collapse.collapse.in,
    #t3-mainnav .navbar-collapse.collapse.in {
        position: relative !important;
        z-index: 10000 !important;
    }
}

/* ============================================================
   MODERNIZACION SECCION QUE NECESITAS + FONDOGRIS
   ============================================================ */

/* --- moduleinfobox: base para todos los tamanios --- */
.moduleinfobox {

}

.moduleinfobox ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.moduleinfobox li {
    border-bottom: 1px solid #eef3fa !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 7px 0 7px 20px !important;
    position: relative !important;
}

.moduleinfobox li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.moduleinfobox li::before {
    content: "\203A" !important;
    color: #0066cc !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    position: absolute !important;
    left: 4px !important;
    top: 4px !important;
    width: auto !important;
    margin-left: 0 !important;
    line-height: 1 !important;
}

.moduleinfobox li a,
.moduleinfobox li {
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.moduleinfobox li a:hover {
    color: #0066cc !important;
}

/* Ocultar boton hamburguesa en escritorio y tablets grandes */
@media (min-width: 992px) {
    .navbar-toggle.navbar-toggle--header,
    #t3-header .navbar-toggle {
        display: none !important;
    }
}

/* ============================================================
   MODERNIZACION modulemodenlaces (enlaces rapidos)
   ============================================================ */
.modulemodenlaces .module-inner {
    background: #fff !important;
    border: 1px solid #dce8f5 !important;
    border-top: 3px solid #0066cc !important;
    border-radius: 10px !important;
    padding: 16px !important;
    box-shadow: none !important;
}

.custommodenlaces p {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    line-height: 1 !important;
    justify-content: center !important;
}

/* Eliminar el espaciado de los &nbsp; sueltos */
.custommodenlaces p > br,
.custommodenlaces p > span:empty {
    display: none !important;
}

/* Todos los links como chips modernos */
.custommodenlaces p a,
.custommodenlaces p strong a,
.custommodenlaces p span a {
    display: inline-flex !important;
    align-items: center !important;
    background: #f0f5ff !important;
    color: #0055aa !important;
    border: 1px solid #c5d8f5 !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s !important;
    line-height: 1.3 !important;
}

.custommodenlaces p a:hover,
.custommodenlaces p strong a:hover {
    background: #0066cc !important;
    color: #fff !important;
    border-color: #0066cc !important;
}

/* AVISOS: destacado */
.custommodenlaces p span:first-child a,
.custommodenlaces p > span > strong > a {
    background: #fff3f3 !important;
    color: #cc0000 !important;
    border-color: #f5c2c2 !important;
    font-weight: 700 !important;
}

.custommodenlaces p span:first-child a:hover {
    background: #cc0000 !important;
    color: #fff !important;
    border-color: #cc0000 !important;
}

/* ============================================================
   HEADER: alinear bloque Generalitat con hamburguesa
   y evitar solapes en responsive
   ============================================================ */
#t3-header .header-mobile-navsearch {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

#t3-header .header-mobile-navsearch .navbar-toggle,
#t3-header .header-mobile-navsearch .navbar-toggle--header {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

#t3-header .header-mobile-navsearch .head-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

#t3-header .head-search .customlogo_generalitat_header {
    display: block !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    text-align: right !important;
}

#t3-header .head-search .customlogo_generalitat_header p {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

#t3-header .head-search .customlogo_generalitat_header img {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 auto !important;
}

@media (max-width: 991px) {
    #t3-header .head-search .customlogo_generalitat_header {
        display: block !important;
    }

    #t3-header .header-mobile-navsearch {
        align-items: center !important;
    }
}

@media (max-width: 767px) {
    #t3-header .header-mobile-navsearch {
        flex-wrap: wrap !important;
        align-items: flex-end !important;
        row-gap: 8px !important;
    }

     .navbar-toggle navbar-toggle--header{
           align-self: flex-end !important;
    }
    

    #t3-header .header-mobile-navsearch .navbar-toggle,
    #t3-header .header-mobile-navsearch .navbar-toggle--header {
        margin: 0 !important;
    }

    #t3-header .header-mobile-navsearch .head-search {
        flex: 1 1 220px !important;
        min-width: 220px !important;
    }

    #t3-header .head-search .customlogo_generalitat_header {
        text-align: left !important;
    }

    #t3-header .head-search .customlogo_generalitat_header p {
        justify-content: flex-start !important;
    }
}

/* Ocultar nodos de texto sueltos (&nbsp;) */
.custommodenlaces p {
    word-spacing: -0.5em !important;
}

.custommodenlaces p a {
    word-spacing: normal !important;
}

/* Separacion directa entre Mod1040 y Mod1039 en movil */
@media (max-width: 767px) {
    #Mod1039 {
        margin-top: 20px !important;
    }
}

@media (max-width: 767px) {
    /* 1. Matamos los márgenes del párrafo para que no descentre la imagen */
    .customlink-portales p {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* 2. Imágenes responsive sin transformaciones */
    .customlink-portales img {
        max-width: 100% !important; 
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        transform: none !important;
    }
}

/* ============================================================
   FIX LAYOUT: item-page no desborda su columna, sidebar queda a la derecha
   ============================================================ */

/* El articulo no puede sobresalir de su columna Bootstrap */
.t3-content .item-page {
    max-width: 100% !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
}

/* ============================================================
   FOOTER MENU - Estilos modernos y responsive
   ============================================================ */

/* Menú del footer - estilos generales */
#t3-footer .nav.navbar-nav.gva-navbar.menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 20px 15px !important;
    list-style: none !important;
}

#t3-footer .nav.navbar-nav.gva-navbar.menu li {
    display: inline-block !important;
    margin: 5px !important;
}

#t3-footer .nav.navbar-nav.gva-navbar.menu li a {
    display: inline-block !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background-color: rgba(0, 102, 204, 0.1) !important;
    color: #0066cc !important;
    border: 1px solid #0066cc !important;
}

#t3-footer .nav.navbar-nav.gva-navbar.menu li a:hover {
    background-color: #0066cc !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3) !important;
}

/* Mobile - arreglamos el menú del footer */
@media (max-width: 767px) {
    #t3-footer .nav.navbar-nav.gva-navbar.menu,
    #t3-footer .navbar-nav,
    #t3-footer .nav {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 8px 5px !important;
        width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        list-style: none !important;
    }

    #t3-footer .nav.navbar-nav.gva-navbar.menu li {
        display: inline-block !important;
        margin: 1px 0px !important;
        padding: 0 !important;
        flex: 0 1 auto !important;
    }

    #t3-footer .nav.navbar-nav.gva-navbar.menu li a {
        display: inline-block !important;
        padding: 5px 10px !important;
        border-radius: 15px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        background-color: rgba(0, 102, 204, 0.1) !important;
        color: #0066cc !important;
        border: 1px solid #0066cc !important;
        text-align: center !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    #t3-footer .nav.navbar-nav.gva-navbar.menu li a:hover {
        background-color: #0066cc !important;
        color: white !important;
    }

    /* Centrar imagen del footer */
    #t3-footer {
        height: 50px !important;
        text-align: center !important;
        display: none !important;
    }

    #t3-footer img {
        display: block !important;
        margin: 0 auto !important;
    }

    #t3-footer br {
        display: none !important;
    }

    /* Reducir altura del footer en mobile */
    .t3-copyright {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .t3-copyright p {
        margin: 2px 2px !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        font-size: 12px !important;
    }

    .customfooterlogos {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        margin-bottom: 20px !important;
    }

    #t3-footer .container {
        padding: 0 5px !important;
    }

    #t3-footer .row {
        margin: 0 !important;
    }

    /* Separar navhelper del copyright con margen grande */
    .t3-navhelper {
        margin-top: 50px !important;
        /* margin-bottom: 10px !important; */
    }
}

/* Tablas, imagenes y preformateado se contienen en su columna */
.t3-content .item-page table,
.t3-content .item-page img,
.t3-content .item-page pre,
.t3-content .item-page iframe {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* La tabla cabeceraTable-prog no desborda */
.t3-content .item-page .cabeceraTable-prog {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.t3-content .item-page .cabeceraTable-prog td {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* ============================================================
   SIDEBAR rem-module: mas compacto para que ocupe menos espacio
   ============================================================ */
.rem-module .rem-table-row {
    display: flex !important;
    align-items: flex-start !important;
    padding: 5px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    gap: 6px !important;
}

.rem-module .rem-table-row:last-child {
    /* border-bottom: none !important; */
}

.rem-module .rem-table-cell.rem-module-item-icon {
    flex: 0 0 22px !important;
    width: 22px !important;
}

.rem-module .rem-table-cell.rem-module-item-icon img {
    width: 22px !important;
    height: 22px !important;
}

.rem-module .rem-table-cell.rem-module-item-title {
    flex: 1 1 auto !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.rem-module .rem-table-cell.rem-module-item-title a {
    font-size: 12px !important;
    color: #0055aa !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.rem-module .rem-table-cell.rem-module-item-title a:hover {
    color: #003d88 !important;
    text-decoration: underline !important;
}

/* ============================================================
   Módulos sidebar (secundarias): título derecha + línea + lista viñetas
   ============================================================ */
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway),
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway),
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) {
    margin-bottom: 24px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title {
    border-top: 0 !important;
    border-bottom: 1px solid #575353 !important;
    color: #575353 !important;
    text-align: right !important;
    text-transform: uppercase !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: bold !important;
    font-size: 14.52px !important;
    line-height: 1.35 !important;
    padding: 8px 0 8px 0 !important;
    margin: 0 0 12px 0 !important;
    background: transparent !important;
    letter-spacing: 0 !important;
    text-rendering: optimizeLegibility !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title > span,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title a,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title > span,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title a,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title > span,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-title a {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct {
    text-align: left !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct > ul,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.mod-articlescategory,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct > ul,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.mod-articlescategory,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct > ul,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.mod-articlescategory {
    display: block !important;
    grid-template-columns: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct > ul > li,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks > li,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.mod-articlescategory > li,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct > ul > li,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks > li,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.mod-articlescategory > li,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct > ul > li,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks > li,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.mod-articlescategory > li {
    background: url(/images/icono_secundario.png) no-repeat top left 2px !important;
    background-size: auto !important;
    background-position-y: 4px !important;
    margin: 0 0 6px 0 !important;
    padding: 0 0 0 12px !important;
    list-style: none !important;
    border-bottom: 0 !important;
    text-align: left !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks > li > .d-flex,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks > li > .d-flex,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks > li > .d-flex {
    display: block !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks .col,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks .col,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.weblinks .col {
    flex: none !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct a,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > a,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > .separator,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct a,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > a,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > .separator,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct a,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > a,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > .separator {
    color: #707173 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    padding: 2px 0 !important;
    background: transparent !important;
    text-decoration: none !important;
    display: inline !important;
    border: 0 !important;
    box-shadow: none !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct a:hover,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > a:hover,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct a:hover,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > a:hover,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) .module-ct a:hover,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul.nav > li > a:hover {
    color: #0066cc !important;
    text-decoration: none !important;
    background: transparent !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul .active > a,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul .active > a,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway) ul .active > a {
    color: #707173 !important;
    font-weight: bold !important;
    background: transparent !important;
}

.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory .mod-articles-category-date,
.t3-sidebar .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory .mod-articles-category-image,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory .mod-articles-category-date,
.t3-sidebar-right .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory .mod-articles-category-image,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory .mod-articles-category-date,
.t3-sidebar-2 .t3-module:not(:has(.phrases-box)):not(:has(.counter)):not(.rem-module):not(.modulepathway):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory .mod-articles-category-image {
    display: none !important;
}

/* ============================================================
   FIX DEFINITIVO: articulo no desborda columna, sidebar queda a la derecha
   Causado por imagenes con width="900" hardcodeado en HTML
   ============================================================ */

/* La columna de contenido no puede salirse de sus limites */
.t3-content {
    overflow: hidden !important;
    min-height: 1px !important;
}

/* Todos los contenedores del articulo se contienen */
section.article-content,
.article-content,
.article-content .item-page,
.article-sombra {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* En artículos de contenido, evitar que el texto se coloque al lado de títulos/bloques flotados */
#t3-content article.item-page .article-content,
#t3-content article .article-content {
    clear: both !important;
}

#t3-content article.item-page .article-content > p,
#t3-content article .article-content > p {
    clear: both !important;
}

/* Imagenes: max-width anula el atributo width="900" del HTML */
.article-content img,
.article-sombra img,
.item-page img,
section.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Tablas del articulo se contienen en su columna */
.article-content table,
.article-sombra table,
.item-page table {
    max-width: 100% !important;
    width: 100% !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
}

.article-content table td,
.article-sombra table td,
.item-page table td {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Evitar que el contenido interno empuje y rompa columnas */
#t3-content .item-page,
#t3-content .article-content {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  margin-bottom: 10px !important;
}

#t3-content .article-content img,
#t3-content .article-content iframe,
#t3-content .article-content pre {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

#t3-content .article-content table,
#t3-content table.ivace-tabla-programas-table,
#t3-content .ivace-tabla-programas-wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Contenedor principal: hijos a ancho completo (stretch, no shrink por center) */
.t3-content.col-xs-12:not(.col-sm-8):not(.col-md-9) {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    width: 100% !important;
    padding-left: 90px;
    padding-right: 90px;
    box-sizing: border-box !important;
}

.t3-content.col-xs-12:not(.col-sm-8):not(.col-md-9) > .item-page,
.t3-content.col-xs-12:not(.col-sm-8):not(.col-md-9) > .content-top-wrapper,
.t3-content.col-xs-12:not(.col-sm-8):not(.col-md-9) > .com-content-category-blog,
.t3-content.col-xs-12:not(.col-sm-8):not(.col-md-9) > article {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    .t3-content.col-xs-12:not(.col-sm-8):not(.col-md-9) {
        padding-left: 16px;
        padding-right: 16px;
    }
}

#remository {
    float: none !important;
    width: 100%;           /* Mantener ancho completo */
    max-width: 1000px;     /* AJUSTA ESTO: El ancho máximo que quieras que tenga el bloque */
    margin: 0 auto;
}

/* Neutraliza márgenes inline grandes del artículo (como margin-left:200px) */
#t3-content .article-content [style*="margin-left"] {
  /* margin-left: 0 !important;
  margin-right: 0 !important; */
}

/* Solo en desktop y solo si hay sidebar con remository */
@media (min-width: 992px) {
  #t3-mainbody > .row:has(.t3-sidebar-right .rem-module) > #t3-content {
    width: 75% !important;
  }

  #t3-mainbody > .row:has(.t3-sidebar-right .rem-module) > .t3-sidebar-right {
    width: 25% !important;
  }
}


.ivace-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 18px 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    border-top: none !important;
    border-left: none !important;
    transition: background-color 0.2s ease !important;
    background-color: transparent !important;
    box-sizing: border-box !important;
  }

.ivace-item:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }

.ivace-item:hover .ivace-label {
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 3px !important;
  }

.ivace-item:nth-child(4n)  { border-right: none !important; }

.ivace-item:nth-child(n+5) { border-bottom: none !important; }

.ivace-icon {
    flex-shrink: 0 !important;
    width: 36px !important;
    /* height: 36px !important; */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

.ivace-icon img {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
  }

.ivace-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }


/* 1. REGLA DE ORO: Evitar el scroll horizontal en toda la web */
body, html {
    overflow-x: hidden !important;
}

/* 2. TÍTULOS (modulemodtit2) */
.t3-module.modulemodtit2 {
    position: relative;
    z-index: 1;
}

.t3-module.modulemodtit2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 130%; /* Altura para escritorio */
    background-color: #d7e6fc;
    z-index: -1;
}

/* 3. CAJAS DE INFORMACIÓN (moduleinfobox) */
.t3-module.moduleinfobox {
    position: relative;
    z-index: 1;
}

.t3-module.moduleinfobox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 110%; 
    background-color: #d7e6fc;
    z-index: -1;
}

/* Home blank: sin estirar .t3-mainbody (Portales pegados al pie). Ayudas vigentes queda excluida. */
.com_blankcomponent:not(:has([data-ivace-mod-slug="ayudas-vigentes"])) .t3-mainbody {
    flex: 0 0 auto !important;
}

/* Ayudas vigentes (blank): pie al fondo del viewport, sin hueco bajo la tabla */
body.page-has-ayudas-vigentes.com_blankcomponent .t3-wrapper {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
}

body.page-has-ayudas-vigentes.com_blankcomponent .breadcrumb-wrapper,
body.page-has-ayudas-vigentes.com_blankcomponent .t3-spotlight-1,
body.page-has-ayudas-vigentes.com_blankcomponent .t3-spotlight-2 {
    flex-shrink: 0 !important;
}

body.page-has-ayudas-vigentes.com_blankcomponent .t3-mainbody {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

body.page-has-ayudas-vigentes.com_blankcomponent #t3-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    width: 100% !important;
}

body.page-has-ayudas-vigentes.com_blankcomponent .content-top-wrapper:has([data-ivace-mod-slug="ayudas-vigentes"]) {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 16px 0 !important;
    padding: 0 !important;
}

/* Empuja el bloque pie (menú + logos + ©) al borde inferior */
body.page-has-ayudas-vigentes.com_blankcomponent .t3-navhelper {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
}

body.page-has-ayudas-vigentes.com_blankcomponent #t3-footer {
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

body.page-has-ayudas-vigentes.com_blankcomponent .blank:empty {
    display: none !important;
}

@media (max-width: 767px) {
    body.page-has-ayudas-vigentes.com_blankcomponent .t3-navhelper,
    body.com_blankcomponent:has([data-ivace-mod-slug="ayudas-vigentes"]) .t3-navhelper {
        margin-top: auto !important;
    }
}

[data-ivace-mod-slug="ayudas-vigentes"] .module-title,
[data-ivace-mod-slug="ayudas-vigentes"] h3.module-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

[data-ivace-mod-slug="ayudas-vigentes"] .module-inner {
    padding-top: 0 !important;
}

[data-ivace-mod-slug="ayudas-vigentes"] .ivace-tabla-programas-wrap,
.ivace-tabla-programas-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Estilo base para el contenedor del menú */
.nav.navbar-nav.gva-navbar.menu {
    background-color: #06234C;
    margin: 0;
    /* padding: 10px; */
    /* display: flex; */
    flex-wrap: wrap;
    justify-content: center; /* Centra los elementos del menú */
    list-style: none;
}

/* Estilo para los enlaces (letras blancas) */
.nav.navbar-nav.gva-navbar.menu li a {
    color: #ffffff !important;
    background-color: transparent;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease; /* Suaviza el cambio al pasar el ratón */
    font-weight: 500;
}

/* Hover: Fondo blanco y letras azul oscuro */
.nav.navbar-nav.gva-navbar.menu li a:hover,
.nav.navbar-nav.gva-navbar.menu li.active a {
    background-color: #ffffff !important;
    color: #06234C !important;
    border-radius: 4px; /* Opcional: redondea un poco las esquinas del hover */
}

/* Ajuste para los botones específicos que tienen clases de "ghost-primary" */
.nav.navbar-nav.gva-navbar.menu li a.gva-btn {
  
    margin: 2px;
}

.mod-novedades-img {
  width: 100% !important;
  flex: 0 0 auto;
  height: auto !important;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  display: block !important;
}

.mod-novedades-text {
  padding: 10px 12px 12px;
  flex: 1 1 auto;
  font-size: 17px;
  color: #2c5f8a;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

/* Contenedor principal: 1 columna en móvil, 2 en pantallas grandes (>768px) */
.mod-articlescategory {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
}

/* Estructura de cada noticia */
.mod-articlescategory li {
    display: flex;
    flex-direction: column; /* La fecha irá arriba del todo */
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* La fecha encima de todo */
.mod-articles-category-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    order: 1;
}

/* Contenedor para alinear foto y título horizontalmente */
.news-body {
    display: flex;
    align-items: flex-start;
    order: 2;
}

/* Foto a la izquierda (solo home) */
body.com_blankcomponent .mod-articles-category-image {
    flex-shrink: 0;
    margin-right: 15px;
}

body.com_blankcomponent .mod-articles-category-image img {
    width: 100px; /* Tamaño fijo para la miniatura */
    height: auto;
    border-radius: 4px;
}

/* Título a la derecha, más grande y sin subrayado */
.mod-articles-category-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none !important; /* Quita el subrayado */
    color: #333;
    line-height: 1.3;
}

.mod-articles-category-title:hover {
    color: #0056b3;
}

/* ============================================================
   BUSCADOR HEADER: input hasta la lupa
   ============================================================ */
#t3-header .head-search .mod-finder__search,
#t3-header .head-search .mod-finder__search.input-group {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
}

#t3-header .head-search .mod-finder__search .awesomplete {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: block !important;
}

#t3-header .head-search .mod-finder__search .js-finder-search-query,
#t3-header .head-search .mod-finder__search .form-control {
    width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    height: 45px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

#t3-header .head-search .mod-finder__search > .btn,
#t3-header .head-search .mod-finder__search > button,
#t3-header .head-search .mod-finder .btn {
    flex: 0 0 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    margin-top: 0 !important;
    height: 45px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Artículos: imágenes más grandes en intro (excepto internacionalización) */
body.com_blankcomponent :is(.item-page, article):not(:has(.article-header a[href*="/servicios/internacionalizacion"])):not(:has(.article-header a[href*="/val/serveis/internacionalizacio/"])):not(:has(.article-header a[href*="/noticias/"])):not(:has(.article-header a[href*="/val/noticies/"])):not(:has(.category-name a[href*="/noticias/"])):not(:has(.category-name a[href*="/val/noticies/"])) .article-intro img,
body.com_blankcomponent :is(.item-page, article):not(:has(.article-header a[href*="/servicios/internacionalizacion"])):not(:has(.article-header a[href*="/val/serveis/internacionalizacio/"])):not(:has(.article-header a[href*="/noticias/"])):not(:has(.article-header a[href*="/val/noticies/"])):not(:has(.category-name a[href*="/noticias/"])):not(:has(.category-name a[href*="/val/noticies/"])) .article-intro .pull-left img,
body.com_blankcomponent :is(.item-page, article):not(:has(.article-header a[href*="/servicios/internacionalizacion"])):not(:has(.article-header a[href*="/val/serveis/internacionalizacio/"])):not(:has(.article-header a[href*="/noticias/"])):not(:has(.article-header a[href*="/val/noticies/"])):not(:has(.category-name a[href*="/noticias/"])):not(:has(.category-name a[href*="/val/noticies/"])) .article-intro p > img {
    float: none !important;
    display: block !important;
    width: min(100%, 600px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 16px auto !important;
}

@media (max-width: 767px) {
    .article-intro img,
    .article-intro .pull-left img,
    .article-intro p > img {
        width: min(100%, 420px) !important;
        margin: 0 auto 14px auto !important;
    }
}

@media (min-width: 768px) {
    .article-intro:not(.ai-has-vehiculos) > p > img {
      float: left !important;
      width: 670px !important;      /* ajusta si quieres más/menos */
      max-width: 45% !important;    /* para que no se coma el texto */
      height: auto !important;
      margin: 0 18px 12px 0 !important;
      display: block !important;
    }
  }

/* Article intro: imagen grande izquierda, texto siempre a la derecha */
@media (min-width: 768px) {
  .article-intro {
    --intro-media-w: 470px;
    --intro-media-gap: 18px;
    --intro-media-h: 255px; /* altura típica de la imagen principal */
    position: relative !important;
    /* padding-bottom: 20px !important;  */
  }

  /* Becas: ampliar ancho de la imagen principal (sin afectar al resto) */
  .article-intro:has(img[alt="cabecera26 cs"]) {
    --intro-media-w: 760px;
    --intro-media-gap: 10px;
  }

  /* Becas: quitar margen superior del texto y eliminar párrafos vacíos (&nbsp;) */
  .article-intro:has(img[alt="cabecera26 cs"]) > p {
    margin-top: 0 !important;
  }

  .article-intro:has(img[alt="cabecera26 cs"]) > p:has(> a > img[alt="cabecera26 cs"]) + p,
  .article-intro:has(img[alt="cabecera26 cs"]) > p:has(> a > img[alt="cabecera26 cs"]) + p + p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
  }

  /* Solo la imagen grande del primer párrafo */
  .article-intro > p:first-of-type > img {
    float: left !important;
    width: var(--intro-media-w) !important;
    max-width: 45% !important;
    height: auto !important;
    margin: 0 var(--intro-media-gap) 12px 0 !important;
    display: block !important;
  }

  /* Caso habitual: imagen principal envuelta en enlace */
  .article-intro > p:first-of-type > a > img,
  .article-intro > p:first-of-type a > img {
    float: left !important;
    width: var(--intro-media-w) !important;
    max-width: 45% !important;
    height: auto !important;
    margin: 0 var(--intro-media-gap) 12px 0 !important;
    display: block !important;
  }

  /* Si la imagen va en un párrafo que NO es el primero (p.ej. hay <p>&nbsp;</p> antes) */
  :is(.item-page, article):not(:has(.article-header a[href*="/servicios/internacionalizacion"])):not(:has(.article-header a[href*="/val/serveis/internacionalizacio/"])) .article-intro:not(.ai-has-patentes):not(.ai-has-bst):not(.ai-has-vehiculos) > p > a > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]):not([alt="Gestion"]),
  :is(.item-page, article):not(:has(.article-header a[href*="/servicios/internacionalizacion"])):not(:has(.article-header a[href*="/val/serveis/internacionalizacio/"])) .article-intro:not(.ai-has-patentes):not(.ai-has-bst):not(.ai-has-vehiculos) > p > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]):not([alt="Gestion"]) {
    float: left !important;
    width: var(--intro-media-w) !important;
    max-width: 300px !important;
    height: auto !important;
    margin: 0 var(--intro-media-gap) 12px 0 !important;
    display: block !important;
  }

  /* Menú Ayudas: sin tope 300px (usa categoría /ayudas/ — p. ej. Becas con título /becas) */
  #t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > a > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .com-content-category-blog:has(.article-header a[href*="/ayudas/"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > a > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .com-content-category-blog:has(.article-header a[href*="/ayudas/"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .com-content-category-blog:has(.article-header a[href*="/becas"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > a > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .com-content-category-blog:has(.article-header a[href*="/becas"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .item-page:has(.article-header a[href*="/ayudas/"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > a > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .item-page:has(.article-header a[href*="/ayudas/"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > a > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]),
  #t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) .article-intro:not(.ai-has-patentes):not(.ai-has-bst) > p > img:not([alt^="tel "]):not([alt^="fax "]):not([alt^="mail"]):not([alt="location"]) {
    max-width: min(100%, var(--intro-media-w, 470px)) !important;
    width: auto !important;
    height: auto !important;
  }

    body.com_blankcomponent #t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .article-intro > p:first-of-type > img,
    body.com_blankcomponent #t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .article-intro > p:first-of-type > a > img,
    body.com_blankcomponent #t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .article-intro > p:first-of-type a > img,
    body.com_blankcomponent #t3-content .com-content-category-blog:has(.article-header a[href*="/ayudas/"]) .article-intro > p:first-of-type > img,
    body.com_blankcomponent #t3-content .com-content-category-blog:has(.article-header a[href*="/ayudas/"]) .article-intro > p:first-of-type > a > img,
    body.com_blankcomponent #t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) .article-intro > p:first-of-type > img,
    body.com_blankcomponent #t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) .article-intro > p:first-of-type > a > img,
    body.com_blankcomponent #t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .article-intro p > img {
    max-width: min(100%, var(--intro-media-w, 470px)) !important;
    width: auto !important;
  }

  /* Si el primer párrafo es “solo imagen/enlace”, que quede a la izquierda */
  .article-intro > p:first-of-type {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .article-intro > p:first-of-type > a {
    display: block !important;
  }

  /* Caso concreto: cabecera de Becas (hacerla más alta/visible) */
  .article-intro img[alt="cabecera26 cs"],
  .article-intro:has(img[alt="cabecera26 cs"]) a > img[alt="cabecera26 cs"] {
    width: min(100%, var(--intro-media-w, 760px)) !important;
    max-width: min(100%, 760px) !important;
    height: auto !important;
  }

  /* Variante: cuando la “imagen principal” viene en p.parrafoimg */
  .article-intro p.parrafoimg > img.parrafoimg,
  .article-intro p.parrafoimg > img {
    float: left !important;
    width: var(--intro-media-w) !important;
    max-width: 45% !important;
    height: auto !important;
    margin: 0 var(--intro-media-gap) 12px 0 !important;
    display: block !important;
  }

  /* Todo el resto del contenido a la derecha */

  /* Bono social térmico: nunca desplazar contenido a la derecha */
  .article-intro.ai-has-bst > p,
  .article-intro.ai-has-bst > ul,
  .article-intro.ai-has-bst > ol {
    margin-left: 0 !important;
  }

  /* Caso Parques empresariales (imagen comercparcelas2024p): menos separación al texto */
  .article-intro:has(img[alt="comercparcelas2024p cs"]) > p:not(:has(> img)):not(:has(> a > img)),
  .article-intro:has(img[alt="comercparcelas2024p cs"]) > ul,
  .article-intro:has(img[alt="comercparcelas2024p cs"]) > ol {
    margin-left: calc(5% + 10px) !important;
  }

  /* Parques empresariales: NO aplicar margen izquierdo automático */
  .article-intro.ai-has-parques > p,
  .article-intro.ai-has-parques > ul,
  .article-intro.ai-has-parques > ol {
    margin-left: 0 !important;
  }

  /* Teléfono y mail más pequeños */
  .article-intro img[alt="tel innovacion"],
  .article-intro img[alt="mailinnovacion"] {
    float: none !important;
    width: 310px !important;
    height: auto !important;
    margin: 0 8px 0 0 !important;
  }

  /* Teléfono + mail debajo de la imagen izquierda */
  .article-intro p:has(img[alt="tel innovacion"]) {
    position: absolute !important;
    left: 0 !important;
    top: calc(var(--intro-media-h) + 12px) !important;
    width: var(--intro-media-w) !important;
    max-width: 45% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  /* Fallback si :has() no está disponible: usar el style inline del párrafo */
  .article-intro p[style*="text-align: justify"] {
    position: absolute !important;
    left: 0 !important;
    top: calc(var(--intro-media-h) + 12px) !important;
    width: var(--intro-media-w) !important;
    max-width: 45% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  /* “Pegaditos”: sin margen vertical en iconos */
  .article-intro img[alt="tel innovacion"],
  .article-intro img[alt="mailinnovacion"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle !important;
  }

  /* Quitar margin-left inline en el párrafo final */
  .article-intro p[style*="margin-left"] img {
    margin-left: 0 !important;
  }
}

/* Listado de Noticias/Eventos (2o nivel): imagen izquierda + texto y boton a la derecha */
@media (min-width: 768px) {
    body.com_blankcomponent #t3-content .com-content-category-blog article .article-intro.ai-has-intro-img {
        --news-list-media-w: 235px;
        --news-list-media-gap: 20px;
        min-height: 180px !important;
    }

    body.com_blankcomponent #t3-content .com-content-category-blog article .article-intro.ai-has-intro-img p img:first-of-type:not([alt^="tel "]):not([alt^="mail"]):not([alt^="fax "]):not([alt="location"]),
    body.com_blankcomponent #t3-content .com-content-category-blog article .article-intro.ai-has-intro-img div img:first-of-type:not([alt^="tel "]):not([alt^="mail"]):not([alt^="fax "]):not([alt="location"]),
    body.com_blankcomponent #t3-content .com-content-category-blog article .article-intro.ai-has-intro-img .x_elementToProof img:first-of-type:not([alt^="tel "]):not([alt^="mail"]):not([alt^="fax "]):not([alt="location"]) {
        float: left !important;
        width: var(--news-list-media-w) !important;
        max-width: var(--news-list-media-w) !important;
        height: auto !important;
        margin: 0 var(--news-list-media-gap) 10px 0 !important;
    }

    body.com_blankcomponent.ivace-noticias-section #t3-content .com-content-category-blog article:has(.article-intro.ai-has-intro-img) .readmore {
        clear: none !important;
        margin-left: calc(var(--news-list-media-w) + var(--news-list-media-gap)) !important;
        width: calc(100% - var(--news-list-media-w) - var(--news-list-media-gap)) !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 6px !important;
    }

    body.com_blankcomponent #t3-content .com-content-category-blog article .readmore a.btn {
        display: inline-flex !important;
        align-items: center !important;
    }
}

@media (min-width: 768px) {
    .article-intro img[alt^="tel "],
    .article-intro img[alt^="mail"] {
      float: none !important;
      width: 310px !important;
      height: auto !important;
      margin: 0 8px 0 0 !important;
    }
  }

/* Migas de pan (breadcrumb) - margen izquierdo y estilo moderno */
.breadcrumb-wrapper .modulepathway .module-ct > ol.breadcrumb.pathway,
ol.breadcrumb.pathway {
    margin-left: 80px !important;
    margin-right: 80px !important;
    margin-bottom: 10px !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border: 1px solid #dce8f5 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

ol.breadcrumb.pathway > li,
.breadcrumb-wrapper .breadcrumb > li {
    display: inline-block;
    color: #55606b !important;
}

ol.breadcrumb.pathway > li + li:before,
.breadcrumb-wrapper .breadcrumb > li + li:before {
    content: "›";
    padding: 0 8px;
    color: #9aa6b2 !important;
}

ol.breadcrumb.pathway a {
    color: #0066cc !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

ol.breadcrumb.pathway a:hover {
    text-decoration: underline !important;
}

ol.breadcrumb.pathway > li.active {
    color: #55606b !important;
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    .breadcrumb-wrapper .modulepathway .module-ct > ol.breadcrumb.pathway,
    ol.breadcrumb.pathway {
        margin-left: 40px !important;
        margin-right: 40px !important;
        border-radius: 8px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}

.article-intro:has(img[alt="cabecera26 cs"]) > p:not(:has(> img)):not(:has(> a > img)),
.article-intro:has(img[alt="cabecera26 cs"]) > ul,
.article-intro:has(img[alt="cabecera26 cs"]) > ol {
  margin-left: calc(5% + 10px) !important;
}

/* Footer (portátil): mover un poco el logo izquierdo */
@media (min-width: 992px) and (max-width: 1599px) {
  .t3-copyright .customfooterlogos > div:first-child img,
  .t3-copyright .customfooterlogos > [class*="col-"]:first-child img {
    margin-left: 40px !important; /* ajusta a tu gusto */
  }
}

/* Finder (página de resultados): asegurar que no se corten dropdowns/resultados */
.com-finder,
.com-finder__form,
.com-finder__search,
.com-finder__results,
#t3-content .com-finder {
  overflow: visible !important;
}

.com-finder__results {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Finder: forzar que el bloque de resultados no quede colapsado/oculto */
#t3-content .com-finder #search-results,
#t3-content .com-finder .com-finder__results,
#t3-content .com-finder .com-finder__results-list {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  visibility: visible !important;
}

/* Finder: selects "chosen" con ancho real (evita width:0px) */
#t3-content .com-finder .chosen-container {
  width: 220px !important;
  min-width: 220px !important;
}

/* Autocomplete en página Finder: por encima de todo */
#t3-content .com-finder .awesomplete {
  position: relative !important;
  z-index: 2147483647 !important;
}

#t3-content .com-finder .awesomplete > ul,
#t3-content .com-finder .awesomplete ul {
  position: absolute !important;
  z-index: 2147483647 !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18) !important;
}


/* Artículo Internacionalización (ES + VAL): ver custom_pgs_servicios.css */


/* Títulos de artículo (h1/h2.module-title): estilo limpio como módulos */
.article-header .module-title,
.article-header h1.module-title,
.article-header h2.module-title {
  margin: 0 0 12px 0 !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.article-header .module-title a {
  color: #333 !important;
  text-decoration: none !important;
}

.article-header .module-title a:hover {
  color: #333 !important;
  text-decoration: underline !important;
}

/* Artículos (título + detalles + intro) con estilo tipo "módulo" */
.t3-content article > .article-header,
.t3-content article > .article-aside,
.t3-content article > .article-intro,
.t3-content article > .article-content {
  background: #fff !important;
}

.t3-content 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: 14px 30px !important;
  margin-top: 40px !important;
  margin-bottom: 18px !important;
  margin-left: 70px !important;
    margin-right: 70px !important;
}

@media (max-width: 991px) {
  .t3-content article {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* Ayudas / categorías / becas: módulos bajo artículo = misma anchura que .t3-content article */
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.module-articulos_home),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.mod-links-card),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(ul.mod-articlescategory),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(ul.mod-articlescategories),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.modulemodenlaces),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.ivace-enlaces-module),
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > article:has(+ .content-top-wrapper) + .content-top-wrapper {
  align-self: stretch !important;
  width: 100% !important;
  max-width: min(1600px, calc(100% - 32px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Mismo aire superior que portada (.fondogris-wrapper margin-top: 24px en custom-home.css) */
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.module-articulos_home),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.mod-links-card),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(ul.mod-articlescategory),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(ul.mod-articlescategories),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.modulemodenlaces),
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.ivace-enlaces-module) {
  padding-top: 24px !important;
}

body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:has(.mod-links-card),
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:has(.module-articulos_home),
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:has(.mod-links-card),
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:has(.module-articulos_home),
body:not(.com_blankcomponent) #t3-content > article:has(+ .content-top-wrapper) + .content-top-wrapper {
  margin-top: 24px !important;
  padding-top: 0 !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-articulos_home) > .t3-module,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.mod-links-card):not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(ul.mod-articlescategory):not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(ul.mod-articlescategories):not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module,
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* Módulos secundarios en content-top-wrapper (mod-links-card, ivace-mod, convocatorias-anteriores, etc.): título derecha + línea + viñetas */
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) {
  margin-bottom: 28px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-inner,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-inner,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-inner {
  background: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-title,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-title,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-title {
  border-top: 0 !important;
  border-bottom: 1px solid #575353 !important;
  color: #575353 !important;
  text-align: right !important;
  text-transform: uppercase !important;
  font-family: 'Roboto', sans-serif !important;
  font-weight: bold !important;
  font-size: 14.52px !important;
  line-height: 1.35 !important;
  padding: 8px 0 8px 0 !important;
  margin: 0 0 12px 0 !important;
  background: transparent !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-title > span,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-title > span,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-title > span {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct {
  padding: 0 !important;
  text-align: left !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategories,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-list,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategories,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategories {
  display: block !important;
  grid-template-columns: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory > li,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategories > li,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-list > li,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory > li,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategories > li,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategory > li,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) ul.mod-articlescategories > li {
  display: block !important;
  /* background: url(/images/icono_secundario.png) no-repeat top left 2px !important; */
  background-size: auto !important;
  background-position-y: 4px !important;
  margin: 0 0 6px 0 !important;
  padding: 0 0 0 12px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  list-style: none !important;
  text-align: left !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .mod-articles-category-content,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .mod-articles-category-content,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .mod-articles-category-content {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a.mod-articles-category-title,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct a,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5 a,
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a.mod-articles-category-title,
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct a,
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5 a,
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a.mod-articles-category-title,
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct a,
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5 a,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a.mod-articles-category-title,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct a,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5 a,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a.mod-articles-category-title,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct a,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5 a {
  display: inline !important;
  color: #707173 !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  font-weight: normal !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a.mod-articles-category-title:hover,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) .module-ct a:hover,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5 a:hover,
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:hover,
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:hover,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:hover,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:hover,
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:focus,
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:focus,
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:focus,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:focus,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) a:focus {
  color: #0066cc !important;
  text-decoration: none !important;
}

body:not(.com_blankcomponent) #t3-content .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content > .t3-module.mod-links-card.ivace-mod:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]),
body:not(.com_blankcomponent) #t3-content .content-top-sidebar-0 > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:not(:has(.module-araempreses)):not(:has(.module-internacional)) > .t3-module.mod-links-card:not(.module-araempreses):not(.module-internacional):not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]) h5 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* Ara Empreses / Internacionalización: 3 columnas (ver custom_pgs_servicios.css) */
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-araempreses),
body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-internacional),
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/ara-empreses"]) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(.category-name a[href*="/ayudas/ara-empreses"]) + .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/ara-empreses"]) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(.category-name a[href*="/val/ajudes/ara-empreses"]) + .content-top-wrapper {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 992px) {
    body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-araempreses),
    body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-internacional) {
        display: flex !important;
        /* flex-wrap: wrap !important; */
        align-items: stretch !important;
    }

    body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-araempreses) > .t3-module,
    body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-internacional) > .t3-module {
        width: 33.33333333% !important;
        max-width: 33.33333333% !important;
        float: none !important;
        clear: none !important;
        display: flex !important;
    }

    body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-araempreses) > .t3-module > .module-inner,
    body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-internacional) > .t3-module > .module-inner {
        width: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 991px) {
    body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-araempreses) > .t3-module,
    body:not(.com_blankcomponent) #t3-content .content-top-wrapper:has(.module-internacional) > .t3-module {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: none !important;
    }
}

@media (max-width: 991px) {
  body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.module-articulos_home),
  body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(.mod-links-card),
  body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(ul.mod-articlescategory),
  body:not(.com_blankcomponent) #t3-content > .content-top-wrapper:has(ul.mod-articlescategories),
  body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper,
  body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper,
  body:not(.com_blankcomponent) #t3-content > article:has(+ .content-top-wrapper) + .content-top-wrapper {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* blog-info: márgenes de tarjeta (18px) */
body:not(.com_blankcomponent) #t3-content .com-content-category-blog.blog-info:has(article) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog.blog-info:has(article) + .content-top-wrapper {
  margin-left: 18px !important;
  margin-right: 18px !important;
}

@media (max-width: 991px) {
  body:not(.com_blankcomponent) #t3-content .com-content-category-blog.blog-info:has(article) ~ .content-top-wrapper,
  body:not(.com_blankcomponent) #t3-content > .com-content-category-blog.blog-info:has(article) + .content-top-wrapper {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* Si el wrapper va dentro del artículo, no duplicar márgenes */
body:not(.com_blankcomponent) #t3-content article .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content .item-page .content-top-wrapper {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.t3-content article > .article-aside {
  margin-top: 6px !important;
  margin-bottom: 10px !important;
}

.t3-content article .article-info {
  margin: 0 !important;
  padding: 0 !important;
}

.t3-content article .article-info dd {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 10px 6px 0 !important;
  padding: 4px 10px !important;
  border: 1px solid #eef3fa !important;
  border-radius: 999px !important;
  background: #f8fbff !important;
  font-size: 12px !important;
  color: #55606b !important;
}

.t3-content article .article-info dt {
  display: none !important;
}

/* Artículo Patentes/Marcas: imágenes más pequeñas y sin márgenes enormes */
@media (min-width: 768px) {
  .article-intro.ai-has-patentes img {
    height: auto !important;
    max-width: 140px !important;
  }

  /* Todo alineado a la izquierda */
  .article-intro.ai-has-patentes,
  .article-intro.ai-has-patentes p,
  .article-intro.ai-has-patentes div {
    text-align: left !important;
  }

  /* Flechitas */
  .article-intro.ai-has-patentes img[alt="flechaazulosc"] {
    width: 10px !important;
    max-width: 10px !important;
    margin-right: 8px !important;
  }

  /* Logos grandes de la línea de enlaces */
  .article-intro.ai-has-patentes img[alt="Logo2019"],
  .article-intro.ai-has-patentes img[alt="Patlib pequeño"] {
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    margin: 0 12px 0 0 !important;
    float: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }

  /* Párrafo de los dos logos: alineado a la izquierda y sin espacios raros */
  .article-intro.ai-has-patentes p:has(img[alt="Logo2019"]),
  .article-intro.ai-has-patentes p:has(img[alt="Patlib pequeño"]) {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Iconos de la tabla (tel/mail/cita previa) */
  .article-intro.ai-has-patentes img[alt="auricular"],
  .article-intro.ai-has-patentes img[alt="e-mail"],
  .article-intro.ai-has-patentes img[alt="citaprevia"] {
    width: 20px !important;
    max-width: 20px !important;
  }

  /* Quitar márgenes inline enormes dentro de este artículo */
  .article-intro.ai-has-patentes [style*="margin-left"],
  .article-intro.ai-has-patentes [style*="margin-right"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Patentes: no desplazar nada hacia la derecha */
  .article-intro.ai-has-patentes,
  .article-intro.ai-has-patentes p,
  .article-intro.ai-has-patentes div,
  .article-intro.ai-has-patentes table,
  .article-intro.ai-has-patentes tbody,
  .article-intro.ai-has-patentes tr,
  .article-intro.ai-has-patentes td {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

/* Artículo Vehículos (ITV): contacto y ubicación centrados */
@media (min-width: 768px) {
  .article-intro.ai-has-vehiculos > p[style*="text-align: center"],
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p[style*="text-align: center"],
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p[style*="text-align: center"] {
    text-align: center !important;
  }

  /* Botón Gestión: centrado (tamaño natural del PNG) */
  .article-intro.ai-has-vehiculos > p:has(img[alt="Gestion"]),
  .article-intro.ai-has-vehiculos > p:has(a[href*="gestionitv"]),
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="Gestion"]),
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="Gestion"]) {
    text-align: center !important;
    width: 100% !important;
    clear: both !important;
    display: block !important;
  }

  .article-intro.ai-has-vehiculos > p:has(img[alt="Gestion"]) > a,
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="Gestion"]) > a,
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="Gestion"]) > a {
    display: inline-block !important;
    float: none !important;
    margin: 0 auto !important;
  }

  .article-intro.ai-has-vehiculos > p:has(img[alt="Gestion"]) img[alt="Gestion"],
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="Gestion"]) img[alt="Gestion"],
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="Gestion"]) img[alt="Gestion"] {
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 8px auto !important;
  }

  /* Teléfono, fax y correo en una fila centrada */
  .article-intro.ai-has-vehiculos > p:has(img[alt="tel gral vehiculos"]),
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="tel gral vehiculos"]),
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="tel gral vehiculos"]) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px 20px !important;
    text-align: center !important;
  }

  .article-intro.ai-has-vehiculos > p:has(img[alt="tel gral vehiculos"]) img,
  .article-intro.ai-has-vehiculos > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail,
  .article-intro.ai-has-vehiculos > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail a,
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="tel gral vehiculos"]) img,
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail img,
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="tel gral vehiculos"]) img,
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail img {
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    float: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
  }

  .article-intro.ai-has-vehiculos > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail,
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail,
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail {
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Dirección con icono location */
  .article-intro.ai-has-vehiculos > p:has(img[alt="location"]),
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="location"]),
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="location"]) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 10px !important;
    text-align: center !important;
  }

  .article-intro.ai-has-vehiculos > p:has(img[alt="location"]) img[alt="location"],
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="location"]) img[alt="location"],
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro > p:has(img[alt="location"]) img[alt="location"] {
    width: 30px !important;
    max-width: 30px !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .article-intro.ai-has-vehiculos img[alt^="tel "][style*="margin-left"],
  .article-intro.ai-has-vehiculos img[alt="location"][style*="margin-left"],
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro img[style*="margin-left"],
  #t3-content article:has(.article-header a[href*="inspeccio-tec-vehicles"]) .article-intro img[style*="margin-left"] {
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .article-intro.ai-has-vehiculos > p:has(img[alt="tel gral vehiculos"]),
  .article-intro.ai-has-vehiculos > p:has(img[alt="location"]),
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="tel gral vehiculos"]),
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="location"]) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: 0 !important;
  }

  .article-intro.ai-has-vehiculos > p:has(img[alt="tel gral vehiculos"]) img,
  .article-intro.ai-has-vehiculos > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail img,
  #t3-content article:has(.article-header a[href*="inspeccion-tec-vehiculos"]) .article-intro > p:has(img[alt="tel gral vehiculos"]) img {
    width: min(100%, 280px) !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
}

/* Artículo BST / Bono social térmico: ajustar tamaños de imágenes dentro del recuadro */
@media (min-width: 768px) {
  /* Mantener layout normal (sin flex) para evitar roturas */
  .article-intro.ai-has-bst {
    display: block !important;
  }

  /* Ocultar los <p> "vacíos" que solo meten &nbsp; (no tienen imagen ni clase x_MsoNormal) */
  .article-intro.ai-has-bst > p:not(.x_MsoNormal):not(:has(img)) {
    display: none !important;
  }

  /* Bloque de imagen */
  .article-intro.ai-has-bst > p:has(img) {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  /* Bloque de texto */
  .article-intro.ai-has-bst > p.x_MsoNormal {
    margin: 0 !important;
    text-align: center !important;
  }

  /* Banner principal (BST2025-cs.png, etc.) */
  .article-intro.ai-has-bst img[alt^="BST"],
  .article-intro.ai-has-bst img[src*="BST"] {
    width: min(100%, 1200px) !important;
    max-width: 1200px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .article-intro.ai-has-bst table img[src*="14-10-13-121_256.gif"],
  .article-intro.ai-has-bst table img[alt="14 10 13 121 256"] {
    width: 60px !important;
    max-width: 60px !important;
    height: auto !important;
    margin: 0 16px 12px 0 !important;
    float: left !important;
  }

  /* La imagen “principal” del bono térmico (la otra del recuadro): más grande */
  .article-intro.ai-has-bst table img:not([src*="14-10-13-121_256.gif"]):not([alt="14 10 13 121 256"]) {
    width: min(100%, 150px) !important;
    max-width: 150px !important;
    height: auto !important;
  }
}

/* Layout con sidebar: no “ensanchar” #t3-content con padding grande */
@media (min-width: 992px) {
  #t3-content.col-sm-8,
  #t3-content.col-md-9,
  #t3-content.col-sm-8.col-md-9 {
    box-sizing: border-box !important;
    padding-left: 9dvh !important;
    padding-right: 15px !important;
    /* Recuperar comportamiento de columna Bootstrap (dejar hueco a la sidebar) */
    width: auto !important;
    float: left !important;
    clear: none !important;
  }

  /* Asegurar que la sidebar derecha puede flotar a la derecha */
  .t3-sidebar-right.col-sm-4,
  .t3-sidebar-right.col-md-3,
  .t3-sidebar-right.col-sm-4.col-md-3 {
    float: right !important;
    clear: none !important;
  }
}

/* Sidebar derecha (md+): forzar 75% contenido / 25% sidebar */
@media (min-width: 992px) {
  body.has-right-sidebar-md #t3-content.col-md-9 {
    width: 75% !important;
  }

  body.has-right-sidebar-md .t3-sidebar.t3-sidebar-right.col-md-3 {
    width: 25% !important;
  }
}

/* Selector "Programas de ayuda" (por año): estilo tipo tarjeta */
#t3-content .item-page .article-content p a[href*="programas-de-ayuda-"],
#t3-content .item-page .article-content p a[href*="programes-d-ajuda-"]{
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 10px 14px !important;
  margin: 0 !important;
    background: #f8fafc !important;
    border: 1px solid #d7dee9 !important;
  border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  text-decoration: none !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
  flex-wrap: nowrap !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
}

/* IMPORTANT: poner los "p" (cada enlace) en fila horizontal */
#t3-content .item-page .article-content p:has(a[href*="programas-de-ayuda-"]),
#t3-content .item-page .article-content p:has(a[href*="programes-d-ajuda-"]) {
  display: inline-block !important;
  width: auto !important;
  margin: 4px 4px 0 0 !important;
  vertical-align: top !important;
}

#t3-content .item-page .article-content p a[href*="programas-de-ayuda-"] span,
#t3-content .item-page .article-content p a[href*="programas-de-ayuda-"] strong,
#t3-content .item-page .article-content p a[href*="programes-d-ajuda-"] span,
#t3-content .item-page .article-content p a[href*="programes-d-ajuda-"] strong{
    color: #1f2937 !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
}

#t3-content .item-page .article-content p a[href*="programas-de-ayuda-"] img,
#t3-content .item-page .article-content p a[href*="programes-d-ajuda-"] img{
  display: none !important; /* usamos flecha con ::before para que todos queden iguales */
}

#t3-content .item-page .article-content p a[href*="programas-de-ayuda-"]:hover,
#t3-content .item-page .article-content p a[href*="programes-d-ajuda-"]:hover{
    background: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
}

/* Enlaces “icono” (solo flecha) de 2019/2018 en castellano: rellenar texto si no hay normalización JS */
#t3-content .item-page .article-content:not([data-ivace-years-nav-normalized]) p a[href*="programas-de-ayuda-2019"]:not([style*="display: none"]) {
  justify-content: flex-start !important;
  display: flex !important;
}

#t3-content .item-page .article-content:not([data-ivace-years-nav-normalized]) p a[href*="programas-de-ayuda-2018"] {
  justify-content: flex-start !important;
  display: none !important;
}

#t3-content .item-page .article-content:not([data-ivace-years-nav-normalized]) p a[href*="programas-de-ayuda-2019"]:not([style*="display: none"])::after {
  /* content: "Programas de ayuda 2019" !important; */
  color: #1f2937 !important;
  font-weight: 600 !important;
  flex: 1 1 auto !important;
  overflow-wrap: anywhere !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
}

#t3-content .item-page .article-content:not([data-ivace-years-nav-normalized]) p a[href*="programas-de-ayuda-2018"]::after {
  content: "" !important;
}

/* Valenciano: ocultar restos legacy en castellano (iconos 2019 duplicados) antes de normalizar */
body.lang-val #t3-content .item-page .article-content:not([data-ivace-years-nav-normalized]) p a[href*="programas-de-ayuda-"]:not([href*="programes-d-ajuda-"]) {
  display: none !important;
}

#t3-content .item-page .article-content p a[href*="programas-de-ayuda-"] span,
#t3-content .item-page .article-content p a[href*="programas-de-ayuda-"] strong,
#t3-content .item-page .article-content p a[href*="programes-d-ajuda-"] span,
#t3-content .item-page .article-content p a[href*="programes-d-ajuda-"] strong{
  flex: 1 1 auto !important;
    color: #1f2937 !important;
  overflow-wrap: anywhere;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
}

/* Ocultar flechita HTML cuando el enlace está anidado (p.ej. años 2021/2020/2019/2018) */
#t3-content .item-page .article-content p:has(a[href*="programas-de-ayuda-"]) img[alt="flechab2"],
#t3-content .item-page .article-content p:has(a[href*="programes-d-ajuda-"]) img[alt="flechab2"]{
  display: none !important;
}

/* Programas de ayuda (cualquier año): misma estructura visual */
body[class*="page-programas-ayuda-"] #t3-content .item-page article {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body[class*="page-programas-ayuda-"] #t3-content .item-page .article-header .module-title,
body[class*="page-programas-ayuda-"] #t3-content .item-page .article-header h1.module-title {
    display: none !important;
}

/* Fallback si no llega clase body: detectar página por enlace del H1 */
#t3-content .item-page:has(.article-header a[href*="programas-de-ayuda-"]) article,
#t3-content .item-page:has(.article-header a[href*="programes-d-ajuda-"]) article {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#t3-content .item-page:has(.article-header a[href*="programas-de-ayuda-"]) .article-header .module-title,
#t3-content .item-page:has(.article-header a[href*="programas-de-ayuda-"]) .article-header h1.module-title,
#t3-content .item-page:has(.article-header a[href*="programes-d-ajuda-"]) .article-header .module-title,
#t3-content .item-page:has(.article-header a[href*="programes-d-ajuda-"]) .article-header h1.module-title {
    display: none !important;
}

/* Programas de ayuda: bloque centrado y más ancho */
body[class*="page-programas-ayuda-"] #t3-content > .item-page,
body[class*="page-programas-ayuda-"] #t3-content > .content-top-wrapper,
#t3-content > .item-page:has(.article-header a[href*="programas-de-ayuda-"]),
#t3-content > .item-page:has(.article-header a[href*="programes-d-ajuda-"]),
#t3-content > .item-page:has(.article-header a[href*="programes-d-ajuda-"]) + .content-top-wrapper,
#t3-content > .item-page:has(.article-header a[href*="programas-de-ayuda-"]) + .content-top-wrapper,
#t3-content > .content-top-wrapper:has([data-ivace-mod-slug*="ayudas-anualidad-"]),
#t3-content > .content-top-wrapper:has([data-ivace-mod-slug*="ajudes-anualitat-"]) {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: min(1600px, calc(100% - 32px)) !important;
    box-sizing: border-box !important;
}

body[class*="page-programas-ayuda-"] #t3-content .item-page article,
#t3-content .item-page:has(.article-header a[href*="programas-de-ayuda-"]) article,
#t3-content .item-page:has(.article-header a[href*="programes-d-ajuda-"]) article {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

body[class*="page-programas-ayuda-"] #t3-content .item-page .article-aside,
#t3-content .item-page:has(.article-header a[href*="programas-de-ayuda-"]) .article-aside {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 767px) {
    body[class*="page-programas-ayuda-"] #t3-content > .item-page,
    body[class*="page-programas-ayuda-"] #t3-content > .content-top-wrapper,
    #t3-content > .item-page:has(.article-header a[href*="programas-de-ayuda-"]),
    #t3-content > .item-page:has(.article-header a[href*="programes-d-ajuda-"]),
    #t3-content > .item-page:has(.article-header a[href*="programes-d-ajuda-"]) + .content-top-wrapper,
    #t3-content > .item-page:has(.article-header a[href*="programas-de-ayuda-"]) + .content-top-wrapper,
    #t3-content > .content-top-wrapper:has([data-ivace-mod-slug*="ayudas-anualidad-"]),
    #t3-content > .content-top-wrapper:has([data-ivace-mod-slug*="ajudes-anualitat-"]) {
        max-width: 100% !important;
    }
}

/* Menú móvil: no marcar visualmente el activo */
@media (max-width: 767px) {
  #t3-mainnav .t3-navbar-collapse.collapse.in .navbar-nav > li > a,
  #t3-mainnav .t3-navbar-collapse.collapse.in .navbar-nav > li > a:hover,
  #t3-mainnav .t3-navbar-collapse.collapse.in .navbar-nav > li > a:focus {
    text-decoration: none !important;
  }

  #t3-mainnav .t3-navbar-collapse.collapse.in .navbar-nav > li.current.active > a,
  #t3-mainnav .t3-navbar-collapse.collapse.in .navbar-nav > li.active > a {
    text-decoration: none !important;
        background: #fff !important;
    border-bottom: 1px solid #e8e8e8 !important;
        border-radius: 0 !important;
        color: #0c489b !important;
  }

  /* Fuerte override: quitar subrayado SOLO en el enlace activo/current */
  #t3-mainnav .navbar-nav > li.current > a,
  #t3-mainnav .navbar-nav > li.active > a,
  #t3-mainnav .navbar-nav > li.current.active > a,
  #t3-mainnav .navbar-nav > li.current > a:hover,
  #t3-mainnav .navbar-nav > li.active > a:hover,
  #t3-mainnav .navbar-nav > li.current.active > a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
  }

  /* Override final: en móvil, quitar subrayado a TODOS los enlaces del menú */
  #t3-mainnav .navbar-nav > li > a,
  #t3-mainnav .navbar-nav > li > a:hover,
  #t3-mainnav .navbar-nav > li > a:focus,
  #t3-mainnav .navbar-nav > li > a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  /* Por si el subrayado viene del span/em */
  #t3-mainnav .navbar-nav > li > a > span {
    text-decoration: none !important;
  }
}

/* Servicio de Información (ES + VAL) */
#t3-content article:has(.article-header a[href*="informacion-y-consultas"]),
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) {
  margin-left: 80px !important;
  margin-right: 80px !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content > p:empty,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content > p:empty,
#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content > p:has(span[style*="z-index: 8675309"]),
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content > p:has(span[style*="z-index: 8675309"]),
#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content span[style*="z-index: 8675309"],
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content span[style*="z-index: 8675309"] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content > p,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content > p {
  margin: 0 0 14px 0 !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content > p:has(img[alt="33049942"]),
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content > p:has(img[src*="33049942"]) {
  margin: 8px auto 18px auto !important;
  padding: 0 !important;
  text-align: center !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content > p:has(img[alt="33049942"]) img,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content > p:has(img[src*="33049942"]) img {
  float: none !important;
  display: block !important;
  width: min(100%, 350px) !important;
  max-width: 350px !important;
  height: auto !important;
  margin: 0 auto !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content table,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 12px auto !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content table td,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content table td {
  width: auto !important;
  height: auto !important;
  padding: 6px 8px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content table tr:first-child td,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content table tr:first-child td {
  padding: 10px 12px !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content table img,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content table img {
  float: none !important;
  display: inline-block !important;
  width: 13px !important;
  max-width: 13px !important;
  height: auto !important;
  margin: 0 6px 0 0 !important;
  vertical-align: middle !important;
}

#t3-content article:has(.article-header a[href*="informacion-y-consultas"]) .article-content table td:first-child,
#t3-content article:has(.article-header a[href*="informacio-i-consultes"]) .article-content table td:first-child {
  width: 36px !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  #t3-content article:has(.article-header a[href*="informacion-y-consultas"]),
  #t3-content article:has(.article-header a[href*="informacio-i-consultes"]) {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* Portal de transparencia (ES + VAL) */
#t3-content article:has(.article-header a[href*="/portal-de-transparencia"]),
#t3-content article:has(.article-header a[href*="/val/portal-d-transparencia"]),
#t3-content article:has(.article-content img[src*="transparencia/portal"]),
body.page-portal-transparencia #t3-content article {
  margin-left: 80px !important;
  margin-right: 80px !important;
}

#t3-content article:has(.article-header a[href*="/portal-de-transparencia"]) .article-aside,
#t3-content article:has(.article-header a[href*="/val/portal-d-transparencia"]) .article-aside,
#t3-content article:has(.article-content img[src*="transparencia/portal"]) .article-aside,
body.page-portal-transparencia .article-aside {
  display: none !important;
}

/* Contenedor: rejilla como el diseño de referencia (2:1:1 + fila inferior 50/50) */
#t3-content .article-content .ivace-portal-transparencia,
#t3-content .article-content > div[style*="margin-left: 15%"],
#t3-content .article-content > div[style*="margin-right: 15%"],
body.page-portal-transparencia .article-content > div[style*="margin-left"],
body.page-portal-transparencia .article-content > div[style*="margin-right"] {
  --ivace-portal-unit: 228px;
  --ivace-portal-gap: 12px;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: calc(var(--ivace-portal-unit) * 4 + var(--ivace-portal-gap) * 2) !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: calc(var(--ivace-portal-unit) * 2) var(--ivace-portal-unit) var(--ivace-portal-unit) !important;
  grid-template-rows: var(--ivace-portal-unit) var(--ivace-portal-unit) auto !important;
  gap: var(--ivace-portal-gap) !important;
  align-items: stretch !important;
  justify-content: center !important;
  justify-items: stretch !important;
}

#t3-content .article-content .ivace-portal-transparencia > p:not(:has(img)),
#t3-content .article-content > div[style*="15%"] > p:not(:has(img)),
body.page-portal-transparencia .article-content > div > p:not(:has(img)) {
  display: none !important;
}

#t3-content .article-content .ivace-portal-transparencia span[style*="z-index: 8675309"],
#t3-content .article-content > div[style*="15%"] span[style*="z-index: 8675309"],
body.page-portal-transparencia .article-content span[style*="z-index: 8675309"] {
  display: none !important;
}

#t3-content .article-content .ivace-portal-transparencia > p,
#t3-content .article-content > div[style*="15%"] > p,
body.page-portal-transparencia .article-content > div > p {
  margin: 0 !important;
  padding: 0 !important;
}

#t3-content .article-content .ivace-portal-transparencia a,
#t3-content .article-content > div[style*="15%"] a,
body.page-portal-transparencia .article-content a {
  display: block !important;
  line-height: 0 !important;
  transition: opacity 0.2s ease !important;
}

#t3-content .article-content .ivace-portal-transparencia a:hover,
#t3-content .article-content > div[style*="15%"] a:hover {
  opacity: 0.9 !important;
}

/* Celdas: ocupan toda su zona de la rejilla */
#t3-content .article-content .ivace-portal-transparencia > p,
#t3-content .article-content > div[style*="15%"] > p,
body.page-portal-transparencia .article-content > div > p:has(img) {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  display: block !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
}

#t3-content .article-content .ivace-portal-transparencia > p a,
#t3-content .article-content > div[style*="15%"] > p a,
body.page-portal-transparencia .article-content > div > p a {
  width: 100% !important;
  height: 100% !important;
}

#t3-content .article-content .ivace-portal-transparencia img,
#t3-content .article-content > div[style*="15%"] img,
body.page-portal-transparencia .article-content > div img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Posición por imagen (no nth-child: los <p> vacíos de Joomla desplazan el orden) */
#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="portal.png"]),
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="portal.png"]),
#t3-content .article-content .ivace-portal-transparencia > p:has(> img:only-child):not(:has(a)),
#t3-content .article-content > div[style*="15%"] > p:has(> img:only-child):not(:has(a)) {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
}

#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="corporativa"]):not(:has(img[src*="ciudadanos"])),
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="corporativa"]):not(:has(img[src*="ciudadanos"])) {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
}

#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="Datosabiertos"]),
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="Datosabiertos"]),
#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="Dadesobertes"]),
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="Dadesobertes"]) {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="accesoinformacionpublica"]),
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="accesoinformacionpublica"]),
#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="accesinformaciopublica"]),
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="accesinformaciopublica"]) {
  grid-column: 3 !important;
  grid-row: 2 !important;
}

/* Fila inferior: ancho completo 50% + 50%, imágenes a 100% del hueco */
#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="ciudadanos"]),
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="ciudadanos"]) {
  grid-column: 1 !important;
  grid-row: 3 !important;
  width: 100% !important;
  height: auto !important;
  align-self: stretch !important;
}

#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="Recursos"]),
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="Recursos"]) {
  grid-column: 2 / 4 !important;
  grid-row: 3 !important;
  width: 100% !important;
  height: auto !important;
  align-self: stretch !important;
}

#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="ciudadanos"]) a,
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="ciudadanos"]) a,
#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="Recursos"]) a,
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="Recursos"]) a {
  width: 100% !important;
  height: auto !important;
}

#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="ciudadanos"]) img,
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="ciudadanos"]) img,
#t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="Recursos"]) img,
#t3-content .article-content > div[style*="15%"] > p:has(img[src*="Recursos"]) img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: unset !important;
}

@media (max-width: 767px) {
  #t3-content .article-content .ivace-portal-transparencia,
  #t3-content .article-content > div[style*="15%"] {
    --ivace-portal-unit: min(228px, 22vw);
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    max-width: 100% !important;
  }

  #t3-content .article-content .ivace-portal-transparencia > p,
  #t3-content .article-content > div[style*="15%"] > p {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  #t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="portal.png"]),
  #t3-content .article-content > div[style*="15%"] > p:has(img[src*="portal.png"]) {
    grid-column: 1 / -1 !important;
  }

  #t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="ciudadanos"]),
  #t3-content .article-content > div[style*="15%"] > p:has(img[src*="ciudadanos"]),
  #t3-content .article-content .ivace-portal-transparencia > p:has(img[src*="Recursos"]),
  #t3-content .article-content > div[style*="15%"] > p:has(img[src*="Recursos"]) {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/*
 * Interiores: mantener header/topline/footer globales, pero sin modernizacion
 * de tarjetas/modulos y sin miniaturas en listados.
 * Excepcion: solo modulos Actualidad / Actualitat (por slug/clase, no por URL de enlace).
 */
body:not(.com_blankcomponent) .t3-module:not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]):not(.ivace-mod--actualidad):not(.ivace-mod--actualitat) .mod-articles-category-image,
body:not(.com_blankcomponent) .t3-module:not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]):not(.ivace-mod--actualidad):not(.ivace-mod--actualitat) .mod-articles-category-image a,
body:not(.com_blankcomponent) .t3-module:not([data-ivace-mod-slug*="actualidad"]):not([data-ivace-mod-slug*="actualitat"]):not(.ivace-mod--actualidad):not(.ivace-mod--actualitat) .mod-articles-category-image img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

body:not(.com_blankcomponent) .t3-content article {
    background: transparent !important;
    border: 0 !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body:not(.com_blankcomponent) .t3-content article > .article-header,
body:not(.com_blankcomponent) .t3-content article > .article-aside,
body:not(.com_blankcomponent) .t3-content article > .article-intro,
body:not(.com_blankcomponent) .t3-content article > .article-content {
    background: transparent !important;
}

body:not(.com_blankcomponent) #t3-content > .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > article:has(+ .content-top-wrapper) + .content-top-wrapper {
    align-self: stretch !important;
    width: 100% !important;
    max-width: min(1600px, calc(100% - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:has(.mod-links-card),
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper:has(.module-articulos_home),
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:has(.mod-links-card),
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper:has(.module-articulos_home),
body:not(.com_blankcomponent) #t3-content > article:has(+ .content-top-wrapper) + .content-top-wrapper {
    margin-top: 24px !important;
    padding-top: 0 !important;
}

@media (max-width: 991px) {
    body:not(.com_blankcomponent) #t3-content > .content-top-wrapper,
    body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper,
    body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper,
    body:not(.com_blankcomponent) #t3-content > article:has(+ .content-top-wrapper) + .content-top-wrapper {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}

@media (max-width: 767px) {
  #t3-content article:has(.article-header a[href*="/portal-de-transparencia"]),
  #t3-content article:has(.article-header a[href*="/val/portal-d-transparencia"]),
  #t3-content article:has(.article-content img[src*="transparencia/portal"]),
  body.page-portal-transparencia #t3-content article {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

div.search {
    overflow: visible !important;
  }

.awesomplete > ul[role="listbox"] {
    overflow-y: auto !important; /* este puede quedarse con auto */
  }

body.ivace-relayout-active #t3-header .head-search {
  min-height: 0 !important;
  padding: 0 !important;
}

/* Interiores: mantener módulos expandidos lateralmente como referencia anterior */
body:not(.com_blankcomponent) #t3-content > .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > article:has(+ .content-top-wrapper) + .content-top-wrapper {
    align-self: stretch !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    body:not(.com_blankcomponent) #t3-content > .content-top-wrapper,
    body:not(.com_blankcomponent) #t3-content .com-content-category-blog:has(article) ~ .content-top-wrapper,
    body:not(.com_blankcomponent) #t3-content > .com-content-category-blog:has(article) + .content-top-wrapper,
    body:not(.com_blankcomponent) #t3-content > article:has(+ .content-top-wrapper) + .content-top-wrapper {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}

.ivace-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 18px 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-right: 1px solid rgba(255,255,255,0.7) !important;
    border-bottom: 1px solid rgba(255,255,255,0.7) !important;
    border-top: none !important;
    border-left: none !important;
    transition: background-color 0.2s ease !important;
    background-color: transparent !important;
    box-sizing: border-box !important;
  }

.ivace-item:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }

.ivace-item:nth-child(4n)  { border-right: none !important; }

.ivace-item:nth-child(n+5) { border-bottom: none !important; }

.ivace-icon svg {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

.ivace-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

.ivace-item:hover .ivace-label {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
  }

.fa-angle-down::before { content: "\f107"; }

/* Configuramos cada elemento para que se alinee al principio */
.ivace-item {
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-decoration: none !important;
}

/* Nos aseguramos de que la etiqueta en sí también respete la alineación */
.ivace-label {
    text-align: left !important;
    display: block !important; 
}

/* Menú principal: flecha hacia abajo a la derecha del texto
   (excepto EUROPA OPORTUNIDADES, data-id=100513) */
#t3-mainnav .t3-megamenu .nav.navbar-nav.level0 > li.dropdown:not([data-id="100513"]) > a > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#t3-mainnav .t3-megamenu .nav.navbar-nav.level0 > li.dropdown:not([data-id="100513"]) > a > span::after {
    content: "\f078";
    font-family: "FontAwesome";
    font-size: 11px;
    line-height: 1;
    color: #005eb8;
    font-weight: 400;
    display: inline-block;
    transform: translateY(1px);
}

.mod-finder__search.input-group {
  display: flex;
  width: 100%;
}

.mod-finder__search .awesomplete {
  flex: 1;
  display: flex;
}

/* Items ocultos en grid de áreas (solo móvil) hasta pulsar "Ver más" */
@media (max-width: 767px) {
    .ivace-grid .ivace-item.ivace-item--hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .ivace-grid .ivace-item.ivace-item--hidden-mobile {
        display: flex !important;
    }
}

.mod-finder__search .awesomplete input {
  flex: 1;
  width: 100%;
}

/* Weblinks internacional: ocultos fuera de portada; visibles en rejilla de Internacionalización */
body:not(.page-is-home):not(.itemid-100152) .t3-module:has(ul.weblinks-internacional.taronja) {
    display: none !important;
}

body:not(.page-is-home) #t3-content .content-top-wrapper:has(.module-internacional) > .t3-module:has(ul.weblinks-internacional),
body:not(.page-is-home) .content-top-wrapper:has(.module-internacional) > .module-internacional.taronja {
    display: flex !important;
    visibility: visible !important;
}

/* Ocultar módulos laterales indicados */
#Mod2241,
#Mod2242,

#Mod912,
#Mod353 {
    display: none !important;
}

/* Flecha y texto más juntos en tablas de enlaces antiguos */
td > a > img[src*="flechitahorizontal.jpg"] {
    margin-right: 2px !important;
    margin-left: 0 !important;
    float: none !important;
    vertical-align: middle !important;
}

td:has(> a > img[src*="flechitahorizontal.jpg"]) {
    width: auto !important;
    padding-right: 0 !important;
}

td:has(> a > img[src*="flechitahorizontal.jpg"]) + td {
    padding-left: 0 !important;
}

/* Valenciano: reordenar slider → 8 áreas → actualitat (spotlight, mateix flux que ES) */
body.lang-val .col-lg-12.home-slider-col,
body.lang-val .t3-spotlight-1 > .col-lg-12.col-md-12.col-sm-12.col-xs-12 {
    display: flex !important;
    flex-direction: column !important;
}

body.lang-val .col-lg-12.home-slider-col > *,
body.lang-val .t3-spotlight-1 > .col-lg-12.col-md-12.col-sm-12.col-xs-12 > * {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

/* Blog de 2 columnas: quitar márgenes left y right de los artículos */
.com-content-category-blog .item {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.com-content-category-blog .t3-content article {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Europa incentivos/ayudas (blog-info): sin márgenes laterales en artículos */
#t3-content .com-content-category-blog.blog-info .items-row.row,
#t3-content .com-content-category-blog.blog-info .items-row.row-flex {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#t3-content .com-content-category-blog.blog-info .items-row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#t3-content .com-content-category-blog.blog-info .item,
#t3-content .com-content-category-blog.blog-info .item article {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Excepción: no aplicar la "tarjeta global" .t3-content article en blog-info (salvo noticias) */
#t3-content .com-content-category-blog.blog-info:not(:has(.category-name a[href*="/noticias/"])):not(:has(.category-name a[href*="/val/noticies/"])):not(:has(.article-header a[href*="/noticias/"])):not(:has(.article-header a[href*="/val/noticies/"])) article {
    background: transparent !important;
    border: 0 !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Normalización global: páginas de Programas de ayuda (botones y tabla) */
body[class*="page-programas-ayuda-"] #t3-content .item-page .article-content {
    text-align: center !important;
}

/* Fallback: centrar botones también si no existe clase body específica */
#t3-content .item-page:has(.article-header a[href*="programas-de-ayuda-"]) .article-content,
#t3-content .item-page:has(.article-header a[href*="programes-d-ajuda-"]) .article-content {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#t3-content .item-page .article-content p:has(a[href*="programas-de-ayuda-"]),
#t3-content .item-page .article-content p:has(a[href*="programes-d-ajuda-"]) {
    display: inline-flex !important;
    margin: 4px 6px !important;
    margin-bottom: 50px !important;
    vertical-align: top !important;
}

#t3-content .item-page .article-content p:has(a[href*="programas-de-ayuda-"]) > a:has(> img):not(:has(> span)):not(:has(> strong)),
#t3-content .item-page .article-content p:has(a[href*="programes-d-ajuda-"]) > a:has(> img):not(:has(> span)):not(:has(> strong)) {
    display: none !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos),
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table:has(td.cabeceratablaPlazos) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    background: #fff !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
    text-align: left !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) tbody > tr:nth-child(2),
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table tbody > tr:nth-child(2) {
    display: none !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td {
    padding: 10px 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e6edf5 !important;
    color: #2f3b4a !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td.cabeceratablaPlazos,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td.cabeceratablaPlazos {
    background: #0b5c6a !important;
    color: #fff !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td.cabeceratablaPlazos,
#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) .cabeceratablaPlazos,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td.cabeceratablaPlazos,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table .cabeceratablaPlazos {
    background-color: #0b5c6a !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td.cabeceratabla-programas,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td.cabeceratabla-programas {
    background: linear-gradient(180deg, #5f6368 0%, #4b4f55 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td.cabeceratabla-programas span,
#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td.cabeceratabla-programas strong,
#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td.cabeceratablaPlazos span,
#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td.cabeceratablaPlazos strong,
#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) td.cabeceratablaPlazos a,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td.cabeceratabla-programas span,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td.cabeceratabla-programas strong,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td.cabeceratablaPlazos span,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td.cabeceratablaPlazos strong,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table td.cabeceratablaPlazos a {
    color: #fff !important;
    font-size: inherit !important;
    background-color: transparent !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) h4,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table h4 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) a,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table a {
    color: #1f3b5b !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

#t3-content .item-page .article-content table:has(td.cabeceratablaPlazos) a:hover,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] table.ivace-tabla-programas-table a:hover {
    text-decoration: underline !important;
}

/* Cabeceras legacy (.cabeceratablaPlazos global) no pisan la tabla de ayudas vigentes */
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] .cabeceratablaPlazos,
#t3-content [data-ivace-mod-slug="ayudas-vigentes"] .cabeceratablaPlazos span {
    background-color: #0b5c6a !important;
    color: #fff !important;
}

/* Ocultar solo el primer icono duplicado de Facebook IVACE en valenciano */
body.lang-val .customlogo_generalitat_header p > a[href="https://www.facebook.com/pages/GVA-IVACE/167409449948506"]:nth-of-type(2) {
    display: none !important;
}

/* Intro de artículos: imagen centrada y responsive (excepto internacionalización) */
body.com_blankcomponent #t3-content :is(.item-page, article):not(:has(.article-header a[href*="/servicios/internacionalizacion"])):not(:has(.article-header a[href*="/val/serveis/internacionalizacio/"])) .article-intro.ai-has-intro-img img,
body.com_blankcomponent #t3-content :is(.item-page, article):not(:has(.article-header a[href*="/servicios/internacionalizacion"])):not(:has(.article-header a[href*="/val/serveis/internacionalizacio/"])) .article-intro img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Vehículos: iconos de contacto en fila (no forzar block en todos los img) */
#t3-content .item-page .article-intro.ai-has-vehiculos.ai-has-intro-img > p:has(img[alt="tel gral vehiculos"]) img,
#t3-content .item-page .article-intro.ai-has-vehiculos.ai-has-intro-img > p:has(img[alt="tel gral vehiculos"]) joomla-hidden-mail img,
#t3-content .item-page .article-intro.ai-has-vehiculos.ai-has-intro-img > p:has(img[alt="location"]) img[alt="location"] {
    display: inline-block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Comercialización de parcelas (blog): alineado con migas, sin huecos ni floats rotos */
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro img,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro img {
    margin: 0 !important;
}

#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro > div:not(:has(img)):not(:has(.t3-module)):not(:has(ul)):not(:has(span[style*="323948"])):not([style*="width: 100%"]),
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro > div:not(:has(img)):not(:has(.t3-module)):not(:has(ul)):not(:has(span[style*="323948"])):not([style*="width: 100%"]) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro:has(> .t3-module.col-sm-3) > div:has(img[src*="bannerart-cs"]),
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro:has(> .t3-module.col-sm-3) > div:has(img[src*="bannerart-cs"]),
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro:has(> .t3-module.col-sm-3) > div:has(span[style*="323948"]),
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro:has(> .t3-module.col-sm-3) > div:has(span[style*="323948"]),
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro:has(> .t3-module.col-sm-3) > div[style*="width: 100%"],
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro:has(> .t3-module.col-sm-3) > div[style*="width: 100%"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro > .t3-module.col-sm-3,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro > .t3-module.col-sm-3 {
    float: none !important;
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro > .t3-module.col-sm-3 > p:empty,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro > .t3-module.col-sm-3 > p:empty,
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro > .t3-module.col-sm-3 > p[style*="margin: 0px 5px"],
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro > .t3-module.col-sm-3 > p[style*="margin: 0px 5px"],
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro > p:not(:has(img)):not(:has(a)):not(:has(strong)):not(:has(span)):not(:has(ul)),
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro > p:not(:has(img)):not(:has(a)):not(:has(strong)):not(:has(span)):not(:has(ul)) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

@media (max-width: 991px) {
    #t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro > .t3-module.col-sm-3,
    #t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro > .t3-module.col-sm-3 {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 767px) {
    #t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/comercializacion-parcelas"]) .article-intro > .t3-module.col-sm-3,
    #t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/comercialitzacio-parceles"]) .article-intro > .t3-module.col-sm-3 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Parques en comercialización: mover panel de detalle debajo del plano cuando no cabe */
@media (max-width: 1400px) {
    #t3-content .item-page .article-content form#detail_park #mapa-parque,
    #t3-content .item-page .article-content form#detail_park #mapa-parque tbody,
    #t3-content .item-page .article-content form#detail_park #mapa-parque tr {
        display: block !important;
        width: 100% !important;
    }

    #t3-content .item-page .article-content form#detail_park #mapa-parque td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #t3-content .item-page .article-content form#detail_park #mapa-parque .img-parque img {
        max-width: 100% !important;
        height: auto !important;
    }

    #t3-content .item-page .article-content form#detail_park #info-park-cell {
        margin-top: 12px !important;
    }
}

/* Parques en comercialización: escritorio con mapa grande + panel lateral */
@media (min-width: 1401px) {
    /* Quitar cualquier “tope” de ancho del artículo para que el mapa crezca */
    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content {
        max-width: none !important;
        width: 100% !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque {
        display: table !important;
        width: 100% !important;
        max-width: none !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque tbody,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque tbody {
        display: table-row-group !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque tr,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque tr {
        display: table-row !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque td,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque td {
        display: table-cell !important;
        vertical-align: top !important;
        box-sizing: border-box !important;
    }

    /* Forzar que la celda de info (izquierda) se encoja
       y que el plano/parcelas (derecha) se quede el resto */
    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque td.texto_print,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque td.texto_print {
        width: 1% !important;
        padding: 6px 10px 6px 0 !important; /* menos padding a la derecha */
        white-space: nowrap !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque td:not(.texto_print),
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque td:not(.texto_print) {
        width: auto !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque .img-parque,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque .img-parque {
        width: 90% !important;
        padding-right: 16px !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque .img-parque img,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque .img-parque img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #info-park-cell,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #info-park-cell {
        width: 10% !important;
        margin-top: 0 !important;
        padding: 10px !important;
        border: 1px solid #dbe4f0 !important;
        border-radius: 8px !important;
        background: #f8fbff !important;
    }
}

/* Parques en comercialización: detalle debajo del plano en tamaños menores */
@media (max-width: 1400px) {
    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque,
    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque tbody,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque tbody,
    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque tr,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque tr {
        display: block !important;
        width: 100% !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #mapa-parque td,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #mapa-parque td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #info-park-cell,
    #t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #info-park-cell {
        margin-top: 14px !important;
        padding: 12px !important;
        border: 1px solid #dbe4f0 !important;
        border-radius: 8px !important;
        background: #f8fbff !important;
    }
}

#t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #parcela-message,
#t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #parcela-message {
    margin: 0 0 8px 0 !important;
}

#t3-content .item-page:has(.article-header a[href*="/servicios/comercializacion-parcelas/"]) .article-content form#detail_park #data-parcela > div[style*="display: block"],
#t3-content .item-page:has(.article-header a[href*="/val/serveis/comercialitzacio-parceles/"]) .article-content form#detail_park #data-parcela > div[style*="display: block"] {
    display: block !important;
    margin-top: 8px !important;
    padding: 10px !important;
    border: 1px solid #e2e8f3 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
}

/* Fuerza final escritorio: parcelario más grande */
@media (min-width: 1200px) {
    #t3-content form#detail_park #mapa-parque {
        width: 100% !important;
        max-width: none !important;
    }

    #t3-content form#detail_park #mapa-parque td.imagen_print,
    #t3-content form#detail_park #mapa-parque td.img-parque,
    #t3-content form#detail_park #mapa-parque .img-parque {
        width: 78% !important;
    }

    #t3-content form#detail_park #mapa-parque td#info-park-cell {
        width: 22% !important;
    }

    /* Override directo del viejo width:470px de template.css */
    #t3-content form#detail_park #mapa-parque .img-parque img {
        width: 620px !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Override fuerte: en blog-info no dejar márgenes/paddings laterales en artículos */
#t3-content .com-content-category-blog.blog-info .item > article,
#t3-content .com-content-category-blog.blog-info article {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-inline: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Comunidades energéticas: dar más aire lateral a cada artículo */
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/servicios/comunidades-energeticas/"]) .item > article,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/servicios/comunidades-energeticas/"]) article,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/val/serveis/comunitats-energetiques/"]) .item > article,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/val/serveis/comunitats-energetiques/"]) article {
    margin-left: 84px !important;
    margin-right: 84px !important;
    margin-inline: 84px !important;
    width: auto !important;
}

#t3-content .com-content-category-blog.blog-info .items-row.row.row-flex > .col-12.col-sm-6.col-md-6 {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

#t3-content .com-content-category-blog.blog-info .items-row.row.row-flex .item.column-1,
#t3-content .com-content-category-blog.blog-info .items-row.row.row-flex .item.column-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Blog-info: cajas con misma altura en fila de 2 columnas */
#t3-content .com-content-category-blog.blog-info .items-row.row.row-flex {
    display: flex !important;
    flex-wrap: wrap !important;
}

#t3-content .com-content-category-blog.blog-info .items-row.row.row-flex > .col-12.col-sm-6.col-md-6 {
    display: flex !important;
}

#t3-content .com-content-category-blog.blog-info .items-row.row.row-flex > .col-12.col-sm-6.col-md-6 > .item {
    display: flex !important;
    width: 100% !important;
}

/* Blog-info: recuperar diseño tipo tarjeta, pero con margen lateral */
#t3-content .com-content-category-blog.blog-info 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: 14px 34px !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    margin-left: 18px !important;
    margin-right: 18px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Blog-info: padding interno real del contenido */
#t3-content .com-content-category-blog.blog-info article > .article-header,
#t3-content .com-content-category-blog.blog-info article > .article-aside,
#t3-content .com-content-category-blog.blog-info article > .article-intro,
#t3-content .com-content-category-blog.blog-info article > .article-content {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    #t3-content .com-content-category-blog.blog-info article {
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

/* Ayudas y servicios (blog / blog-info): mismo ancho que migas de pan en columna completa */
#t3-content > .com-content-category-blog:has(.category-name a[href*="/ayudas/"]),
#t3-content > .com-content-category-blog:has(.category-name a[href*="/servicios/"]),
#t3-content > .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/"]),
#t3-content > .com-content-category-blog.blog-info:has(.article-header a[href*="/servicios/"]),
#t3-content > .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]),
#t3-content > .com-content-category-blog:has(.category-name a[href*="/val/serveis/"]),
#t3-content > .com-content-category-blog.blog-info:has(.article-header a[href*="/val/ajudes/"]) {
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .items-leading,
#t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .items-leading .leading,
#t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .items-row,
#t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .items-row > [class*="col-"],
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) .items-leading,
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) .items-leading .leading,
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) .items-row,
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) .items-row > [class*="col-"],
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) .items-leading,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) .items-leading .leading,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) .items-row,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) .items-row > [class*="col-"],
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/"]) .items-leading,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/"]) .items-row,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/"]) .items-row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

#t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .items-leading .leading article,
#t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) .items-row .item > article,
#t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) article,
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) .items-leading .leading article,
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) .items-row .item > article,
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) article,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) article,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/"]) article {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-inline: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

/* Tablas dentro del artículo (avisos, avisos técnicos, etc.) */
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/"]) .article-intro table,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/"]) .article-intro table td,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/val/ajudes/"]) .article-intro table,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/val/ajudes/"]) .article-intro table td {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Avisos (ES / VAL): quitar columnas espaciadoras (10% + última vacía) */
:is(
    #t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/val/ajudes/avisos"]),
    #t3-content .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content .item-page:has(.article-header a[href*="/val/ajudes/avisos"]),
    #t3-content article:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content article:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

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

:is(
    #t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/val/ajudes/avisos"]),
    #t3-content .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content .item-page:has(.article-header a[href*="/val/ajudes/avisos"]),
    #t3-content article:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content article:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table td[style*="background-color: #f5f5f5"],
:is(
    #t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/val/ajudes/avisos"]),
    #t3-content .item-page:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content .item-page:has(.article-header a[href*="/val/ajudes/avisos"]),
    #t3-content article:has(.article-header a[href*="/ayudas/avisos"]),
    #t3-content article:has(.article-header a[href*="/val/ajudes/avisos"])
) :is(.article-intro, .article-content) table td[style*="background-color: #f5f5f5"] {
    width: 100% !important;
    max-width: 100% !important;
    display: table-cell !important;
}

#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/bono-social-termico-menu/"]) .article-intro.ai-has-bst table,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/bono-social-termico-menu/"]) .article-intro.ai-has-bst table td,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/bono-social-termico-menu/"]) .article-intro.ai-has-bst table,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/bono-social-termico-menu/"]) .article-intro.ai-has-bst table td {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Leer más: centrado y azul (como resto del portal) */
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/bono-social-termico-menu/"]) .readmore {
    clear: both !important;
    text-align: center !important;
    padding-top: 16px !important;
    font-style: normal !important;
}

#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/bono-social-termico-menu/"]) .readmore a.btn {
    display: inline-block !important;
    float: none !important;
    position: static !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    text-decoration: none !important;
    background-color: #0066cc !important;
    border: 1px solid #0066cc !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.25) !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/bono-social-termico-menu/"]) .readmore a.btn:hover,
#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/bono-social-termico-menu/"]) .readmore a.btn:focus {
    background-color: #004999 !important;
    border-color: #004999 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(0, 102, 204, 0.35) !important;
}

#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/bono-social-termico-menu/"]) .readmore a.btn:before {
    content: none !important;
    display: none !important;
}

#t3-content .com-content-category-blog.blog-info:has(.article-header a[href*="/ayudas/bono-social-termico-menu/"]) .readmore a.btn .icon-chevron-right {
    color: #ffffff !important;
}

/* Listado de noticias (categoría /noticias/ y subcategorías): imágenes uniformes a la izquierda + Leer más azul */
#t3-content > .com-content-category-blog:has(.article-header a[href*="/noticias/"]),
#t3-content > .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]),
#t3-content > .com-content-category-blog.blog-info:has(.article-header a[href*="/noticias/"]),
#t3-content > .com-content-category-blog.blog-info:has(.article-header a[href*="/val/noticies/"]) {
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 80px !important;
    padding-right: 80px !important; */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .items-leading,
#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .items-leading .leading,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .items-leading,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .items-leading .leading {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .items-leading .leading article,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .items-leading .leading article {
    --noticia-thumb-w: 300px;
    --noticia-thumb-h: 200px;
    --noticia-thumb-gap: 18px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    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: 14px 24px !important;
}

@media (min-width: 768px) {
    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .items-leading .leading article,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .items-leading .leading article {
        position: relative !important;
    }
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .article-intro,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .article-intro {
    overflow: hidden !important;
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .article-intro img,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .article-intro img {
    float: left !important;
    display: block !important;
    width: var(--noticia-thumb-w) !important;
    max-width: var(--noticia-thumb-w) !important;
    min-width: var(--noticia-thumb-w) !important;
    height: var(--noticia-thumb-h) !important;
    min-height: var(--noticia-thumb-h) !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 var(--noticia-thumb-gap) 12px 0 !important;
    border-radius: 8px !important;
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .readmore,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .readmore {
    clear: both !important;
    text-align: left !important;
    padding-top: 16px !important;
    font-style: normal !important;
}

@media (min-width: 768px) {
    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) article:has(.article-intro img) .readmore,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) article:has(.article-intro img) .readmore {
        clear: none !important;
        position: absolute !important;
        left: calc(24px + var(--noticia-thumb-w) + var(--noticia-thumb-gap)) !important;
        top: auto !important;
        bottom: 39px !important;
        width: calc(100% - 48px - var(--noticia-thumb-w) - var(--noticia-thumb-gap)) !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 0 !important;
        transform: none !important;
        z-index: 2 !important;
    }

    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) article:has(.article-intro img) .readmore a.btn,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) article:has(.article-intro img) .readmore a.btn {
        display: inline-flex !important;
        align-items: center !important;
    }

    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) article:has(.article-intro img) .article-intro,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) article:has(.article-intro img) .article-intro {
        min-height: var(--noticia-thumb-h) !important;
        padding-bottom: 8px !important;
        box-sizing: border-box !important;
    }

    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) article:has(.article-intro img) .article-intro > p,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) article:has(.article-intro img) .article-intro > p {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .readmore a.btn,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .readmore a.btn {
    display: inline-block !important;
    float: none !important;
    position: static !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    text-decoration: none !important;
    background-color: #0c489b !important;
    border: 1px solid #2a679e !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(49, 116, 175, 0.25) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .readmore a.btn:hover,
#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .readmore a.btn:focus,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .readmore a.btn:hover,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .readmore a.btn:focus {
    background-color: #204c73 !important;
    border-color: #1a3d5c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(32, 76, 115, 0.35) !important;
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .readmore a.btn:before,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .readmore a.btn:before,
#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .readmore a.btn:hover:before,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .readmore a.btn:hover:before {
    content: none !important;
    display: none !important;
}

#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .readmore a.btn .icon-chevron-right,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .readmore a.btn .icon-chevron-right,
#t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .readmore a.btn span,
#t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .readmore a.btn span {
    color: #ffffff !important;
}

@media (min-width: 768px) {
    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .article-intro > p:first-of-type > img,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .article-intro > p:first-of-type > a > img,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .article-intro > p > img,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .article-intro > p > a > img,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .article-intro > p:first-of-type > img,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .article-intro > p:first-of-type > a > img,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .article-intro > p > img,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .article-intro > p > a > img {
        float: left !important;
        width: var(--noticia-thumb-w, 300px) !important;
        max-width: var(--noticia-thumb-w, 300px) !important;
        min-width: var(--noticia-thumb-w, 300px) !important;
        height: var(--noticia-thumb-h, 200px) !important;
        min-height: var(--noticia-thumb-h, 200px) !important;
        margin: 0 var(--noticia-thumb-gap, 18px) 12px 0 !important;
    }
}

@media (max-width: 767px) {
    #t3-content > .com-content-category-blog:has(.article-header a[href*="/noticias/"]),
    #t3-content > .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .article-intro,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .article-intro {
        --noticia-thumb-w: 100%;
        --noticia-thumb-h: 200px;
    }

    #t3-content .com-content-category-blog:has(.article-header a[href*="/noticias/"]) .article-intro img,
    #t3-content .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) .article-intro img {
        float: none !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
    }
}

@media (max-width: 991px) {
    #t3-content > .com-content-category-blog:has(.article-header a[href*="/noticias/"]),
    #t3-content > .com-content-category-blog:has(.article-header a[href*="/val/noticies/"]) {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* Columna con sidebar (Patentes, etc.): sin padding 80px; contenido al 100% del hueco */
#t3-content[class*="col-md-"]:has(.com-content-category-blog) > .com-content-category-blog:has(.category-name a[href*="/servicios/"]),
#t3-content[class*="col-sm-"]:has(.com-content-category-blog) > .com-content-category-blog:has(.category-name a[href*="/servicios/"]) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:not(.com_blankcomponent) #t3-content[class*="col-md-"] > .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content[class*="col-sm-"] > .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content[class*="col-md-"] .com-content-category-blog:has(article) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content[class*="col-md-"] > .com-content-category-blog:has(article) + .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content[class*="col-sm-"] .com-content-category-blog:has(article) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content[class*="col-sm-"] > .com-content-category-blog:has(article) + .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content[class*="col-md-"] .com-content-category-blog.blog-info:has(article) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content[class*="col-sm-"] .com-content-category-blog.blog-info:has(article) ~ .content-top-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 991px) {
    #t3-content .com-content-category-blog:has(.category-name a[href*="/ayudas/"]) article,
    #t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) article,
    #t3-content .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]) article,
    #t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/"]) article {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

@media (max-width: 767px) {
    #t3-content > .com-content-category-blog:has(.category-name a[href*="/ayudas/"]),
    #t3-content > .com-content-category-blog:has(.category-name a[href*="/servicios/"]),
    #t3-content > .com-content-category-blog:has(.category-name a[href*="/val/ajudes/"]),
    #t3-content > .com-content-category-blog:has(.category-name a[href*="/val/serveis/"]) {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    #t3-content[class*="col-md-"] > .com-content-category-blog:has(.category-name a[href*="/servicios/"]),
    #t3-content[class*="col-sm-"] > .com-content-category-blog:has(.category-name a[href*="/servicios/"]) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Blog-info: pasar a una columna antes para mantener legibilidad */
@media (max-width: 1400px) {
    #t3-content .com-content-category-blog.blog-info .items-row.row.row-flex > .col-12.col-sm-6.col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Servicios (Patentes, etc.): lista mod-links-card como Ayudas — sin recuadro gris por ítem */
#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) ~ .content-top-wrapper .t3-module.mod-links-card.module-articulos_home ul.mod-articlescategory > li,
#t3-content > .com-content-category-blog:has(.category-name a[href*="/servicios/"]) + .content-top-wrapper .t3-module.mod-links-card.module-articulos_home ul.mod-articlescategory > li,
#t3-content .com-content-category-blog:has(.category-name a[href*="/val/serveis/"]) ~ .content-top-wrapper .t3-module.mod-links-card.module-articulos_home ul.mod-articlescategory > li {
    display: list-item !important;
    padding: 4px 0 !important;
    margin: 0 0 2px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    gap: 0 !important;
}

#t3-content .com-content-category-blog:has(.category-name a[href*="/servicios/"]) ~ .content-top-wrapper .t3-module.mod-links-card.module-articulos_home ul.mod-articlescategory,
#t3-content > .com-content-category-blog:has(.category-name a[href*="/servicios/"]) + .content-top-wrapper .t3-module.mod-links-card.module-articulos_home ul.mod-articlescategory {
    display: block !important;
    grid-template-columns: none !important;
    list-style: disc !important;
    padding-left: 1.25em !important;
}

/* Blog-info servicios: artículo y módulos al mismo ancho (sin márgenes 18px sueltos) */
#t3-content .com-content-category-blog.blog-info:has(.category-name a[href*="/servicios/"]) article,
#t3-content .com-content-category-blog.blog-info:has(.category-name a[href*="/val/serveis/"]) article {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body:not(.com_blankcomponent) #t3-content .com-content-category-blog.blog-info:has(.category-name a[href*="/servicios/"]) ~ .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content > .com-content-category-blog.blog-info:has(.category-name a[href*="/servicios/"]) + .content-top-wrapper,
body:not(.com_blankcomponent) #t3-content .com-content-category-blog.blog-info:has(.category-name a[href*="/val/serveis/"]) ~ .content-top-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 767px) {
    /* Banners en móvil centrados */
    .mod-banners.bannergroup {
        text-align: center !important;
    }

    .mod-banners.bannergroup .mod-banners__item.banneritem {
        display: block !important;
        text-align: center !important;
    }

    .mod-banners.bannergroup .mod-banners__item.banneritem a {
        display: inline-block !important;
    }

    .mod-banners.bannergroup .mod-banners__item.banneritem img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 600px) {

    .t3-sidebar {
        border-right: 1px solid #D3D3D3;
        padding-top: 0px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .t3-sidebar-1,
    .t3-sidebar-left,
    .t3-sidebar-2,
    .t3-sidebar-right {
        width: 100%;
        border-right: 1px solid #D3D3D3;
        padding-top: 0px;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .t3-navhelper .nav-pills>li {
        width: 100%;
    }

    .t3-navhelper .nav-pills>li>a {
        border-left: 0px solid white;
    }

}

/* Página Contacto: mejora visual suave del contenido */
#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-aside {
    display: none !important;
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content {
    max-width: 980px;
    margin: 0 auto;
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content p {
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content ul {
    margin: 8px 0 16px 18px !important;
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content li {
    margin-bottom: 6px !important;
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content table {
    width: 100% !important;
    max-width: 920px !important;
    margin: 18px auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content table td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
    border-top: 1px solid #eef3f8;
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content table tr:first-child td {
    border-top: 0 !important;
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content img {
    border-radius: 8px;
}

#t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content img[alt="qr mapa ivace"] {
    display: block !important;
    margin: 10px auto 0 auto !important;
}

@media (max-width: 767px) {
    #t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #t3-content .item-page:has(.article-header a[href*="/informacion/contacto"]) .article-content table td {
        padding: 10px 10px !important;
    }
}

/* Página Contacte (VAL): mismo estilo que Contacto castellano */
#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-aside {
    display: none !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content {
    max-width: 980px;
    margin: 0 auto;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content p {
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content ul {
    margin: 8px 0 16px 18px !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content li {
    margin-bottom: 6px !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content table {
    width: 100% !important;
    max-width: 920px !important;
    margin: 18px auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content table td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
    border-top: 1px solid #eef3f8;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content table tr:first-child td {
    border-top: 0 !important;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content img {
    border-radius: 8px;
}

#t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content img[alt="qr mapa ivace"] {
    display: block !important;
    margin: 10px auto 0 auto !important;
}

@media (max-width: 767px) {
    #t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #t3-content :is(.item-page, article):has(.article-header a[href*="/val/informacio/contacte"]) .article-content table td {
        padding: 10px 10px !important;
    }
}

/* Menú principal (megamenu): Roboto Medium */
#t3-mainnav.t3-mainnav,
#t3-mainnav.t3-mainnav .t3-megamenu,
#t3-mainnav.t3-mainnav .navbar-nav > li > a,
#t3-mainnav.t3-mainnav .navbar-nav > li > span,
#t3-mainnav.t3-mainnav .navbar-nav .dropdown-menu > li > a,
#t3-mainnav.t3-mainnav .mega-nav > li > a,
#t3-mainnav.t3-mainnav .mega-dropdown-menu .mega-nav > li > a {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

/* ------------------------------------------------------------------
   Cabecera 2026: GVA + separador + imagen images/headers/GVA_IVACE-SIN-LEY.png
   + nombre conselleria
   ------------------------------------------------------------------ */

/* Línea horizontal logos → menú: en el nav (mismo breakout 100vw que #t3-header / #t3-mainnav) */
#t3-header {
    border-bottom: none;
    position: relative;
    box-sizing: border-box;
    overflow: visible !important;
}

#t3-mainnav.navbar.navbar-default.t3-mainnav {
    border-top: 1px solid #c5ccd5 !important;
}

/* Menos hueco entre barra superior (idiomas / topline) y logos */
#t3-header.t3-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#t3-header > .idiomas {
    margin-bottom: 0 !important;
}

/* Misma fila: logos | buscador | conselleria desde sm (768px); sin float en columnas */
@media (min-width: 768px) {
    #t3-header .cabecera-ppal.row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    #t3-header .cabecera-ppal.row > [class*="col-"] {
        float: none;
    }

    #t3-header .cabecera-conselleria-col {
        padding-right: 22px !important;
    }
}

#t3-header .cabecera-ppal .logo {
    margin-bottom: 0 !important;
}

#t3-header .cabecera-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    min-height: 56px;
    overflow: visible;
}

#t3-header .cabecera-conselleria-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    min-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#t3-header .cabecera-conselleria-col .cabecera-conselleria {
    width: 100%;
}

#t3-header .cabecera-logos-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
}

#t3-header .cabecera-logo-gva-link,
#t3-header .cabecera-logo-ivace-link {
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
}

#t3-header .logo-cabecera-sep {
    position: relative;
    width: 1px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 56px;
    background: transparent;
    margin: 0;
    overflow: visible;
}

/* Trazo vertical que sube hacia la barra superior / fila idiomas (ajustar top si cambia el layout) */
#t3-header .logo-cabecera-sep::before {
    content: '';
    position: absolute;
    left: 0;
    top: -72px;
    bottom: -8px;
    width: 1px;
    background-color: #c5ccd5;
}

@media (min-width: 992px) {
    #t3-header .logo-cabecera-sep {
        min-height: 64px;
    }

    #t3-header .logo-cabecera-sep::before {
        top: -88px;
        bottom: -20px;
    }
}

/* ≥1600px: línea vertical hasta barra idiomas y borde del menú */
@media (min-width: 1600px) {
    #t3-header .cabecera-ppal .cabecera-ppal-left {
        display: flex !important;
        align-items: stretch !important;
    }

    #t3-header .cabecera-logos {
        align-self: stretch !important;
        min-height: 72px !important;
    }

    #t3-header .cabecera-logos-group {
        align-items: stretch !important;
        align-self: stretch !important;
        min-height: 72px !important;
    }

    #t3-header .cabecera-logo-gva-link,
    #t3-header .cabecera-logo-ivace-link {
        align-self: center !important;
    }

    #t3-header .logo-cabecera-sep {
        min-height: 72px !important;
        align-self: stretch !important;
    }

    #t3-header .logo-cabecera-sep::before,
    #t3-header .cabecera-ppal .logo .logo-cabecera-sep::before {
        top: -118px !important;
        bottom: -18px !important;
    }
}

@media (min-width: 1920px) {
    #t3-header .logo-cabecera-sep::before,
    #t3-header .cabecera-ppal .logo .logo-cabecera-sep::before {
        top: -128px !important;
        bottom: -20px !important;
    }
}

#t3-header .cabecera-logo-ivace-img {
    display: block;
    height: 56px;
    width: auto;
    max-width: min(380px, 55vw);
    object-fit: contain;
}

#t3-header .cabecera-conselleria {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: #003da5;
    text-align: right;
    margin: 0;
}

#t3-header .cabecera-conselleria-link {
    color: #003da5;
    text-decoration: none;
    font: inherit;
    line-height: inherit;
}

#t3-header .cabecera-conselleria-link:hover,
#t3-header .cabecera-conselleria-link:focus {
    color: #002a75;
    text-decoration: underline;
}

@media (min-width: 1600px) {
    #t3-header .cabecera-conselleria,
    #t3-header .cabecera-conselleria-link {
        font-size: 16px;
        line-height: 1.25;
    }
}

#t3-header .cabecera-ppal .logo-gva-recuperem {
    height: 56px !important;
    width: auto !important;
    max-width: 140px;
    object-fit: contain;
}

/* Cabecera compacta (≤992px): logos algo menores que escritorio */
@media (max-width: 992px) {
    #t3-header .cabecera-ppal .logo-gva-recuperem {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 120px;
    }

    #t3-header .cabecera-ppal .cabecera-logo-ivace-img {
        height: 34px !important;
        max-height: 48px !important;
    }

    #t3-header .logo-cabecera-sep {
        min-height: 48px;
    }
}

@media (max-width: 991px) {
    #t3-header .cabecera-conselleria {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    #t3-header .cabecera-conselleria-col {
        justify-content: flex-start;
        text-align: left;
        order: 3;
    }

    #t3-header .cabecera-conselleria {
        text-align: left;
        font-size: 13px;
    }

    #t3-header .cabecera-logos-group {
        order: 0;
    }

    #t3-header .cabecera-logo-ivace-img {
        height: 46px !important;
        width: auto !important;
        max-width: 85vw !important;
    }

    #t3-header .cabecera-ppal .logo-gva-recuperem {
        height: 36px !important;
    }

    #t3-header .logo-cabecera-sep,
    #t3-header .cabecera-ppal .logo .logo-cabecera-sep {
        display: none !important;
        width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    #t3-header .logo-cabecera-sep::before,
    #t3-header .cabecera-ppal .logo .logo-cabecera-sep::before {
        display: none !important;
        content: none !important;
    }
}

@media (max-width: 575px) {
    
#t3-header .cabecera-conselleria-link {
   display: none;
}
}

/* ============================================================
   NOTICIAS ES / VAL — unificación (listado + detalle "Leer más")
   body.ivace-noticias-section se añade vía custom.js
   ============================================================ */
body.ivace-noticias-section {
    --noticia-thumb-w: 300px;
    --noticia-thumb-h: 200px;
    --noticia-thumb-gap: 18px;
    --noticia-detail-img-w: 300px;
}

/* Listado: tarjeta en todos los artículos (no solo el destacado) */
body.ivace-noticias-section #t3-content .com-content-category-blog article {
    display: block !important;
    --noticia-thumb-w: 300px;
    --noticia-thumb-h: 200px;
    --noticia-thumb-gap: 18px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    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: 14px 24px !important;
}

body.ivace-noticias-section #t3-content .com-content-category-blog .article-intro {
    overflow: hidden !important;
}

body.ivace-noticias-section #t3-content .com-content-category-blog .article-intro img {
    float: left !important;
    display: block !important;
    width: var(--noticia-thumb-w) !important;
    max-width: var(--noticia-thumb-w) !important;
    min-width: var(--noticia-thumb-w) !important;
    height: var(--noticia-thumb-h) !important;
    min-height: var(--noticia-thumb-h) !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 var(--noticia-thumb-gap) 12px 0 !important;
    border-radius: 8px !important;
}

body.ivace-noticias-section #t3-content .com-content-category-blog .readmore a.btn {
    display: inline-block !important;
    float: none !important;
    position: static !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    text-decoration: none !important;
    background-color: #0c489b !important;
    border: 1px solid #2a679e !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(49, 116, 175, 0.25) !important;
}

@media (min-width: 768px) {
    body.ivace-noticias-section #t3-content .com-content-category-blog article {
        position: relative !important;
    }

    body.ivace-noticias-section #t3-content .com-content-category-blog article:has(.article-intro img) .readmore {
        clear: none !important;
        position: absolute !important;
        left: calc(24px + var(--noticia-thumb-w) + var(--noticia-thumb-gap)) !important;
        bottom: 39px !important;
        width: calc(100% - 48px - var(--noticia-thumb-w) - var(--noticia-thumb-gap)) !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 0 !important;
        z-index: 2 !important;
    }

    body.ivace-noticias-section #t3-content .com-content-category-blog article:has(.article-intro img) .article-intro {
        min-height: var(--noticia-thumb-h) !important;
        padding-bottom: 8px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 767px) {
    body.ivace-noticias-section #t3-content .com-content-category-blog .article-intro {
        --noticia-thumb-w: 100%;
        --noticia-thumb-h: 200px;
    }

    body.ivace-noticias-section #t3-content .com-content-category-blog .article-intro img {
        float: none !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
    }

    body.ivace-noticias-section #t3-content .com-content-category-blog article:has(.article-intro img) .readmore {
        position: static !important;
        width: 100% !important;
        left: auto !important;
        bottom: auto !important;
    }
}

/* Detalle: imagen del primer párrafo a la izquierda, texto al lado */
@media (min-width: 768px) {
    body.ivace-noticias-section #t3-content .item-page .article-content,
    body.ivace-noticias-section #t3-content .ivace-noticias-detail .article-content {
        clear: both !important;
    }

    body.ivace-noticias-section #t3-content .item-page .article-content > p,
    body.ivace-noticias-section #t3-content .ivace-noticias-detail .article-content > p {
        clear: none !important;
    }

    body.ivace-noticias-section #t3-content .item-page .article-content > p:first-of-type img:first-of-type,
    body.ivace-noticias-section #t3-content .ivace-noticias-detail .article-content > p:first-of-type img:first-of-type {
        float: left !important;
        display: block !important;
        width: var(--noticia-detail-img-w) !important;
        max-width: var(--noticia-detail-img-w) !important;
        height: auto !important;
        margin: 2px var(--noticia-thumb-gap) 12px 0 !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 767px) {
    body.ivace-noticias-section #t3-content .item-page .article-content > p:first-of-type img:first-of-type,
    body.ivace-noticias-section #t3-content .ivace-noticias-detail .article-content > p:first-of-type img:first-of-type {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
        display: block !important;
    }
}

/* Anular centrado de intro en plantilla blank para noticias */
body.ivace-noticias-section.com_blankcomponent #t3-content .com-content-category-blog .article-intro img,
body.ivace-noticias-section.com_blankcomponent #t3-content .com-content-category-blog .article-intro p > img,
body.ivace-noticias-section.com_blankcomponent #t3-content .item-page .article-content > p:first-of-type img:first-of-type {
    float: left !important;
    margin: 0 var(--noticia-thumb-gap) 12px 0 !important;
}

@media (max-width: 767px) {
    body.ivace-noticias-section.com_blankcomponent #t3-content .com-content-category-blog .article-intro img,
    body.ivace-noticias-section.com_blankcomponent #t3-content .com-content-category-blog .article-intro p > img,
    body.ivace-noticias-section.com_blankcomponent #t3-content .item-page .article-content > p:first-of-type img:first-of-type {
        float: none !important;
        margin: 0 0 12px 0 !important;
    }
}

/* Fallback sin JS: detalle noticias (imagen + texto en línea) */
@media (min-width: 768px) {
    #t3-content .item-page:has(.article-header a[href*="/noticias/"]) .article-content > p,
    #t3-content .item-page:has(.article-header a[href*="/val/noticies/"]) .article-content > p,
    #t3-content .item-page:has(.category-name a[href*="/noticias/"]) .article-content > p,
    #t3-content .item-page:has(.category-name a[href*="/val/noticies/"]) .article-content > p {
        clear: none !important;
    }

    #t3-content .item-page:has(.article-header a[href*="/noticias/"]) .article-content > p:first-of-type img:first-of-type,
    #t3-content .item-page:has(.article-header a[href*="/val/noticies/"]) .article-content > p:first-of-type img:first-of-type,
    #t3-content .item-page:has(.category-name a[href*="/noticias/"]) .article-content > p:first-of-type img:first-of-type,
    #t3-content .item-page:has(.category-name a[href*="/val/noticies/"]) .article-content > p:first-of-type img:first-of-type {
        float: left !important;
        display: block !important;
        width: 300px !important;
        max-width: 300px !important;
        height: auto !important;
        margin: 2px 18px 12px 0 !important;
        border-radius: 8px !important;
    }
}

/* ============================================================
   FICHA PARQUES: menos separación texto ↔ números
   (evitar que las tablas internas se estiren a todo el ancho)
   ============================================================ */
/* Tabla exterior: que NO ocupe el 100% (así las “rayas” se acortan) */
.article-content #info-parque,
#t3-content #info-parque,
#info-parque {
    width: auto !important;
    max-width: 100% !important;
    display: inline-table !important;
    border-collapse: collapse !important;
}

/* Centrar dentro del contenedor si hay hueco */
.article-content #info-parque {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Los títulos/leyendas: que el borde no se estire */
#info-parque td.leyenda-parque {
    width: auto !important;
}

#info-parque .estilo-valor-parque > table,
#info-parque .valor-parque table {
    width: auto !important;
    table-layout: auto !important;
    display: inline-table !important;
}

#info-parque .valor-parque table td {
    padding: 2px 6px !important;
    vertical-align: top !important;
}

/* Columna de valores: alinear a la derecha y no “romper” */
#info-parque .valor-parque table td:last-child {
    text-align: right !important;
    white-space: nowrap !important;
}

/* Columna de etiquetas: evitar saltos raros */
#info-parque .valor-parque table td:first-child {
    white-space: nowrap !important;
}
