/*
 ** COLORES **
 
 	color rojo: #D3242A;
 	color negro texto: #161616;

*/

/******************** TAGS GENÉRICOS ********************/

html{
	-ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100% !important;
    font-family: "Inter", sans-serif;
  	font-optical-sizing: auto;
  	font-style: normal;
  	font-variation-settings: "slnt" 0;
  	letter-spacing: 0.8px;
}

body{
	direction: ltr;
    margin: 0;
    color: #161616;
    font-size: 18px;
    font-weight: 200;
    background-color: white;
    z-index: 1;
}

img{
	max-width: 100%;
}


iframe{
	max-width: 100%;
}

@media only screen and (max-width: 767px){ /*Smartphones*/
	i{
		font-size: 30px;
	}
}

h1,h2,h3{
	color: #D3242A;
	
}

h1{
	font-size: 2.827rem;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 3.4rem;
}

/******************** CLASES GENÉRICAS ********************/

.text-center{
	text-align: center;
}

.oculto{
	display: none !important;
}

.v-align-m{
	vertical-align: middle;
}

.bbot{
	border-bottom: 1px solid #D3242A;
}

.button{
	background-color: white;
	border: 1px solid #D3242A;
	border-radius: 3px;
	color: #D3242A;
	display: inline-block;
    max-width: 75%;
    box-sizing: border-box;
    padding: 10px 8px;
    font-size: 17px;
    text-transform: uppercase;
    text-decoration: none;
    margin: 15px 0;
    cursor: pointer;
}

.button:hover{
	background-color: #D3242A;
	color: white;
}

@media only screen and (min-width: 768px){ /*Tablets PCs*/
	.only-mobile{
		display: none;
	}
}

@media only screen and (min-width: 1025px){ /*Tablets PCs*/
	.only-mobile-ipad{
		display: none;
	}
}

@media only screen and (max-width: 767px){ /*Smartphones*/
	.no-mobile{
		display: none;
	}
	
	.sm-50percent{
		width: 50% !important;
		max-width: 50% !important;
		min-width: 50% !important;
	}
	
	.sm-text-left{
		text-align: left;
	}
}

.pt-0{
	padding-top: 0 !important;
}

.mt-0{
	margin-top: 0 !important;
}

.pt-40{
	padding-top: 40px !important;
}

.pt-80{
	padding-top: 80px !important;
}

/******************** CONTENIDO ********************/

div.contenido{
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    min-height: 77vh;
}

@media only screen and (max-width: 1024px){
	div.contenido .left-contact-col{
		display: none;
	}
	
	div.contenido .right-content-col{
		width: 100%;
	}
}

@media only screen and (min-width: 1025px){
	div.contenido .left-contact-col{
		width: 30%;
		display: inline-block;
		vertical-align: top;
		background-color: #D3242A;
		box-sizing: border-box;
		padding-left: 30px;
		padding-bottom: 40px;
		margin-right: 5%;
	}
	
	div.contenido .left-contact-col span, div.contenido .left-contact-col p, div.contenido .left-contact-col a, div.contenido .left-contact-col i{
		color: white;
	}
	
	div.contenido .left-contact-col img{
		margin-top: 80px;
		max-width: 112%;
		width: 112%;
	}
	
	div.contenido .left-contact-col span{
		font-size: 24px;
		text-transform: uppercase;
        margin-top: 40px;
        margin-bottom: 20px;
        display: inline-block;
        font-weight: 300;
	}
	
	div.contenido .left-contact-col i{
		padding-right: 10px;
	}
	
	div.contenido .left-contact-col a{
		text-decoration: none;
	}
	
	div.contenido .right-content-col{
		width: 64%;
		display: inline-block;
		vertical-align: top;
	}
}


div.contenido div.encuadre{
	width: 100%;
    box-sizing: border-box;
    padding: 15px;
}

div.contenido div.encuadre div.fila{
    position: relative;
	width: 100%;
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 3px;
    border: 1px solid #c7d6db;
    transition: height 1s ease-in-out;
}

div.contenido div.encuadre div.fila a{
	color: #666;
	text-decoration: none;
}

div.contenido div.encuadre div.fila a:hover{
	color: #6183f8;
}

@media only screen and (max-width: 1024px){
	div.contenido{
		padding: 61px 0 0 0;
	}
}

div.contenido div.encuadre div.subtitulo-seccion p{
	max-width: 900px;
    margin: 0 auto 30px auto;
    transform: translate(-60px, 0);
}

div.contenido div.encuadre div.subtitulo-seccion h2{
	max-width: calc(100% - 120px);
}  

@media only screen and (max-width: 1379px) {
	div.contenido div.encuadre div.subtitulo-seccion p{
		transform: translate(-50px, 0);
	}
	
	div.contenido div.encuadre div.subtitulo-seccion h2{
		max-width: calc(100% - 100px);
	}  
}


@media only screen and (max-width: 900px) {
	div.contenido div.encuadre div.subtitulo-seccion p{
		transform: none;
	}
}

@media only screen and (max-width: 767px) {
	div.contenido div.encuadre div.subtitulo-seccion h2{
		max-width: calc(100% - 80px);
	}  
}


    

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

header{
	background-color: white;
	border-bottom: 1px solid #D3242A;
}

header ul{
	margin: 0;
    padding: 15px 10px;
    list-style: none;
}

header ul li{
	display: inline;
	padding: 0 20px;
	vertical-align: middle;
}

header ul li a{
	color: #161616;
    text-decoration: none;
    font-family: "Work Sans", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

header ul li a:hover{
	color: #D3242A;
}

header ul li img{
	width: 193px;
}

div.header-decoration{
	background-image: url(../images/biblioteca-CAP-maiorica-sacra.jpg);
	background-position: center center;
    background-size: cover;
	padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 10%;
    padding-right: 0%;
    position: relative;
}

div.header-decoration:before{
	content: ' ';
    background-color: #D3242A;
    opacity: 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

div.header-decoration span{
	color: white;
	text-transform: uppercase;
	font-size: 1.999rem;
	font-weight: 300;
	z-index: 3;
    position: relative;
}

/**************** FORMULARIOS ****************/
	
form .encform{
	margin-bottom: 20px;
	position: relative;
}

form .va-top{
	vertical-align: top;
}

form label{
	display: inline-block;
	box-sizing: border-box;
	padding-right: 5px;
	text-align: right;
}

form label.required:before{	
	color: red;
	content: "*";
	font-size: 18px;
	position: relative;
	padding-right: 3px;
}

form input{
	display: inline-block;
	min-width: 250px;
	max-width: 75%;
	box-sizing: border-box;
	padding: 10px 8px;
	border-radius: 3px;
	font-size: 14px;
}

form input[type = "text"], form input[type = "password"]{
	background-color: #f5f8f9;
	border: 1px solid #c7d6db;
	color: #666;
}

form input[type = "text"]:focus, form input[type = "password"]:focus{
	background-color: #fefbe2;
	outline: none;
	border-color: #6183f8;
}

form textarea{
	display: inline-block;
	min-width: 250px;
	max-width: 74%;
	min-height: 150px;
	box-sizing: border-box;
	padding: 10px 8px;
	border-radius: 3px;
	font-size: 14px;
	background-color: #f5f8f9;
	border: 1px solid #c7d6db;
	color: #666;
}

form textarea:focus{
	background-color: #fefbe2;
	outline: none;
	border-color: #6183f8;
}

form select{
	display: inline-block;
	min-width: 250px;
	max-width: 75%;
	height: 39px;
	box-sizing: border-box;
	padding: 10px 8px;
	border-radius: 3px;
	font-size: 14px;
	background-color: #f5f8f9;
	border: 1px solid #c7d6db;
	color: #666;
}

form select:focus{
	background-color: #fefbe2;
	outline: none;
	border-color: #6183f8;
}

form select.selector-idioma{
	width: 50px;
	min-width: 50px;
}

form select.selector-permisos{
	width: 100px;
	min-width: 100px;
}

@media only screen and (max-width: 767px){
	form label{
		width: 100%;
		text-align: left;
		margin-bottom: 20px;
	}
}

/**************** TABLAS ****************/

table{
	position: relative;
	width: 100%;
	text-align: left;
	border-collapse: collapse;
}

table th{
	border-bottom: 1px solid #D3242A;
	padding: 10px 0;
}

table td{
	border-bottom: 1px solid #c7d6db;
	padding: 10px 0;
}

@media only screen and  (min-width: 1380px){ /* PC con pantalla grande */
	table td.mini, table th.mini{
		width: 120px;
	}
}

@media only screen and (max-width: 1379px){ /* Iphone, Ipad y PC Pantalla pequeña. */
	table td.mini, table th.mini{
		width: 100px;
	}
}

@media only screen and (max-width: 767px){ /* Smartphones*/
	table td.mini, table th.mini{
		width: 80px;
	}
}

table i.fi-arrows-out:before{
	-ms-transform: rotate(45deg); /* IE 9 */
	-webkit-transform: rotate(45deg); /* Safari 3-8 */
	transform: rotate(45deg);
}


table i{
	color: #161616;
}

table i:hover{
	color: #D3242A; 
}

table i.fi-arrows-out:hover{
	color: #D3242A; 
}

table img{
	max-width: 100px;
}


/******************** Footer ********************/

footer{
	margin-top: 60px;
	background-color: #D3242A;
}

footer div{
	display: inline-block;
    vertical-align: middle;
}

footer h2{
	padding-left: 20px;
	color: white;
}

footer p{
	padding-left: 20px;
	color: white;
    line-height: 1.5;
}

footer i{
	padding-right: 10px;
}

footer a{
	text-decoration: none;
	color: white;
}

footer ul{
	margin: 0;
    padding: 10px;
    list-style: none;
    text-align: center;
}

footer ul li{
	display: inline;
	padding: 0 20px;
	vertical-align: middle;
}

footer ul li img{
	width: 200px;
}