/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Sep 10, 2018, 3:56:56 PM
    Author     : ST10
*/

/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 12-ago-2018, 17:56:24
    Author     : Miguel Tirador
*/

/**
Layout Home
**/

html, body {
	background-image: url("../image/fondoCRT.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	height: 100%;
	overflow-y: auto;
	margin: 0px;
}

.section p {
	text-align: center;
	color: white;
}

img {
	position: absolute;

}

.section:after {
	content: "";
	display: table;
	clear: both;
}

.herramientas-content-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding-top: 40px !important;
    gap: 25px !important;
}

.arti1 {
    z-index: 2;
    position: relative !important;
    margin-top: 0 !important;
    width: 320px !important;
    height: auto !important;
    float: none !important;
    left: 0 !important;
    flex: 0 0 320px !important;
    display: none !important; /* En descargaDatos no se usa el bloque izquierdo; se oculta para centrar grid */
}

.descargadatos {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    z-index: 5 !important;
}

.arti2 {
    z-index: 2;
    position: relative !important;
    margin-top: 0 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    height: auto !important;
    float: none !important;
    left: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

/* Personalización de tarjetas DataGrid */
.dataGridGral {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.dataGridGral .ui-datagrid-content {
    background: transparent !important;
    border: none !important;
}

.dataGridGral .ui-g {
    justify-content: center !important;
}

.dataGridGral .ui-datagrid-column {
    padding: 10px !important;
}

/* Quitar borde/sombra del contenedor PrimeFaces para evitar el "marco" externo. */
.dataGridGral .ui-panel,
.dataGridGral .ui-panel.ui-widget,
.dataGridGral .ui-panel.ui-widget-content,
.dataGridGral .ui-panel .ui-panel-content,
.dataGridGral .ui-panel .ui-widget-content {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.panel {
    width: 250px !important;
    height: 250px !important;
    background-color: rgba(16, 61, 80, 0.5) !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    table-layout: fixed !important;
}

.contentY {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    position: relative !important;
}

/* Neutraliza el escalado global de main.css para evitar "marco" y overlay reducido. */
.section .container-grid .herramientas-content-wrapper .arti2-item {
    transform: none !important;
    transform-origin: center center !important;
}

.contentX {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.colImagen {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#imgSeccion {
    width: 80px !important;
    height: 80px !important;
    position: relative !important;
    margin: 0 auto 15px auto !important;
    object-fit: contain !important;
}

.nombreSeccion {
    color: #ffffff !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    display: block !important;
    width: 100% !important;
}

.overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    background-color: rgba(13, 49, 64, 0.6) !important;
    overflow: hidden !important;
    transition: height 0.5s ease !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.contentY:hover .overlay {
    height: 100% !important;
}

.texto {
    font-family: 'Noto Sans', sans-serif !important;
    text-align: center !important;
    color: #ffffff !important;
    padding: 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Media Queries */
@media screen and (min-width: 1900px) {
    .section .container-grid {
        max-width: 1880px !important;
    }
    .dataGridGral {
        max-width: 1380px !important; /* Holgado para 5 columnas de ~270px */
        margin-left: auto !important;
        width: 100% !important;
    }
    .dataGridGral .ui-datagrid-column,
    .dataGridGral .ui-datagrid-cell,
    .dataGridGral .ui-g > div {
        width: 20% !important;
        box-sizing: border-box !important;
        flex: 0 0 20% !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(5n),
    .dataGridGral .ui-datagrid-cell:nth-child(5n),
    .dataGridGral .ui-g > div:nth-child(5n) {
        padding-right: 0 !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(5n) .panel,
    .dataGridGral .ui-datagrid-cell:nth-child(5n) .panel,
    .dataGridGral .ui-g > div:nth-child(5n) .panel {
        margin-left: auto !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(5n+1),
    .dataGridGral .ui-datagrid-cell:nth-child(5n+1),
    .dataGridGral .ui-g > div:nth-child(5n+1) {
        padding-left: 0 !important;
    }

    /* Evita crecimiento excesivo de tarjetas en resoluciones muy amplias. */
    .panel {
        width: 190px !important;
        height: 190px !important;
        max-height: 190px !important;
    }

    #imgSeccion {
        width: 56px !important;
        height: 56px !important;
        margin: 0 auto 10px auto !important;
    }

    .colImagen {
        padding: 12px 10px !important;
    }

    .nombreSeccion {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    .texto,
    .overlay .texto {
        font-size: 10px !important;
        line-height: 1.12 !important;
        padding: 8px !important;
    }
}

@media screen and (max-width: 1899px) and (min-width: 1600px) {
    .dataGridGral {
        max-width: 1100px !important; /* Holgado para 4 columnas de ~270px */
        margin-left: auto !important;
        width: 100% !important;
    }
    .dataGridGral .ui-datagrid-column,
    .dataGridGral .ui-datagrid-cell,
    .dataGridGral .ui-g > div {
        width: 25% !important;
        box-sizing: border-box !important;
        flex: 0 0 25% !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(4n),
    .dataGridGral .ui-datagrid-cell:nth-child(4n),
    .dataGridGral .ui-g > div:nth-child(4n) {
        padding-right: 0 !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(4n) .panel,
    .dataGridGral .ui-datagrid-cell:nth-child(4n) .panel,
    .dataGridGral .ui-g > div:nth-child(4n) .panel {
        margin-left: auto !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(4n+1),
    .dataGridGral .ui-datagrid-cell:nth-child(4n+1),
    .dataGridGral .ui-g > div:nth-child(4n+1) {
        padding-left: 0 !important;
    }
}

@media screen and (max-width: 1599px) and (min-width: 1280px) {
    .dataGridGral {
        max-width: 830px !important; /* Holgado para 3 columnas de ~270px */
        margin-left: auto !important;
        width: 100% !important;
    }
    .dataGridGral .ui-datagrid-column,
    .dataGridGral .ui-datagrid-cell,
    .dataGridGral .ui-g > div {
        width: 33.33% !important;
        box-sizing: border-box !important;
        flex: 0 0 33.33% !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(3n),
    .dataGridGral .ui-datagrid-cell:nth-child(3n),
    .dataGridGral .ui-g > div:nth-child(3n) {
        padding-right: 0 !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(3n) .panel,
    .dataGridGral .ui-datagrid-cell:nth-child(3n) .panel,
    .dataGridGral .ui-g > div:nth-child(3n) .panel {
        margin-left: auto !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(3n+1),
    .dataGridGral .ui-datagrid-cell:nth-child(3n+1),
    .dataGridGral .ui-g > div:nth-child(3n+1) {
        padding-left: 0 !important;
    }
}

@media screen and (max-width: 1279px) and (min-width: 800px) {
    .dataGridGral {
        max-width: 560px !important; /* Holgado para 2 columnas de ~270px */
        margin-left: auto !important;
        width: 100% !important;
    }
    .dataGridGral .ui-datagrid-column,
    .dataGridGral .ui-datagrid-cell,
    .dataGridGral .ui-g > div {
        width: 50% !important;
        box-sizing: border-box !important;
        flex: 0 0 50% !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(2n),
    .dataGridGral .ui-datagrid-cell:nth-child(2n),
    .dataGridGral .ui-g > div:nth-child(2n) {
        padding-right: 0 !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(2n) .panel,
    .dataGridGral .ui-datagrid-cell:nth-child(2n) .panel,
    .dataGridGral .ui-g > div:nth-child(2n) .panel {
        margin-left: auto !important;
    }
    .dataGridGral .ui-datagrid-column:nth-child(2n+1),
    .dataGridGral .ui-datagrid-cell:nth-child(2n+1),
    .dataGridGral .ui-g > div:nth-child(2n+1) {
        padding-left: 0 !important;
    }
}

@media screen and (max-width: 799px) {
    .dataGridGral .ui-datagrid-column {
        width: 100% !important;
    }
}


@media screen and (max-width: 1200px) {
    .herramientas-content-wrapper {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .arti1 {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 320px !important;
    }
    .arti2 {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

@media only screen and (max-width: 640px) {
	.panel .overlay .texto{
		position: absolute !important;
		top: 50% !important;
        transform: translateY(-50%) !important;
		margin: 0 !important;
	}

	.panel {
		width: 100% !important;
		margin-left: 0px !important;
	}
	.overlay {
		width: 100% !important;
		height: 0px !important;
		margin-left: 0 !important;
		bottom: 0 !important;
	}
	.contentY {
		width: 100% !important;
		margin-left: 0 !important;
	}
	.contentX {
		padding-left: 0px !important;
	}
	.colImagen {
		padding: 10px !important;
		text-align: center !important;
	}
	
	.arti1 {
		width: 100% !important;
		height: auto !important;
        flex: 0 0 auto !important;
	}
	.arti2 {
		width: 100% !important;
	}
	#datosRapido2 {
		display: block;
	}
	#datosRapido {
		display: none;
	}

	.section{
	    height: auto !important;
        min-height: 100vh !important;
	}
	
	.metadata-footer{
	    position: relative !important;
        top: 0 !important;
        margin-top: 50px !important;
	}
}


/*espacio entre celdas del grid*/
.ui-grid {
	clear: both;
	padding: 0;
	margin: 0;
	background: transparent;
}

.ui-g {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	flex-wrap: wrap;
	-ms-flex-wrap: wrap;
}

.ui-widget-content {
	border: 0px solid #a8a8a8;
	background: transparent;
	color: #fff;
	transition: .5s;
	border-radius: 2px;
	text-align: center;
}

.ui-panel {
	padding: .0em;
}

.ui-panel .ui-panel-content {
	border: 0;
	background: 0;
	padding: 0;
}

.metadata-footer {
	text-align: center;
	z-index: 3;
	width: 100%;
	min-height: 30px;
	position: relative;
	font-size: 12px;
	color: #ffffff;
	left: 0;
	padding: 20px 0;
	font-family: 'Noto Sans', sans-serif !important;
}

a:visited {
     color: #E8BB00;
     text-decoration: none;
}

a:link {
   color: #E8BB00;
   text-decoration: none;
}

@media screen and (max-width: 480px) {
    .section .container-grid {
        padding: 0 8px !important;
    }

    .herramientas-content-wrapper {
        gap: 12px !important;
        padding-top: 18px !important;
    }

    .arti1 {
        display: none !important;
    }

    .arti2 {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }

    .dataGridGral {
        max-width: 320px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .dataGridGral .ui-g {
        display: grid !important;
        grid-template-columns: repeat(2, 150px) !important;
        grid-auto-flow: row dense !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .dataGridGral .ui-datagrid-column,
    .dataGridGral .ui-datagrid-cell,
    .dataGridGral .ui-g > div {
        width: auto !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    .dataGridGral .ui-datagrid-column:last-child:nth-child(odd),
    .dataGridGral .ui-datagrid-cell:last-child:nth-child(odd),
    .dataGridGral .ui-g > div:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
    }

    .panel {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto !important;
    }

    .contentX,
    .contentY,
    .overlay {
        width: 100% !important;
    }

    #imgSeccion {
        width: 48px !important;
        height: 48px !important;
        margin: 0 auto 8px auto !important;
    }

    .colImagen {
        padding: 10px 8px !important;
    }

    .nombreSeccion {
        font-size: 10px !important;
        line-height: 1.15 !important;
        width: 100% !important;
    }

    .texto {
        font-size: 10px !important;
        line-height: 1.15 !important;
        padding: 8px !important;
    }

    .metadata-footer {
        margin-top: 20px !important;
        padding: 12px 6px !important;
        font-size: 10px !important;
    }
}

/* XS_OVERLAY_STANDARD: configuracion homologada para overlays en movil */
@media screen and (max-width: 480px) {
    .overlay,
    .section .container-grid .herramientas-content-wrapper .arti2-item .overlay {
        display: block !important;
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 0 !important;
        opacity: 1 !important;
        background-color: rgba(13, 49, 64, 0.6) !important;
        overflow: hidden !important;
        transition: height 0.28s ease !important;
        border-radius: 0 !important;
    }

    .texto,
    .overlay .texto,
    .container-grid .arti2-item > a > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item .texto {
        display: block !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 3px !important;
        color: #ffffff !important;
        font-family: 'Noto Sans', sans-serif !important;
        font-size: 8.6px !important;
        line-height: 1.08 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .content:hover .overlay,
    .content2:hover .overlay,
    .content3:hover .overlay,
    .content4:hover .overlay,
    .conten3:hover .overlay,
    .conten4:hover .overlay,
    .conten5:hover .overlay,
    .conten6:hover .overlay,
    .conten7:hover .overlay,
    .conten8:hover .overlay,
    .estadistica1:hover .overlay,
    .estadistica2:hover .overlay,
    .estadistica3:hover .overlay,
    .estadistica4:hover .overlay,
    .estadistica5:hover .overlay,
    .estadistica6:hover .overlay,
    .estadistica7:hover .overlay,
    .estadistica8:hover .overlay,
    .contentX:hover .overlay,
    .contentY:hover .overlay,
    .arti2-item:hover .overlay {
        height: 100% !important;
    }
}
/* SM_LAYOUT_481_767_DESCARGAS_SURFACE_DUO */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .section .container-grid {
        padding: 0 10px !important;
    }

    .herramientas-content-wrapper {
        gap: 10px !important;
        padding-top: 8px !important;
    }

    .arti1 {
        display: none !important;
    }

    .arti2 {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }

    .dataGridGral {
        max-width: 520px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .dataGridGral .ui-g {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: flex-start !important;
        column-gap: 8px !important;
        row-gap: 14px !important;
    }

    .dataGridGral .ui-datagrid-content > .ui-g:not(:last-child),
    .dataGridGral .ui-g:not(:last-child) {
        margin-bottom: 12px !important;
    }

    .dataGridGral .ui-datagrid-column,
    .dataGridGral .ui-datagrid-cell,
    .dataGridGral .ui-g > div {
        width: 168px !important;
        max-width: 168px !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    .dataGridGral .ui-datagrid-column:last-child:nth-child(odd),
    .dataGridGral .ui-datagrid-cell:last-child:nth-child(odd),
    .dataGridGral .ui-g > div:last-child:nth-child(odd) {
        width: 168px !important;
        max-width: 168px !important;
    }

    .panel {
        width: 168px !important;
        max-width: 168px !important;
        height: 136px !important;
        margin: 0 auto !important;
    }

    .contentX,
    .contentY,
    .overlay {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    #imgSeccion {
        width: 42px !important;
        height: 42px !important;
        margin: 0 auto 6px auto !important;
    }

    .colImagen {
        padding: 8px 6px !important;
    }

    .nombreSeccion {
        font-size: 9.5px !important;
        line-height: 1.12 !important;
        width: 100% !important;
    }

    .metadata-footer {
        margin-top: 12px !important;
        padding: 10px 6px !important;
        font-size: 10px !important;
    }
}


/* SM_OVERLAY_STANDARD_481_767: overlays homologados para Surface Duo */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .overlay,
    .section .container-grid .herramientas-content-wrapper .arti2-item .overlay {
        display: block !important;
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 0 !important;
        opacity: 1 !important;
        background-color: rgba(13, 49, 64, 0.6) !important;
        overflow: hidden !important;
        transition: height 0.28s ease !important;
        border-radius: 0 !important;
    }

    .texto,
    .overlay .texto,
    .container-grid .arti2-item > a > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item .texto {
        display: block !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 2px !important;
        color: #ffffff !important;
        font-family: 'Noto Sans', sans-serif !important;
        font-size: 7.2px !important;
        line-height: 1.05 !important;
        font-weight: 600 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    .content:hover .overlay,
    .content2:hover .overlay,
    .content3:hover .overlay,
    .content4:hover .overlay,
    .conten3:hover .overlay,
    .conten4:hover .overlay,
    .conten5:hover .overlay,
    .conten6:hover .overlay,
    .conten7:hover .overlay,
    .conten8:hover .overlay,
    .estadistica1:hover .overlay,
    .estadistica2:hover .overlay,
    .estadistica3:hover .overlay,
    .estadistica4:hover .overlay,
    .estadistica5:hover .overlay,
    .estadistica6:hover .overlay,
    .estadistica7:hover .overlay,
    .estadistica8:hover .overlay,
    .contentX:hover .overlay,
    .contentY:hover .overlay,
    .arti2-item:hover .overlay,
    .arti2-item:active .overlay,
    .arti2-item:focus-within .overlay,
    .arti2-item > a:hover .overlay,
    .arti2-item > a:active .overlay,
    .arti2-item > a:focus .overlay,
    .arti2-item > a:focus-visible .overlay {
        height: 100% !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .section .container-grid {
        padding: 0 10px !important;
    }

    .herramientas-content-wrapper {
        gap: 10px !important;
        padding-top: 8px !important;
    }

    .arti1 {
        display: none !important;
    }

    .arti2 {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }

    .dataGridGral {
        max-width: 520px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .dataGridGral .ui-g {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: flex-start !important;
        column-gap: 8px !important;
        row-gap: 14px !important;
    }

    .dataGridGral .ui-datagrid-content > .ui-g:not(:last-child),
    .dataGridGral .ui-g:not(:last-child) {
        margin-bottom: 12px !important;
    }

    .dataGridGral .ui-datagrid-column,
    .dataGridGral .ui-datagrid-cell,
    .dataGridGral .ui-g > div {
        width: 168px !important;
        max-width: 168px !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    .dataGridGral .ui-datagrid-column:last-child:nth-child(odd),
    .dataGridGral .ui-datagrid-cell:last-child:nth-child(odd),
    .dataGridGral .ui-g > div:last-child:nth-child(odd) {
        width: 168px !important;
        max-width: 168px !important;
    }

    .panel {
        width: 168px !important;
        max-width: 168px !important;
        height: 136px !important;
        margin: 0 auto !important;
    }

    .contentX,
    .contentY,
    .overlay {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    #imgSeccion {
        width: 42px !important;
        height: 42px !important;
        margin: 0 auto 6px auto !important;
    }

    .colImagen {
        padding: 8px 6px !important;
    }

    .nombreSeccion {
        font-size: 9.5px !important;
        line-height: 1.12 !important;
        width: 100% !important;
    }

    .metadata-footer {
        margin-top: 12px !important;
        padding: 10px 6px !important;
        font-size: 10px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .overlay,
    .section .container-grid .herramientas-content-wrapper .arti2-item .overlay {
        display: block !important;
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 0 !important;
        opacity: 1 !important;
        background-color: rgba(13, 49, 64, 0.6) !important;
        overflow: hidden !important;
        transition: height 0.28s ease !important;
        border-radius: 0 !important;
    }

    .texto,
    .overlay .texto,
    .container-grid .arti2-item > a > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item > a > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item .texto {
        display: block !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 3px !important;
        color: #ffffff !important;
        font-family: 'Noto Sans', sans-serif !important;
        font-size: 7.2px !important;
        line-height: 1.05 !important;
        font-weight: 600 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    .content:hover .overlay,
    .content2:hover .overlay,
    .content3:hover .overlay,
    .content4:hover .overlay,
    .conten3:hover .overlay,
    .conten4:hover .overlay,
    .conten5:hover .overlay,
    .conten6:hover .overlay,
    .conten7:hover .overlay,
    .conten8:hover .overlay,
    .estadistica1:hover .overlay,
    .estadistica2:hover .overlay,
    .estadistica3:hover .overlay,
    .estadistica4:hover .overlay,
    .estadistica5:hover .overlay,
    .estadistica6:hover .overlay,
    .estadistica7:hover .overlay,
    .estadistica8:hover .overlay,
    .contentX:hover .overlay,
    .contentY:hover .overlay,
    .arti2-item:hover .overlay,
    .arti2-item:active .overlay,
    .arti2-item:focus-within .overlay,
    .arti2-item > a:hover .overlay,
    .arti2-item > a:active .overlay,
    .arti2-item > a:focus .overlay,
    .arti2-item > a:focus-visible .overlay {
        height: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .container-grid .arti2-item:hover > a > .overlay .texto,
    .container-grid .arti2-item:focus-within > a > .overlay .texto,
    .container-grid .arti2-item > a:hover > .overlay .texto,
    .container-grid .arti2-item > a:focus > .overlay .texto,
    .container-grid .arti2-item > a:focus-visible > .overlay .texto,
    .container-grid .arti2-item > a:active > .overlay .texto,
    .container-grid .arti2-item.overlay-open > a > .overlay .texto,
    .container-grid .arti2-item > a[data-overlay-armed='1'] > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item:hover > a > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item:focus-within > a > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item > a:hover > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item > a:focus > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item > a:focus-visible > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item > a:active > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item.overlay-open > a > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item > a[data-overlay-armed='1'] > .overlay .texto {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* MD_LAYOUT_1024_1470_DESCARGA_DATOS:
   oculta arti1, grid centrado de 5 columnas y tarjetas al 60%. */
@media screen and (min-width: 1024px) and (max-width: 1470px), screen and (min-width: 1471px) and (max-width: 1919px) {
    .section .container-grid {
        max-width: 1180px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 12px !important;
    }

    .herramientas-content-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding-top: 8px !important;
        gap: 0 !important;
    }

    .arti1 {
        display: none !important;
    }

    .arti2 {
        width: 100% !important;
        margin-left: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    .dataGridGral {
        max-width: 820px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .dataGridGral .ui-g {
        display: grid !important;
        grid-template-columns: repeat(5, 150px) !important;
        justify-content: center !important;
        justify-items: center !important;
        align-items: start !important;
        column-gap: 10px !important;
        row-gap: 12px !important;
    }

    .dataGridGral .ui-datagrid-column,
    .dataGridGral .ui-datagrid-cell,
    .dataGridGral .ui-g > div {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    .panel {
        width: 150px !important;
        max-width: 150px !important;
        height: 150px !important;
        margin: 0 auto !important;
    }

    .contentX,
    .contentY {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    .overlay {
        width: 100% !important;
        height: 0 !important;
        margin: 0 !important;
    }

    #imgSeccion {
        width: 48px !important;
        height: 48px !important;
        margin: 0 auto 8px auto !important;
    }

    .colImagen {
        padding: 10px 8px !important;
    }

    .nombreSeccion {
        font-size: 11px !important;
        line-height: 1.12 !important;
        width: 100% !important;
    }

    .texto,
    .overlay .texto,
    .container-grid .arti2-item > a > .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item > a > .overlay .texto {
        font-size: 7.4px !important;
        line-height: 1.05 !important;
        font-weight: 600 !important;
        padding: 2px !important;
        text-align: left !important;
        max-height: 100% !important;
        overflow: hidden !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .metadata-footer {
        margin-top: 18px !important;
        padding: 12px 8px !important;
        font-size: 11px !important;
    }
}


/* DESKTOP_OVERLAY_COLOR_STANDARD_1920 */
@media screen and (min-width: 1024px) {
    .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item .texto {
        color: #ffffff !important;
    }
}

/* OVERLAY_COLOR_STANDARD_1920_ALL_RANGES */
@media screen and (max-width: 1023px) {
    .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item .overlay .texto,
    .section .container-grid .herramientas-content-wrapper .arti2-item .texto {
        color: #ffffff !important;
    }
}
