@charset "utf-8";
/* CSS Document */

body, html {
	font-family: Arial, sans-serif;
	margin: 0px;
	padding: 0px;
	background-color: #ffffff;
	color: #000000;
	height: 100%;
	width: 100%;
}
section {
	display: grid;
	margin-bottom: 20px;
}
article h1 {
	font-size: 24px;
	margin: 15px 1rem 10px 1rem;
	text-transform: uppercase;
}
/* MAIN */
#main {
	display: grid;
	grid-gap: 1rem;
	padding: 1rem;
}
.bloque {
	border: 1px solid #ccc;
}
.bloque .textos {
	padding: 10px;
}
.textos h2 {
	font-size: 20px;
	color: #003366;
	border-bottom: 1px solid #003366;
	margin-top: 0;
}
.textos p {
	font-size: 0.85rem;
}
.textos a {
	font-size: 0.85rem;
	color: #003366;
	text-decoration: none;
}
.textos a:hover {
	text-decoration: underline;
}
/* Contenedor 16:9 para vídeo e iframe */
.media-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background-color: #f4f4f4;
}
.media-wrapper video,
.media-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}
/* NAV */
nav {
	background-color: #003366;
	margin-bottom: 0.1em;
}
nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
}
nav li { flex-grow: 1; }
nav a {
	display: block;
	padding: 1em;
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	transition: all 0.5s;
	text-transform: uppercase;
}
nav a:hover {
	background-color: #002244;
}
/* ASIDE */
aside {
	display: grid;
	grid-gap: 0.5rem;
	padding: 10px;
	background-color: #f0f0f0;
	border-left: 3px solid #003366;
}
.card img {
	width: 100%;
	height: auto;
	transition: all 1s;
}
.card img:hover {
	filter: invert(100%);
}
/* FOOTER */
footer {
	margin-top: 20px;
	border-top: 1px solid #ccc;
	padding-top: 10px;
	padding-left: 15px;
	font-size: 13px;
	color: #555555;
}

@media (orientation: landscape) {
section {
	grid-template-columns: 3fr 1fr;
	grid-template-rows: auto;
}
#main {
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: auto;
}
aside {
	grid-template-columns: 1fr;
	grid-template-rows: auto auto auto;
}
nav ul {
	flex-direction: row;
}
}
@media (orientation: portrait) {
section {
	grid-template-columns: 1fr;
	grid-template-rows: auto auto;
}
#main {
	grid-template-columns: 1fr;
	grid-template-rows: auto auto auto;
}
aside {
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: auto;
	border-left: none;
	border-top: 3px solid #003366;
}
nav ul {
	flex-direction: column;
}
nav a {
	margin-bottom: 0.2em;
}
}