:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-text: #1F1F1F;
    --color-gray: #5B5B5B;
    --color-light-gray: #E9E9E9;
    --color-white: #FFFFFF;
    --color-dark: #1F1F1F;
    --color-accent: #FFD300;
    --border-color: #1F1F1F;
    --section-line-offset: clamp(0.9rem, 2.5vw, 2.75rem);
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-text);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cover {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 1rem 6rem;
    overflow: hidden;
    color: var(--color-white);
    background-color: #0f0f0f;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 15, 15, 0.5), rgba(15, 15, 15, 0.5));
    pointer-events: none;
    z-index: 0;
}

.hero-cover > * {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-cover {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-cover {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.section-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(32px, 5.5vw, 60px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
    text-wrap: balance;
}

.section-subheading {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(18px, 3.8vw, 30px);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--color-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
    text-wrap: balance;
}

.section-heading.text-white {
    color: var(--color-white);
}

.section-subheading.text-white,
.section-subheading.text-gray-200 {
    color: inherit;
}

.body-text,
.paragraph-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 2.4vw, 17px);
    line-height: 1.6;
    color: var(--color-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
}

.body-text.text-white,
.paragraph-text.text-white {
    color: var(--color-white);
}

.body-text.text-gray-200,
.paragraph-text.text-gray-200 {
    color: inherit;
}

.item-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(20px, 3.4vw, 28px);
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: var(--color-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
}

.item-heading.text-white {
    color: var(--color-white);
}

#contacto .body-text {
    color: #dedede;
}

#contacto .body-text.text-white,
#contacto .item-heading,
#contacto .item-heading.text-white {
    color: var(--color-white);
}

#contacto strong {
    color: var(--color-white);
    font-weight: 600;
}

#contacto a.text-white {
    color: var(--color-white);
}

.menu-button-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(15px, 3.4vw, 20px);
    line-height: 1.25;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
}

.text-variation-500-16 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
}

.text-variation-700-12 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.text-variation-400-16 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-gray);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal.is-resetting {
    transition: none !important;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.separator {
    height: 2px;
    background: var(--border-color);
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
}

.separator-white {
    height: 1px;
    background: #ffffff;
    opacity: 0.2;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
}

.section-with-borders {
    position: relative;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
    width: calc(100% - 3rem);
    overflow-x: visible;
}

.section-with-borders::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--section-line-offset));
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.section-with-borders.hide-offset-line::before {
    display: none;
}

@media (min-width: 640px) {
    .section-with-borders {
        margin-left: 2rem;
        margin-right: 2rem;
        padding-left: 2rem;
        padding-right: 2rem;
        width: calc(100% - 4rem);
    }
}

@media (min-width: 768px) {
    .section-with-borders {
        margin-left: 3rem;
        margin-right: 3rem;
        padding-left: 3rem;
        padding-right: 3rem;
        width: calc(100% - 6rem);
    }
}

@media (min-width: 1024px) {
    .section-with-borders {
        margin-left: 4rem;
        margin-right: 4rem;
        padding-left: 4rem;
        padding-right: 4rem;
        width: calc(100% - 8rem);
    }
}

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #1F1F1F;
    padding: 0.75rem 0.5rem;
    box-sizing: border-box;
    --navbar-translate-y: 0px;
    transform: translateY(var(--navbar-translate-y));
    transition: padding 0.3s ease-out, background-color 0.4s ease-out, transform 0.2s ease-out;
}

@media (min-width: 768px) {
    .main-navbar {
        padding: 1rem 0.75rem;
    }
}

@media (min-width: 1024px) {
    .main-navbar {
        padding: 1.25rem 0.9rem;
    }
}

.main-navbar.scrolled {
    padding: 0.45rem 0.5rem;
}

@media (min-width: 768px) {
    .main-navbar.scrolled {
        padding: 0.55rem 0.75rem;
    }
}

.main-navbar.scrolled .navbar-logo {
    height: auto;
    max-height: 3.5rem;
    transition: max-height 0.3s ease-out;
}

@media (min-width: 768px) {
    .main-navbar.scrolled .navbar-logo {
        max-height: 3rem;
    }
}

@media (min-width: 1024px) {
    .main-navbar.scrolled .navbar-logo {
        max-height: 3.75rem;
    }
}

@media (min-width: 1280px) {
    .main-navbar.scrolled .navbar-logo {
        max-height: 4.25rem;
    }
}

.main-navbar .menu-button,
.main-navbar .menu-button.menu-button-text,
.main-navbar.scrolled .menu-button,
.main-navbar.scrolled .menu-button.menu-button-text {
    color: #ffffff;
}

.main-navbar.light-mode {
    background: #ffffff;
}

.main-navbar.light-mode .menu-button,
.main-navbar.light-mode .menu-button.menu-button-text {
    color: var(--color-text);
}

.navbar-logo {
    height: auto;
    max-width: 100%;
    transition: opacity 0.4s ease-out, max-height 0.3s ease-out;
    opacity: 1;
    max-height: 4.5rem;
}

@media (min-width: 768px) {
    .navbar-logo {
        max-height: 7rem;
    }
}

@media (min-width: 1024px) {
    .navbar-logo {
        max-height: 9rem;
    }
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #1F1F1F;
    color: #ffffff;
    z-index: 90;
    transform: translateY(-100%);
    transition: transform 400ms ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 4rem;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(15px, 3.5vw, 21px);
    line-height: 1.25;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
}

.menu-button {
    cursor: pointer;
    flex-shrink: 0;
    visibility: visible;
    opacity: 1;
}

.bg-black {
    background-color: #1F1F1F !important;
}

.bg-black a.text-white,
.bg-black a {
    color: #ffffff;
}

.section-pager-button {
    transition: background-color 200ms ease-out, color 200ms ease-out;
}

@media (max-width: 768px) {
    .section-with-borders {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        width: calc(100% - 2.5rem);
    }

    .menu-overlay {
        padding: 3rem;
        gap: 1.5rem;
    }

    .menu-button-text {
        font-size: 15px;
        letter-spacing: 0.1em;
    }

    .menu-link {
        font-size: 15px;
        letter-spacing: 0.12em;
    }

    .section-heading {
        font-size: clamp(30px, 9vw, 46px);
    }

    .section-subheading {
        font-size: clamp(17px, 5vw, 24px);
        line-height: 1.55;
    }

    .item-heading {
        font-size: clamp(19px, 4.2vw, 24px);
    }

    .body-text,
    .paragraph-text {
        font-size: clamp(15px, 3.8vw, 17px);
        line-height: 1.7;
    }

    .separator {
        height: 1px;
    }
}

@media (max-width: 540px) {
    .section-with-borders {
        margin-left: 1rem;
        margin-right: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% - 2rem);
    }

    .menu-overlay {
        padding: 2.5rem;
        gap: 1.25rem;
    }

    .tracking-\[0\.3em\] {
        letter-spacing: 0.18em !important;
    }

    .tracking-\[0\.45em\] {
        letter-spacing: 0.24em !important;
    }

    .section-heading {
        font-size: clamp(26px, 8vw, 40px);
    }

    .section-subheading {
        font-size: clamp(16px, 5.8vw, 22px);
    }

    .item-heading {
        font-size: clamp(18px, 5vw, 22px);
    }

    .menu-button-text {
        letter-spacing: 0.09em;
    }

    .menu-link {
        letter-spacing: 0.1em;
    }

    .separator {
        margin: 2.5rem 0;
    }
}


@media (max-width: 1024px) {
    :root {
        --section-line-offset: clamp(0.85rem, 2.1vw, 2rem);
    }

    .section-with-borders::before {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-line-offset: clamp(0.8rem, 1.9vw, 1.25rem);
    }

    .section-with-borders {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        width: calc(100% - 2.5rem);
    }

    .section-with-borders::before {
        display: none;
    }

    .menu-overlay {
        padding: 3rem;
        gap: 1.5rem;
    }

    .menu-button-text {
        font-size: 15px;
        letter-spacing: 0.1em;
    }

    .menu-link {
        font-size: 15px;
        letter-spacing: 0.12em;
    }

    .section-heading {
        font-size: clamp(30px, 9vw, 46px);
    }

    .section-subheading {
        font-size: clamp(17px, 5vw, 24px);
        line-height: 1.55;
    }

    .item-heading {
        font-size: clamp(19px, 4.2vw, 24px);
    }

    .body-text,
    .paragraph-text {
        font-size: clamp(15px, 3.8vw, 17px);
        line-height: 1.7;
    }

    .separator {
        height: 1px;
    }
}

@media (max-width: 540px) {
    :root {
        --section-line-offset: clamp(0.75rem, 1.7vw, 1rem);
    }

    .section-with-borders {
        margin-left: 1rem;
        margin-right: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% - 2rem);
    }

    .section-with-borders::before {
        display: none;
    }

    .menu-overlay {
        padding: 2.5rem;
        gap: 1.25rem;
    }

    .tracking-\[0\.3em\] {
        letter-spacing: 0.18em !important;
    }

    .tracking-\[0\.45em\] {
        letter-spacing: 0.24em !important;
    }

    .section-heading {
        font-size: clamp(26px, 8vw, 40px);
    }

    .section-subheading {
        font-size: clamp(16px, 5.8vw, 22px);
    }

    .item-heading {
        font-size: clamp(18px, 5vw, 22px);
    }

    .menu-button-text {
        letter-spacing: 0.09em;
    }

    .menu-link {
        letter-spacing: 0.1em;
    }

    .separator {
        margin: 2.5rem 0;
    }
}

.video-trigger {
    display: block;
    width: 100%;
    max-width: min(100%, 52rem);
    margin: 0;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 0;
    background: var(--color-dark);
    cursor: pointer;
    overflow: hidden;
}

.video-trigger:hover .video-trigger__play-icon {
    transform: scale(1.06);
}

.video-trigger:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
}

.video-trigger__media {
    position: relative;
    display: block;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.video-trigger__poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    vertical-align: middle;
}

.video-trigger__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.35);
    pointer-events: none;
}

.video-trigger__play-icon {
    width: clamp(3.25rem, 10vw, 4.5rem);
    height: clamp(3.25rem, 10vw, 4.5rem);
    color: var(--color-white);
    transition: transform 200ms ease-out;
}

.video-trigger__play-icon circle {
    fill: rgba(31, 31, 31, 0.92);
}

.video-trigger__play-icon path {
    fill: var(--color-white);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.video-modal[hidden] {
    display: none !important;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(15, 15, 15, 0.88);
    cursor: pointer;
}

.video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    max-height: calc(100vh - 2rem);
    border: 2px solid var(--color-white);
    border-radius: 0;
    background: #0f0f0f;
}

.video-modal__player {
    display: block;
    width: 100%;
    max-height: calc(100vh - 4rem);
    height: auto;
    vertical-align: middle;
    border-radius: 0;
    background: #000;
}

.video-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: var(--color-white);
    color: var(--color-dark);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: none;
}

.video-modal__close:hover,
.video-modal__close:focus,
.video-modal__close:active,
.video-modal__close:focus-visible {
    background: var(--color-white);
    color: var(--color-dark);
    outline: none;
}
