/**
 * Name: layout.css
 *	
 *	T.O.C
 *
 * =Wrap
 * =Header Top
 * =Header
 * =Logo
 * =Menu
 * =Custom search form
 * =Sticky Header
 * =Content
 * =Page Header
 * =Footer Top
 * =Footer
 * =Footer Bottom
 * =Back to top 
 *
 */

 
/* ==========================================================================
   =Wrap
   ========================================================================== */

	#wrap {
		position: relative;
		background-color: #fff;
	}
	
	#project-wrap {
		position: relative;
		overflow: hidden;
		width: 870px;
		-webkit-box-sizing: border-box;
		   -moz-box-sizing: border-box;
				box-sizing: border-box;
		padding: 0 40px 20px 40px;
		border-radius: 20px;
		margin: 0 auto;
		background-color: #fff;
	}
	
	.project-preview { margin: 0 -40px 30px -40px; }
	
	.project-preview img {
		display: block; 
		width: 100%;
	}
	
	@media (min-width: 768px) and (max-width: 979px) {
		
		#project-wrap { width: auto; }
		
	}
	
	@media (max-width: 767px) {

		#wrap {}
		
		#project-wrap { width: auto; }

	}

/* ==========================================================================
	=Header Top
	========================================================================== */
   
   #header-top {
		padding: 10px 0;
		background-color: #f3f3f3;
   }
   
   @media (max-width: 767px) {

		#header-top {}

	}
   
/* ==========================================================================
   =Header 
   ========================================================================== */
   	
	#header {
		position: absolute;
		z-index: 1000;
		top: 80px; 				
		right: 0;
		left: 0;
		padding-top: 8px;
		margin: 0 auto;
	}
	
	@media (min-width: 768px) and (max-width: 979px) {
		
		#header { 
			position: relative;
			top: 0;
		}
		
	}
	
	@media (max-width: 767px) {
		
		#header { 
			position: relative;
			top: 0;
		}
		
	}
	
/* ==========================================================================
   =Logo
   ========================================================================== */
   
	#logo { 
		display: inline-block;
		padding: 10px 0; 
	}
	
/* ==========================================================================
   =Menu 
   ========================================================================== */
	
	.menu-collaps {
		float: right;
		display: block;
		margin-top: 10px;
		color: #3db39e;
	}
	
	.menu-collaps i {
		font-size: 32px;
		line-height: 32px;
	}
	
	/**
 	 * 1. z-index is 1015 because the back-to-top has a z-index of 1010 
 	 */
	
	.nav {	/**** importanteeeee */
		position: fixed;
		z-index: 1015;				/* 1 */
		top: -100%;
		left: 0;
		height: 100%;
		width: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		text-align: center;
		-webkit-transition: all 0.3s;
				transition: all 0.3s;
	}
	
	.nav.nav-open { top: 0; }
	
	.menu {
		position: relative;
		top: 50%;
		padding: 0;
		margin: 0;
		margin-top: -260px;
		list-style: none;
	}
	
	.menu li a {
		display: inline-block;
		padding: 25px 0;
		color: #fff;
		font-size: 36px;
		line-height: 36px;
		text-decoration: none;
	}
	
	.menu li.active a,
	.menu li a:hover { color: #3db39e; }
	
	a.close-menu {
		position: absolute;
		top: -100px;
		left: 50%;
		margin-left: -15px;
		color: #fff;
	}
	
	a.close-menu i { font-size: 32px; }
	
	@media (max-width: 767px) {
		
		.menu-collaps {
			position: absolute;
			top: -2px;
			right: 20px;
		}
		
		.menu { margin-top: -140px; }
		
		.menu li a { 
			padding: 10px 0;
			font-size: 28px;
		}
		
		a.close-menu { top: -50px; }
		
	}
	
	@media only screen and (min-width: 480px) and (max-width: 767px) {
		
		.menu-collaps { right: 40px; }
			
	}
			
/* ==========================================================================
   =Custom search form 
   ========================================================================== */
	
	#custom-search-button + .sf-menu { margin-right: 30px; }
	
	#custom-search-button { 
		position: absolute;
		top: 42px;
		right: 0;
		display: block;
		width: 16px;
		height: 18px;
		background: url(../images/bg-search.png) no-repeat center center;
	}
	
	/**
 	 * 1. z-index is 1030 because the dropdown menu has a z-index of 1025 
 	 */
	 
	#custom-search-form {
		position: absolute;
		z-index: 1030; /* 1 */
		top: 87px;
		right: -10px;
		display: none;
	}

	#custom-search-form:before {
		position: absolute; 
		z-index: 9; 
		top: -9px; 
		right: 10px; 
		width: 0; 
		height: 0; 
		border-left: 7px solid transparent; 
		border-right: 7px solid transparent; 
		border-bottom: 10px solid #e0e0e0; 
		content:"";
	}
	
	#custom-search-form:after {
		position: absolute;
		z-index: 10; 
		top: -7px; 
		right: 10px; 
		width: 0; 
		height: 0; 
		border-left: 7px solid transparent; 
		border-right: 7px solid transparent; 
		border-bottom: 10px solid #fff; 
		content:"";
	}
	
	#custom-search-submit { display: none; }
	
	#custom-search-form #s {
		width: 220px;
		padding: 8px 10px;
		border-radius: 0;	
		background-color: #fff; 
	}
	
	#custom-search-form #s:focus { border-color: #e0e0e0; }
	
	
	@media (min-width: 768px) and (max-width: 979px) {

		#custom-search-button { right: 50px; }
		#custom-search-form { right: 40px; }
		
	}
	
	@media (max-width: 767px) {

		#custom-search-button { display: none; }
		
	}

/* ==========================================================================
   =Sticky Header
   ========================================================================== */


	@media (min-width: 0px) {/**** 1025px esto tiene influencia en la barra del header */
		
	/**
 	 * We want to allow the header to be sticky on resolutions > 1024. In order to do this
	 * we position it absolute and when the sticky trigger point is reached we give the #header
     * the .stuck class	and change it's positioning to fixed
	 * 
	 * 1. This value should be the height of the #header 	
 	 */
		
		#header-top { 
			margin-bottom: 105px; 	/* 1 */	
		}
		
		#header {
			min-height: 63px;
			padding-top: 0;
		}
		
		/**
		 * 1. The z-index has to be 1020 so it is bigger than the back to top buttons z-index that is 1010
		 */
		
		#header.stuck {
			position: fixed;
			z-index: 1020; /* 1 */
			top: 0;
			width: 100%;
			padding-top: 8px;
			box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
			margin: 0 auto;
			background: #2b4554;
			-webkit-animation: none;
					animation: none;
			-webkit-transition: padding 0.3s;
					transition: padding 0.3s;
		}
		
		#header.stuck .menu-collaps { margin-top: 12px; }
		
		#header.stuck  .sf-mega { margin-top: 0; }

		#header.stuck .sf-arrows .sf-with-ul:after { margin-top: -6px; }		
	
		#header.stuck  #custom-search-button { top: 12px; }
		#header.stuck  #custom-search-form { top: 52px; }
	
	}
	
/* ==========================================================================
   =Content
   ========================================================================== */
   	
	#content {}

/* ==========================================================================
   =Page Header
   ========================================================================== */
	
	#page-header { margin-bottom: 50px; }
	
	#page-header img { display: block; }
	
	.page-header-content {
		padding: 30px 0;
		background-color: #dcdcdc; 
	}
	
	.page-header-content p {
		margin-bottom: 0;
		font-weight: 600;
		text-transform: uppercase;
	}
	
/* ==========================================================================
   =Footer Top
   ========================================================================== */

	#footer-top { background-color: #f9f9f9; }
	
	#footer-top-widget-area-1 {}
	
/* ==========================================================================
   =Footer
   ========================================================================== */	
 	
	#footer {}
	
	#footer .widget { margin-bottom: 40px; }
	
	@media (max-width: 767px) {
		
		#footer .ewf_widget_contact_info { margin-top: 20px; }
		
	}
   
/* ==========================================================================
   =Footer Bottom
   ========================================================================== */		
	
	#footer-bottom { 
		padding: 40px 0;	
		background-color: #3e4f71;
		color: #fff;
	}
	
	#footer-bottom input[type="text"],
	#footer-bottom textarea,
	#footer-bottom select { background-color: #fff; }
	
	#footer-bottom .widget:last-child { margin-bottom: 0; }
	
	#footer-bottom #newsletter-subscribe-form { margin-top: 3px; }
	
	#footer-bottom #newsletter-subscribe-form input[type="text"] {
		float: right;
		width: 60%;
	}
	
	#footer-widget-area-1 {}
	#footer-widget-area-2 {}
	#footer-widget-area-3 {}
	#footer-widget-area-4 {}
	
	@media (min-width: 768px) and (max-width: 979px) {
		
		#footer-bottom #newsletter-subscribe-form input[type="text"] { float: none; }
		
	}
	
	@media (max-width: 767px) {
		
		#footer-bottom #newsletter-subscribe-form input[type="text"] { 
			float: none;
			width: 100%;
		}
		
	}
	
/* ==========================================================================
   =Back to top
   ========================================================================== */

	#back-to-top {
		position: fixed;
		z-index: 1010;
		right: -87px;
		bottom: 20px;
		width: 87px;
		height: 94px;
		background: url(../images/bg-back-to-top.png) no-repeat center center;
		color: #fff;
		font-size: 30px;
		line-height: 90px;
		font-weight: 600;
		text-align: center;				
		text-decoration: none;
		cursor: pointer;
		-webkit-transition: all 0.3s ease 0s;
				transition: all 0.3s ease 0s;
	}
	
	#back-to-top i {
		font-size: 37px;
		line-height: 37px;
		font-weight: normal;
		vertical-align: top;
		-webkit-transition: all 0.4s ease 0s;
				transition: all 0.4s ease 0s;
	}
	
	#back-to-top:hover {
		-webkit-transform: scale(1.1);
			-ms-transform: scale(1.1);
				transform: scale(1.1);
	}
	
	#back-to-top:hover i { color: #fff; }
	#back-to-top.visible { right: 40px; }
	#back-to-top.gone { right: -87px; }	
	
	@media (max-width: 767px) {
		
		#back-to-top { display: none; }
		
	}