:root {
	/* Medidas botón para móviles */
	--anchura: 30px;
	--altura: 20px;
	--alto-linea: 3px;

	--tpe-azul: #002144;
	--tpe-azul2: #66A2C0;
	--tpe-naranja: #B45F04;

	--diapositivas: 3;
	--tiempo-diapositiva: 5s;
	--tiempo-total: calc(var(--tiempo-diapositiva)*var(--diapositivas)) 
}

* { 
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#aviso {
	width: auto;
	margin-top: 12px;
	font-size: 24px;
	/* border: 1px solid #fff; */
	padding: 0px 30px 0 0;
}

#aviso img {
	padding: 0 6px;
}
html {
	font-size: 14px;
}
body {
	/* background-image: url("../img/fondo.gif"); */
	background-color: gainsboro;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: white;
}

#contenedor {
	max-width: 1920px;
	margin: 0 auto;
	background-color: white;
}

header {
	background-color: #002144;
}

header > section {
	display: flex;
	height: 75px;
	align-items: center;
}

header > section figure:first-child {
	margin-right: auto;
}

#iconos {
	display: flex;
	margin-right: 30px;
}

#iconos a {
	margin: 0 6px;
	font-size: 32px;
	color: white;
}

#iconos a:hover {
	color: #66A2C0;
}

.menu a:link, .menu a:visited, .menu a:active,
#idiomas a:link, #idiomas a:visited, #idiomas a:active {
	color: white;
	text-decoration: none;
}

.menu a:hover, #idiomas a:hover {
	background-color: #66A2C0;
}

header > figure {
	width: 100%;
	/* background-color: yellow; */
}

header > figure img {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

header > nav {
	display: flex;
}

header > nav a {
	padding: 7px 16px;
	border-right: 2px solid white;
}

header > nav a:last-child {
	margin-left: auto;
}

header > nav a:last-child,
main > nav a:last-child {
	border: none;
}

header > nav a:nth-last-child(2), header > nav a:nth-last-child(2):link,
header > nav a:nth-last-child(2):visited, header > nav a:nth-last-child(2):active {
	border: none;
	color: orange;  /* PRENSA */
}

#idiomas {
    display:flex;
    margin-right: 80px;
}

#idiomas a {
    padding: 0 10px 0 10px;
    border-right: 1px solid white;
}

#idiomas a:hover {
	color: white;
}

#idiomas a:last-child {
    border: none;
}

#idiomas a div {
	height: 3px;
	margin-top: 2px;
	border-radius: 5px;
}

main {
	display: flex;
	padding: 25px 0 20px;
	font-size: 12px;
}
main nav {
	display: flex;
	flex-direction: column;
	width: 220px;
	margin-top: 50px;
}
main nav a {
	margin-bottom: 6px;
	padding: 5px 0 5px 16px;
	font-size: 12px;
	background-color: #002144;
}

main section {
	display: flex;
	flex-wrap: wrap;
	flex-basis: calc(100% - 220px);
	padding: 0 10px;
	/* border: red 1px solid; */
}
section figure img {
	width: 100%;
}
section figcaption {
	margin-top: 3px;
	font-style: italic;
	font-size: 1rem;
	color: #000000;
	text-align: center;
}
section article {
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
	flex-basis: 66.666%;
	align-self: flex-start;
	color: black;
	text-align: justify;
}
section article div {
	flex-basis: 100%;
	padding: 0 10px;
}
section article figure {
	flex-basis: 50%;
	min-width: 240px;
	margin-top: 20px;
	padding: 0 10px;
}
section article h1 {
	margin-bottom: 15px;
	font-size: 24px;
	font-weight: normal;
	color: #002144;
}
section article p {
	margin-bottom: 0.7143rem;
	font-size: 1rem;
	color: black;
	line-height: 1.6rem;
}
section article ul {
	margin-left: 40px;
	font-size: 1rem;
	line-height: 1.6rem;
}
section aside {
	display: flex;
	/* justify-content: space-between; */
	flex-wrap: wrap;
	flex-basis: 33.334%;
	align-self: flex-start;
	/* max-width: 33.334%; */
	margin-top: -20px;
}
section aside figure {
	min-width: 240px;
	max-width: 100%;
	margin-top: 20px;
	padding: 0 10px;
}
#equipo article {
    justify-content: space-evenly;
}
#equipo article > div {
	flex-basis: 80%;
	align-self: flex-start;
}
#equipo figure {
	flex-basis: 40%;
    /* margin-bottom: 15px; */
    text-align: center;
}
#equipo figure img {
    box-shadow: 5px 5px 10px #002144;
}
#equipo figcaption {
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
}
#equipo figcaption p {
	margin: 0;
    font-weight: normal;
    font-style: italic;
}
.info {
	padding: 1px 4px 0 4px;
	border-radius: 5px;
	font-size: 10px;
	font-weight: bold;
	color: #FFFFFF;
	background-color: #002144; 
}
.info:link, .info:visited, .info:active {
	color: #FFFFFF;
	text-decoration: none;
}
.info:hover {
	background-color: #66A2C0;
}
.fotos {
	width: 100%;
	height: auto;
	/* margin-top: 20px; */
}
/* .fotos figure {
	min-width: 240px;
	max-width: 100%;
	width: 100%;
	padding: 0 10px;
} */
#recortes {
	flex-basis: 100%;
	justify-content: flex-start;
	flex-wrap: wrap;
}
#recortes figure {
	display: flex;
	flex-basis: 33.3333%;
	gap: 10px;
	min-width: 300px;
	/* height: 85px; */
	/* margin-bottom: 15px; */
	/* border: red 1px solid; */
}
#recortes img {
	width: max-content;
}
#recortes figure a {
	cursor: zoom-in;
}
#recortes figure figcaption a {
	cursor: pointer;
}
#recortes figcaption {
	/* width: 374px; */
	margin: 0;
	font-style: normal;
	text-align: justify;
}
#recortes figcaption p {
	margin-bottom: 0;
	line-height: 19px;
}
#recortes figcaption p:first-child {
	font-weight: bold;
}
.arts_img {
	width: 85px;
	height: 85px;
	border: green 1px solid;
}
#map {
	width: 100%;
	height: 300px;
	border: 1px #002144 solid;
}
#direccion {
	margin-top: 10px;
	text-align: center;
	line-height: 1.6rem;
	color: black;
}
#direccion a:link, #direccion a:visited, #direccion a:active {
	color: blue;
	text-decoration: none;
}
/* #marquee {
	padding: 5px 0;
	color: white;
	background-color:  #002144;
	overflow: hidden;
}
span::after {
	content: "\2001\2001\2666\2001\2001";
	color: white;
}
span:last-child::after {
	content: none;
}
#tit {
	margin-right: 5px;
	padding: 5px 10px;
	background-color:  #B45F04;
}
#tit::after {
	content: none;
} */

/* Hamburguer menu */
#boton-movil {
	display: none;
	position: relative;
	width: var(--anchura);
	height: var(--altura);
	margin-right: 30px;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
}

.linea {
	display: block;
	position: absolute;
	top: calc(50% - var(--alto-linea)/2);
	width: 100%;
	height: var(--alto-linea);
	background-color: white;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.linea::before,
.linea::after {
	content: "";
	position: absolute;
	top: calc(var(--altura)/-2);
	background-color: white;
	width: 100%;
	height: var(--alto-linea);
	border-radius: 5px;
	transition: all 0.3s ease;
}

.linea::after {
	top: calc(var(--altura)/2);
}

#boton-movil.open .linea {
	background: transparent;
}

#boton-movil.open:hover {
	color: white;
}

#boton-movil.open .linea::before {
	transform: rotate(-45deg);
	top: 0;
	background-color: #818181;
}

#boton-movil.open .linea::after {
	transform: rotate(45deg);
	top: 0;
	background-color: #818181;
}

#boton-movil.open .linea:hover::before,
#boton-movil.open .linea:hover::after {
	background-color: white;
}

#boton-movil.open+nav {
	width: 75%;
}

#menu-movil {
	position: fixed;
	top: 0;
	right: 0;
	width: 0;
	height: 100%;
	z-index: 1;
	background-color: black;
	opacity: 0.9;
	overflow: hidden;
	transition: 0.5s;
}

#menu-movil > figure:first-of-type {
	margin: 21px 16px;
	background: none;
	border: 0;
	outline:none;
}

#menu-movil > figure:first-of-type a {
	font-size: 18px;
	color: #818181;
	text-decoration: none;
}

#menu-movil > div {
	margin: 10px 16px 0 16px;
	border-bottom: #818181 1px solid;
}

#menu-movil > div figure {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 50px;
	border-top: #818181 1px solid;
	background-color: black;
	color: #818181;
	transition: 0.3s ease-in-out;
	cursor: pointer;
}

#menu-movil > div figure:first-child {
	border-top: 0;
}

#menu-movil > div figure a {
	text-decoration: none;
	color: #818181;
	cursor: pointer;
}

#menu-movil > div div a {
	display: block;
	padding: 8px 0 8px 16px;
	text-decoration: none;
	font-size: 14px;
	color: #818181;
	cursor: pointer;
}

#menu-movil > div a:last-child {
	padding-bottom: 16px;
}

nav#menu-movil a:focus,
nav#menu-movil a:hover,
nav#menu-movil figure:hover {
	color: white;
}

#menu-movil > div figure+div {
	max-height: 0;
	overflow: hidden;
	background-color: black;
	transition: max-height 0.4s ease-out;
}

#menu-movil > div figure span:last-child {
	font-size: 30px;
	transition: transform 0.6s ease;
}

#idiomas2 {
	position: absolute;
	bottom: 70px;
	display: flex;
	justify-content: center;
	width: 100%;
}

#idiomas2 a {
	padding: 0 10px;
	border-right: #818181 1px solid;
}

#idiomas2 a:last-child {
	border: none;
}

#idiomas2 a:link,
#idiomas2 a:visited,
#idiomas2 a:active {
	color: #818181;
	text-decoration: none;
}

#idiomas2 a:hover,
#iconos2 a:hover {
	color: white;
}

#idiomas2 a div {
	height: 3px;
	margin-top: 2px;
	border-radius: 5px;
}

#iconos2 {
	position: absolute;
	bottom: 16px;
	display: flex;
	justify-content: center;
	width: 100%;
}

#iconos2 a {
	margin-right: 10px;
	font-size: 32px;
	color: #818181;
}

#iconos2 a:last-child {
	margin: 0;
}

#menu-movil div figure.activo {
	height: 40px;
	margin: 0 -16px;
	padding: 8px 16px;
	background-color: var(--tpe-naranja);
	color: white;
}

#menu-movil div figure.activo a {
	color: white;
}

#menu-movil div figure.activo span:last-child {
	transform: rotate(180deg);
}


@media only screen and (max-width: 1023px) {
	section article {
		flex-basis: 100%;
		max-width: 100%;
		text-align: left;
	}
	section aside {
		flex-basis: 100%;
		max-width: 100%;
		margin: 0;
	}
	#recortes figure {
		flex-basis: 50%;
	}
	section aside figure {
		flex-direction: 50%;
		max-width: 50%;
	}
}

@media only screen and (max-width: 825px) {
	header section {
		/* position: fixed;
		top: 0;
		width: 100%; */
		height: 50px;
		background-color: #002144;
	}
	/* header > figure {
		margin-top: 50px;
	} */
	header figure:first-child a img {
		height: 50px;
	}
	#boton-movil {
		display: block;
	}
	#idiomas, #iconos, header > nav,
	main > nav, div > footer {
		display: none;
	}
	main section {
		flex-basis: 100%;
		max-width: 100%;
		padding: 0;
	}
	#equipo figure {
		flex-basis: 50%;
		min-width: 0;
	}
	main section figure {
		flex-basis: 100%;
		max-width: 100%;
		padding: 0 10px;
	}
}

@media only screen and (min-width: 826px) {
	#boton-movil.open+nav {
		width: 0;
	}
}