*{
	padding:0;
	margin:0;
}

html{
	font-size:0.625em;
}

body{
	font-size:1.6rem;
	font-family:'Open Sans', san-serif;
	overflow-X:hidden;
}
::-moz-selection{
   color:white;
   background:#b90021;
}
::selection{
   color:white;
   background:#b90021;
}


/**********HEADER***************/


#logo {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 5000;
    width: 150px;
    height: 80px;
    background: #000;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
}

#logo a{
    position: absolute;
    bottom: 10px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
}
#logo img{
    width: auto;
	position:static;
	-webkit-transform: translateX(0);
	        transform: translateX(0);
}
html, body, header{
	height:100%;
}
header img {
    width: 100px;
    height: auto;
    position: absolute;
    top: 30px;
    right: 10px;
}
header {
	background:#868383 url(../imagenes/dientesdeleon1.png) no-repeat 50% 50%;
	background-size:cover;
	position: relative;
	overflow: hidden;
	z-index: 10;
}
header1 {
	background:#111 url(../img/adoracion-martinez-perez-grande.jpg) no-repeat 50% 50%;
	background-size:cover;
	/*position: relative;*/
	overflow: hidden;
	z-index: 10;
	height:100px;
	
}
header:before {
    content: "";
    display: block;
    /*background: rgba(0,0,0,0.7);   JL*/
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

header .icon-down-open-big {
    color: #fff;
    position: absolute;
    left: 50%;
    bottom: 0px;
    font-size: 3rem;
    cursor: pointer;
    -webkit-transition:0.2s;
    transition: 0.2s;
    z-index: 100;
}

header .icon-down-open-big:hover {
    color: rgba(255,255,255,0.8);
    bottom: 30px;
}

.icon-up-open-big{
	display:block;
	position:fixed;
	bottom:10px;
	right:10px;
	color:#333;
	text-decoration:none;
	background:rgba(255,255,255,0.5);
	font-size:2.5rem;
	border-radius:50%;
	padding:6px;
}
.icon-up-open-big span{
	display:none;
}
#intro {
    width: 100%;
    color: #fff;
    max-width: 800px;
    padding: 80px 10px 0;
	box-sizing:border-box;
	position: relative;
    z-index: 50;
}
#intro h1 {
    font-size: 3rem;
    width: 100%;
    padding: 10px 0;
    max-width: 550px;
    line-height: 1em;
}
#intro h1:before {
    content: "";
    display: block;
    width: 25%;
    height: 10px;
    background: #b90021;
}
#intro p {
    font-size: 1.8rem;
    line-height: 1.4em;
	border-top:1px solid #fff;
	margin-top:10px;
	font-weight:700;
	padding:5px 0;
}

#intro a {
    border: 2px solid #fff;
    margin-top: 10px;
    display: block;
    padding: 5px 15px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.4rem;
    position: relative;
    text-align: center;
}


#intro a.icon-mail:before {
    font-size: 2rem;
    margin-right: 10px;
}
#intro a:after {
    content: "";
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
    left: 0;
    position: absolute;
    top: 0;
	z-index:-1;
	-webkit-transition:0.4s;
	transition:0.4s;
}
#intro a:hover:after {
    width: 100%;
}

#intro a:hover:before {
    color: #b90021;
    background:none;
}
#intro a:hover {
    color: #b90021;
	background:#fff;
	-webkit-transition:0.2s linear;
	transition:0.2s linear;
}


/**********CONTENIDO********/
#contenido {
    margin: 50px 0;
}

#contenido section{
	width:100%;
	max-width:1200px;
	margin:50px auto;
	padding:10px;
	box-sizing:border-box;
	position:relative;
}
#contenido section:after {
    content: "";
    display: block;
    width: 200px;
    height: 8px;
    background: #111;
    margin: 100px auto 0;
    box-sizing: border-box;
}
#contenido section h2 {
    font-size: 3.5rem;
    box-sizing: border-box;
    margin-bottom: 20px;
    line-height: 1em;
}
#contenido section .subtitulo {
    font-size: 2.4rem;
    box-sizing: border-box;
    margin-bottom: 20px;
    color: #777;
    line-height: 1.6em;
}
#contenido .entrada p {
    font-size: 1.7rem;
    line-height: 1.6em;
    margin-bottom: 20px;
}

#contenido .entrada p span{
	font-size: 11rem;
    font-weight: 700;
    line-height: 0.8em;
    float: left;
    margin-right: 6px;
}
#contenido .entrada div{
	box-sizing:border-box;
	padding:0 10px;
}
#contenido section .texto {
    width: 100%;
    display: block;
    box-sizing: border-box;
    max-width: 700px;
	margin-bottom: 50px;
}
#contenido section .texto h2 {
    font-size: 3rem;
    box-sizing: border-box;
    margin-bottom: 20px;
    line-height: 1.2em;
    text-transform: uppercase;
}
#contenido section .texto p{
    margin-bottom: 15px;
    font-size: 1.8rem;
    line-height: 1.8em;
}
#contenido section .texto .nota{
    font-style:italic;
    font-size: 1.6rem;
}
#contenido section .texto h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #666;
    display: inline-block;
    color: #333;
}
#contenido section .texto a{
    color:#b90021;
	text-decoration:none;
	-webkit-transition:0.2s;
	transition:0.2s;
}

#contenido section figure {
    max-width: 400px;
}
#contenido section figure:after {
    content:"";
	display:block;
	clear:both;
}
#contenido section figure img{
    width: 100%;
    height: auto;
    display: block;
    max-width: 400px;
    border: 8px solid #000;
	box-sizing: border-box;
}
#contenido section figure figcaption{
    max-width: 220px;
    float: right;
	padding: 5px 0 35px;
}

#contenido section figure figcaption h1{
    font-size: 2.2rem;
    line-height: 1.2em;
    margin-bottom: 5px;
}
#contenido section figure figcaption p{
	font-size:1.6rem;
	line-height: 1.6em;
}
#contenido section figure figcaption .edad{
    font-size: 8rem;
	display: block;
    line-height: 1em;
    font-weight: 700;
    margin-left: -15px;
}







/****CARAS********/
#caras {
    display: block;
	position:relative;
	z-index: 10;
}
#caras ul {
    font-size: 0;
    display: block;
    list-style: none;
}
#caras ul li{
    font-size: 1.8rem;
    display: inline-block;
    vertical-align:top;
	width:50%;
	position:relative;
}
#caras ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    background: #2f0008;
}
#caras ul li img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.5;
}
#caras ul li figcaption{
	width: 90%;
    position: absolute;
    bottom: 5px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    text-align: center;
}
#caras ul li figcaption p:nth-of-type(1) {
    font-size: 1.4rem;
    line-height: 1.1em;
    margin-bottom: 5px;
}
#caras ul li figcaption p:nth-of-type(2){
	font-size: 2.4rem;
    font-weight: 700;
    border-top: 2px solid #fff;
    line-height: 1em;
}






/****COOCKIES****/
#barracookies{
	position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 100%;
    z-index: 500000;
    padding: 10px;
    box-sizing: border-box;
    font-size: 1.3rem;
}
#barracookies p{
	text-align:center;
	max-width:1000px;
	margin:0 auto;
}
#barracookies a{
	text-decoration:none;
	color:#ccc;
	display:inline-block;
	border-bottom: 1px solid transparent;
}
#barracookies a:nth-of-type(1):hover{
	border-bottom: 1px solid #b90021;
}
#barracookies a b{
	color:#fff;
	background:#b90021;
	padding:0 5px;
	border-radius:5px;
	-webkit-transition:0.2s linear;
	transition:0.2s linear;
}
#barracookies a:hover b{
	background:#730216;
	border:0;
}
/****ANUNCIO*****/
#robapaginas_2{
	display: block;
	margin:0 auto;
	text-align: center;
}
/*****AUTOR*****/
#autor{
    border-top: 1px solid #ddd;
    text-align: center;
    max-width: 1200px;
    margin: 15px auto;
    font-size: 1.4rem;
}
#autor li{
	display:inline-block;
	vertical-align:top;
	padding:2px 10px;
}


/**********SOCIAL********/
article footer {
    background: none;
    top: 0;
    position: static;
	padding:0;
}

/******************/
#social{
	text-align:center;
	margin:40px 0;
}
#social li{
	display:inline-block;
	margin:0 5px;
	font-size:2rem;
}
#social a{
	color:#000;
	text-decoration:none;
	border:2px solid #000;
	border-radius:50%;
	padding:10px;
	display:block;
	line-height: 25px;
    height: 25px;
}
#social span{
	display:none;
}
#social .icon-facebook{
	color:#3b5998;
	border-color:#3b5998;
}
#social .icon-facebook:hover{
	color:#fff;
	background:#3b5998;
}
#social .icon-twitter{
	color:#55acee;
	border-color:#55acee;
}
#social .icon-twitter:hover{
	color:#fff;
	background:#55acee;
}
#social .icon-gplus{
	color:#dd4b39;
	border-color:#dd4b39;
}
#social .icon-gplus:hover{
	color:#fff;
	background:#dd4b39;
}
#social .icon-whatsapp{
	color:#4dc247;
	border-color:#4dc247;
}
#social .icon-whatsapp:hover{
	color:#fff;
	background:#4dc247;
}

/****FOOTER****/
footer {
    background: #fff;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
	position:relative;
/*	top:150px;*/
}
.pie-container {
    max-width: 750px;
    padding: 0 !important;
}
article footer:before {
    content: "";
    display: none;
}

@media screen and (min-width:750px){
#logo{
    left: 50px;
	-webkit-transform: translateX(0);
	        transform: translateX(0);
}
header .icon-down-open-big {
    bottom: 20px;
}

#intro{
	position: absolute;
    width: 60%;
    left: 5%;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    z-index: 90;
}
#intro h1{
    font-size: 6rem;
	width:80%;
}
#intro p{
    font-size: 2.5rem;
}

#intro a {
    display: inline-block;
}

/****MENU*****/
#caras ul li{
	width: 25%;
}    
#caras ul li figcaption p:nth-of-type(1) {
    font-size: 1.6rem;
}



#contenido .entrada div{
 /*   width:49%;
	display:inline-block;
*/	vertical-align:top;
	box-sizing:border-box;
	padding:0 20px;
}
#contenido {
	margin:100px 0;
}
#contenido section h2{
	font-size:5rem;
}
#contenido section .texto h2 {
    font-size: 3.5rem;
}
#contenido section figure figcaption{
	padding: 5px 0;
}
#contenido section .subtitulo{
    font-size: 2.2rem;
}
#contenido section:after{
	content:"";
	display:block;
	clear:both;
}
#contenido section figure figcaption .edad{
    font-size: 8rem;
	display: block;
    line-height: 1em;
    font-weight: 700;
    margin-left: -15px;
}
#contenido section .texto{
    width: 60%;
    display: inline-block;
    vertical-align: top;
    float: right;
    padding: 0 25px;
}
#contenido .entrada p{
    font-size: 1.9rem;
    line-height: 1.8em;
}
#contenido section figure {
    display: inline-block;
    vertical-align: top;
	width: 40%;
}

#autor{
    border-top: 1px solid #ddd;
    text-align:center;
	color:#666;
}
#autor li{
	display:inline-block;
	vertical-align:top;
	padding:2px 10px;
}

}

@media screen and (min-width:900px){
#intro p {
    font-size: 2.8rem;
}
/****MENU*****/
#caras ul li{
	width: 20%;
}    

#caras ul li figcaption {
    opacity:0;
	-webkit-transition:0.3s;
	transition:0.3s;
    bottom: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,50%);
            transform: translate(-50%,50%);
}
#caras ul li:hover figcaption {
    opacity:1;
}
#caras ul li figcaption p:nth-of-type(1) {
    font-size: 3rem;
}
#caras ul li figcaption p:nth-of-type(2) {
    font-size: 4rem;
}

}