:root {
	/* colores */
	--font-color: #6c6d74;
	--color: #6C6D74;
	--emphasis-color: #2D2E33;
	--inverse-color: #fff;
	--link-color: #5571bd;
	--muted-color: #a3a4a8;
	--link-hover-color: #374f8e;

	/* fondos */
	--background: #fff;
	--muted-background: #eeeff3;
	--primary-background: #5578ce;
	--secondary-background: #004976;
}

html {
	scroll-padding-top: 120px;
}

/* etiquetas comunes */
body {
	padding: 0 20px;
	color: var(--font-color);
	background: #f4f5f7;
	font: 100% Arial, Verdana, Helvetica;
}

h1, h2, h3, h4, h5 {
	color: var(--emphasis-color);
}

h2 {
	font-size: 1.5rem;
	font-weight: normal;
}

table {
	width: 100%;
}

.detail-page h2 { font-size: 2.2rem; }

.detail-page h3 {
	font-size: 1.5rem;
	font-weight: normal;
}

.wrapper {
	max-width: 1600px;
	margin: 0 auto;
	background: #fff;
	border-left: 20px solid white;
	border-right: 20px solid white;
	box-sizing: border-box;
}

/* Eliminación de las limitaciones de ancho para los componentes */
.page, .recursosdestacados_f_wrapper, #footer, #bottom_footer {
    width: 100% !important;
    max-width: 100%;
}

/* Menos las limitaciones que quiero establecer por plantilla */
.page {
	max-width: 1280px;
	margin: 0 auto;
}

/* Menú superior */
#mainMenu .horizontalMenu {
	height: 100px;
	display: flex;
	align-items: center;
	padding: 0px 40px;
	max-width: 100%;
}

.horizontalMenu div#main-logo {
	width: 25%;
}

.horizontalMenu .menu_box {
	width: 75%;
}

.menu_f {
	transition: none;
	box-shadow: none;
}

.menu_f.sticky {
    box-sizing: border-box;
    padding: 0;
    max-width: 1560px;
    margin: 0 auto;
	left: auto;
	box-shadow: none;
}

#mainMenu.open.stickyOnTop {
    box-sizing: border-box;
    padding: 0;
    max-width: 1560px;
    margin: 0 auto;
}

.menu_wrapper .enlaces{
	margin-right: 0;
}

.horizontalMenu div#main-logo img {
    max-height: 100%;
}

.menu_wrapper .enlaces ul {
	overflow: hidden;
}

.horizontalMenu .menu_wrapper .enlaces ul li a {
	color: var(--color);
	text-transform: none;
	font-weight: normal;
}

.horizontalMenu .menu_wrapper .enlaces ul li a:hover {
	color: var(--link-color);
}

.enlaces li.active > .submenu {
	top: 100px;
}

.submenu .grupo {
    max-height: 246px;
}

.submenu ul li { width: 16%; }

.submenu > ul li a {
    max-height: 80px;
}

.submenu {
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	border-bottom: 0;
	border-top: 0;
}

.horizontalMenu .menu_wrapper .enlaces ul li.grupo ul li a{
	color: var(--muted-color);
}

.horizontalMenu .menu_wrapper .enlaces ul li.grupo ul li a:hover {
	color: var(--link-color);
}

.horizontalMenu .menu_wrapper .enlaces ul li.grupo ul li {
    width: 100%;
    padding-bottom: 0.5rem;
}

.horizontalMenu .menu_wrapper .enlaces ul li.grupo ul li a {
    line-height: 1rem;
}

li.grupo.grupo1 {
	width: 16%;
}

.submenu .grupo.grupo4 {
	clear: none;
}

/* Image_F */
.Image_F{
	text-align: center
}

/* Destacado_W */
#sislideshow .sislide .sislideText {
    color: #ffffff;
    font-size: 1em;
    opacity: 1;
    filter: alpha(opacity=85);
    position: absolute;
    height: auto;
    bottom: 0;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    left: 0;
    transform: none;
    padding: 0 1rem;
	background-color: #004878;
}

#sislideshow {
    background-color: #004878;
}

#sislideshow .sislide .imagenDestacado::after {
    background-image: none;
}

#sislideshow .sislide .sislideText .titularDestacado {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    margin-bottom: 1em;
}

#sislideshow .sislide .sislideText .entradillaDestacado {
	display: none;
}

#sislideshow .botonesDestacado #leftcontrol, 
#sislideshow .botonesDestacado #rightcontrol {
    color: #004878;
}

/* Banner_F */
.Banner_F {
	display: block;
	text-align: center;
}

.Banner_F a img {
    border: 0;
}

.customBanner h4 {
	display: none;
}

.Banner_F h4 {
    font-size: 1.4rem;
    font-weight: normal;
    color: #2d2e33;
}

/* Lista_L */
.noticiaEntry .img {
    float: none;
    width: 100%;
}

.eventoWEntry a, .listWEntry a {
    box-shadow: none;
}

.noticiaEntry .img.r-box {
    float: right;
    width: 35%;
    position: relative;
    box-sizing: border-box;
    margin: 1rem 0;
}

.noticiaEntry .listData {
    display: grid;
    grid-template-columns: 1fr;
    float: left;
    width: 65%;
    box-sizing: border-box;
    overflow: auto;
    margin: 0;
}

.noticiaEntry .listData h3 {
	font-size: 1.5rem;
    font-weight: normal;
    width: 100%;
}

.noticiaEntry .listData .text {
    color: var(--emphasys-color);
    font-weight: normal;
    font-size: 1.1rem;
    width: 100%;
    margin: 0 auto;
}

.noticiaEntry .listData .date {
    color: #a3a3a3;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    font-weight: normal;
    margin-top: 1rem;
}

.noticiaEntry .listData .date i {
    font-style: normal;
}

.pagination li {
    border: 0;
}

.pagination li a {
 	color: var(--font-color);
}

.pagination li.active {
    margin: 0;
}

.pagination li.active a {
	color: var(--emphasis-color);
}

/* Lista a 3 columnas */
.c3columns.content-box {
	width: 100%;
	box-shadow: none;
	margin: 4rem 0 0 0;
	float: none;
}

.c3columns .list_item a {
	display: grid;
	grid-template-columns: 60% 40%;
}

.c3columns .list_item a > div {
	width: 100%;
	grid-column-start: 2;
	grid-column-end: 2;
	grid-row-start: 1;
}

.c3columns .list_item a p.h3 {
	width: 100%;
	grid-column-start: 1;
	grid-column-end: 1;
	box-sizing: border-box;
	font-size: 1.5rem;
	font-weight: normal;
}


/* Pagina_F páginas de detalle */
.detail-page .fecha {
	font-weight: normal;
}

/* Hero Image */
.imagenPrincipal {
    border: 0px solid #EEE;
}

/* Eventos_L */
.eventoWEntry a {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
	flex-wrap: wrap;
}

.eventoWEntry a .img {
    width: 100%;
}

.eventoWEntry .data {
    width: 35%;
}

/* Formularios */
.OpenCmsApolloWebform {
	overflow: hidden;
}

/* Footer */
.footer, .bottom_footer {
	background-color: var(--secondary-background);
}

/* Recursos destacados */
.recursosdestacados_f_wrapper .col0 {
	justify-content: center;
}

.recursoItem {
    width: 25%;
}

/* Clases específicas para la página de proyectos */
.proyectosCooperacion .video-list {
    margin-top: 0;
}

.proyectosCooperacion .video-list .h3 {
    display: none;
}

.recursosdestacados_f {
    margin-bottom: 3rem !important;
	margin-top: 3rem !important;
	background: var(--secondary-background);
    background-image: none;
}

.recursosdestacados_f_wrapper {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.hideImg img.imagenPrincipal {
	display: none;
}

.footer {
    margin-bottom: 0px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* trabajos de campo */
.trabajo_f .resumen {
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid;
    text-align: center;
}

.trabajo_f .trabajoContent {
	border-left: 4px solid #EFEFEF;
	padding-left: 4rem;
}

.agenda2030{
	background-image: url(https://www.dipucadiz.es/iedt/next/agenda-urbana-2030/.galerias/plantilla/agenda-2030-bg.jpg);
	background-size: 100% auto;
	padding: 3rem;
	overflow: auto;
	position: relative;
}

.agenda2030::before {
	content: '';
	background-image: url(https://www.dipucadiz.es/iedt/next/agenda-urbana-2030/.galerias/plantilla/ods-top-bg.png);
	width: 100%;
	height: 10px;
	position: absolute;
	top: 0;
	left: 0;
	background-position: bottom;
	background-size: 100% auto;
	background-color: white;
}

/* mapa agenda 2030 */
.mapa g:hover path {
	fill: #004b87;
}

.mapa g:hover text {
	fill: #c6c6c6;
}

g.active path {
	fill: #004b87;
}

g.active text {
	fill: #c6c6c6;
}

.MapaIEDT_F a {
    text-decoration: none;
}

.MapaIEDT_F ul.comarcas {
	list-style: none;
	margin: 0;
	padding: 0;
}

.MapaIEDT_F ul.comarcas li a {
    line-height: 2rem;
    display: block;
    border-bottom: 1px solid;
    padding: 0.5rem 0;
    margin-right: 4rem;
}

/* Listas a tres columnas */
.trescol .list_large_pages {
    display: flex;
}

.trescol .c3columns.content-box {
	width: calc(33.333333% - 4px);
	margin: 0 2px;
	box-shadow: 0px 4px 8px -2px rgb(0 0 0 / 10%);
}

.trescol .c3columns .list_item a {
	display: flex;
	flex-wrap: wrap;
}

.trescol .c3columns .list_item a p.h3 {
	font-size: 1.15rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	height: auto;
}

.trescol .list_item .date {
	padding-top: 1rem;
	padding-bottom: 0;
}

.bottom_footer .menu_f_pie ul li a, .menu_f_pie .redes a {
    color: white;
}

.icons_bottom_footer {
	display: none;
}

@media screen and (max-width: 1640px) {
	.menu_f.sticky {
		max-width: 100%;
		padding: 0 40px;
		left: 0;
	}
	
	#mainMenu.open.stickyOnTop {
		padding: 0 40px;
		max-width: 100%;
		margin: 0 auto;
		left: 0;
	}
}

@media screen and (max-width: 1280px) {
	.lista_l {
		margin-top: 0rem;
	}
}

@media screen and (max-width: 990px) {
	.submenu::after {
		content: none;
	}
	
	.col.col-4 {
		width: 31.25%;
	}
	
	.noticiasPortada .col.col-4 {
		width: 97.91666666666667%;
	}

	.horizontalMenu div#main-logo {
		width: 75%;
	}
	
	.horizontalMenu div#main-logo .menuLogoWrapper {
		max-width: 250px;
	}
	
	.horizontalMenu .menu_box {
		width: 25%;
	}
	
	#sislideshow {
    	background-color: #004878;
	}
	
	#sislideshow .sislide .sislideText {
		margin: 0;
		padding: 0;
		width: 100%;
		background-color: transparent !important;
	}
	
	#sislideshow .sislide .sislideText .titularDestacado {
		bottom: 0;
		position: absolute;
		font-size: 1.6rem;
		text-align: center;
		color: white;
		background: #004878;
		width: 100%;
		padding: 0.5rem;
		box-sizing: border-box;
		margin-bottom: 0rem;
		padding-bottom: 1.5rem;
	}
	
	.noticiaEntry .img.r-box {
		width: 100%;
	}
	
	.Banner_F{
		margin-bottom: 3rem;
	}
	
	.posts.lists {
		margin-top: 2rem;
	}
	
	.noticiaEntry .listData {
		display: block;
		float: none;
		margin: 2rem auto;
		width: 100%;
	}
	
	.noticiaEntry .listData h3 {
		width: 100%;
		margin-left: 0;
	}
	
	.noticiaEntry .listData .text {
		width: 100%;
    	margin-bottom: 1rem;
	}
	
	.noticiaEntry .listData .date {
		margin-left: 0;
	}
}

.ec_infopanel {
	display: inline-block;
    border: 2px solid #000;
    padding: 15px 25px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1.4;
    background-color: #95b3d7;
    color: black;
}

.ec_infopanel_buttons{
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 15px;
}

.ec_infopanel_buttons a {
	border: 2px solid black;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}
.ec_infopanel_buttons a:hover {
	background: rgba(0,0,0,0.1);
}

.ec_tabs {
	display: flex;
	border: 2px solid #005b90;
	border-radius: 5px;
	margin-bottom: 25px;
}

.ec_tabs > div {
	flex: 1;
	min-width: 0;
	border-right: 2px solid #005b90;
	text-align: center;
	font-weight: normal;
	height: 40px;
	line-height: 40px;
}

.ec_tabs > div:last-child{
	border-right: 0;
}

.ec_tabs > div:hover {
	background: #f3f3f3;
}

.ec_tabs > div.active {
	background: #005b90;
}

.ec_tabs > div > a {
	display: block;
	text-decoration: none;
	color: #005b90;
	font-size: 15px;
}

.ec_tabs > div.active > a {
	color: white;
	font-weight: bold;
}

.ec_tablescroll {
	width: 100%;
	overflow-x: auto;
}

.ec_tablescroll > table {
	min-width: 1000px;
}

@media screen and (max-width: 800px) {
	.r-box-superwide:before {
		padding-top: 42.85714285714286%;
	}

	#sislideshow .sislide .sislideText .titularDestacado {
		font-size: 1.4rem;
	}
	
	.Destacado_W {
		margin-bottom: 3rem;
	}
	
	.bannerRow {
		margin: 0 !important;
	}
}

@media screen and (max-width: 768px) {
	#sislideshow .sislide .imagenDestacado img {
		height: auto;
		width: 100%;
	}
	
	.page, .recursosdestacados_f_wrapper, #footer, #bottom_footer, .menu_f.servicio, .lista_l, .Noticia_F .detail-page, .detail-page {
		width: 100%;
		max-width: 100%;
		padding-right: 0;
		padding-left: 0;
	}
	
	.recursosdestacados_f_wrapper {
		padding-top: 0rem !important;
		padding-bottom: 0rem !important;
		margin: 0;
		margin-bottom: 0.5rem;
	}
	
	.footer {
		padding: 0 !important;
		margin: 0 !important;
	}
	
	.ec_infopanel_buttons{
		gap: 10px;
		flex-direction: column;
	}
	
	.ec_tabs {
		flex-direction: column;
	}
	
	.ec_tabs > div {
		border-right: 0;
		border-bottom: 2px solid #005b90;
	}

	.ec_tabs > div:last-child{
		border-bottom: 0;
	}
}

@media screen and (max-width: 660px) {

	body {
		padding: 0;
	}

	div#bottom_footer {
		padding-left: 0;
		margin: 0 !important;
	}
	
	.col.col-4 {
		width: 97.91666666666667%;
	}
	
	#sislideshow .botonesDestacado #leftcontrol, #sislideshow .botonesDestacado #rightcontrol {
		color: #004878;
		background-color: white;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0.5rem;
		box-sizing: border-box;
		text-decoration: none;
		width: 32px;
		height: 32px;
	}
}

@media screen and (max-width: 500px){
	.r-box-superwide:before {
		padding-top: 62.5%;
	}

	#sislideshow .sislide .sislideText .titularDestacado {
		margin: 0;
		font-size: 1.1rem;
	}
}