/* --------------------------- */
/* ------- Variables --------- */
/* --------------------------- */

:root{
    --colorPrincipal:#8acfca;
    --colorSecundario1:#928f91;
	--colorSecundario2:#f8d9dc;
	--colorSecundario3:#78dad2;
	--colorSecundario4: rgb(174, 223, 212);
	--colorSecundario5:rgb(124, 111, 111);
	--colorSecundario6:#efefef;
	--colorSecundario7:#c1dddb;
	}

/* --------------------------- */
/* ----- Básico -------------- */
/* --------------------------- */

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	transition: all 1s;
}

body {
	overflow-x: hidden;
}
html, body {
	scroll-behavior: smooth;
	scroll-padding: 8em;
}

img,
video {
	width: 100%;
	-o-object-fit: cover;
	object-fit: contain;
}

a {
	text-decoration: none;
	color: inherit;
}

/* --------------------------- */
/* -------- General ---------- */
/* --------------------------- */

body {
	font-family: 'Oxygen', sans-serif;
	font-size: 16px;

}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Castoro Titling', cursive;
	font-size: 1.5em;
}

/* --------------------------- */
/* ---------- Menú ----------- */
/* --------------------------- */

header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 6.5em;
	padding: .5em 3em;
	background-color:var(--colorPrincipal);
	display: flex;
	justify-content:space-between;
	align-items: center;
	color:var(--colorSecundario2);
	font-family: 'Castoro Titling', cursive; 
	font-size: 1.20em;
	font-weight: bold;
	z-index: 900;
	box-shadow: 0 0 10px 5px #fefefe;
	background-image: linear-gradient(to right,#f8d9dc,#369991);
}

header img {
	width: 100px;
	height: 6em;
	padding-right: 5px;
	-o-object-fit: contain;
	   object-fit: contain;
	box-shadow: none;
	z-index: 100;
}

header a span {
	color: var(--colorSecundario2);
	
}

header>a {
	display:none !important;
	z-index: 100;

}
header nav a {
	padding: .3em .8em;
	font-weight: bold;
	font-size: 1.15em;
	
}

header nav :hover {
	background-color: var(--colorSecundario2);
	color: var(--colorPrincipal);
	padding: 5px;
}

header nav a.botonResaltado {

	background-color:var(--colorSecundario4);
	color: var(--colorPrincipal);
	border-radius: 5px;
}
/*-------- scroll indicator------- */

#contenedorIndicador {
	position: absolute;
	bottom:0;
	left:0;
	width: 100%;
	height: 8px;
	background-color:var(--colorSecundario2);
}

#contenedorIndicador div {
	height: 100%;
	background-color:var(--colorSecundario1);
	width: 0%;
	transition: none;
}

/* ------------------------------------ */
/* ----- aparece hamburguesa/cruz ----- */
/* ------------------------------------ */

.abierto {
	display: block !important;
}

header>a span {
	display: none !important; 
}

header nav a {
	padding: .3em .8em;
}

/* --------------------------- */
/* ---------- @media----------- */
/* --------------------------- */

@media (max-width: 550px) {

	header {
		/* position: initial; */
		scroll-snap-align: start;
	}
	header nav {
		display: none;
	}

	header>a {
		display: block !important; 
		
		color: var(--colorSecundario1);
	}

	/* --------------------------- */
	/* ---- rediseño del menú ---- */
	/* --------------------------- */

	header nav {
		position: fixed;
		top: 6.5em;
		left: 0;
		width: 100%;
		height: calc(75vh - 6.5em);
		background-color:var(--colorPrincipal);
		display: flex;
		flex-direction: column;
		justify-content: space-evenly;
		align-items: center;
		z-index: 90;
		border-radius: 5px;
		box-shadow: 0 0 10px 5px #fefefe;
		background-color:#75beb9e2;
		transform: translate(-100%, 0) scale(0); 
		opacity: 0;
	}

	header nav a {
		display: block;
		width: 100%;
		height: calc((75vh - 6.5em) / 3);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1.5em;
	}

	header nav a:hover {
		background-color: var(--colorSecundario2);
	}

	header a span:hover {
		color: var(--colorSecundario1);
	}
	
	/* --------------------------- */
	/* ----- aparece el menú ----- */
	/* --------------------------- */

	header nav.abierto {
	transform: translate(0, 0) scale(1); 
	opacity: 1;
	}
}

/* --------------------------- */
/* ------- Seccions --------- */
/* --------------------------- */

/* --------------------------- */
/* ------- uno----------------- */
/* --------------------------- */

#uno {
	padding: 3em;
	background-color: var(--colorSecundario1);
	color: #fefefe;
	display: flex;
	align-items: center;
	justify-content: center; 
}

/* **************************** */
/* ---------- @media----------- */
/* **************************** */

@media (max-width: 1048px) {

	#uno {
		padding: 1em;
		
	}
}



/* -------------------------------------- */
/* ----------quiSoc---------------------- */
/* -------------------------------------- */

#quiSoc {
	/* min-height: 75vh; */
	background-color:var(--colorPrincipal);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
	background-image:url(../img/p1.jpg);
	background-size: cover;
	background-color:var(--colorSecundario1);
	mix-blend-mode:darken;
}


#quiSoc article {
	color: var(--colorSecundario2);
	text-align: center;
	background-color: #928f91b2;
	padding: .2em;	
}

#quiSoc article p {
	font-family: 'Castoro Titling', cursive;
	padding: 3em;
	font-size: 1.5em;
	text-align: left;	
}	

 #quiSoc article h1 {
	font-family: 'Oxygen', sans-serif;
	font-style: italic;
	color:#c1dddb;
	text-align:left;
	margin: .3em;
	padding: 2em;
} 

#quiSoc hr {
	border-bottom: dotted 2px #99ceca;
	margin: 0 auto;
	width: 75%;
	
}

#logo img {
	margin:0 auto;
}


/* -------------------------------------- */
/* ----------Serveis-------------------- */
/* ------------------------------------- */

#serveis {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #e6f5f4;
	
}

#serveis h1 {
	background-color: #928f91;
	color: var(--colorSecundario6);
	margin: 2.5em;
	padding: 1.5em;
	box-shadow: 5px 5px 10px #7b9e9c;
	text-align: left;
}

#serveis div {
	background-color:#d3eae8;
	color:  #50434c;
	font-size: 1.25em;
	margin: 2.5em;
	padding: 1.5em;
	box-shadow: 5px 5px 10px #7b9e9c;
	text-align:center;
	align-self: self-start;
	
}
#serveis .dos {

	background-color:#d3eae8;
	color:  #50434c;
	font-size: 1.25em;
	margin: 2.5em;
	padding: 1.5em;
	box-shadow: 5px 5px 10px #7b9e9c;
	text-align:center;
	
}

#serveis p {
	padding: 1.5em;
	margin: 2.5em;
	text-align:left;
	font-size: 1.10em;
	color: #50434c;	
}

#serveis img {
	box-shadow: 5px 5px 15px var(--colorSecundario1);
	width: 50%;
	margin: auto;
	display: block;
}
#serveis img:hover {
	width: 70% !important;
}
.pe {
	
	padding: 1.5em;
}
.color {
	-webkit-filter:grayscale(0%) !important;
	        filter:grayscale(0%) !important;
}
#serveis img:nth-of-type(1){
	width:40%;
	-webkit-filter:grayscale(90%);
	        filter:grayscale(90%);
}


/* **************************** */
/* ---------- @media----------- */
/* **************************** */

@media (max-width: 500px) {

	#quiSoc h1 {
		font-size: 1em;
		padding-top: .3em;
		
	}
	#quiSoc p {
		font-size: 1em;
		margin: 0em;
		padding-top: .1em;
		
	}
}

 /* ------------------------------ */
/* ------------contacte---------- */
/* ---------------------------------- */
/* ----------contact i contact2-------*/
/* ---------------------------------- */

#contact,
#contact2 {
	display: flex;
	flex-wrap: wrap;
	padding: inherit;
	background-color:var(--colorSecundario1);
}

#contact h1,
#contact2 h1 {
	width: 100%;
	text-align: center;
	color:var(--colorSecundario6);
	font-size: 3.5em;	
	padding: 1em;
}

#contact h3,
#contact2 h3 {
	text-align: left;
	font-size: 1.50em;
	font-weight: bold;
	font-family: 'Oxygen', sans-serif;
	color:#efefef;
}

#contact p,
#contact2 p {
	margin: 1em;
	text-align: left;
	font-size: 1.25em;
	font-family: 'Oxygen', sans-serif;
	color:#efefef
}

#contact p:nth-of-type(1),
#contact2 p:nth-of-type(1) {
	font-family: 'Oxygen', sans-serif;
	font-size: 1.9em;
	font-weight: bold;
}

#contact i,
#contact2 i {
	color: var(--colorPrincipal);
	font-size: 2em;
	
}

#contact article,
#contact2 article {
	width: 50%;
	padding: 2em;	
}

#contact iframe,
#contact2 iframe {
	width: 100%;
	height: 40vh;
	padding: 3px;	
}

#contact a,
#contact2 a {
	font-family: 'Oxygen', sans-serif;
	padding: 5px;
	font-size: 1.25em;
	font-weight: bold;
	background-color: var(--colorPrincipal);
	border-radius: 5px;
	background-color:#4fada5;
	margin:1em;
	box-shadow: 5px 5px 15px #e6f5f4;
}


/* **************************** */
/* ---------- @media----------- */
/* **************************** */

@media (max-width: 475px) {

	#contact,
	#contact2 {
		padding: 1em;
	}
	#contact h2{
	 
		font-size: 1em;
	}
}

@media (max-width: 522px) {

	#contact,
	#contact2 {
		padding: 0.5em;
	}

	#contact h1,
	#contact2 h1 {
		font-size: 2em;
		
	}
}
@media (max-width: 550px) {

	#contact,
	#contact2 {
		flex-direction: column;
	}
	
	#contact article,
	#contact2 article {
		width: 100%;
	}
	
}
@media (max-width: 611px) {

	#contact,
	#contact2 {
		flex-direction:column;
	}
	#contact article,
	#contact2 article {
		width: 100%;
	}
	#contact h2,
	#contact2 h2 {
		font-size: 1.5em;
	}
	
}
@media (max-width: 632px) {

	#contact h2,
	#contact2 h2 {
		font-size: 1em;
	}
}

@media (max-width: 713px) {

	#contact h2,
	#contact2 h2 {
		font-size: 2em;
	}
}

/* ------------------------------ */
/* ----------botón go to top----- */
/* ------------------------------ */


.flecha {
	position: fixed;
	bottom: .3em;
	right:.3em;
	z-index: 1000;
	display: none;
	font-size: 45px;
	color: var(--colorPrincipal);
	padding-bottom: 2.3em;
}



/* ------------------------------ */
/* ----------footer-------------- */
/* ------------------------------ */

footer {
	width: 100%;
	height: 7em;
	padding: .5em 1em;
	background-color: rgb(247, 239, 239);
	box-shadow: 5px 0 10px var(--colorSecundario1);
	display: flex;
	justify-content:space-between;
	align-items:flex-end;
	color:var(--colorSecundario2);
	border-bottom: var(--colorSecundario1);
	background-image: linear-gradient(to right,#f8d9dc,#369991);
	font-family:'Oxygen', sans-serif; 
}

footer img {
	width: 100px;
	height: 100%;
	-o-object-fit: contain;
	   object-fit: contain;
	box-shadow: none;
}

.footer {
	color:var(--colorSecundario2);
	text-align: right;
	padding: 10px;	

}


/* -------error404.html---------- */
/* ------------------------------ */
/* ------------------------------ */

#error img {
	height: 100%;
	width: 50%;
	border-radius: 5px;
	box-shadow: 5px 0 10px var(--colorSecundario1);
	margin: 0 auto;
	margin-top: 8em;	
}

#error {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

#error hr {
	border-bottom: 1px solid var(--colorPrincipal);
}

#error h1 {
	padding: 5px;
	color:var(--colorSecundario1);
	text-align: center;
	font-size: 2em;	
	margin: 1.5em;	
}

#error h2 {
	background-image: linear-gradient(to top,#efefef,#369991);	
	padding: 3em;
	color:var(--colorSecundario2);
	border-radius: 5px;
	text-align: center;
	font-size: 2em;	
	margin:3em;	
}

#error p {
	margin: 1.5em;
	padding: 4px;
	text-align: left;
	color: var(--colorSecundario1);
	font-size: 1.25em;
}
/* -------------@media------------
---------------------------------- */

@media (max-width: 825px) {

	#error h1,
	#error h2 {
		font-size: 1.5em;
	}
}

@media (max-width: 525px) {

	#error h1,
	#error p,
	#error h2 {
		font-size: 1em;
	}
}

/*----------------- cookies----------------
------------------------------------------- */

#cookies {
	position: fixed;
	width: 100%;
	left: 0;
	bottom: 0;
	background:linear-gradient(to top,#efefef,#369991);
	padding: 1em 2em;
	display: flex;
	flex-direction: column;
	align-items: center;
	border-top: 1px solid #fff;
	color: #fff;
	font-size: .8em;
	text-align: justify;
}

#cookies>* {
	padding: .5em;
}

#cookies button {
	color: #fff;
	padding: .5em 1em;
	background-color: #e0776d;
	box-shadow: 0 0 1em #1c746ca9;
	border: 1px solid #fff;
	border-radius: .5em;
	/* padding: .5em 1.5em; */
	margin: 0 1em;
}

#cookies button:nth-of-type(1) {
	background-color: #127c47;
}

#cookies label {
	color:var(--colorSecundario2);
}

/* *********** ******** *********** */
/* *********** checkbox *********** */
/* *********** ******** *********** */

#cookies input[type=checkbox] {
	accent-color: var(--colorPrincipal);
	display: none;
}

#cookies:nth-last-of-type(1) label>div {
	width: 3em;
	height: calc(1.5em + 2px);
	background-color: #fefefe;
	border: 1px solid var(--colorPrincipal);
	border-radius: .75em;
	position: relative;
}

#cookies:nth-last-of-type(1) label div div {
	width: calc(1.5em - 2px);
	height: calc(1.5em - 2px);
	background-color: var(--colorPrincipal);
	border-radius: .75em;
	position: absolute;
	top: 1px;
	left: 1px;
}

#cookies:nth-last-of-type(1) input:checked+label>div {
	background-color: var(--colorPrincipal);
}

#cookies:nth-last-of-type(1) input:checked+label div div {
	left: 1.5em;
	background-color: #fefefe;
}

/* -------------@media------------
---------------------------------- */


@media (max-width: 638px) {
	
	#cookies {
	padding: .7em 1.5em;
	font-size: .6em;
	}

	#cookies>* {
	padding: .3em;
	}

	#cookies button {
	padding: 0.5em .7em;
	margin: 0 1em;
	}
	
}

/* ----galetes,condicions d'ús, privacitat de:-----
 ---------------- privacitat.html------------- */
/* ---------------------------------------------- */

#galetes,
#legal, 
#privacitat {
	background-image: linear-gradient(to right,#efefef,#369991);
	padding-top: 2.5em;
	margin-top: 8em;
	text-align: left;
	font-weight: none;	
	padding: 2em;
}

#galetes h1,
#legal h1, 
#privacitat h1{
	padding: 1.5em;
	font-weight: bold;
	font-size: 2em;
}
#galetes h2,
#legal h2, 
#privacitat h2{
	padding: 0.5em;	
}

#galetes p,
#legal p, 
#privacitat p {
	padding: 1em;
	text-align: justify !important;
}

#privacitat p .punto,
#legal p .punto,
#galetes p .punto {
	color: var(--colorSecundario1);
	font-size: 6px;	
}
#privacitat span,
#legal span,
#galetes span {
	font-weight: bold;
}

hr {
	border-bottom: 0.3em solid var(--colorSecundario2);
	margin: 0 auto;
	width: 75%;
}
