@font-face {
font-family: 'Gill Sans MT Condensed';
src: url('GCondensed.otf');
}

*{
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	
	--color1: #f7f7f7;
	--color2: #d22f04;
	--color3: #000;
}

a{
	text-decoration: none;
}

ul, ol {
    list-style:none;
}

h1, h2, h3{
	font-family: 'Gill Sans MT Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1{
    font-size: 25px;
	color: var(--color2);
	margin: 20px;
}

h2{
	margin-bottom: 20px;
	font-size: 35px;
	color: var(--color2);
	padding-top: 5.2rem;
	text-align: center;
}

h3{
	margin-bottom: 10px;
	font-size: 24px;
	color: var(--color2);
}

p{
    margin-bottom: 20px;
}

/**********************/
header{
    width: 100%;
    display: flex;
	flex-wrap: wrap;
    justify-content: center;
    align-items: center;
	position: relative;
    background-color: var(--color3);
	position: fixed;
}

#cabecera_titulo{
	width: calc(100% - 70px);
}

#menu_burger{
	width: 50px;
	height: 50px;
	margin: 10px;
	background-image: url(../img/menu.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 90%;
	transition: all 0.5s;
	cursor: pointer;
}

#menu_burger.close{
	background-image: url(../img/close.svg);
	background-size: 70%;
}

nav.visible{
	background-color: var(--color3);
    display: flex;
    justify-content: center;
	left: 0;
}

nav{
	width: 100%;
	position: absolute;
	left: 100vw;
	top: 67px;
	transition: left 1s;
}

nav ul{
    text-align: center;
}

.nav li a {
    background-color:var(--color3);
	font-family: 'Gill Sans MT Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 25px;
    color: var(--color1);
    text-decoration:none;
    padding:10px 12px;
	display:block;
	cursor: pointer;
}

.nav li a.selected {
    color: var(--color2);
}

.centered-text {
	text-align: center;
}
/**********************/
section{
	background-color: var(--color1);
}

article{
	padding: 20px;
}

.columnas{
	display: flex;
	flex-direction: column;
}

.col{
    display: flex;
	flex-direction: column;
    align-items: center;
}

.col_3{
	margin-bottom: 20px;
}

.col img{
	max-width: 100%;
	margin-bottom: 10px;
}

.col_30{
	display: flex;
	justify-content: center;
	order: 2;
}

.col_70{
	order: 1;
}
/**********************/
footer{
    width: calc(100% - 40px);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--color3);
    color: var(--color1);
}

.columnas .social_media{
    flex-direction: row;
	justify-content: center;
}

.social_media div{
    width: 40px;
    height: 40px;
    margin: 5px;
    background-repeat: no-repeat;
    background-size: cover;
}

#fb_logo{
    background-image: url(../img/facebook.svg);
}

#fb_logo:hover{
    background-image: url(../img/facebook-hover.svg);
}

#inst_logo{
    background-image: url(../img/instagram.svg);
}

#inst_logo:hover{
    background-image: url(../img/instagram-hover.svg);
}

#select_idioma{
	width: 200px;
    padding: 10px;
    background-color: var(--color1);
    color: var(--color3);
    border: none;
    font-size: 16px;
}

@media (min-width: 1050px) {

	h1{
		text-align: center;
		font-size: 48px;
	}

	h2{
		margin-bottom: 20px;
		font-size: 35px;
		color: var(--color2);
		padding-top: 0px;
		text-align: center;
	}
	
	/*ESTRUCTURA*/
	header{
		flex-direction: column;
		background-color: var(--color1);
		position: relative;
	}
	
	#logo{
		height: 100px;
		margin: 20px;
	}

	#menu_burger{
		display: none;
	}
	
	section{
		width: 100%;
		min-height: calc(100vh - 181px - 189px - 80px);
		background-image: url("../img/fondo.png");
		background-repeat: no-repeat;
		background-size: 100%;
		background-position: bottom;
		background-color: white;
		padding-bottom: 300px;
	}
	
	article{
		width: calc(80% - 80px);
		padding: 40px;
		margin: 0 10%;
		display: flex;
		flex-direction: column;
		background-color: white;
		box-shadow: 0px 0px 15px 15px white;
	}
	
	article *{
		z-index: 2;
	}

	.columnas{
		width: 100%;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	
	.col{
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}
	
	.col img{
		width: 100%;
	}
	
	.col_30{
		order: 1;
		width: calc(30% - 20px);
		max-width: 250px;
		padding: 10px;
	}
	
	.col_70{
		order: 2;
		justify-content: center;
		width: calc(70% - 80px);
		padding: 40px;
	}
	
	.columnas .social_media{
		flex-direction: row;
		justify-content: center;
	}
	
	footer{
		width: calc(100% - 40px);
		padding: 20px;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		background: var(--color3);
		color: var(--color1);
	}
	
	/*Menu desplegable*/
	nav{
		position: relative;
		left: auto;
		top: auto;
		background-color: var(--color3);
		display: flex;
		justify-content: center;
	}
	nav ul{
		text-align: center;
	}
	
	.nav li {
		width: 200px;
	}
	
	.nav > li {
		float:left;
	}
	
	.nav li a {
		background-color:var(--color3);
		font-family: 'Gill Sans MT Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
		font-size: 25px;
		color: var(--color1);
		text-decoration:none;
		padding:10px 12px;
		display:block;
		transition: all 0.3s ease-in-out;
		cursor: pointer;
	}
	
	.nav li a.selected {
		color: var(--color2);
	}
	
	.nav li a:hover {
		color: var(--color1);
		background-color:#212121;
	}
	
	.nav li ul {
		display:none;
		position:absolute;
		width: 200px;
	}
	
	.nav li:hover > ul {
		display:block;
	}
	
	.nav li ul li {
		position:relative;
		width: 100%;
	}
	/*****************************/

	.col_3{
		width: calc(100% /3 - 20px);
		padding: 10px;
		display: flex;
		align-items: center;
	}

	.col_2{
		width: calc(100% /2 - 20px);
		padding: 10px;
	}
	
	.social_media div{
		width: 40px;
		height: 40px;
		margin: 5px;
		background-repeat: no-repeat;
		background-size: cover;
		transition: all 0.3s ease-in-out;
	}
	
	#fb_logo{
		background-image: url(../img/facebook.svg);
	}
	
	#fb_logo:hover{
		background-image: url(../img/facebook-hover.svg);
	}
	
	#inst_logo{
		background-image: url(../img/instagram.svg);
	}
	
	#inst_logo:hover{
		background-image: url(../img/instagram-hover.svg);
	}
	
	#select_idioma{
		width: 200px;
		padding: 10px;
		background-color: var(--color1);
		color: var(--color3);
		border: none;
		font-size: 16px;
	}

	/***********************/
	/*FOG*/

	*, 
	*:before, 
	*:after {
	box-sizing: inherit;
	}

	figure {
	margin: 0;
	}

	.absolute-bg {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;

	height: 100%;
	width: 100%;

	background-position: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
	}

	.fog {
	position: relative;
	width: 100%;
	z-index: -1;
	}

	.fog .fog_container {
		position: fixed;
		bottom: 0;
		height: 100vh;
		width: 100%;
		overflow: hidden;
		z-index: 1;
	}

	.fog .fog_container  .fog_img {
		position: absolute;
		bottom: 0;
		height: 100%;
		width: 300vw;
	}

	.fog .fog_container  .fog_img--first {
		background: url('../img/niebla1.png') repeat-x;
		background-size: contain;
		background-position: center;
		animation: marquee 60s linear infinite;
		}

	.fog .fog_container  .fog_img--second {
		background: url('../img/niebla2.png') repeat-x;
		background-size: contain;
		background-position: center;
		animation: marquee 30s linear infinite;
	}

	@keyframes marquee {
	0% { transform: translate3d(0, 0, 0); }
	100% { transform: translate3d(-200vw, 0, 0); }
	}

}

@media (min-width: 1200px){

	section {
		padding-bottom: 450px;
	}

	article{
		width: calc(70% - 80px);
		margin: 0 15%;
	}
}