/* Variables */
:root {
	--altura-menu: 60px;
	--padding-web: 5%;
  }

/* Tipografia */

@import url('https://fonts.googleapis.com/css?family=Work+Sans');
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');


/* -----------------------------------------------------------------
Loader
--------------------------------------------------------------------*/

.loaderDiv {
    position: fixed;
	display: flex;
    left: 0px;
    top: 0px;
    z-index: 9999;
	background-color: hsla(0,0%,100%,1.00);
	width: 100% !important;
	height: 100% !important;
}
.loaderDiv > div{
	display: flex;
	align-content: center;
    justify-content: center;
	width: 100% !important; 
	height: 100% !important;
	align-items: center !important;
}



.loader {
	margin: 0 auto;	
	border: 16px solid #f3f3f3; /* Light grey */
	border-top: 16px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -----------------------------------------------------------------
General
--------------------------------------------------------------------*/
*{
	margin: 0;
	padding: 0;
	text-decoration: none;
	list-style: none;
}

html, body {
	/* Error scroll horizontal*/
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Open Sans', sans-serif;
  	/* scroll-snap-type: y mandatory; */
}

h1, h2, h3, h4{
	font-family: 'Montserrat', sans-serif;
}

h3, h4{
	font-size: 1.1rem;
	color: #0b426b;
	margin-bottom: 0.6rem;
}

/* -----------------------------------------------------------------
Helpers
--------------------------------------------------------------------*/

.full-height{
	min-height: calc(100vh - var(--altura-menu));
	/* scroll-snap-align: start; */
}

.bg-image{
	background-image: url("../images/fonsHeader.jpg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

.white{
	color: white !important;
}

/* -----------------------------------------------------------------
Iconos SVG
--------------------------------------------------------------------*/

.icons{
    height: 3.3rem;
	fill:none;
	stroke: #333;
	stroke-linecap:round;
	stroke-linejoin:round;
	stroke-width:2px;
}

.icon-petit{
	height: 2.8rem;
}

.white-icon{
	stroke: white !important;
}

/* -----------------------------------------------------------------
Menu
--------------------------------------------------------------------*/

#menu{
	position: fixed;
	top:0;
	left: 0;
	height: var(--altura-menu);
	/* width En relació amb padding */
	width: calc(100% - var(--padding-web) - var(--padding-web));
	padding: 0 var(--padding-web);
	background-color: white;
	display: flex;
	flex-flow: row wrap;
	box-shadow: 0px 6px 23px 0px rgb(49 96 148 / 15%);
	z-index:999;
}

#menu .menu-bar{
	display: flex;
	flex-flow: row wrap;
	width: 100%;
	max-height: var(--altura-menu);
}

#menu .logo{
	flex-grow: 1;
	height:100%;
	max-height: 71px;
	display: flex;
	align-items: center;
	justify-content: left;
}

#menu .logo img{
	height: 76%;
}

#menu > nav{
	width: 100%;
}

#menu > nav > ul{
	flex-grow: 1;
	display: flex;
	flex-flow: column wrap;
	/* justify-content: space-evenly; */
	align-items: center;
	height: 100%;
	list-style: none;
}

#menu > nav > ul > li > a{
	display: block;
	padding: 12px;
	color: #316094;
	text-transform: uppercase;
    font-weight: bold;
	font-size: 1.2rem;
}

#menu > nav > ul > li > a:hover{
	color: white;
	background-color: #316094;
	border-radius: 2px;
}

/* -----------------------------------------------------------------
Header
--------------------------------------------------------------------*/

#header{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	padding: 0 var(--padding-web);
	text-align: center;
}
 
#header > h1 {
	font-family: 'Montserrat', sans-serif !important;
	flex-basis: 50%;
	font-weight: 800;
	font-size: 2.3rem;
	line-height: 3rem;
	margin-bottom: 23px;
}

#header > div > h4{
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 23px;
	color: white;
}

#header > div > p{
	line-height: 1.5rem;
}

/* -----------------------------------------------------------------
Sections
--------------------------------------------------------------------*/

section{
	padding: 0 var(--padding-web);
	display: flex;
	flex-flow:column nowrap;
}

.title-section{
	/* background-color: teal; */
	flex: none;
	margin-top: 3rem;
	margin-bottom: 5rem;
}

.content-section{
	flex: 1;
	/* background-color: tomato; */
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: space-evenly;
	margin-bottom: 3rem;
}

/* -----------------------------------------------------------------
Servicios
--------------------------------------------------------------------*/

#servicios{
	background-color: #f8f9fa;
}

#servicios h2{
	font-size: 2.4em;
    font-weight: bold;
    text-align: center;
    color: #0b426b;
}

#servicios #iconos-servicios{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
	row-gap: 4rem;
    column-gap: 4rem;
	max-width: 100%;
}

#servicios #iconos-servicios > div{
	padding: 0 3rem;
	text-align: center;
}

#servicios > div{
	text-align: center;
}

#texto-servicios{
	margin-top: 4rem;
	max-width: 900px;
}

/* iconos SVG */
.servicios-icons{
    height: 3.3rem;
	fill:none;
	stroke: #333;
	stroke-linecap:round;
	stroke-linejoin:round;
	stroke-width:2px;
}

#servicios #iconos-servicios > div > h3{
	font-size: 1.4rem;
	font-weight: 600;
	color: #003d79;
	margin: 0.6rem 0 0.3rem 0;
}

#servicios #iconos-servicios > div > p{
	font-size: 1rem;
	color: #333;
}

/* -----------------------------------------------------------------
Mecanica
--------------------------------------------------------------------*/

#mecanica{
	background-image: url(../images/mecanica.jpg);
	background-size: cover;
	/* background-position: center; */
	/* background-position-x: center;
	background-position-y: center; */
	background-attachment: fixed;
	background-repeat: no-repeat;
	/* Modifica scroll amb alura del menu */
	scroll-margin-top: var(--altura-menu);
}

#mecanica h2{
	font-size: 2.4em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #0b426b;
}

/* Texto */
#mecanica #texto-averias{
	text-align: right;
	align-self: flex-end;
    width: 90%;
	background-color: rgba(255, 255, 255, 0.9);
	padding: 10px;
	border-radius: 6px;
}

#mecanica #texto-averias p{
	font-size: 0.95rem;
}

/* Listado averias */

#mecanica #listado-averias{
	display: flex;
	flex-flow: row wrap;
	justify-content: space-evenly;
	align-items: center;
	width: 95%;
	background-color: white;
	box-shadow: 0px 0px 6px -1px rgba(0,45,63,.3);
	padding: 1rem;
	margin: 2rem;
	font-size: 0.9rem;
}

#mecanica #listado-averias > div{
	width: 100%;
}

#mecanica .averias-icons{
	display: flex;
	margin: 1rem;
}

#mecanica .averias-icons img{
	height: 1.5rem;
	padding: 0 0.6rem;
}

#mecanica #listado-averias ul{
	border-left: 3px solid #0b426b;
	padding-left: 1rem;
	margin: 1rem;
}

/* -----------------------------------------------------------------
Chapa y pintura
--------------------------------------------------------------------*/

#chapa-pintura{
	background-image: url(../images/chapa-pintura.jpg);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	/* Modifica scroll amb alura del menu */
	scroll-margin-top: var(--altura-menu);
}

#chapa-pintura h2{
	font-size: 2.4em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

#chapa-pintura #texto-chapa-pintura{
	text-align: right;
	align-self: flex-end;
	width: 90%;
	color: white;
}


/* -----------------------------------------------------------------
Neumáticos
--------------------------------------------------------------------*/

#neumaticos{
	background-image: url(../images/neumaticos.jpg);
	background-size: contain;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	/* Modifica scroll amb alura del menu */
	scroll-margin-top: var(--altura-menu);
}

#neumaticos h2{
	font-size: 2.4em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #0b426b;
}

#neumaticos #texto-neumaticos{
	text-align: right;
	align-self: flex-end;
    width: 82%;
	background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
	border-radius: 6px;
}

#neumaticos #texto-neumaticos img{
	padding: 0 1rem;
}

#neumaticos #texto-neumaticos p{
	font-size: 0.95rem;
}


/* -----------------------------------------------------------------
Aceites y Filtros
--------------------------------------------------------------------*/

#aceites-filtros{
	background-image: url(../images/aceite-filtros.jpg);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	/* Modifica scroll amb alura del menu */
	scroll-margin-top: var(--altura-menu);
}

#aceites-filtros h2{
	font-size: 2.4em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

#aceites-filtros #texto-aceites-filtros{
	text-align: right;
	align-self: flex-end;
	width: 90%;
	color: white;
}

#aceites-filtros #texto-aceites-filtros img{
	padding: 0.3rem 1rem 0.6rem 0;
}


/* -----------------------------------------------------------------
Itv
--------------------------------------------------------------------*/

#itv{
	background-image: url(../images/itv-bg.jpg);
	background-size: contain;
	background-position: left;
	background-attachment: fixed;
	background-repeat: no-repeat;
	/* Modifica scroll amb alura del menu */
	scroll-margin-top: var(--altura-menu);
}

#itv h2{
	font-size: 2.4em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #0b426b;
}

#itv #texto-itv{
	text-align: right;
	align-self: flex-end;
    width: 90%;
	background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
	border-radius: 6px;
}

#itv #texto-itv img{
	padding: 0 1rem;
}

#itv #texto-itv p{
	font-size: 0.95rem;
	padding: 0.1rem;
}

/* -----------------------------------------------------------------
Footer
--------------------------------------------------------------------*/
footer{
	padding: 5%;
	height: 100px;
	background-color: rgb(49 96 148);
	color: white;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	text-align: center;
}



/* -----------------------------------------------------------------
Media querys
--------------------------------------------------------------------*/


/* -----------------------------------------------------------------
1400px
--------------------------------------------------------------------*/

@media (min-width: 1400px) and (orientation: landscape){

	:root {
		/* --altura-menu: 60px; */
		--padding-web: 15%;
	  }

	#menu{
		/* width En relació amb padding */
		width: calc(100% - var(--padding-web) - var(--padding-web));
		padding: 0 var(--padding-web);
	}	

	#header, section{
		padding: 0 var(--padding-web);
	}

	#header > h1 {
		font-family: 'Montserrat', sans-serif !important;
		font-size: 2.6rem;
	}

	#servicios #iconos-servicios{
		grid-template-columns: 1fr 1fr 1fr;
	}

	#mecanica{
		background-attachment:local;
	}

	#mecanica #texto-averias{
		width: 90%;
	}

	/* Listado averias */

	#mecanica #listado-averias > div{
		width: auto;
	}

	#mecanica .averias-icons img{
		height: 2.1rem;
		padding: 0 1rem;
	}

	#chapa-pintura #texto-chapa-pintura{
		width: 60%;
	}

	#neumaticos{
		background-attachment:local;
	}

	#neumaticos #texto-neumaticos{
		width: 40%;
	}

	#aceites-filtros #texto-aceites-filtros{
		width: 60%;
	}

	#itv #texto-itv{
		width: 40%;
	}


	footer{
		padding: 0 5%;
		height: 60px;
		justify-content: space-between;
	}

}


/* -----------------------------------------------------------------
2300px
--------------------------------------------------------------------*/

@media (min-width: 2300px) and (orientation: landscape){

	:root {
		--padding-web: 25%;
	  }

	#menu{
		/* width En relació amb padding */
		width: calc(100% - var(--padding-web) - var(--padding-web));
		padding: 0 var(--padding-web);
	}	

	#header, section{
		padding: 0 var(--padding-web);
	}
}