/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/*===== VARIABLES CSS =====*/
:root {
	--header-height: 3rem;

	/*===== Colores =====*/
	--first-color: #fce513;
	--dark-color: #070d1f;

	--dark-color-alt: #282b3a;
	--white-color: #fff;

	/*===== Fuente y tipografia =====*/
	--body-font: "Poppins", sans-serif;
	--normal-font-size: 0.938rem;
	--small-font-size: 0.813rem;

	/*===== z index =====*/
	--z-fixed: 100;
}

@media screen and (min-width: 768px) {
	:root {
		--normal-font-size: 1rem;
		--small-font-size: 0.875rem;
	}
}

/*===== BASE =====*/
*,
::before,
::after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	margin: var(--header-height) 0 0 0;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	font-weight: 500;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

.bd-grid {
	max-width: 1024px;
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 100%;
	grid-template-columns: 100%;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/*===== HEADER =====*/
.header {
	width: 100%;
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	padding: 0 1.5rem;
	background-color: #FDD100;
	z-index: var(--z-fixed);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center; 
}

.header__logo {
	color: var(--white-color);
}

.header__toggle {
	font-size: 1.5rem;
	color: var(--white-color);
	cursor: pointer;
}

/*===== NAV =====*/
@media screen and (max-width: 768px) {
	.nav {
		position: fixed;
		top: 0;
		left: -100%;
		background-color: var(--dark-color);
		color: var(--white-color);
		width: 100%;
		height: 100vh;
		padding: 1.5rem 0;
		z-index: var(--z-fixed);
		-webkit-transition: 0.5s;
		transition: 0.5s;
	}
}

.nav__content {
	height: 100%;
	-ms-grid-rows: max-content 1fr max-content;
	grid-template-rows: -webkit-max-content 1fr -webkit-max-content;
	grid-template-rows: max-content 1fr max-content;
	row-gap: 2rem;
}

.nav__close {
	position: absolute;
	right: 1.5rem;
	font-size: 1.3rem;
	padding: 0.25rem;
	background-color: var(--dark-color-alt);
	border-radius: 50%;
	cursor: pointer;
}

.nav__img {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding-top: 0.25rem;
	margin-bottom: 0.8rem;
	width: 56px;
	height: 56px;
	background-color: #ffffff;
	border-radius: 50%;
	overflow: hidden;
}

.nav__img img {
	width: 46px;
}

.nav__name {
	display: block;
	color: var(--white-color);
}

.nav__profesion {
	font-size: var(--small-font-size);
}

.nav__menu {
	-ms-flex-item-align: center;
	-ms-grid-row-align: center;
	align-self: center;
}

.nav__item {
	margin: 2.5rem 0;
}

.nav__link {
	color: var(--white-color);
}

.nav__social {
	padding-top: 0.5rem;
}

.nav__social-icon {
	font-size: 1.2rem;
	color: var(--white-color);
	margin-right: 1rem;
}

.nav__social-icon:hover {
	color: #e5c934;
}

/*Aparecer menu*/
.show {
	left: 0;
}

/*Active menu*/
.active {
	color: #ffffff;
}

/*===== MEDIA QUERIES =====*/
@media screen and (min-width: 768px) {
	body {
		margin: 0;
	}
	.header {
		height: calc(var(--header-height) + 1rem);
	}
	.header__logo,
	.header__toggle {
		display: none;
	}
	.nav {
		width: 100%;
	}
	.nav__content {
		-ms-grid-columns: (max-content) [3];
		grid-template-columns: repeat(3, -webkit-max-content);
		grid-template-columns: repeat(3, max-content);
		-ms-grid-rows: 1fr;
		grid-template-rows: 1fr;
		-webkit-column-gap: 1rem;
		column-gap: 1rem;
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		justify-content: space-between;
	}
	.nav__close,
	.nav__profesion {
		display: none;
	}
	.nav__perfil {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
	}
	.nav__img {
		width: 32px;
		height: 32px;
		margin-right: 0.5rem;
		margin-bottom: 0;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
	}
	.nav__img img {
		width: 26px;
	}
	.nav__list {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	}
	.nav__item {
		margin: 0 0.25rem;
	}
	.nav__link {
		padding: 0.5rem 0.8rem;
		border-radius: 0.25rem;
	}
	.nav__link:hover {
		background-color: #ff0000;
	}
	.active {
		background-color: #ff0000;
		color: var(--white-color);
	}
}

@media screen and (min-width: 1024px) {
	.bd-grid {
		margin-left: auto;
		margin-right: auto;
	}
}
