#top-back {
	/* detras del header; */
	height: 90px;
	background-color: var(--fondo);
}
#bottom-back {
	/* detras del footer; */
	height: 40px;
	background-color: var(--fondo);
}


#header {
	background-color: var(--top);
	border: none;
	position: fixed; /*fijamos el header*/
	left: 0;
	top: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	overflow: hidden;
	z-index: 100;
}

.top-nav {
	display: flex;
	flex-direction: row;
	flex: auto;
	justify-content: space-between;
	/* elementos separados de una esquina a otra */
	padding: 10px 0;
}

.top-nav a {
	border: none;
}

.top-nav-left {
	display: flex;
	padding-left: 6rem;
	align-items: center; /* centra los elementos en el eje vertical */
}

.top-nav-right {
	display: flex;
	align-items: center;
	margin-left: auto;
	margin-right: 5rem;
}

.menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.menu li {
	padding: 0 1em;
	position: relative;
	top: 0;
}

.menu a {
	color: var(--menu_font);
	font-size: 0.9em;
	line-height: 1.5;
	font-weight: normal;
	text-transform: uppercase;
	display: inline-block;

	position: relative;
	top: 0;
	transition: top ease 0.5s;
}

.menu a.selected {
	color: var(--content-hover);
	border-top: solid 4px var(--content-hover);
}
.menu a:hover:not(.selected) {
	color: white;
}
.menu a:hover{
	left: 3px;
}

.menu a:active {
	color: var(--enlaces);
}

.open-menu,
.close-menu {
	display: none;
}

#footer {
	font-family: var(--font_anchors);
	position: fixed;
	left:0;
	bottom: 0;
	width: 100%;  
	background-color: var(--foot);
	color: var(--font_toc);
	letter-spacing: 0.5px;
	font-size: 75%;
	border-top: 1px dotted #cdd9dd;
}

#footer p {
   text-align: center !important;
	padding: 0;
	margin: 0;
} 
#footer a {
	color: var(--enlaces);
}

#footer a:hover {
	color: blue;
}


/* tablets*/
@media (max-width: 950px) {
	.top-nav-left {
		padding-left: 2rem;
	}
	.menu {
		pointer-events: none; /*inhabilita los botones de atrás */
		opacity: 0;
		flex-direction: column;
		position: fixed;
		z-index: 10;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		overflow-y: scroll;
		align-items: center;
		background-color: var(--menu_movil);
		transition: opacity 0.2s;
	}
	.menu li {
		padding: 0;
		display: block;
		width: 100%;
		text-align: center;
	}

	.menu a {
		color: var(--menu_font);
		width: 100%;
		line-height: 50px;
		border-bottom: 0.25px solid var(--menu_font);
		margin-bottom: 5px;
	}

	.menu a.selected {
		font-weight: bolder;
		border: none;
		border-bottom: 0.25px solid var(--menu_font);		
	}

	.menu a:hover {
		background-color: var(--top);
	}

	.open-menu,
	.close-menu {
		display: block;
		border: none;
		background: none;
		cursor: pointer;
	}
	.close-menu {
		align-self: flex-end;
		padding: 15px 5px;
		padding-right: 10px;
	}

	.menu-opened {
		opacity: 1;
		pointer-events: all; /*habilita los botones de atrás */
	}

	.open-menu:focus:not(:focus-visible),
	.close-menu:focus:not(:focus-visible) {
		outline: none;
	}
}
