@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600&display=swap');
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	font-family: 'Gabarito', sans-serif;
}
#equipo {
	scroll-margin-top: 100px;
}
.header {
	padding: 25px 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	transition: all .5s;
}
.header.scrolled {
	background: #002164;
	padding: 15px 0;
	transition: all .5s;
}
.container-header {
	width: 100%;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-around;
}
/* Logo */
.logo-header img {
	height: 40px;
    width: auto;
}
/* Menu */
.nav {
	display: flex;
	align-items: center;
}
.menu {
	list-style: none;
	display: flex;
	gap: 50px;
	margin-bottom: 0;
}
.menu li {
	position: relative;
}
.menu a {
	text-decoration: none;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	transition: 0.3s;
}
/* Hover */
.menu a:hover {
	color: #dfa327;
}
/* Activo */
.menu a.active {
	color: #dfa327;
}
/* Dropdown */
.dropdown:hover .submenu, .submenu:hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.dropdown {
	position: relative;
}
.dropdown::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 15px;
}
.dropdown > a {
	cursor: default;
}
.submenu {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 10px;
	background: #fff;
	list-style: none;
	min-width: 220px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: 0.3s;
	overflow: hidden;
	box-shadow: 0 0 30px rgba(127, 137, 161, .25);
}
.submenu li a {
	display: block;
	padding: 12px 15px;
	color: #000000;
	font-size: 14px;
}
/* Hover items dropdown */
.submenu li a:hover {
	background: #d3d3d3;
	color: #0274be;
	font-weight: 600;
}
/* Activo en dropdown */
.submenu li a.active {
	background: #ffffff;
	color: #dfa327;
}
hr {
	margin: 0 !important;
}
/* Idioma */
.lang img {
	width: 26px;
	height: auto;
}
/* Hamburguesa */
.menu-toggle {
	display: none;
	font-size: 28px;
	color: white;
	cursor: pointer;
}
/* RESPONSIVE */
@media (max-width: 991px) {
	.container-header {
		justify-content: space-between;
		padding: 0 20px;
	}
	.logo-header {
		order: 1;
	}
	.menu-toggle {
		order: 2;
		display: block;
	}
	.lang {
		order: 3;
	}
	.nav {
		position: fixed;
		top: 70px;
		left: 0;
		width: 100%;
		display: none !important;
        height: calc(100vh - 70px);
	    height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
		flex-direction: column;
		align-items: stretch;
		background: #ffffff;
		padding: 10px 0px 10px 0px;
	}
	.nav.active {
		display: flex !important;
	}
    .nav,
    .submenu {
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
	    scrollbar-width: none;
    }
    .nav::-webkit-scrollbar,
    .submenu::-webkit-scrollbar {
        display: none;
    }
	.menu {
		flex-direction: column;
		gap: 0;
        flex: 1;
	    min-height: 0;
	}
	.menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
	.menu a {
		padding: 10px 15px 10px 45px;
		display: block;
		font-size: 15px;
		color: #000000;
	}
	.menu a.active {
		color: #002164;
	}
	.menu a:hover {
		color: #002164;
	}
	.submenu {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		display: none;
		background: transparent;
		box-shadow: none;
        will-change: height;
	}
	.submenu li a {
		color: #000000;
		padding: 7px 40px;
		font-weight: normal;
		font-size: 14px;
	}
	.submenu li a:hover {
		background: #002164;
		color: #ffffff;
		font-weight: normal;
	}
	.dropdown.open .submenu {
		display: block;
		padding: 0px 30px 0px 30px;
        margin: 0px;
        max-height: 300px;
	    overflow-y: auto;
	}
	.lang {
		display: flex;
		gap: 10px;
	}
}
@media (max-width: 768px) {
	.container-header {
		padding: 0 16px;
	}
	.logo-header img {
		height: 34px;
		width: auto;
	}
	.menu-toggle {
		font-size: 26px;
	}
	.menu a {
		font-size: 14px;
		padding: 10px 15px;
	}
	.submenu li a {
		font-size: 13px;
		padding: 9px 15px;
	}
	.header {
		padding: 20px 0;
	}
	.header.scrolled {
		padding: 12px 0;
	}
}
@media (max-width: 576px) {
	.container-header {
		justify-content: space-between;
		gap: 12px;
	}
	.header {
		padding: 18px 0;
	}
	.logo-header img {
		height: 30px;
        width: auto;
	}
	.menu-toggle {
		font-size: 24px;
	}
	.nav {
		top: 60px;
	}
	.menu a {
		font-size: 13px;
		padding: 10px 15px;
	}
	.submenu {
		width: 100%;
	}
}