/*
Theme Name: SpicePress Child
Description: Tema hijo de SpicePress con las personalizaciones del portal IEDG.
Template: spicepress
Version: 1.0
Text Domain: spicepress-iedg
*/

/* Ajustes sobre reglas del tema padre */
.page-seperate { padding-bottom: 1.5em; }
.page-title-section .overlay { padding: 1em 0 0.8em; }
.site-footer { background-color: #202a5c; padding: 1.3em 1em; }

/* Reglas propias del portal (copiadas del tema anterior) */
/*/.blog-section div{
width: 100%;
margin: 0 !important;
}*/
a[data-link-content="wpdt-link-content"] button, .wpdt-c.wpDataTableContainerConfigSimpleTable table td a[data-link-content="wpdt-link-content"] button, .wpdt-c.wpDataTableContainerSimpleTable .wpdtSimpleTable td.wpdt-cell a[data-link-content="wpdt-link-content"] button{background:#24a0c8 !important;}
@media (max-width: 991px) {
    .geoportalesTitulo{
		text-align: center !important;
		padding: 1em 2em !important;
		min-height: 3em !important;
		font-size: 1.2em;
	}
	.btnGeoportales{
		font-size: .9em !important;
		width: 50%;
		margin: 0 auto;
	}
	.margenGeoportales{
		margin-top:1.5em;
	}
}

.imagenDescarga{
	max-width: 100px;
}

.btnDescargas{
	
	text-align: center;
	float: right;
	padding: 0 0.5em;
	margin-top: 0.7em;
}
.btnDescargas a{
	color:#202a5c;
	text-decoration:none !important;
}
.btnDescargas a:hover{
	color:#24a0c8 !important;
}
.parte1Descarga{
	display: flex;
	align-items: center;
	margin-bottom: 1em;
}
.textosDescripcionDescarga{
	line-height: 1.2;
}
.fuenteDescargas{
	font-size: 0.8em;
	padding: 0.6em 0 0;
}
.titDescarga{
	font-size: 1.1em;
	font-weight: bold;
	color: #24a0c8;
}
.contenidoDescargas{
	margin-bottom: 2em;
}
.detalleModulo{
	font-size:1.2em;
	line-height: 1.2;
 	margin-bottom: 2em;
}
.margenGeoportales{
	padding:0 1.5em;
}
.geoportalesTitulo{
	text-align: left;
	line-height: 1.1;
	font-weight: 600;
	padding: 1em 0;
	min-height: 4.2em;
}
.btnGeoportales{
	border-radius:1em;
	background:#202a5c;
	text-align: center;
	padding:0.5em;
	font-size: .7em;
}
.btnGeoportales:hover{
	background:#24a0c8;
}
.btnGeoportales a {
	color:#fff;
	text-decoration: none !important;
}
.TWtexto{
	font-size:0.7em;
	font-family:Arial;
}
.titTabGeoservicios{
	font-weight:bold;
}
.contTabGeoservicios, .size09em{
	font-size:0.9em;
}
.imgFooter{
	display: flex;
justify-content: center;
align-items: center;
height: 90px;
}
.estiloTuit{
	padding-bottom: 0.2em;
	font-size: 1.5em;
}
.confBiblioteca a{
	text-decoration:none !important;
}
.btnBiblioteca{
	text-align: center;
	background: #202a5c;
	border-radius: 0.5em;
	padding: 0.1em 0 0.3em;
	color: #fff;
}
.textoAzul{
	color:#202a5c;
}
.textSubt{
	font-weight:bold;
	margin-top: 1.2em;
	color:#202a5c;
}
.listadosTab{
	padding-left:2em;
	line-height:1.2;
	margin: 0;
}
.textoInternoGris{
	color:#64646d;
	text-align: justify;
}
.imgFlotante img{
	float:left;
	max-width:140px;
	margin: 0 1em 0 0;
}
.imgHeader{
	max-width:400px;
	height:auto;
	margin: 0.2em 0;
}
.dirFooter{
	color:#fff;
	line-height: 1.3;
	font-size: 0.9em;
}
.navbar-custom{
	background-color:#202a5c !important;
}
.textoNormal{
	font-weight:normal !important;
}
.footer-sidebar address{
	color:#fff !important;
}

/*================================*/
/* actualizacion imagenes hitos
/*================================*/
.hito-carousel { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; }

/* --- SLIDER (sin inputs, usando :target) --- */
.hito-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f9fc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.hito-slide { display: none; position: relative; width: 100%; scroll-margin-top: 20px; }

/* Por defecto (sin hash activo, o hash que no es un slide) se ve el slide 1 */
.hito-slides:not(:has(.hito-slide:target)) #hito-slide-1 { display: block; }

/* Cuando el hash coincide con un slide, se muestra ese */
.hito-slide:target { display: block; }

.hito-img-wrap { display: block; cursor: zoom-in; }

.hito-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Flechas */
.hito-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #1a3d6d;
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  user-select: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  z-index: 3;
}
.hito-arrow:hover { background: #ffffff; transform: translateY(-50%) scale(1.08); }
.hito-arrow-right { right: 14px; }
.hito-arrow-left  { left: 14px; }

/* Indicadores (puntos) */
.hito-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.hito-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cfd8e6;
  cursor: pointer;
  transition: background 0.2s;
}
/* Punto activo: por defecto el 1, o el que coincide con el hash */
.hito-carousel:not(:has(.hito-slide:target)) .hito-dots a[href="#hito-slide-1"],
.hito-dots a[href="#hito-slide-1"]:has(+ *):target,
#hito-slide-1:target ~ .hito-dots a[href="#hito-slide-1"],
#hito-slide-2:target ~ .hito-dots a[href="#hito-slide-2"] {
  background: #1a3d6d;
}

/* --- ZOOM / LIGHTBOX (sin inputs, usando :target) --- */
.hito-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,35,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  scroll-margin-top: 0;
}
.hito-zoom-overlay:target { display: flex; }

.hito-zoom-close-area { display: block; cursor: zoom-out; }

.hito-zoom-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 6px 40px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {
  .hito-arrow { width: 38px; height: 38px; font-size: 24px; }
  .hito-zoom-overlay { padding: 12px; }
}
/* Compatibilidad Bootstrap 3 (col-xs-*) con el tema 3.8 */
.row > [class*="col-xs-"]{float:left;position:relative;min-height:1px;padding-left:15px;padding-right:15px;box-sizing:border-box}
.row > .col-xs-4{width:33.33333333%}
.row > .col-xs-8{width:66.66666667%}
@media (min-width:992px){.row > .col-lg-6{width:50%}}
.row::after{content:"";display:table;clear:both}

/* Ajuste: col-xs-4 / col-xs-8 sin exigir hijo directo de .row */
.col-xs-4,.col-xs-8{float:left;position:relative;min-height:1px;padding-left:15px;padding-right:15px;box-sizing:border-box}
.col-xs-4{width:33.33333333%}
.col-xs-8{width:66.66666667%}
.col-lg-6 .row::after,.row::after{content:"";display:table;clear:both}

/* Tarjetas de servicios y columnas Bootstrap 3 sobre el tema 3.8 */
@media (max-width:991.98px){.row > .col-xs-12{width:100%}}
@media (min-width:576px){.service-section .row > .col-sm-6{width:50%}}
@media (min-width:992px){.service-section .row > .col-md-4{width:33.33333333%}}
.service-section .row{padding-right:0;margin-left:0;margin-right:0}

/* Geoportales: botones centrados y separados (la fila flex del tema 3.8 los estiraba) */
@media (min-width:768px){
  .margenGeoportales{align-items:center}
  .btnGeoportales{display:flex;align-items:center;justify-content:center;min-height:2.8em}
  .btnGeoportales a{display:block;width:100%;text-align:center;line-height:1.2}
}
