@property --R {
    syntax: "<number>";
    inherits: true;
    initial-value: 80;
}

@property --G {
    syntax: "<number>";
    inherits: true;
    initial-value: 121;
}

@property --B {
    syntax: "<number>";
    inherits: true;
    initial-value: 66;
}

@property --color {
    syntax: "<color>";
    inherits: true;
    initial-value: rgba(80, 121, 66, 1);
}

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

:root {
    font-family: "Montserrat", Sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
}

html {
    scroll-behavior: smooth;
    cursor: default;
}

html, body, header, footer, main, section, footer, div, strong {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    display: block;
    height: fit-content;
}

a {
    display: block;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

iframe {
    border: none;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    padding: 20px 10px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
    padding: 10px;
}

p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 150%;
    padding: 10px;  
}

a {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 150%;
    color: inherit;
}

span {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 150%;
}

input,
textarea,
button {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-family: inherit;
}

button {
    color: inherit;
    text-align: center;
}

textarea {
    resize: none;
}

button {
    cursor: pointer;
}

/*HEADER*/
header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px clamp(10px, 7.5%, 100px);
    z-index: 2;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 100%);
    background-size: 100% 200%;
    background-position-y: 100%;
    background-repeat: no-repeat;
    transition: background 0.3s ease, padding 0.3s ease;
}

.header-logo {
    max-width: 250px;
    min-width: 200px;
}

.header-logo > a {
    line-height: 0;
}

.header-list {
    display: flex;
    align-items: center;
    opacity: 1;
    gap: clamp(10px, 2dvw, 50px); /*UL no mide bien % al usar clamp*/
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-list > li > a {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    width: 100%;
    padding: 5px 5px;
    transition: color 0.3s ease;
}

.header-list > li > a:hover,
.header-list > li > a:focus {
    color: var(--color);
}

/* Used In Javascript for recolor lastlink */
.header-list > li > a.lastlink {
    transition: color 0s ease;
    color: var(--color);
}

.header-list > li:last-child > a {
    border-radius: 10px;
    background-color: var(--color);
    padding: 15px 30px;
    transition: color 0.3s ease, background 0.3s ease;
}

.header-list > li:last-child > a:hover,
.header-list > li:last-child > a:focus {
    background-color: white;
    color: var(--color);
}

header.opaque {
    padding: 10px clamp(10px, 7.5%, 100px);
    background-position-y: 0%;
}

/* Used In Javascript for rechild links */
.header-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    top: 0;
    right: 0;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%);
    background-size: 200% 100%;
    background-position-x: 100%;
    background-repeat: repeat;
    padding: 10px 2dvw 2dvh 2dvw;
    gap: clamp(10px, 2dvw, 50px);
    transition: background 0.3s ease;
}

.header-menu.hidden {
    background-position-x: 0%;
}

.header-menu > ul {
    flex-direction: column;
    align-items: flex-end;
}

.header-menu.hidden > ul {
    transform: translateX(150%);
}

/* BURGER */
.burger {
    cursor: pointer;
    max-width: 60px;
    min-width: 60px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.burger:hover {
    transform: scale(1.1);
}

.burger.hidden {
    transform: translateX(200%);
}

.burger > :nth-child(1),
.burger > :nth-child(2),
.burger > :nth-child(3) {
    transform-origin: 50% 25%;
    stroke: var(--color);
    stroke-width: 15;
    stroke-linecap: round;
    transition: stroke 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

.burger > :nth-child(1) {
    transform-origin: 50% 25%;
}

.burger > :nth-child(2) {
    transform-origin: 100% 50%;
}

.burger > :nth-child(3) {
    transform-origin: 50% 75%;
}

.burger.active > :nth-child(1) {
    transform: translate(0%, 25%) rotate(-45deg) scale(1.2);
    stroke: white;
}

.burger.active > :nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger.active > :nth-child(3) {
    transform: translate(0%, -25%) rotate(45deg) scale(1.2);
    stroke: white;
}

/*HERO*/
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: white;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: overlay;
    background-color: transparent;
    padding-top: 25dvh;
    padding-bottom: 40dvh;
    height: 100dvh;
    transition: background 0.3s ease;
}

.hero-section.gradient::after {
    --R: 255;
    --G: 255;
    --B: 255;
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background-image: linear-gradient(0deg,
        rgba(var(--R), var(--G), var(--B), 1) 0%,
        rgba(var(--R), var(--G), var(--B), 0.738) 19%,
        rgba(var(--R), var(--G), var(--B), 0.541) 34%,
        rgba(var(--R), var(--G), var(--B), 0.382) 47%,
        rgba(var(--R), var(--G), var(--B), 0.278) 56.5%,
        rgba(var(--R), var(--G), var(--B), 0.194) 65%,
        rgba(var(--R), var(--G), var(--B), 0.126) 73%,
        rgba(var(--R), var(--G), var(--B), 0.075) 80.2%,
        rgba(var(--R), var(--G), var(--B), 0.042) 86.1%,
        rgba(var(--R), var(--G), var(--B), 0.021) 91%,
        rgba(var(--R), var(--G), var(--B), 0.008) 95.2%,
        rgba(var(--R), var(--G), var(--B), 0.002) 98.2%,
        rgba(var(--R), var(--G), var(--B), 0) 100%
    );
}

.hero-section > h2 {
    text-shadow: 0px 0px 35px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.2rem;
    font-size: clamp(1rem, 5rem, 9dvw);
    font-weight: 600;
    color: white;
}

.hero-section > p {
    text-transform: uppercase;
    text-shadow: 0px 0px 35px rgba(0, 0, 0, 0.8);
    font-size: clamp(1rem, 2rem, 7.5dvw);
    color: white;
}

/*FOOTER*/
footer {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
}

.legal-wrap {
    color: white;
}

.legal-list {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 10px;
    gap: 15px;
}

.legal-list > li {
    width: clamp(0px, 30%, 200px);
}

.legal-list > li > a {
    color: white;
    transition: color 0.3s ease;
}

.legal-list > li > a:hover {
    color: var(--color);
}

.copyright {
    text-align: center;
    padding: 10px;
}

/*CLASSES*/
.visually-hidden {
    position: absolute;
    overflow: hidden;
    clip-path: inset(0);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    outline: none;
}

.lat-pad-L {
    padding-left: clamp(5px, 10%, 250px);
    padding-right: clamp(5px, 10%, 250px);
}

.lat-pad-S {
    padding-left: clamp(5px, 3%, 250px);
    padding-right: clamp(5px, 3%, 250px);
}

.long-pad-L {
    padding-top: 50px;
    padding-bottom: 50px;
}

.long-pad-S {
    padding-top: 15px;
    padding-bottom: 15px;
}