@charset "utf-8";
body {
    margin: 0px auto;
    width: 100%;
	background-color:#add8e6;
}
header {
	width: 100%;
	top: 0px;
	left: 0px;
	text-align: center;
}
header a {

    font-weight: bolder;
    font-size: 2rem;
    color: #FFFFFF;
    text-decoration: none;
    padding-right: 10%;
    padding-top: 10px;
    padding-bottom: 10px;
		
}
.cabe0 {
    background-color: #273476;
    color: #FFFFFF;
    padding-bottom: 4px;
    text-align: center;
}
.cabe0 h4 {
    font-weight: bolder;
    font-size: 2rem;
}
.cabe0 p {
	color: white;
}
.cabe0 a {
    color: #FFFFFF;
}

.cabe1 {
    display: flex;
	/*Aquí probar opciones*/
	justify-content:center;
    vertical-align: middle;
}
.cabe1 div  {
    width: 20vw;
    font-family: 'Saira Stencil One', cursive;
    font-size: 2.6rem;
    font-weight: 800;
    padding-top: 40px;
    line-height: 90%;
}
.cabe1 nav {
    text-align: left;
    list-style: disc;
}
.cabe1 a  {
	font-size: 1rem;
    color: #000000;
}

.botones0 {
    display: grid;
	column-gap: 1rem;
	grid-auto-rows: 22rem;
	grid-template-columns: repeat(auto-fill,minmax(20rem,1fr));
}
.otro {
	grid-column: span 2;
}
.botones0 div {
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
    border-radius: 12px;
    border: thick groove #CDDDEF;
    margin-bottom: 10px;
	background: radial-gradient(#ffffff,#0979b0);
}
.botones0 div:hover p {
	display: block;
}
.botones0 div h2 {
    color: #0f161c;
    font-style: oblique;
    font-weight: lighter;
}
.botones0 div p {
    display: none;
}
.botones0 h2 a {
    text-decoration: none;
}


.linea {
    width: 100%;
    background-image: repeating-linear-gradient(90deg,rgba(218,249,248,1.00) 0%,rgba(12,98,206,0.87) 100%);
    text-align: center;
    font-weight: bolder;
}


/*menu horizontal*/
.Cabecera {
	width: 96%;
	height: 70px;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
	margin-left: 2%;
	background-color: #273476;
    color: #000000;
	/*Esto es para que quede fijo con respecto a la etiqueta HTML.
	Si lo pongo dentro de otra cosa, debo recordar que es fijo respecto del primer posicionado superior*/
	/*position: sticky;
	top: 0px;*/
}
.Cabecera .logo {
	float: left;
	padding-left: 5%;
	width: 70px;
}

.Cabecera .logo img {
	width: 100%;
	margin-top: 5px;
}

#contenedorPrincipal {
	font-size: 1rem;
	font-weight: 500;
	z-index: 100;
	float: right;
	margin-bottom: 5px;
	padding-right: 8%;
}
#contenedorPrincipal >a {
    display: none;
    margin-bottom: 40px;
}

.mostrarOcultar {
	/*background-color:white;*/
	list-style: none;
	display: flex;
	flex-basis: 0;
	flex-wrap: wrap;
	line-height: 2rem;
	color:#18A0FB;
}

.mostrarOcultar>li{
	margin-right: 10px;
	padding-left: 10px;
	padding-right: 10px;
	position:relative;
	/*
	Ancho y alto fijo para opciones largas
	width: 50px;
	height: 5rem;*/
}

.mostrarOcultar li, a {
	color:inherit;
    text-decoration: none;
	/* font-size: 1.2rem; */
}

.mostrarOcultar li:hover, li:focus {
	color: #18A0FB;
	background-color: aqua;
	font-style: oblique;
	/* text-decoration: underline; */
}

.mostrarOcultar li ul {
    position: absolute;
    display: none;
    padding: 0px;
    top:inherit;
	z-index: 200;
}

/*para cuando hay otro nivel*/
.mostrarOcultar li:hover> ul {
	display:block;
	list-style: none;
	top: 2.2rem;
}

.mostrarOcultar li ul li ul {
	display: none;
	/*AQUI*/
	left: 15rem;
}

.mostrarOcultar li ul li ul li:hover{
	display: block;
	list-style: none;
}

/*Marca la página actual, pero hay que modificarlo en cada HTML principal*/
.mostrarOcultar .actual {
	background-color: white;
}

.mostrarOcultar li ul li {
	background: #FFFFFF;
	border: 1px solid #18A0FB;
	box-sizing: border-box;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
	border-radius: 3px;
	/*AQUI*/
	width: 15rem;
	padding-left: 10px;
	color: #474849;
}

/*pantallas chicas*/
@media screen and (max-width: 1040px) {
	#contenedorPrincipal {
		padding-left: 0px;
		float: none;
	}
	#contenedorPrincipal:not(:target) >a:first-of-type {
		display: inherit;
		font-size: 5rem;
		/*posición del chirimbolo*/
		text-align: right;
		margin-right: 3%;
	}
	#contenedorPrincipal:not(:target) >a,
	#contenedorPrincipal:not(:target) .mostrarOcultar {
		display:none;
	}

	#contenedorPrincipal:target >a {
		display:inherit;
		font-size: 2rem;
		/*posición del chirimbolo*/
		text-align: right;
		margin-right: 3%;
	}

	#contenedorPrincipal:target .mostrarOcultar {
		display:inherit;
	}

	#contenedorPrincipal:target >a:first-of-type {
		display:none;
	}
	
	.mostrarOcultar li ul {
		position: inherit;
	}
	.mostrarOcultar li ul li {
		width: 100%;
	}
	.mostrarOcultar li:hover> ul {
		top: 0rem;
	}

}

