/* Reset */

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,dfn,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
@font-face {
    font-family: 'baskerville-roman';
    src: url('../fonts/baskerville-roman-webfont.eot');
    src: url('../fonts/baskerville-roman-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/baskerville-roman-webfont.woff') format('woff'),
    url('../fonts/baskerville-roman-webfont.ttf') format('truetype'),
    url('../fonts/baskerville-roman-webfont.svg#baskerville-roman') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
	font-family: 'baskerville-roman';
	src: url('../fonts/baskerville-italic-webfont.eot');
	src: url('../fonts/baskerville-italic-webfont.eot?#iefix') format('embedded-opentype'),
	url('../fonts/baskerville-italic-webfont.woff') format('woff'),
	url('../fonts/baskerville-italic-webfont.ttf') format('truetype'),
	url('../fonts/baskerville-italic-webfont.svg#baskerville-roman') format('svg');
	font-weight: normal;
	font-style: italic;
}
html,
body {
  height: 100%;
background-color: #251D14;
	font-family: 'baskerville-roman', serif;
	/*font-size: 16px;*/
}


body{
margin:0;
padding:0;
color: #DEDBC4;
text-align: center;

position: relative;
}
a:link, a:visited {
    -webkit-transition: color .3s ease-out;
    -moz-transition: color .3s ease-out;
    -o-transition: color .3s ease-out;
    transition: color .3s ease-out;
    color: #DEDBC4;
	text-decoration: none;


}

a:active {
    color: #DEDBC4;
	text-decoration: none;
}
a:hover {
    -webkit-transition: color .3s ease-out;
    -moz-transition: color .3s ease-out;
    -o-transition: color .3s ease-out;
    transition: color .3s ease-out;
    outline: none;
    color: #B7A271;
	text-decoration: none;
}


#wrapper{

	width: 100%;
	height: 100%;
	margin: auto;

	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
	align-content: space-between;

	position: relative;

}
@keyframes imageAnimation {
	0% { opacity: 0; animation-timing-function: ease-in; }
	8% { opacity: 1; animation-timing-function: ease-out; }
	40% { opacity: 1 }
	45% { opacity: 0 }
	100% { opacity: 0 }
}
#wrapper span {
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	position: absolute;
	top: 0px;
	left: 0px;
	bottom: 0px;
	right: 0px;
	color: transparent;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	opacity: 0;
	z-index: 0;
	animation: imageAnimation 18s linear infinite 0s;
}
#wrapper span.img-01 {
	background-image: url(../images/castillo-de-somaen-01.jpg);
}
#wrapper span.img-02  {
	background-image: url(../images/castillo-de-somaen-02.jpg);
	animation-delay: 6s;
}
#wrapper span.img-03  {
	background-image: url(../images/castillo-de-somaen-03.jpg);
	animation-delay: 12s;
}
#wrapper span.img-04  {
	background-image: url(../images/castillo-de-somaen-04.jpg);
	animation-delay: 18s;
}
#wrapper span.img-05  {
	background-image: url(../images/castillo-de-somaen-05.jpg);
	animation-delay: 24s;
}
#wrapper span.img-01::after,
#wrapper span.img-02::after,
#wrapper span.img-03::after,
#wrapper span.img-04::after,
#wrapper span.img-05::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(39,19,0,.8);
    content: '';
    
}
.header {

	width: 100%;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	color: #8D7847;
	-webkit-align-self: flex-start;
	-moz-align-self: flex-start;
	-ms-align-self: flex-start;
	align-self: flex-start;
	z-index: 10;
	padding: 90px 90px 15px 90px;
	-webkit-transition: padding .3s ease-out;
	-moz-transition: padding .3s ease-out;
	-o-transition: padding .3s ease-out;
	transition: padding .3s ease-out;
}
.footer {
	z-index: 20;
	width: 100%;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	padding: 15px 90px 90px 90px;
	color: #DEDBC4;
	-webkit-flex-direction: row;
	-moz-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-align-items: flex-end;
	-moz-align-items: flex-end;
	-ms-align-items: flex-end;
	align-items: flex-end;
	-webkit-transition: padding .3s ease-out;
	-moz-transition: padding .3s ease-out;
	-o-transition: padding .3s ease-out;
	transition: padding .3s ease-out;
}

.footer .iso {
	text-align: left;
	width: 100%;
	max-width: 100px;

}
.logo {
	width: 100%;
	max-width: 320px;
	height: auto;

}
.logo svg {
	width: 100%;
	height: auto;
}
#ctr {
	z-index: 30;
	width: 100%;
	flex: 1;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-align-self: center;
	-moz-align-self: center;
	-ms-align-self: center;
	align-self: center;
	-webkit-align-content: center;
	-moz-align-content: center;
	-ms-align-content: center;
	align-content: center;
	padding: 15px 90px 15px 90px;
	-webkit-transition: padding .3s ease-out;
	-moz-transition: padding .3s ease-out;
	-o-transition: padding .3s ease-out;
	transition: padding .3s ease-out;
}
.ctd {
	align-self: center;
}
h1.intro {
	font-family: 'baskerville-roman', serif;
	font-size: 112px;
	line-height: 88%;
	color: #DEDBC4;
	text-align: left;
}
.email {
	font-family: 'baskerville-roman', serif;
	font-size: 31px;
	line-height: 88%;
	color: #DEDBC4;
	text-align: left;
	padding-top: 100px;
}
.email a {
	font-style: italic;
	text-decoration: underline;
}

#footer{
	width: 100%;
}

@media screen and (max-width: 1020px){

}

/**********************/
/* Para 960px */
@media only screen and (max-width: 980px) and (min-width: 821px) {
	.header {
		padding: 90px 90px 15px 90px;
	}
	#ctr {
		padding: 15px 90px 15px 90px;
	}
	.footer {
		padding: 15px 90px 90px 90px;
	}
	h1.intro {
		font-size: 112px;
		line-height: 88%;
	}
	.email {
		font-size: 31px;
		line-height: 88%;
	}
}

/* Para 800px */
@media only screen and (max-width: 820px) and (min-width: 621px) {
	.header {
		padding: 60px 60px 15px 60px;
	}
	#ctr {
		padding: 15px 60px 15px 60px;
	}
	.footer {
		padding: 15px 60px 60px 60px;
	}
	h1.intro {
		font-size: 90px;
		line-height: 88%;
	}
	.email {
		font-size: 25px;
		line-height: 88%;
	}
}

/* Para 600px */
@media only screen and (max-width: 620px) and (min-width: 501px) {
	.header {
		padding: 30px 30px 10px 30px;
	}
	#ctr {
		padding: 10px 30px 10px 30px;
	}
	.footer {
		padding: 10px 30px 30px 30px;
	}
	h1.intro {
		font-size: 90px;
		line-height: 88%;
	}
	.email {
		font-size: 25px;
		line-height: 88%;
		padding-top: 80px;
	}
}

/* Para 480px */
@media only screen and (max-width: 500px) and (min-width: 341px) {
	.header {
		padding: 30px 30px 10px 30px;
	}
	#ctr {
		padding: 10px 30px 10px 30px;
	}
	.footer {
		padding: 10px 30px 30px 30px;
	}
	h1.intro {
		font-size: 56px;
		line-height: 88%;
	}
	.email {
		font-size: 20px;
		line-height: 88%;
		padding-top: 50px;
	}
}

/* Para 320px */
@media only screen and (max-width: 340px) and (min-width: 5px)  {
	.header {
		padding: 30px 30px 10px 30px;
	}
	#ctr {
		padding: 10px 30px 10px 30px;
	}
	.footer {
		padding: 10px 30px 30px 30px;
	}
	h1.intro {
		font-size: 56px;
		line-height: 88%;
	}
	.email {
		font-size: 20px;
		line-height: 88%;
		padding-top: 50px;
	}
}

