@font-face {
	font-family: 'icomoon';
	src: url('../webfonts/icomoon.eot');
	src: url('../webfonts/icomoon.eot?#iefix') format('embedded-opentype'),
		url('../webfonts/icomoon.woff') format('woff'),
		url('../webfonts/icomoon.ttf') format('truetype'),
		url('../webfonts/icomoon.svg#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
}

#menu{
	font-size:10px;	
	margin-top:10px;
} 

.icon-menu {
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

.icon-menu:before {
	content: "\f0c9";
}

.nav i{
	/* Make the font smoother for Chrome */
	-webkit-transform: translate3d(0, 0, 0);
	-moz-transform: translate3d(0, 0, 0);
	-o-transform: translate3d(0, 0, 0);
	-ms-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

a, li {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* Global CSS that are applied for all screen sizes */

.nav ul {
	max-width: 1240px;
	margin: 0 -15px;
	padding: 0;
	list-style: none;
	font-size: 1.2em;
	font-weight: 300;
}

.nav li span {
	display: block;
}

.nav a {
	display: block;
	color: rgba(249, 249, 249, .9);
	text-decoration: none;
	-webkit-transition: color .5s, background .5s, height .5s;
	-moz-transition: color .5s, background .5s, height .5s;
	-o-transition: color .5s, background .5s, height .5s;
	-ms-transition: color .5s, background .5s, height .5s;
	transition: color .5s, background .5s, height .5s;
}

body.fixed .nav a{
	color: #fff;
}

/* Remove the blue Webkit background when element is tapped */

a, button {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Hover effect for the whole navigation to make the hovered item stand out */

.nav ul a {
	color: #fff;
}

.nav ul:hover a:hover {
	color: #98bf0d;
}

body.fixed .nav ul:hover a:hover {
	color: #98bf0d;
}

.nav ul .dropdown{
	display:none;
	width:200px;
}
.nav ul li ul li ul.dropdown{
	display:none;
	width:200px;
}
.nav ul li.drop:hover .dropdown{
	display:block;
}
.nav ul li ul li.drop:hover ul.dropdown{
	display:block;
}
.nav ul .dropdown li{
	display:inline-table;
	font-size:12px;
	width:100%;
	text-align:left;
	background:rgba(255,255,255,0.85);
	padding:5px 10px;
}
.nav ul .dropdown li .dropdown li{
	display:inline-table;
	font-size:11px;
	width:100%;
	text-align:left;
	background:none;
	padding:5px 10px;
	padding-left:30px;
}
.nav ul ul.dropdown li a{
	color:#fff;
	border-bottom: 1px solid #98bf0d;
}
.nav ul ul.dropdown li:last-child a{
	color:#fff;
	border-bottom: none;
}
body.fixed .nav ul a:hover {
	color: #fff;
}
.nav ul ul.dropdown li a:hover, body.fixed .nav ul ul.dropdown li a:hover{
	color:#98bf0d;
}

/* For screen bigger than 800px */
@media (min-width: 769px) {

	/* Transforms the list into a horizontal navigation */
	.nav li {
		float: left;
		width: auto;
		text-align: center;
		-webkit-transition: border .5s;
		-moz-transition: border .5s;
		-o-transition: border .5s;
		-ms-transition: border .5s;
		transition: border .5s;
		text-transform:uppercase;
		margin: 0 30px;
	}

	.nav a {
		display: block;
		width: auto;
	}

	/* Making the text follow the height animation */
	.no-touch .nav a:hover .icon + span {
		margin-top: 3.2em;
		-webkit-transition: margin .5s;
		-moz-transition: margin .5s;
		-o-transition: margin .5s;
		-ms-transition: margin .5s;
		transition: margin .5s;
	}
}

/* The "tablet" and "mobile" version */

@media (max-width: 49.938em) {		
	
	.nav ul li {
		-webkit-transition: background 0.5s;
		-moz-transition: background 0.5s;
		-o-transition: background 0.5s;
		-ms-transition: background 0.5s;
		transition: background 0.5s;
	}	

}


/* Adapting the font size and width for smaller screns*/
@media (min-width: 32.5em) and (max-width: 38.688em) {
	
	.nav li span.icon {
		width: 50%;
	}

	.nav li .icon + span {
		font-size: 0.9em;
	}
}

/* Styling the toggle menu link and hiding it */
.nav .navtoogle{
	display: none;	
	width: 100%;
	padding: 0.5em 0.5em 0.8em;
	font-family: 'Lato',Calibri,Arial,sans-serif;
	font-weight: normal;
	text-align: right;
	color: #fff;
	font-size: 1.2em;
	background: none;	
	border: none;
	/*border-bottom: 4px solid rgb(221, 221, 221);*/
	cursor: pointer;
}



.navtoogle i{
	z-index:-1;
}

.icon-menu {
	position: relative;
	top: 3px;
	line-height: 0;
	font-size: 1.6em;
}

/*@media (min-width: 769px) and (max-width: 1199px){
	.nav ul {
		font-size: 1.2em;
	}
}*/

@media (max-width: 810px) {
	
	.no-touch .nav ul:hover a {
		color: #98bf0d;
	}
	
	#menu{margin-top:0;}
	
	.nav a{
		color:#98bf0d;
	}
	#menu{
		position: relative;
	}
	/* Unhiding the styled menu link */
	.nav .navtoogle{
		margin: 0;
		display: block;
		width:auto;
		position: absolute;
		right: 40px;
		top: -60px;
	}
	header .logo img{
		width:80%;
	}
	.enlacesmenu{
		padding-left:0px;
	}
	body.fixed #menutoggle{
		color:#98bf0d;
	}
	
	body.fixed .nav a{
		color: #98bf0d;
	} 
	
	body.fixed .nav ul ul.dropdown li a{
		color: #fff;
	}
	
	body.fixed .nav .active + ul {		
		background-color:#fff;
		/*-webkit-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.25);
	-moz-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.25);
	box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.25);*/
	}
	
	body.fixed .nav ul:hover a {
		color: #98bf0d !important;
	}
	
	body.fixed .nav ul:hover a:hover {
		color: #98bf0d !important;
	}
	.nav ul li.drop:hover .dropdown{
		display:none;
	}
	.nav ul li.drop .dropdown.active{
		display:block;
		width:100%;
		margin:0px;
	}
	
	/* Animating the height of the navigation when the button is clicked */
	
	/* When JavaScript is disabled, we hide the menu */
	.no-js .nav ul {
		max-height: 30em;
		overflow: hidden;
	}
	
	/* When JavaScript is enabled, we hide the menu */
	.js .nav ul {
		max-height: 0em;
		overflow: hidden;
	}
	
	/* Displaying the menu when the user has clicked on the button*/
	.js .nav .active + ul, .js .nav ul.dropdown {		
		max-height: 30em;
		overflow: auto;
		background-color:#272727;
		-webkit-transition: max-height .4s;
		-moz-transition: max-height .4s;
		-o-transition: max-height .4s;
		-ms-transition: max-height .4s;
		transition: max-height .4s;
	}
	
	
	/* Adapting the layout of the menu for smaller screens : icon on the left and text on the right*/
	
	.nav li span {
		display: inline-block;
		height: 100%;
		text-transform:uppercase;
	}

	.nav a {
		padding: 0.5em;	
		text-align:center;	
	}
	
	.icon + span {
		margin-left: 1em;
		font-size: 0.8em;
	}
	
	/* Adding a left border of 8 px with a different color for each menu item*/
	.nav li:nth-child(6n+1):hover {
		border-right: 8px solid #98bf0d;
	}

	.nav li:nth-child(6n+2):hover {
		border-right: 8px solid #98bf0d;
	}

	.nav li:nth-child(6n+3):hover {
		border-right: 8px solid #98bf0d;
	}

	/* make the nav bigger on touch screens */
	.touch .nav a {
		padding: 0.8em;
		color: #98bf0d;
	}
}

#header.active{
	height: 100%;
	background: #272727;
}
#header.active .icon-menu {
	color: #98bf0d;
}