:root {
	--fuenteLogo: "Caveat", georgia;
	--fuenteHeading: "Ubuntu", sans-serif;
	--fuenteParrafos: "Nunito Sans", sans-serif;

	--primario: #006532;
	--secundario: #e9bb03;
	--blanco: #ffffff;
	--negro: #000000;
	--gris: #808080;
	--grisOscuro: #5a5959;
}
html {
	box-sizing: border-box;
	font-size: 62.5%; /* 1 rem = 10px */
	scroll-behavior: smooth;
}
*,
*:before,
*:after {
	box-sizing: inherit;
}
body {
	font-family: var(--fuenteParrafos);
	font-size: 1.6rem;
	line-height: 1.5;
}

/** Globales **/
.contenedor {
	width: min(90%, 120rem);
	margin: 0 auto;
}
a {
	text-decoration: none;
}
h1,
h2,
h3,
h4 {
	font-family: var(--fuenteHeading);
	line-height: 1.2;
}
h1 {
	font-size: 4.5rem;
}
h2 {
	font-size: 3.8rem;
	color: var(--secundario);
}
h3 {
	font-size: 3rem;
	color: var(--primario);
}
h4 {
	font-family: var(--fuenteLogo);
	font-size: 3rem;
	color: var(--primario);
}

ul {
	line-height: normal;
}
/** Utilidades **/
.bold {
	font-weight: bold;
}

.no-margin {
	margin: 0;
}
.no-padding {
	padding: 0;
}
.centrar-texto {
	text-align: center;
}
.cita {
	font-style: italic;
}
.ancla {
	display: block;
	position: relative;
	top: -12rem;
	visibility: hidden;
}

/** Header **/
.header {
	height: 20rem;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	background: linear-gradient(to bottom, var(--blanco) 85%, transparent);
}
@media (min-width: 768px) /** 768px tablet 992px pantalla**/ {
	.header {
		height: 12rem;
		position: sticky;
		top: 0;
	}
}
.titulo {
	text-align: center;
	color: var(--primario);
	margin: 3rem auto;
}
.titulo__texto-bold {
	font-weight: bold;
}
@media (min-width: 768px) {
	.titulo__texto {
		margin-top: 15rem;
	}
}
.barra {
	padding-top: 4rem;
}

@media (min-width: 768px) {
	.barra {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
}
.logo {
	color: var(--primario);
}
.logo__nombre {
	font-weight: 400;
	font-family: var(--fuenteLogo);
}
.logo__bold {
	font-weight: 700;
}
.navegacion {
	margin-top: 2rem;
}
@media (min-width: 768px) {
	.navegacion {
		display: flex;
		gap: 2rem;
	}
}
.navegacion__enlace {
	display: block;
	text-align: center;
	font-size: 1.8rem;
	color: var(--primario);
	position: relative;
}

.cuerpo__enlace {
	display: block;
	text-align: right;
	font-size: 1.8rem;
	color: var(--primario);
}

.icono {
	max-height: 15rem;
	display: block;
}
img {
	max-width: 95%;
	height: auto;
}

.grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	place-items: center;
}
.grid1 {
	grid-row-start: 1;
	grid-row-end: 2;
	grid-column-start: 1;
	grid-column-end: 5;
}
.grid2 {
	grid-row-start: 2;
	grid-row-end: 3;
	grid-column-start: 1;
	grid-column-end: 5;
}
.grid3 {
	grid-row-start: 3;
	grid-row-end: 4;
	grid-column-start: 1;
	grid-column-end: 5;
}
@media (min-width: 480px) /** 768px tablet 992px pantalla**/ {
	.grid1 {
		grid-row-start: 1;
		grid-row-end: 2;
		grid-column-start: 1;
		grid-column-end: 3;
	}
	.grid2 {
		grid-row-start: 1;
		grid-row-end: 2;
		grid-column-start: 3;
		grid-column-end: 5;
	}
	.grid3 {
		grid-row-start: 3;
		grid-row-end: 4;
		grid-column-start: 1;
		grid-column-end: 5;
	}
}
@media (min-width: 992px) /** 768px tablet 992px pantalla**/ {
	.grid1 {
		grid-row-start: 1;
		grid-row-end: 3;
		grid-column-start: 1;
		grid-column-end: 2;
	}
	.grid2 {
		grid-row-start: 1;
		grid-row-end: 2;
		grid-column-start: 2;
		grid-column-end: 5;
	}
	.grid3 {
		grid-row-start: 2;
		grid-row-end: 3;
		grid-column-start: 2;
		grid-column-end: 5;
	}
}
.gridX2 {
	display: grid;
	gap: 2rem;
	place-items: center;
}

.gridX2_1 {
	grid-row-start: 1;
	grid-row-end: 2;
	grid-column-start: 1;
	grid-column-end: 3;
}
.gridX2_2 {
	grid-row-start: 2;
	grid-row-end: 3;
	grid-column-start: 1;
	grid-column-end: 3;
}
@media (min-width: 480px) /** 768px tablet 992px pantalla**/ {
	.gridX2_1 {
		grid-row-start: 1;
		grid-row-end: 2;
		grid-column-start: 1;
		grid-column-end: 2;
	}
	.gridX2_2 {
		grid-row-start: 1;
		grid-row-end: 2;
		grid-column-start: 2;
		grid-column-end: 3;
	}
}
.footer {
	background-color: var(--gris);
	padding-bottom: 3rem;
	margin-top: 4rem;
}
.footer p {
	color: var(--secundario);
}

/** Contacto **/
.error {
	background-color: rgb(185, 0, 0);
	text-align: center;
	padding: 1rem;
	color: var(--blanco);
	text-transform: uppercase;
}
.correcto {
	background-color: rgb(74, 185, 0);
	text-align: center;
	padding: 1rem;
	color: var(--blanco);
	text-transform: uppercase;
}
.contacto-bg {
	background-image: url(../img/despacho_maripaz.jpg);
	height: 40rem;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: right center;
}

.formulario {
	background-color: var(--blanco);
	margin: auto;
	width: 100%;
	padding-top: 2rem;
}
@media (min-width: 480px) /** 768px tablet 992px pantalla**/ {
	.formulario {
		margin: -5rem auto 0 auto;
		width: 95%;
		padding: 5rem;
	}
}
.campo {
	display: flex;
	margin-bottom: 0.5rem;
}
.campo__label {
	flex: 0 0 9rem;
	text-align: right;
	padding-right: 2rem;
	font-weight: 800;
}
.campo__field {
	flex: 1;
	border: 0.2rem solid var(--secundario);
	border-radius: 1rem;
	padding-left: 1rem;
	height: 4rem;
}
.campo__field--textarea {
	padding: 1rem;
	height: 20rem;
}
input::placeholder {
	color: var(--gris);
}

.button_captcha {
	display: grid;
	grid-template-columns: 60% 40%;
	align-items: center;
}
button {
	max-width: 20rem;
	max-height: 5rem;
	margin-left: 9rem;
	border: 0.2rem solid var(--secundario);
	border-radius: 1rem;
	padding: 1rem;
	font-size: 1.8rem;
	font-weight: bold;
}

.dark-mode-button {
	display: none;
}

.dark-mode-button:hover {
	cursor: pointer;
}

@media (min-width: 480px) {
	.dark-mode-button {
		display: block;
		width: 2rem;
		filter: invert(100%);
		fill: var(--secundario);
	}

	.dark-mode-button:hover {
		cursor: pointer;
	}
}

.dark-mode {
	background-color: var(--gris);
}

.dark-mode p {
	color: var(--blanco);
}

.dark-mode ul {
	color: var(--blanco);
}

.dark-mode .header {
	background: linear-gradient(to bottom, var(--gris) 85%, transparent);
}

.dark-mode .formulario {
	background-color: var(--grisOscuro);
}
