/* ********************************** */
/* **************************************   NAV + HERO   */
/* ********************************* */
header {
	width: 100%;
	height: 90vh;
	background-image: url(/images/hero.webp);
	background-position: calc(30%);
	background-repeat: no-repeat;
	background-size: cover;
	@media (width > 960px) {
		background-attachment: fixed;
	}
	.barra-nav {
		width: 100%;
		height: auto;
		padding: 0.5rem 2rem;
		background: rgba(32, 32, 32, 0.33);
		box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
		backdrop-filter: blur(7.2px);
		position: sticky;
		top: 0;
		left: 0;
		z-index: 2;
		display: grid;
		grid-template-columns: 1fr 1fr;
		justify-content: center;
		align-items: center;
		text-align: center;
		font-weight: 200;
		@media (width < 960px) {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}
		.logo {
			height: 2.5rem;
			width: auto;
			@media (width < 760px) {
				display: none;
			}
		}
		& p {
			font-size: 0.9rem;
			@media (width < 960px) {
				display: none;
			}
			& i {
				font-size: 1rem;
			}
		}
		.banderas {
			display: flex;
			justify-content: end;
			align-items: center;
			gap: 0.7rem;
		}
		& img {
			width: 2rem;
			height: 2rem;
			cursor: pointer;
		}
	}
}

/* ******************* Hero */
.hero {
	position: relative;
	.grid {
		width: 40%;
		position: absolute;
		/* Centrar */
		top: 55%;
		left: 80%;
		transform: translate(-50%, -50%);
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		justify-content: center;
		align-items: flex-end;
		opacity: 0;
		animation: opacity 1s 2s forwards;
		@media (width < 960px) {
			display: none;
		}
	}
}
@keyframes opacity {
	100% {
		opacity: 1;
	}
}

/************************ Texto Hero */
.texto-hero {
	width: 90%;
	height: 60vh;
	margin: 5rem auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
	animation: mostrar 5s 0.5s forwards;
	white-space: pre-line;
	& h1 {
		color: var(--secundario);
		text-shadow: var(--text-shadow);
		font-size: 2.5rem;
		font-weight: bold;
	}
	& h2 {
		transform: translateX(45%);
		font-size: 3rem;
		font-family: serif;
		line-height: 1.2;
		text-shadow: var(--text-shadow);
		animation: mover 1s 2s forwards;
		padding: 1rem 0;
		font-weight: bold;
		@media (width < 960px) {
			font-size: 3rem;
		}
		@media (width < 760px) {
			transform: translateX(20%);
			font-size: 1.8rem;
		}
	}
	& h2:nth-child(3) {
		animation: mover2 1s 2s forwards;
		transform: translateX(85%);
		@media (width < 960px) {
			transform: translateX(67%);
		}
		@media (width < 760px) {
			transform: translateX(30%);
		}
	}
	.en {
		transform: translateX(68%);
		font-size: 3rem;
		padding-left: 2rem;
		color: var(--secundario);
		@media (width < 960px) {
			transform: translateX(30%);
		}
		@media (width < 760px) {
			font-size: 1.8rem;
		}
	}
}

@keyframes mostrar {
	100% {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	}
}
@keyframes mover {
	100% {
		transform: translateX(0);
	}
}
@keyframes mover2 {
	100% {
		transform: translateX(20vw);
	}
}

/* ************************ Presentación */
.presentacion {
	background: url("/images/fondo.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--primario);
	width: 100%;
	height: auto;
	padding: 2rem;
	border: 0;
	outline: 1px solid var(--primario);
	outline-offset: -1rem;
	position: relative;
	.logo2 {
		width: 10rem;
		margin: 0 auto;
		height: auto;
		margin-bottom: 1rem;
	}
	.presentacion-texto {
		padding: 1rem;
		white-space: pre-line;
	}
}

/* ************************ Servicios */
.servicios {
	width: 100%;
	height: 10rem;
	padding: 5%;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	outline: 2px solid var(--primario);
	outline-offset: -1rem;
	.lista {
		line-height: 1.5;
		& h3 {
			font-size: 2rem;
			font-weight: 400;
			padding: 0 0.5rem;
			display: inline-block;
			@media (width < 1340px) {
				font-size: 1.2rem;
			}
		}
	}
}

/* *****************  Excursiones */
main {
	padding: 1rem;
	outline: 1px solid var(--primario);
	outline-offset: -1rem;
	& section {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 1rem;
		padding: 1rem;
		@media (width < 868px) {
			grid-template-columns: 2fr;
			padding: 0;
		}
		.excursion {
			width: 100%;
			height: 100%;
			background: var(--blanco);
			display: flex;
			flex-direction: column;
			align-items: stretch;
			padding: 0.3rem;
			gap: 0.5rem;
			& img {
				width: 100%;
				height: 15rem;
				min-height: 15rem;
				object-fit: cover;
				@media (width < 868px) {
					height: 10rem;
				}
			}
			.descripcion {
				width: 100%;
				height: 100%;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				gap: 1rem;
				background: url("/images/fondo.webp");
				color: var(--negro);
				padding: 1rem;
				& h2 {
					color: var(--primario);
				}
				& span {
					display: block;
					padding-bottom: 0.2rem;
					font-size: 0.9rem;
				}
				& span:last-child {
					color: var(--primario);
				}
			}
			.descripcion2 {
				display: flex;
				justify-content: space-between;
				@media (width < 1140px) {
					flex-direction: column;
				}
			}
		}
	}
}

/* ********************************** */
/* **************************************   FOOTER   */
/* ********************************* */
.footer {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 1.5rem;
	background-color: var(--secundario);
	color: var(--primario);
	border: 0;
	outline: 1px solid var(--primario);
	outline-offset: -1rem;
	@media (width < 1140px) {
		grid-template-columns: 1fr;
	}
	.servicios-footer {
		padding: 0 1rem;
		& ul {
			display: flex;
			flex-direction: column;
			justify-content: start;
			align-items: center;
			gap: 0.5rem;
			@media (width < 1140px) {
				display: none;
			}
		}
	}
	.main-footer {
		border-right: 1px solid var(--primario);
		border-left: 1px solid var(--primario);
		padding: 0 1rem;
	}
	& h2 {
		font-size: 1.3rem;
		font-weight: 200;
	}
	& ul {
		padding-bottom: 1.5rem;
		& li {
			text-decoration: underline;
			&:hover {
				color: var(--primario);
				transition: var(--transition);
			}
		}
	}
	.redes {
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 1rem 0;
		gap: 1rem;
		& i {
			font-size: 1.5rem;
			&:hover {
				color: var(--negro);
				transition: var(--transition);
			}
		}
		.trip {
			width: 2.5rem;
			display: inline;
		}
	}
	& p {
		font-size: 0.8rem;
		padding: 0.2rem;
	}
	.proweb {
		&:hover {
			text-decoration: underline;
			color: var(--negro);
			transition: var(--transition);
		}
	}
}
.footer-legal {
	display: grid;
	grid-template-columns: 1fr 1fr;
	justify-content: center;
	align-items: center;
	padding: 2rem 7vw;
	text-align: center;
	background-color: var(--transparente);
	color: var(--blanco);
	border: 0;
	outline: 1rem solid var(--secundario);
	outline-offset: -1rem;
	@media (width < 768px) {
		grid-template-columns: 1fr;
	}
	& img {
		width: 3rem;
		@media (width < 768px) {
			display: none;
		}
	}
	& div {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 1rem;
		padding: 0.2rem;
	}

	& p {
		font-size: 0.8rem;
	}
	& a {
		font-size: 0.8rem;
		text-align: center;
		&:hover {
			color: lightblue;
			text-decoration: underline;
			transition: var(--transition);
		}
	}
}
