
@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;
	margin: 0;
	box-sizing: border-box;
}

body {
	background: #50afe9;
}

.titulo {
	padding: 1em;
}
h1 {
	color: #080034;
	text-align: left;
}

.titulo p {
	font-size: 1.2em;
	color: #080034;
}

h2 {
	font-family: "teko";
	font-size: 3em;
	color: rgb(255, 255, 255);
}

h3 {
	font-family: "teko";
	color: aliceblue;
	font-size: 2em;
	font-weight: 400;
}

p {
	font-family: "Roboto", sans-serif;
	color: rgb(234, 234, 234);
	font-size: 0.8em;
	padding-top: 0.8em;
}

/*comienzo header*/

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

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

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-end: 1em;
	border-radius: 1em;
}

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

/*fin header*/

.timeline {
	position: relative;
	max-width: 1200px;
}

.timeline::after {
	content: " ";
	position: absolute;
	width: 6px;
	height: 100%;
	background-color: #003760;
	top: 0;
	left: 50%;
	margin-left: 3px;
	z-index: -1;
	animation: moveline 4s linear forwards;
}

@keyframes moveline {
	0% {
		height: 0%;
	}

	100% {
		height: 100%;
	}
}

.contenedor {
	padding: 10px 50px;
	position: relative;
	width: 50%;
	animation: movedown 1s linear forwards;
	opacity: 0;
}

@keyframes movedown {
	0% {
		opacity: 1;
		transform: translateY(-30px);
	}

	100% {
		opacity: 1;
		transform: translateY(0px);
	}
}

.contenedor:nth-child(1) {
	animation-delay: 0s;
}

.contenedor:nth-child(2) {
	animation-delay: 1s;
}

.contenedor:nth-child(3) {
	animation-delay: 2s;
}

.contenedor:nth-child(4) {
	animation-delay: 3s;
}

.contenedor::after {
	content: " ";
	position: absolute;
	width: 25px;
	height: 25px;
	right: -22px;
	background-color: #fff;
	border: 4px solid #003760;
	top: 15px;
	border-radius: 50%;
}

.texto {
	padding: 20px 30px;
	background-color: #003760;
	position: relative;
	border-radius: 6px;
	font-size: 20px;
}

.texto img {
	width: 100%;
}

.izq {
	left: 0;
}

.izq::before {
	content: " ";
	height: 0;
	position: absolute;
	top: 22px;
	width: 0;
	z-index: -1;
	right: 35px;
	border: medium solid white;
	border-width: 15px 0 15px 15px;
	border-color: transparent transparent transparent #003760;
}

.der {
	left: 50%;
}

.der::before {
	content: " ";
	height: 0;
	position: absolute;
	top: 22px;
	width: 0;
	z-index: -1;
	left: 35px;
	border: medium solid white;
	border-width: 15px 15px 15px 0px;
	border-color: transparent #003760 transparent transparent;
}

.contenedor.der::after {
	left: -11px;
}


.botones {
	color: #ffffff;
	font-size: small;
	background-color: #0a3e9e;
	padding-block: 0.25em;
	padding-inline: 1em;
	margin-block-start: 2em;
	border-radius: 0.3rem;
	text-align: center; 
	justify-content: center;
}
/*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;
}

.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;
}

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

/*fin footer*/

@media screen and (min-width: 570px) {
	header nav {
		position: relative;
	}

	header img {
		max-width: 8rem;
	}

	.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 nav a {
		border-radius: 0.25em;
		color: #060f4d;
		font-size: 1rem;
		width: auto;
		margin-block: 0;
		padding: 0.25em 0.5em 0.1em;
		text-align: center;
		display: block;
		transition: all 0.5s;
	}

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

@media screen and (max-width: 660px) {
	.timeline::after {
		left: 31px;
	}

	.contenedor {
		width: 100%;
		padding-left: 80px;
		padding-right: 25px;
	}

	h2 {
		font-size: 2em;
	}

	h3 {
		font-size: 1.5em;
	}

	.der {
		left: 0;
	}
	.contenedor::after {
		left: 20px;
	}

	.contenedor.der::after {
		left: 20px;
	}

	.der::before {
		left: 65px;
	}

	.izq::before {
		border-right: 15px solid #003760;
		border-left: 0;
		left: 65px;
	}
}
