/*estilos generales para todas las paginas*/

@import url("https://fonts.googleapis.com/css2?family=Teko:wght@600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap");

* {
	padding: 0;
	border: 0;
	text-decoration: none;
	list-style: none;
	box-sizing: border-box;
	font-family: roboto, sans-serif;
}

body {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 100dvh;
	grid-template-areas:
		"header header header"
		"main main main"
		"footer footer footer";
}

body {
	background-color: #f2f7f5;
	font-family: Roboto, sans-serif;
	margin: 0;
	color: #0a3e9e;
}

li {
	list-style-type: none;
}

ul {
	padding: 0;
}

a {
	text-decoration: none;
}

header {
	grid-area: header;
}

main {
	grid-area: main;
}

footer {
	grid-area: footer;
}

/*comienzo header*/

header {
	box-shadow: 3px 1px 1px #69696931;
	background: #ffffff;
	color: #003760;
	position: sticky;
	top: 0;
	z-index: 8000;
}

header .contenedora {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	height: 6em;
	padding: 1em;
}

header img {
	max-width: 7rem;
}

/* ----
   menu
   ----*/

nav {
	position: relative;
}

/* botón "hamburguesa" */
.menu-btn,
.menu-fondo {
	border-radius: 50%;
	padding: 0.75rem;
	width: 3rem;
	height: 3rem;
	cursor: pointer;
	transition: all 0.3s ease-out;
	position: fixed;
	top: 1.4em;
	right: 1em;
	z-index: 9000;
}

.menu-fondo {
	background: rgba(7, 13, 123, 0.778);
	z-index: 8000;
}

.menuVisible .menu-fondo {
	background: hsla(209, 95%, 17%, 0.95);
	border-radius: 0;
	width: 60%;
	height: 100%;
	inset: 0 0 auto auto;
}

.menu-btn .btn-linea {
	width: 25px;
	height: 3px;
	margin: 4px 0 4px 0;
	background: hsl(0 0% 90%);
	transition: all 0.3s ease-out;
	position: relative;
	z-index: 9000;
}

.menuVisible .menu-btn .btn-linea {
	transform: rotate(180deg);
}
.menuVisible .menu-btn .btn-linea:nth-child(1) {
	transform: rotate(45deg) translate(4px, 6px);
}
.menuVisible .menu-btn .btn-linea:nth-child(2) {
	opacity: 0;
}
.menuVisible .menu-btn .btn-linea:nth-child(3) {
	transform: rotate(-45deg) translate(4px, -6px);
}
/* fin botón "hamburguesa" */

nav ul {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	right: 1rem;
	top: calc(100% + 4rem);
	z-index: 9999;
	transition: all 0.5s ease;
}

.menuVisible ul {
	visibility: visible;
	opacity: 100%;
	transition: all 0.5s 0.2s ease;
}

nav a {
	color: white;
	display: block;
	font-size: 1.2rem;
	width: min(40vw, 15rem);
	text-align: end;
	margin-block: 4rem;
	padding-inline: 0.7em;
	padding-block: 0.2em;
	border-radius: 1em;
}

nav a:hover {
	background-color: #e2eefb;
	font-size: 1.4rem;
	transition: all 1s;
	color: rgb(17, 6, 101);
}

.menuVisible ul li:last-of-type :is(a:hover, a:active)::before {
	content: "";
}

/*fin header*/

/*footer*/

footer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	background-color: #aecff0;
	align-items: center;
	align-content: space-around;
	gap: 1rem;
	padding-block: 1em;
}

ul.\.links {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	align-items: center;
	margin: 0.5rem;
}

footer li {
	padding-block: 0.5em;
}

footer img {
	max-width: 6rem;
}

footer h4 {
	padding-block-end: 1em;
	margin-block: 0;
}

.footermenu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0.3rem;
	color: #003760;
	text-align: left;
}

.footermenu a {
	color: #003760;
	font-size: small;
	font-weight: bold;
}

.categoria {
	border-right: 1px solid #003760;
	display: inline-block;
	line-height: 1rem;
	margin: 0;
}

.footermenu ul {
	padding-inline-end: 2rem;
}

/*fin footer*/

@media screen and (min-width: 600px) {
	header nav {
		position: relative;
		margin-inline: 1em;
	}

	.menu-btn {
		display: none;
	}

	header ul {
		display: flex;
		position: relative;
		opacity: 1;
		visibility: visible;
	}

	header li {
		min-width: 4em;
		margin: 0.25em 0 0.25em 0.25em;
	}

	header a {
		border-radius: 0.25em;
		color: #060f4d;
		font-size: 1rem;
		width: auto;
		margin-block: 0;
		text-align: center;
		display: block;
	}

	header nav a:hover {
		font-size: 1rem;
		background-color: #030751;
		color: white;
	}
}
