/*
	Theme Name: UNAM MAPAS
	Theme URI: https://virkapp.com/
	Author: virkapp
	Author URI: https://virkapp.com/
	Description:  custom theme for UNAM
	Version: 1.0
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: unam
	Tags: unam web site
*/
:root{
	--primary-color : #313A5B;
	--default-color : #555555;
	--secondary-color: #0E1737;
	--muted-color : #6A7393;
	--muted-accent-color : #D8C394;
	--accent-color:#B09861;
	--purple-color : #485277;
	--border-color : #DDDDDD;
	--primary-font:'Open Sans', sans-serif;
}

body{
	margin: 0px;
	padding: 0px;
	font-family: var(--primary-font);
	background-color: #F2F2F2;
	font-size: 14px;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
p{
	font-size: 14px;
	font-family: var(--primary-font);
	font-weight: 400;
}
.wrapper{
	min-height: 300px;
}

header{
	z-index: 9;
	height: 90px;
	position: sticky;
	top: 0px;
	background-color: white;
	box-shadow: 0px 1px 5px rgba(106,115,147,0.16);
}
header nav{
	height: 90px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}
header .navbar-logo{
	max-height: 80px;
}
footer{
	background-color: var(--secondary-color);
	padding-top: 15px;
	padding-bottom: 15px;
}
h1,h2,h3,h4,h5,h6{
	color : var(--default-color);
	font-family: cormorant-garamond,serif;
	font-weight: bold;
	font-style: normal;
	position: relative;
}
h1{
	font-size: 48px;
}
h1.section:after,h2.section:after,h3.section:after,h4.section:after,h5.section:after{
	content: '';
	height: 2px;
	background-color: var(--accent-color);
	width: 33%;
	position: absolute;
	bottom:  -6px;
	left: 0px;
}
h2.section:after{
	width: 25%;
}
h3.section:after{
	width: 20%;
}
h4.section:after{
	width: 15%;
}
h5.section:after{
	width: 5%;
}

h2{
	font-size: 24px;
}

footer h1,footer h2, footer h3 , footer h4, footer h5, footer h6{
	color: white;
}
footer p{
	color: var(--border-color);
}

footer a{
	text-decoration: none;
}

footer .btn-whiteus{
	border:1px #D8C394 solid;
	color:#D8C394;
	margin:15px 0;
	width:160px;
	height:52px;
	font-weight: bold;
}

header .btn-header{
	border: 2px #555555 solid;
    color: #555555;
    margin: 0px 15px;
    width: 168px;
    height: 52px;
    font-weight: bold;
    font-size:16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

footer .social-footer{
	float:right;
	display: flex;
	align-items: center;
}

footer .social-footer a{
	margin:0px 10px;
	font-size: 18px;
}

/*header*/
#menu-header{
	height: 90px;
	margin: 0px;
	padding: 0px;
	list-style-type: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
}

#menu-header li.menu-item{
	margin-left: 10px;
	margin-right: 10px;
	border-top: 2px solid transparent;
	border-bottom: 2px solid transparent;
	cursor: pointer;
}
#menu-header li.menu-item:first-child{
	margin-left: 0px;
}
#menu-header li.menu-item:last-child{
	margin-right: 0px;
}
#menu-header li:hover, #menu-header li.current_page_item{
	border-top: 2px solid #B09861;
	border-bottom: 2px solid #B09861;

}

#menu-header li.menu-item a{
	display: block;
	padding-top: 5px;
	padding-bottom: 5px;
	color : var(--default-color);
	text-decoration: none;
	font-weight: 700;
	font-family: var(--primary-font);
}

#menu-header li:hover a, #menu-header li.current_page_item a{
	color : var(--primary-color);
}
p.copyright{
	color:var(--muted-color);
	text-align: center;
	margin: 0px;
	padding: 0px;
}

/*helpers*/
.text-center{
	text-align: center;
}
.el-right {
	margin: 0px 0px 0px auto !important;
}

/*category*/
.category-section {
	background-color: var(--purple-color);
}
.category-section .category-title{
	background-color: var(--primary-color);
}
.category-section .category-title h1, .category-section .category-title h2, .category-section .category-title h3{
	color: white;
}
/*home*/
.home-banner{
	background-color: #F2F2F2;
	background-image: url('./images/home-bannerx1.png');
	background-repeat: no-repeat;
	background-position: right;
	height: 675px;
}
.home-banner-content{
	height: 675px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}
.home-banner-content h1{
	font-size: 72px;
	color: var(--default-color );
	margin-bottom: 15px;
	margin-top: 0px;
}
.home-banner-content p{
	font-family: var(--primary-font);
	font-size: 16px;
	color: var(--default-color );
	font-weight: 400;
}
@media all and (max-width: 768px) {
	.home-banner{
		background-image: url('./images/home-banner-mobile.png');
		background-size: 100% auto;
		background-position: 0px -100px;
		height: 500px;
	}
	.home-banner-content{
		height: 500px;
	}
	.home-banner-content h1{
		font-size: 36px;
	}
	.home-banner-content a{
		width: 200px;
	}
}

.main-features{
	background-color: var(--purple-color);
	position: relative;
	padding-top: 60px;
	padding-bottom: 60px;
	min-height: 523px;
}
.main-features:before{
	content: '';
	background-image: url('./images/ornamento1.png');
	left: 0px;
	top: 0px;
	width: 216px;
	height: 283px;
	position: absolute;
	z-index: 1;
}

.main-features:after{
	content: '';
	background-image: url('./images/ornamento2.png');
	right: 0px;
	bottom: 0px;
	width: 215px;
	height: 523px;
	position: absolute;
	z-index: 1;
}
.main-features h1{
	color: white;
	position: relative;
	z-index: 2;
}

.card-features{
	z-index: 2;
	position: relative;
	padding: 30px;
	background-color: white;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	margin-bottom: 60px;
}
.card-features .icon{
	width: 72px;
	height: 72px;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: flex-start;
}
.card-features h2{
	font-size: 24px;
	margin-top: 25px;
	margin-bottom: 25px;
}
.card-features p{
	margin: 0px;
	font-size: 16px;
	color: var(--default-color);
}

.wrapper-featured-image{
	left: calc( ( ( 100vw / 2) - 100% ) * -1 );
	width: calc(100vw / 2);
	height: calc(100vh - 90px);
	min-height: 500px;
	position: relative;
}
#mapa{
	width: 100%;
	height: 100%;
}
.featured-image{
	background-position: center;
	margin-left: calc( ( ( 100vw / 2) - 100% ) * -1 );
	width: calc(100vw / 2);
	height: calc(100vh - 90px);
	min-height: 500px;
	background-size: cover;
	background-repeat: no-repeat;
	position:sticky !important;
	top: 90px;
}
.featured-image .credit-image{
	position: absolute;
	bottom: 0px;
	left: 0px;
	right: 0px;
	padding: 15px;
	padding-left: 30px;
	color: white;
	font-size: 16px;
	background-image: linear-gradient(to bottom, rgba(255,0,0,0), rgba(14,23,55,1));
}

@media all and (max-width: 1023px){
	footer *{
		text-align: center;
		justify-content: center;
	}

	.enlaces-de-interes ul li{
		justify-content: center;
	}
	footer .btn-whiteus{
		margin:20px auto;
	}
	footer .social-footer{
		float:none;
		margin:20px auto;
	}

}

.tool-sidebar-overlay{
	display: none;
}
.filter-bar{
	display: none;
}
@media all and (max-width: 768px) {
	h1{
		font-size: 30px;
	}
	.featured-image{
		margin-left: 0px;
		width: calc(100% + 30px);
		height: 300px;
		margin-left: -15px;
		min-height: 300px;
	}
	.btn-go-back{
		display: none !important;
	}

	.tool .tool-sidebar{
		position: fixed;
		transition: all 0.4s ease-in;
		transition: all 0.4s ease-out;
		left: -330px;
		z-index: 999;
		height: auto !important;
		min-height: auto !important;
		top: 0px;
		bottom: 0px;
	}
	body.open .tool-sidebar{
		transition: all 0.4s ease-in;
		transition: all 0.4s ease-out;
		left: 0px;
	}

	body.open .tool-sidebar-overlay{
		position: fixed;
		top: 0px;
		bottom: 0px;
		right: 0px;
		left: 0px;
		z-index: 99;
		display: block;
		background-color: rgba(29,58,91,0.2);
	}
	.filter-bar{
		height: 50px;
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		padding-left: 15px;
		padding-right: 15px;
		background-color: white;
	}
	.filter-bar button{
		font-family: cormorant-garamond,serif;
		border:1px solid #DDDDDD;
		color: #555555;
		background-color: white;
		font-size: 16px;
		width: 93px;
		height: 36px;
	}
	.tool .tool-wrapper-map,.tool{
		min-height: 300px !important;
    	height: calc(100vh - 90px) !important;
	}
	.tool .tool-wrapper-map .mapa{
		min-height: 300px !important;
    	height: calc(100vh - 90px - 50px) !important;
	}
}

@media all and (max-width: 320px) {
	.tool .tool-sidebar{
		width: 280px !important;
		min-width: 280px !important;
		left: -300px;
		 
	}
}

.filter-years{
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
}
.filter-years{
	color: #555555;
	font-family: var(--primary-font);
	font-size: 16px;
}
.filter-years input{
	font-size: 12px;
	color: #555555;
	font-family: var(--primary-font);
	text-align: center;
	height: 45px;
	width: 112px;
	border:1px solid #DDDDDD;
	outline: none;
}

@media all and (max-width: 320px) {
	.filter-years input{
		width: 80px;
	}
}