@font-face {
	font-family: 'Didact';
	font-style: normal;
	font-weight: 400;
	src: url('./assets/fonts/DidactGothic-Regular.ttf');
}



:root {
	--gris: #bfbeba;
	--gris_oscuro: #828074;
	--negro: #626159;
	--dorado: #bc9a38;
	--dorado_palido: #c4aa5a;
	--dorado_muy_palido: #eadeb8;
	--blanco: #fff;
	--rojo: rgb(184, 76, 33);
	--rojo-palido: rgb(247, 203, 194);
}


* {
	box-sizing: border-box;
}

body {
	background-color: var(--blanco);
	font-family: 'Didact', 'Segoe UI', 'Optima', 'Helvetica', 'Microsoft YaHei New', 'Microsoft Yahei', "PingFang SC", SimSun, sans-serif;
	font-size: 18px;
	font-weight: 400;
	margin: 0;
	padding: 0;
	color: var(--gris_oscuro);
	border-top: 3px solid var(--dorado);
}

.all {
	max-width: 1300px;
	margin: 10px auto;
}

a {
	color: var(--gris_oscuro);
	text-decoration: none
}

p {
	color: var(--gris_oscuro);
	margin: 0px;
	margin-bottom: 1em;
}

p:last-child {
	margin: 0;
}

h1 {
	color: var(--dorado);
	font-weight: 400;
	font-size: 25px;
}


footer {
	width: 100%;
	text-align: center;
	padding: 20px 0;
}

form {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 400px;
	margin: 5em auto;
}


form h2 {
	margin-top: 2em;
	font-weight: 400;
	color: var(--negro)
}

form .checkgroup {
	width: 100%;
	text-align: left;
	margin: 1rem 0;
}

form .checkgroup label {
	display: inline-block;
	margin: auto;
}

form .checkgroup input {
	width: auto;
	display: inline-block;
	margin-right: 10px;
}

form .checkgroup h3 {
	margin: 0.5rem 0;
	font-weight: 400;
	font-size: 18px;
}

.enter input {
	display: block;
	font-size: 20px;
	padding: 10px 20px;
	width: 8em;
}

.enter input[type=text] {
	font-size: 1.5em;
	text-align: center;
	background-color: #e7e7e7;
	border: none;
	color: rgb(133, 90, 10);
	transition: background-color 0.5s, width 0.3s;
	width: 7em;
}

.enter input[type=text]:focus {
	background-color: var(--dorado_muy_palido);
	width: 8em;
}

form div.error {
	color: var(--blanco);
	font-size: 22px;
	background: var(--rojo);
	width: 400px;
	position: absolute;
	padding: 0.4rem 0;
	margin-top: -50px;
	animation: 1s ease-out 0s error_anim;
}

@keyframes error_anim {
	0% {
		background: var(--blanco);
		margin-top: -70px;
	}

	100% {
		margin-top: -50px;
		background: var(--rojo);
	}
}


.slidedown_spacer {
	height: 6rem;
}

.slidedown {
	animation: 2s ease 0s slide-down;
	position: absolute;
	padding: 0 2rem;
	margin-top: 0px;
	left: 0;
	width: 100%;
}

@keyframes slide-down {
	0% {
		opacity: 0;
		margin-top: -70px;
	}

	100% {
		opacity: 100;
		margin-top: 0px;
	}
}


select,
input,
textarea {
	margin: 0 10px;
	font: 18px 'Didact', 'Segoe UI', 'Optima', 'Helvetica', 'Microsoft YaHei New', 'Microsoft Yahei', 'PingFang SC', SimSun, sans-serif;
	padding: 8px 16px;
	border: 1px solid var(--dorado);
	color: var(--gris_oscuro);
	background-color: var(--blanco);
	outline: none;
	resize: vertical;
}

textarea {
	height: 5rem;
	min-height: 5em;
	max-height: 25em;
}

label {
	margin: 1em 0;
}

label,
input,
select,
textarea {
	width: 100%;
	display: block;
	margin: 0;
	text-align: left;
	margin-top: 0.5em;
}

label {
	margin: 1em 0;
}

input[type="submit"] {
	background-color: var(--dorado);
	text-align: center;
	color: var(--blanco);
	font-size: 1.5em;
	cursor: pointer;
	transition: 0.1s background-color;
}

input[type="submit"]:hover,
input[type="submit"]:active {
	background-color: var(--dorado_palido);
}



.logo img {
	float: left;
	width: 200px;
	margin: 0 30px;
}

.menu {
	font-size: 15px;
	float: right;
	margin-right: 30px;
}

.menu a {
	padding: 8px;
	/* border: 1px solid var(--blanco); */
}

.menu a:hover {
	color: var(--dorado)
		/* border: 1px solid var(--dorado); */
}

.menu a.active {
	color: var(--dorado)
		/* border: 1px solid var(--dorado); */
}


.boton {
	border: 1px solid var(--dorado);
	padding: 7px 20px;
	display: inline-block;
	margin-top: 20px;
	transition: background 0.3s;
	transition: color 0.5s;
}

.boton:hover {
	background: var(--dorado);
	color: var(--blanco);
}

hr {
	height: 8px;
	border: none;
	margin: 0;
}

/* BLOQUE (genérico) */
.bloque {
	width: 100%;
	text-align: center;
	padding: 75px 30px;
	border-bottom: 1px solid var(--gris);
}

.bloque:nth-last-child(3) {
	border: none;
}



/* BLOQUE CONTACTO */

.contacto {
	border: 1px solid var(--dorado_palido);
	border-right: none;
	border-left: none;
	border-bottom: none;
	padding: 50px;
	font-size: 16px;

}

.contacto img {
	margin-bottom: 15px;
}

hr {
	background-image: url(./assets/pat0.jpg);
	height: 20px
}


.portada img {
	width: 100%;
}

.portada h1 {
	margin: 40px 0;
	font-weight: 200;

}

.portada div {
	max-width: 620px;
	margin: 0 auto;
}

/* BLOQUE CARRUSEL */
div.carrusel h1 {
	margin: 0;
}

div.carrusel .controls {
	position: relative;
	justify-content: space-between;
	display: flex;
	top: calc(28vw + 5px);
	z-index: 999;
}

div.carrusel .controls a {
	opacity: 0;
	cursor: default;
	margin: 0 10px;
}

div.carrusel .controls a.active {
	cursor: pointer;
	opacity: 1;
}

div.carrusel .controls a path {
	transition: stroke 0.3s, stroke-width 0.3s;
}

div.carrusel .controls a:hover path {
	stroke: var(--blanco);
	stroke-width: 3px;
}

ul.carrusel {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	margin: 0;
	padding: 0;
	overflow: hidden;
	width: 100%;
	height: calc(56vw + 1em);
}

ul.carrusel li {
	flex: 1 0 auto;
	width: 100%;
	display: block;
	list-style: none;
	transition: transform 1.8s ease-in-out;
}


ul.carrusel img {
	width: 100%;
	margin-bottom: 20px;
}

/* BLOQUE CIRCULO */

.circulos>div {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-between;
	align-content: start;
	max-width: 900px;
	margin: 0 auto;
}

.circulos>div div {
	flex: 1 1 auto;
	margin: 40px;
}

.circulos img {
	width: 300px;
	height: 300px;
	border-radius: 50%;
}

.circulos h1 {
	font-size: 22px;
}

.formulario p {
	margin: 2em auto;
	max-width: 800px;
}

.formulario form {
	margin-top: 0;
}

.contact_result {
	padding: 1rem 2rem;
	background-color: #ddeab8;
	color: #5c7d00;
	font-weight: bold;
}

.contact_result.error {
	background-color: var(--rojo-palido);
	color: var(--rojo);
	font-weight: bold;
}

.contact_result.error a {
	color: var(--rojo);
	text-decoration: underline;
}

/***********  MAX-WIDTH *************/

@media screen and (min-width: 1300px) {
	ul.carrusel {
		height: 740px;
	}

	div.carrusel .controls {
		top: 370px;
	}
}

/***********  MOBILE *************/

@media screen and (max-width: 750px) {
	.portada>img {
		margin-top: 10px;
		height: 50vh;
		width: 100vw;
		object-fit: cover;
		position: relative;
		margin-left: -19px;
	}

	.circulos>div div {
		margin: 30px 0;
	}

	.slidedown {
		animation: 2s ease 0s slide-down;
		position: absolute;
		padding: 0 2rem;
		margin-top: 30px;
		left: 0;
		width: 100%;
	}

	@keyframes slide-down {
		0% {
			opacity: 0;
			margin-top: -70px;
		}

		100% {
			opacity: 100;
			margin-top: 30px;
		}
	}

	.slidedown_spacer {
		height: 13rem;
	}

	.logo img {
		width: 80%;
		width: calc(100% - 60px);
		display: block;
		float: none;
	}

	.menu {
		margin: 2.5em auto;
		text-align: center;
		float: none;
		display: block;
	}

	.bloque {
		padding: 8vw 5vw;
	}
}