/* Fonts --------------- */

@font-face {
    font-family: "Work-Sans";
    font-style: normal;
    font-weight: 400;
    src: url("/assets/fonts/WorkSans-Regular.ttf") format('truetype');
}

@font-face {
    font-family: "Work-Sans";
    font-style: normal;
    font-weight: 500;
    src: url("/assets/fonts/WorkSans-Medium.ttf") format('truetype');
}

@font-face {
    font-family: "Work-Sans";
    font-style: normal;
    font-weight: 600;
    src: url("/assets/fonts/WorkSans-SemiBold.ttf") format('truetype');
}

/* Global Styles --------------- */

* {
    box-sizing: border-box;
}

html {
    font-size: var(--text-s);
    --scroll-behavior: smooth;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    font-size: 1rem;
    line-height: var(--leading-tight);
}

/* Layout & Color Themes --------------- */

.container.grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-gap: 1rem;
    width: 100%;
}

.container.grid .column {
    grid-column: span var(--span);
}

@media screen and (max-width: 767px) {
    .container.grid .column {
        grid-column: span 12;
    }

    .container.grid .column:empty {
        display: none;
    }
}

.container.grid .column > *:first-child {
    margin-top: 0;
}

.container.grid .column > *:last-child {
    margin-bottom: 0;
}

section {
    background-image: var(--bg_image);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
}

main > section:first-child {
    padding-top: calc(var(--logo-height) + var(--spacing-6) * 2);
}

section > .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    opacity: 0.5;
}

[data-alignment=left] {
    text-align: left;
}
  
[data-alignment=center] {
    text-align: center;
}
  
[data-alignment=right] {
    text-align: right;
}

[data-alignment=justify] {
  text-align: justify;
}

[data-color-mode="lightest"] {
    --text-color: var(--dark);
    --bg-color: var(--lightest);
}

[data-color-mode="light"] {
    --text-color: var(--dark);
    --bg-color: var(--light);
}

[data-color-mode="bright"] {
    --text-color: var(--lightest);
    --bg-color: var(--accent);
}

[data-color-mode="dark"] {
    --text-color: var(--light);
    --bg-color: var(--dark);
}

/* Typography & Buttons --------------- */

:root {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
    color: currentColor;
    text-decoration: none;
}

.button {
    display: inline-flex;
    padding: 0.7rem 1.2rem;
    align-items: center;
    justify-content: center;
    color: var(--button-text-color);
    cursor: pointer;
    border: 1px solid var(--button-bg-color);
    border-radius: var(--rounded-xl);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: var(--button-bg-color);
    margin-top: 1.2rem;
    transition: 0.2s ease;
}

.button:hover {
    background-color: transparent;
    color: var(--text-color);
}

h1,
.h1,
h2,
.h2,
h3,
.h3 {
    font-family: var(--heading-font-family);
    font-weight: var(--heading-font-weight);
    font-style: var(--heading-font-style);
    line-height: var(--leading-none);
}

h1,
.h1 {
    font-size: var(--text-3xl);
}

h2,
.h2 {
    font-size: var(--text-2xl);
    margin: var(--spacing-12) 0;
}

@media screen and (min-width: 768px) {
    h2,
    .h2 {
        margin: var(--spacing-16) 0;
    } 
}

h3,
.h3 {
    font-size: var(--text-xl);
    line-height: var(--leading-tight);
    margin: var(--spacing-6) 0;
}

p {
    line-height: var(--leading-normal);
    font-size: var(--text-m);
}

strong {
    font-weight: var(--body-font-weight-bold);
}

h1 strong,
h2 strong,
h3 strong {
    font-weight: var(--heading-font-weight);
}

.text-large p,
.text-large {
    font-size: var(--text-l);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--body-font-weight-medium);
}

.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 {
    margin-top: 1rem;
}

.divider {
    display: block;
    width: 100%;
    height: var(--divider-height);
    margin: 0.5rem 0;
    background-color: var(--text-color);
}

.highlight-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-5);
    margin-top: var(--spacing-10);
}

.highlight-title span {
    height: 1em;
    width: 1em;
    flex-shrink: 0;
}

.highlight-title span img,
.highlight-title span svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rte > *:first-child {
    margin-top: 0;
}

.rte > *:last-child {
    margin-bottom: 0;
}

/* Images --------------- */

img {
    max-width: 100%;
}

figure[data-layout] {
    position: relative;
}

figure[data-layout]:not([data-layout="auto"]) img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

figure[data-layout="landscape"] {
    padding-bottom: 50%;
}

figure[data-layout="square"] {
    padding-bottom: 100%;
}

figure ul {
    list-style: none;
    padding-inline-start: 0;
    line-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

figure:not(:first-child) ul {
    margin-top: var(--spacing-12);
}

@media screen and (min-width: 768px) {
    figure ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Header --------------- */

header.header {
    padding-top: var(--spacing-6);
    padding-bottom: var(--spacing-6);
    color: var(--light);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
}

header .logo {
    line-height: 0;
    z-index: 10;
}

header .logo a {
    height: var(--logo-height);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header .logo img {
    height: 100%;
    width: auto;
}

header .logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.header-menu {
    flex-grow: 1;
}

header menu {
    padding-inline-start: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 4vw;
    margin: 0;
}

.menuButton {
  display: block;
  height: auto;
  width: 30px;
  cursor: pointer;
}

header menu li a {
    position: relative;
    font-weight: var(--body-font-weight-medium);
}

header menu li a::after {
    content: "";
    background: currentColor;
    bottom: -3px;
    display: block;
    height: var(--line);
    left: 0;
    position: absolute;
    transition: width .2s ease;
    width: 0%;
}

header menu li a:hover::after {
    width: 100%;
}

.menuButton span {
  background-color: currentColor;
  display: block;
  height: 2px;
  transition: 400ms ease all;
  width: 100%;
}

.menuButton .middle {
  margin: 7px 0;
}

@media screen and (min-width: 990px) {
    .menuButton {
        display: none;
    }

    .header-menu .button {
        margin-left: auto;
    }
}

@media screen and (max-width: 989px) {
    header.header {
        padding-top: var(--spacing-8);
        padding-bottom: var(--spacing-8);
    }

    header .logo a {
        gap: 1rem;
    }

    header .logo h1 {
        font-size: 1.2rem;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-menu {
        display: none;
    }

    .menuButton {
        z-index: 10;
    }

    .menu-open .header-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        position: fixed;
        inset: 0;
        z-index: 4;
        background-color: var(--accent-color);
        padding: calc(var(--logo-height) + 2 * var(--spacing-6)) var(--container-padding) calc(var(--container-padding) + var(--spacing-6));
    }

    .menu-open .header-menu li a {
        font-size: 1.4rem;
    }

    .menu-open header menu {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        align-items: center;
    }

    .menu-open .menuButton .top-bun {
        transform: translatey(9px) rotate(45deg);
    }

    .menu-open .menuButton .middle {
        transform: scalex(0);
    }

    .menu-open .menuButton .bottom-bun {
        transform: translatey(-9px) rotate(-45deg);
    }
}

@media screen and (max-width: 767px) {
    header .logo h1 {
        font-size: 1.1rem;
    }
}

/* Footer --------------- */

footer.footer section {
    padding: var(--spacing-6);
    text-align: center;
    text-transform: uppercase;
    font-family: var(--heading-font-family);
    font-weight: var(--heading-font-weight);
}

/* Hero --------------- */

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero h2 {
    --text-2xl: var(--text-3xl);
    max-width: 16ch;
}

@media screen and (min-width: 768px) {
    .hero {
        min-height: 100vh;
    }
}

/* Home Section --------------- */

.home-section .container.grid .column > .divider:last-child {
    margin-bottom: calc(var(--spacing-12) - 1rem);
}

@media screen and (min-width: 768px) {
    .home-section .container.grid .column > .divider:last-child {
        margin-bottom: calc(var(--spacing-16) - 1rem);
    } 
}

.home-section h2 {
    max-width: 56rem;
}

.home-section figure {
    width: 75%;
}

@media screen and (max-width: 767px) {
    .home-section figure {
        max-width: 150px;
    }

    .full-image-section figure[data-layout="landscape"] {
        padding-bottom: 70%;
        margin-left: calc(var(--container-padding) * -1);
        margin-right: calc(var(--container-padding) * -1);
    }
}

/* Links Section --------------- */

.links-section p {
    max-width: 40rem;
}

.links-section p strong {
    color: var(--accent-color);
}


.links-section figure a {
    position: relative;
    line-height: 0;
    display: block;
}

.links-section figure a::after {
    content: "Visitar";
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: var(--bright);
    color: var(--dark);
    padding: 1rem 1.5rem;
    box-sizing: border-box;
    border-radius: 80px;
    font-family: var(--heading-font-family);
    font-weight: var(--heading-font-weight);
    line-height: 1;
    transition: 0.4s ease;
    width: 6em;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .links-section figure a:hover::after {
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
    }
}

/* Contact Section --------------- */

.contact-section figure {
    max-width: min(350px, 100%);
}

.contact-section .text-large a {
    font-family: var(--heading-font-family);
    font-weight: var(--heading-font-weight);
    font-style: var(--heading-font-style);
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    .contact-section .text-large a {
        font-size: var(--text-xl);
    }
}