:focus-visible {
    outline: 2px solid var(--color-brand-secondary);
    outline-offset: 3px;
    border-radius: 0.5rem;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 6rem;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@font-face {
    font-family: "Guton";
    src: url("/assets/fonts/Guton-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Guton";
    src: url("/assets/fonts/Guton-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Guton";
    src: url("/assets/fonts/Guton-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Guton";
    src: url("/assets/fonts/Guton-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 7.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-family: "Guton", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, transform 0.2s ease;

    &:hover {
        transform: translateY(-1px);
    }

    &:active {
        transform: translateY(0);
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 1rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 9999px;
    font-family: "Guton", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
}

.cards-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }

    &>* {
        flex: 0 0 18rem;
        scroll-snap-align: start;
    }

    @media (min-width: 768px) {

        &>* {
            flex-basis: 20rem;
        }
    }

    @media (min-width: 1280px) {
        overflow-x: visible;

        &>* {
            flex: 1 1 0;
        }
    }

    @media (max-width: 768px) {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    article {
        &:first-of-type {
            @media (max-width: 768px) {
                margin-left: 1rem;
            }

        }

        &:last-of-type {
            @media (max-width: 768px) {
                margin-right: 1rem;
            }
        }
    }
}

.band-fixed {
    width: 100%;
    aspect-ratio: 1800 / 801;
    background-image: url("/assets/img/ibo-band.webp");
    background-attachment: fixed;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.parallax-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;

    & .parallax-img {
        position: absolute;
        left: 0;
        top: -10%;
        width: 100%;
        height: 120%;
        object-fit: cover;
        object-position: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .parallax-frame .parallax-img {
        transform: none !important;
    }
}

#quienes-somos {
    position: relative;

    &:before {
        content: "";
        height: 300px;
        width: 100%;
        background: linear-gradient(180deg, transparent, var(--color-ink) 100%);
        position: absolute;
        top: -300px;
        left: 0;

        @media (max-width: 767px) {
            height: 200px;
            top: -200px;
        }
    }
}
