/* Global Styles */
*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
	--color-text: #fff;
	--color-bg: #645C57;
	--color-link: #fff;
	--color-link-hover: #fff;
	--page-padding: 1.5rem 2rem;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: 'Montserrat', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Fonts */
@font-face {
	font-family: 'Saol Standard';
	src: url('../fonts/SaolStandard-ThinItalic.woff2') format('woff2'),
		url('../fonts/SaolStandard-ThinItalic.woff') format('woff');
	font-weight: 100;
	font-style: italic;
	font-display: swap;
}

.font-saol {
	font-family: 'Saol Standard', sans-serif;
	font-weight: 100;
	font-style: italic;
}

@font-face {
	font-family: 'Unbounded';
	src: url('../fonts/Unbounded-Regular.woff2') format('woff2'),
		url('../fonts/Unbounded-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
		url('../fonts/Montserrat-Regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/Montserrat-Bold.woff2') format('woff2'),
		url('../fonts/Montserrat-Bold.woff') format('woff');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

/* Loader */
 .js .loading::before,
.js .loading::after {
    content: '';
    position: fixed;
    z-index: 1000;
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.js .loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.4;
    background: var(--color-link);
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5, 0.5, 1);
    }
}   

/* Links */
a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer !important;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

a:focus {
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	background: transparent;
}

a:focus-visible {
	outline: 2px solid red;
	background: transparent;
}

/* Utilities */
/* Utilities - Typography */
p,
.font-small {
	font-size: 1rem;
	font-size: max(1.25rem, 1.25vw);
}

.font-unbounded {
	font-family: 'Unbounded', sans-serif;
	font-weight: 400;
}

.font-saol {
	font-family: 'Saol Standard', sans-serif;
	font-weight: 400;
}

.font-upper {
	text-transform: uppercase;
}

/* Utilities - Layout */
.align-items-center {
	align-items: center;
}

.overflow-hidden {
	overflow: hidden;
}

.d-none {
	display: none;
}

.d-flex {
	display: flex;
}

.flex-column {
	flex-direction: column;
}

.justify-content-between {
	justify-content: space-between;
}

.position-fixed {
	position: fixed;
	z-index: 1;
}

.position-absolute {
	position: absolute;
	z-index: 1;
}

.position-relative {
	position: relative;
}

.float-end {
	float: right;
}

.top-0 {
	top: 0;
}

.start-50 {
	left: 50%;
}

.w-auto {
	width: auto;
}

.w-25 {
	width: 25%;
}

.w-100 {
	width: 100%;
}

.mw-100 {
	max-width: 100%;
}

.flow-reverse {
	flex-flow: row-reverse;
}

@media (max-width: 940px) {
	.flex-column-reverse {
		flex-flow: column;
		flex-direction: column-reverse;
		align-items: end;
	}
	.align-items-center.align-items-top-sm {
		align-items: start;
	}
	h1.content-title .font-saol {
		font-size: 10vw;
	}
}

@media (min-width: 940px) {
	.d-lg-flex {
		display: flex;
	}
	.d-lg-none {
		display: none;
	}
}

.border-end {
	border-right: 1px solid #fff;
}

.border-bottom {
	border-bottom: 1px solid #fff;
}



/* Utilities - Spacing */

.mx-auto {
	margin: 0 auto !important;
}

.mx-1 {
	margin: 0 .5rem;
}

.mt-2 {
	margin-top: 1rem !important;
}

.ms-3 {
	margin-left: 1.5rem;
}

.p-3 {
	padding: 1.5rem;
}

.py-3 {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.px-3 {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.pt-1 {
	padding-top: 0.5rem;
}

.pt-3 {
	padding-top: 1.5rem;
}

.px-5 {
	padding-left: 4vw;
	padding-right: 4vw;
}

.p-5 {
	padding: 4vw;
}

.py-5 {
	padding: 3rem 0;
}

.pb-5 {
	padding-bottom: 4vw;
}

@media (min-width: 940px) {
	.p-lg-3 {
		padding: 1.5rem;
	}

	.p-lg-5 {
		padding: 4vw !important;
	}

	.py-lg-5 {
		padding-top: 4vw;
		padding-bottom: 4vw;
	}

	.px-lg-5 {
		padding-left: 4vw;
		padding-right: 4vw;
	}

	.ms-lg-3 {
		margin-left: 1.5rem;
	}

	.pt-lg-0 {
		padding-top: 0;
	}

	.pb-lg-0 {
		padding-bottom: 0;
	}

	.py-lg-0 {
		padding-top: 0;
		padding-bottom: 0;
	}
}

/* Utilities - Colors and Backgrounds */

.bg-green {
	background: #65C0B9;
	color: white;
}

.bg-black {
	background: #000;
	color: white;
}

.text-green {
	color: #65C0B9;
}

#line-top,
#line-bottom {
	width: 100%;
	height: 15vw;
	display: block
}

#line-top {
	height: 12vw;
}

@media (min-width: 940px) {
	#line-top {
		height: 4vw;
	}

	#line-bottom {
		height: 5vw;
	}
}

/* Utilities - Text Alignment */
.text-start {
	text-align: left;
}

.text-end {
	text-align: right;
}

.text-center {
	text-align: center;
}

@media (min-width: 940px) {
	.text-lg-end {
		text-align: end !important;
	}
}

/* Components */
/* Components - Intro */
.intro {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bg-half {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	height: 100%;
	width: 100%;
	overflow: hidden;
}

@media (min-width: 940px) {
	.bg-half {
		width: 50%;
	}
}

.bg-half img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

/* Components - Content */
.content {
	display: flex;
	flex-wrap: wrap;
}

.content>* {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
}

.content-half {
	width: 50%;
}

.content-2-3 {
	width: 65%;
}

.content-full {
	width: 100%;
}

@media (min-width: 940px) {
	.content-half-lg {
		width: 50%;
	}
}

/* Components - Titles and Text */
.content-title {
	font-size: 8vw;
	line-height: 80%;
	counter-increment: section;
	text-align: center;
	display: grid;
	gap: .15vw;
	margin: 0;
	z-index: 1;
}

h4.content-title {
	font-size: 3.5vw;
	line-height: 100%;
}

h4.content-title .font-saol {
	font-size: 5vw;
}

.content-text {
	counter-increment: section;
	display: grid;
	gap: .15vw;
	margin: 0;
}

.splitting .font-sub .word {
	display: grid;
	grid-auto-flow: column;
}

@media (max-width: 940px) {
	#gestiona h3.content-title {
		font-size: 15vw;
	}

	#gestiona p {
		margin: 0;
	}

	#valor .content-title {
		font-size: 10vw;
	}

	h4.content-title .font-saol {
		font-size: 12vw;
	}
}

@media (min-width: 940px) {
	.content-title {
		font-size: 6vw;
	}

}


/* Components - Header */
header,
header .btn {
	font-size: .85rem;
}

header .logo {
	width: 160px;
}

@media (min-width: 940px) {
	header .logo {
		width: 200px;
	}
}

/* Components - Buttons */
.btn {
	padding: .5rem 1.5rem;
	border-radius: 5rem;
	font-size: 1.05rem;
	background: #65C0B9;
	border: 0 none;
	color: white;
	text-transform: uppercase;
	cursor: pointer !important;
}

.btn span::after {
	content: "";
	display: inline-block;
	width: 26px;
	height: 13px;
	background-image: url("../images/arrow.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	margin-left: 8px;
}

/* Components - Footer */
footer p {
	font-size: .9rem;
	margin: 0;
}

/* Components - Arrows */
#arrows img {
    opacity: 0;
    transition: opacity 0.3s ease;
} 

/* Form Styles */
.login-form {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-width: 400px;
	text-align: center;
	color: #fff;
	padding: 2rem;
	box-sizing: border-box;
	z-index: 10;
}

.close-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.login-title {
	font-family: 'Saol Standard', sans-serif;
	font-size: 6.5vw;
	font-weight: 100;
	font-style: italic;
	margin-bottom: 2rem;
	text-transform: lowercase;
	color: #fff;
}

.form-group {
	margin-bottom: 1.5rem;
	text-align: center;
}

.form-group label {
	display: block;
	font-family: 'Unbounded', sans-serif;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: #fff;
	text-transform: uppercase;
}

.form-group input {
	width: 100%;
	padding: 0.75rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	border-width: 1px 0 0 0;
	border-top: 1px solid #fff;
	background: transparent;
	color: #fff;
	border-radius: 0;
	box-sizing: border-box;
	text-align: center;
}

.form-group input::placeholder {
	color: #ccc;
}

.form-check {
	margin-bottom: 1.5rem;
	text-align: left;
	font-size: 0.9rem;
}

.form-check input {
	margin-right: 0.5rem;
	vertical-align: middle;
}

.form-check label {
	font-family: 'Montserrat', sans-serif;
	color: #ccc;
	vertical-align: middle;
}

.submit-btn {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	background: #65C0B9;
	border: none;
	color: #fff;
	text-transform: uppercase;
	border-radius: 5rem;
	cursor: pointer;
	transition: background 0.3s ease;
}

.submit-btn:hover {
	background: #4da49b;
}


#legal p {
	font-size: 1rem;
}

@media (max-width: 940px) {
	.login-form {
		padding: 1.5rem;
		max-width: 90%;
	}

	.login-title {
		font-size: 2.5rem;
	}
	
	#legal {
		padding: 2rem .5rem;
	}
}