
main {
    position: relative;
}
@media (max-width: 768px) {
    main {
        max-width: 100vw;
    }
}
/* =============*/
/*  NAVIGATION  */
/* =============*/

nav{
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 7vh;
    padding-block: var(--space-2);
    padding-inline: var(--space-4);
    background-color: transparent;
    color: var(--hero-primary);
    z-index: var(--z-dropdown);
}

.brand__container{
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}
.lest-logo{
    height: 4vh;
    aspect-ratio: 1;
}
.lest__brand--name{
    font-family: var(--lest-web);
    font-size: clamp(1.1rem, .78vw, 1.8rem);
    font-weight: 500;
    letter-spacing: 0.01em;
}
/* MENU */

.nav__actions--container{
    display: inline-flex;
    justify-content: center;
    gap: var(--space-4);
}
.nav__actions{
    display: inline-flex;
    justify-content: center;
    gap: var(--space-4);
}
.nav__link{
    font-family: var(--ff-accent);
    font-size: clamp(1.2rem, .7vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--hero-brand);
}
.lest__menu{
    display: none;
}
@media (max-width: 768px) {
    .nav__actions--container{
        display: none;
    }
    .lest__menu{
        display: flex;
        height: 2rem;
        width: auto;
        aspect-ratio: 1;
    }
}
/* =============*/
/*     KICKER   */
/* =============*/
.mobile__kicker{
    display: none;
}
@media (max-width: 768px) {
    .mobile__kicker{
        display: flex;
        flex-direction: row;
        justify-content: left;
        gap: var(--space-2);
        width: 100%;
        font-family: var(--ff-accent);
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: var(--text-secondary);
    }
    .mobile__kicker--separator{
        font-weight: 900;
    }
    .journey-mobile__header .mobile__kicker{
        color: var(--text-secondary);
    } 
    .versions__wrapper .mobile__kicker{
        padding-inline: var(--space-2);
    } 
    .scope__wrapper .mobile__kicker{
        padding-inline: var(--space-2);
    } 
    .landing__close--wrapper .mobile__kicker{
        color: var(--text-primary);
        padding-top: var(--space-6);
        padding-inline: var(--space-2);
    } 
}

/* =============*/
/*      HERO    */
/* =============*/

.hero-landing{
    position: relative;

    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 0px;

    width: 100%;
    height: 100vh;
    color: var(--hero-primary);
    overflow: hidden;
    background-image: url("../../img/bg/hero_bg_768.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center right;
}

.hero-landing::after{
    content: "";
    grid-row: 1 / 8;
    grid-column: 1 / 13;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18, 23, 32, .8) 20%, rgba(255, 255, 255, 0) 70%);
    filter: var(--hero-image-filter);
    z-index: var(--layer-overlay);
}
.overlay {
    grid-row: 1 / 8;
    grid-column: 1 / 13;
    pointer-events: none;
}

.grid-content {
    grid-row: 4 / 7;
    grid-column: 2 / 5;
}
@media (min-width: 700px) and (max-height: 820px) {
    .grid-content {
        grid-column: 2 / 6;
    }
}

.grid-mockup {
    grid-row: 2 / 8;
    grid-column: 7 / 10;
}

.grid-widget {
    grid-row: 6 / 8;
    grid-column: 11 / 13;
}

.grid-head {
    grid-row: 2 / 3;
    grid-column: 2 / 5;
    place-self: center;
}

.landing__background {
    order: 0;
    grid-row: 1 / 8;
    grid-column: 1 / 13;
    z-index: var(--layer-base);
    overflow: hidden;
}

.hero__background {
    display: block;
    width: 100%;
    height: 100%;
}

.landing__background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: var(--hero-image-filter);
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
    filter: var(--hero-image-filter);
}

.hero__video.is-playing {
    opacity: 1;
}

.landing__copy{
    font-size: clamp(1.4rem, 1vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--hero-primary);
    z-index: var(--layer-content);
}
.landing__content{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    height: 100%;

    z-index: var(--layer-content);
}
.landing__points{
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding-inline: var(--space-1);
}

.landing__icon{
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-icon);
    height: clamp(3rem, 1.7vw, 4.5rem);
    width: auto;
    aspect-ratio: 1;
}
.landing__icon svg{
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
}
.landing__points--content{
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.points__header{
    font-size: clamp(1.6rem, 1.04vw, 2.8rem);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.points__content{
    font-family: var(--ff-accent);
    font-size: clamp(1.3rem, .83vw, 2.2rem);
    font-weight: 600;
    color: var(--hero-secondary);
}

/* LANDINTG CTA */

.cta__wrapper{
    padding-block: var(--space-1);
    margin: 0 auto;

}
.landing__cta{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);

    min-width: 19rem;
    padding-block: var(--space-2);
    padding-inline: var(--space-6);
    background-color: var(--main-cta);

    font-family: var(--ff-accent);
    font-size: clamp(1.8rem, 1.1vw, 2.6rem);
    font-weight: 700;
    color: var(--cta-dark);

    overflow: hidden;
    isolation: isolate;
}
.landing__cta svg{
    height: clamp(3rem, 1.7vw, 4.5rem);
    width: auto;
    aspect-ratio: 1;
}

.landing__cta > span,
.landing__cta > svg {
    position: relative;
    z-index: 2;
    
}

.cta__hover{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    opacity: 0;
    transition: opacity .6s ease-in;
}
.cta__hover svg{
    height: 100%;
    width: 100%;
}
.landing__cta:hover .cta__hover{
    opacity: 1;
}
.landing__title--mobile{
    display: none;
}
.landing__title{
    grid-row: 3 / 4;
    grid-column: 2 / 12;
    z-index: var(--layer-content);

    font-size: clamp(4rem, 4.2vw, 10.5rem);
    font-weight: 600;
    color: var(--hero-bright);
}

.mockup{
    opacity: .9;
    z-index: var(--layer-mockup);
}
.mockup picture {
    display: contents;
}
.mockup img{
    height: 100%;
    width: 100%;
    object-fit: contain;
    aspect-ratio: auto;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer / Edge antiguo */
    user-select: none; 
}

@media (max-width: 768px) {
    .hero-landing {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(11, 1fr);
        overflow: clip;
        clip-path: inset(0);
        min-height: 200vh;
    }
    .hero-landing::after{
        grid-area: 1 / 1 / 7/ 2; 
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(18, 23, 32, .8) 20%, rgba(255, 255, 255, 0) 70%);
    }
    .overlay {
        grid-row: auto;
        grid-column: auto;
    }
    .grid-content {
        grid-row: 8 / 11; 
        grid-column: 1 / 2;
    }
    .grid-mockup {
        grid-row: span 4 / span 4;
        grid-row-start: 5;
    }

    .grid-widget {
        grid-row: auto;
        grid-column: auto;
    }
    .grid-head {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
        place-self: start ;
        padding-inline: var(--space-4);
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .landing__background { 
        position: fixed;
        inset: 0;
        grid-row: auto;          /* anula el 1 / 8 base */
        grid-column: auto;
        height: auto;            /* anula height/min-height de intentos anteriores */
        min-height: 0;
    }
    .landing__title{
        display: none;
    }
    .landing__title--mobile{
        grid-row: 3 / 4;
        grid-column: 1 / 2;
        display: flex;
        flex-direction: column;
        padding-inline: var(--space-3);
        font-weight: 600;
        color: var(--hero-bright);
        z-index: var(--layer-content);
    }
    .landing__title--mobile > :first-child {
        font-size: clamp(2.4rem, 6.5vw, 3rem);
    }
    .landing__title--mobile > :nth-child(2) {
        font-size: clamp(3.8rem, 11vw, 4.5rem);
    }

    .mockup{
        grid-row: 4 / 8; 
        grid-column: 1 / 2; 
        pointer-events: none;
    }
    .landing__content{
        position: relative;
        padding-inline: var(--space-4); 
        margin-bottom: var(--space-6);
        z-index: var(--layer-mockup);
    }
    .landing__points{
        position: relative;
        padding: var(--space-2);
        border-radius: .8rem;
        isolation: isolate;
    }
    .landing__points:before {
        content: "";
        position: absolute;
        inset: -12px -16px;

        background: radial-gradient(
            ellipse at center,
            rgb(0 0 0 / 65%) 0%,
            rgb(0 0 0 / 40%) 55%,
            transparent 100%
        );

        z-index: -1;
        pointer-events: none;
    }
    .points__content{
        font-family: var(--ff-accent);
        font-size: clamp(1.3rem, .9vw, 2.2rem);
        font-weight: 700;
        color: var(--hero-secondary);
    }
    .points__header{
        font-size: 4.3vw;
    }
    .points__content{
        font-size: 3.6vw;
    }
    .landing__cta{
        touch-action: manipulation;
    }
    .landing__cta{
        color: var(--cta-dark);
    }
}

/* =============*/
/*    PILARS    */
/* =============*/

.pilars__wrapper{
    display: inline-flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    min-height: 20vh;
    padding-inline: var(--space-8);
    padding-block: var(--space-4);
    color: var(--text-secondary);
}
.pilar{
    flex: 1 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding-top: var(--space-4);

    animation: showup linear forwards;
    animation-timeline: view();
}


.pilar__header{
    font-size: clamp(1.4rem, .9vw, 2.3rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}
.pilar__content{
    font-size: clamp(1.3rem, .8vw, 2rem);
    font-weight: 600;
    padding-block: var(--space-2);
    padding-inline: 2vw;
}
.pilar__icon{
    height: 4.5rem;
    width: auto;
    aspect-ratio: 1;
    color: var(--icon-bright);
}
.pilar:nth-child(1) {
    animation-range: entry 0% entry 180%;
}

.pilar:nth-child(3) {
    animation-range: entry 0% entry 210%;
}

.pilar:nth-child(5) {
    animation-range: entry 0% entry 240%;
}

.pilar__separator{
    display: block;
    width: 1pt;
    height: 20vh;
    background-color: var(--border-bright);
    margin-block: var(--space-2);
}
@media (max-width: 768px) {
    .pilars__wrapper{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;

        gap: var(--space-4);
        width: 100%;
        min-height: 20vh;
        padding-inline: var(--space-8);
        padding-block: var(--space-8);
        color: var(--text-secondary);
    }
    .pilar__separator{
        display: none;
    }
}
/* =============*/
/*   JOURNEY    */
/* =============*/
.journey__wrapper--mobile{
    display: none;
}
.journey__wrapper{
    width: 100%;
    height: 50vh;
    background-color: var(--surface-base);
    overflow: hidden;
}
.journey__scroll{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    width: 100%;
    height: 100%;
}
.journey__head {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}
.scroll__zone{
    grid-row: 2 / 3;
    grid-column: 1 / 4;
}
.scroll__window{
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}
.overlay-1 {
    grid-row: 2 / 3; 
    grid-column: 1 / 2;
}

.overlay-2 {
    grid-row: 2 / 3;
    grid-column: 3 / 4;
}

.scroll__zone{
    display: flex;
    flex-direction: row;
    justify-content: center;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none; 
    z-index: 0;
    touch-action: pan-x pan-y;
}
.scroll__zone::-webkit-scrollbar {
    display: none;
}

.journey__head{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    color: var(--text-primary);
    z-index: var(--layer-title);
}
.journey_kicker{
    font-family: var(--ff-accent);
    font-size: clamp(1.3rem, .75vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
}
.journey_kicker--mobile{
    display: none;
}
.journey__header{
    font-size: clamp(1.4rem, .94vw, 2.4rem);
    font-weight: 500;
    text-align: center;
}

.journey__group{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10VW;
    padding-right: 10VW;
    height: 100%;
}

.journey__item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-inline: var(--space-1);
    height: 100%;
    min-width: 10rem;
    width: max-content;
    padding-block: var(--space-1);
    opacity: .5;
    transform: scale(0.7) translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;

    font-family: var(--ff-normal);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-primary);

}
.journey__item:nth-child(even){
    flex-direction: column-reverse;
}
.item__icon{
    height: 7.2rem;
    width: auto;
    aspect-ratio: 1;
    opacity: .9;
    color: var(--surface-elevated);
}
.item__up{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 100%;
    width: 100%;
}
.item__down{
    display: block;
    height: 100%;
}
.node-dot {
    width: 1.5rem;
    height: 1.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--surface-elevated);
    border: 2.5pt solid var(--surface-base);
    margin: var(--space-1) 0;
}
.node-dot.active{
    background-color: var(--gold-cta);
}
.window{
    width: 100%;
    height: 100%;
    border-radius: .8rem;
    border: 1pt solid var(--border-bright);
    background-color: transparent;
    z-index: 10;
    pointer-events: none;
}

.journey__overlay{
    display: block;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px); 
    pointer-events: none;
}
.right__overlay{
    display: block;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    background-color: rgba(20, 20, 20, 0.2); 
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
    mask-image: linear-gradient(to left, black 60%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.ripple {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: .4;
    color: var(--surface-elevated);
}

.ripple svg {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
}
.ripple path{
    color: var(--surface-elevated);
}
@keyframes infiniteScroll{
    to {
        transform: translateX(100%);
    }
}

@media (min-width: 769px) and (max-height: 820px) {
    .journey__scroll{
        grid-template-columns: 1fr 2fr 1fr;
    }
    .scroll__window{
        grid-row: 2 / 4;
        grid-column: 2 / 3;
    }
    .scroll__zone{
        grid-row: 2 / 4;
        grid-column: 1 / 4;
    }
    .overlay-1 {
        grid-row: 2 / 4; 
        grid-column: 1 / 2;
    }

    .overlay-2 {
        grid-row: 2 / 4;
        grid-column: 3 / 4;
    }
}
@media (max-width: 768px) {
    .journey__wrapper{
        display: none;
    }
    .journey__wrapper--mobile{
        position: relative;
        display: flex;
        flex-direction: column;

        width: 100%;
        height: 100dvh;

        background-color: var(--surface-base);
        background-image: var(--journey-mobile-background);
        background-size: 30px 30px;
        background-position: -5px -5px;
        overflow: hidden;
    }
    .journey-mobile__scroll{
        position: relative;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        overflow: visible;

        animation: journeyMobile 20s linear infinite;
    }
    .journey-mobile__scroll::after{
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        height: 100%;
        width: 2.5pt;
        background-color: #ffffff;
        box-shadow:
            0 0 8px #E9B51C,
            0 0 24px rgba(212, 181, 106, .6),
            inset 0 0 8px rgba(212, 181, 106, .4);
        transform: translateX(-50%);
        z-index: 1;
    }
    .journey-mobile__group{
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-8);
        padding-bottom: var(--space-8);
    }
    .journey-mobile__item{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 65%;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-primary);
    }
    .journey-mobile__item:nth-child(even){
        flex-direction: row-reverse;
    }
    .journey-mobile__item .node-dot {
        border-color: var(--surface-light);
    }
    .mobile-item__up{
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        height: 100%;
        width: 100%;
    }
    .mobile-item__up .item__icon{
        height: 5rem;
    }
    .journey-mobile__item .node-dot{
        width: 1.2rem;
        height: 1.2rem;
        aspect-ratio: 1;
        border-radius: 999px;
        background-color: var(--surface-elevated);
        border: 2pt solid var(--surface-base);
        margin: var(--space-1) 0;
        z-index: 4;
    }
    .journey-mobile__item .node-dot.active{
        background-color: var(--gold-cta);
        box-shadow:
            0 0 8px #E9B51C,
            0 0 24px rgba(212, 181, 106, .6),
            inset 0 0 8px rgba(212, 181, 106, .4);
    }
    .mobile-item__down{
        flex: 1;
        display: block;
        height: 100%;
        width: 100%;
    }

    .journey-mobile__header{
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-6);
        top: 0;
        left: 0;
        width: 100%;
        height: 20%;
        padding: var(--space-4);

        font-size: 1.5rem;
        font-weight: 500;
        color: var(--text-primary);
        z-index: 2;
    }

    .journey-mobile__header span{
        z-index: 5;
    }
    .journey-mobile__header::after{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--journey-mobile-overlay);
        backdrop-filter: blur(5px) saturate(150%);
        z-index: 1;
    }
    .journey-mobile__content{
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 20%;
        padding: var(--space-4);

        font-size: 1.6rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        color: var(--text-secondary);
        z-index: 2;
    }
    .journey-mobile__content p{
        z-index: 5;
    }
    .journey-mobile__content::after{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--journey-mobile-overlay);
        backdrop-filter: blur(5px) saturate(150%);
        z-index: 0;
    }
        @keyframes journeyMobile {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(-50%);
        }
    }
}

/* =====================*/
/*   VERSIONS-CALENDAR  */
/* =====================*/

.versions-calendar{
    width: 100%;
    min-height: 50vh;
    display: inline-flex;
    align-items: center;
}
.versions__wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    height: 100%;
    padding-inline: var(--space-10);
}
.versions__head{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    width: 75%;
}
.versions__header{
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
}
.versions__copy{
    font-family: var(--ff-accent);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.versions__content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    place-items: center;
    gap: 0px;
    width: 100%;
    height: 100%;
    margin-block: var(--space-8);
}
.versions__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 21.3rem;
    height: 28.5rem;
    border-radius: .6rem;
    padding: var(--space-2);
    border: 1.5pt solid var(--border-strong);
    background-color: var(--versions-bg);
    /* background:
    repeating-linear-gradient(
        115deg,
        rgba(255,255,255,0.05) 0,
        rgba(255,255,255,0.05) 1pt,
        #000 1pt,
        #000 32px
    ); */
    z-index: 0;

    animation: showleft linear both;
    animation-timeline: view();
}
.versions__card--icon{
    position: absolute;
    top: 50%;
    right: 50%;
    height: 50%;
    width: auto;
    aspect-ratio: 1;
    color: var(--surface-elevated);
    opacity: .1;
    transform: translate(80%, -50%);
    z-index: 0;
}
.before-card{
    transform: scale(.9);
}
.versions__card--icon.red-icon{
    color: rgba(255, 0, 0, 3);
}
.versions__card--title{
    font-family: var(--ff-accent);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
}
.versions__card--line{ 
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    color: var(--text-primary);
    z-index: 1;
}
.line__header{
    font-family: var(--ff-accent);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.line__content{
    font-size: 1.6rem;
    font-weight: 600;
}
.versions__card--separator{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--surface-elevated);
    opacity: .7;

    animation: showleft2 linear both;
    animation-timeline: view();
}
.versions-separator{
    width: 1pt;
    height: 80%;
    background-color: var(--surface-elevated);
}

/* CALENDAR */
.calendar__wrapper{
    display: inline-flex;
    align-items: center;
    width: 60%;
    min-height: 50vh;
    height: 100%;
    padding-inline: 4vw;
}
.calendar__mock--wrapper{
    position: relative;
    width: 50%;
    min-height: 47rem;
    height: 100%;
    padding-block: var(--space-4);
    overflow: hidden;

    animation: showright linear both;
    animation-timeline: view();
}
.calendar__mockup{
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35rem;
    height: 41rem;
    padding: var(--space-2);
    background-color: var(--versions-bg);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    transition: transform .5s ease, filter .5s ease;
}

.calendar__mockup:first-child {
    z-index: 1;
    transform: translate(0, 0);
    
}

.calendar__mockup:last-child {
    z-index: 2;
    transform: translate(12%, 12%);
}
/* ANIMATIONS ON HOVER */

.calendar__wrapper:has(#validity-trigger:hover) #calendar-validity {
    transform: translate(0, 0);
    z-index: 1;
}

.calendar__wrapper:has(#validity-trigger:hover) #calendar-activity {
    transform: translate(12%, 12%);
    z-index: 2;
    filter: none;
}
.calendar__wrapper:has(#activity-trigger:hover) #calendar-validity {
    transform: translate(8%, 0%);
    filter: none;
}

.calendar__dataset{
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding-inline: var(--space-4);
    padding-block: var(--space-2);
    font-size: 1.3rem;
    font-weight: 600;
}
.calendar__data--activity{
    position: relative;
}
.calendar__data--activity::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2pt;
    background-color: #f59e0b;
}
.calendar__data--validity{
    position: relative;
}
.calendar__data--validity::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2pt;
    background-color: #A7D9C8;
}
.calendar__selector{
    font-size: 1.2rem;
    font-weight: 700;
    padding-inline: var(--space-4);
}
.calendar__day--titles{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    place-items: center;
    font-family: var(--ff-accent);
    font-size: 1.1rem;
    font-weight: 700;
}
.calendar__days{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
}
.calendar__day{
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    aspect-ratio: 1 / 1; 
    color: var(--text-secondary);
}
.calendar__days.activity .calendar__day:nth-child(4n+3) {
    background-color: rgba(245, 158, 11, .5);
    color: var(--text-dark);
    font-size: 1.5rem;
}
.calendar__days.activity  .calendar__day:nth-child(9n+2) {
    background-color: rgba(245, 158, 11, .8);
    color: var(--text-dark);
    font-size: 1.5rem;
}
.calendar__days.validity .calendar__day:nth-child(9n+3) {
    background-color: #A7D9C8;
    color: var(--text-dark);
    font-size: 1.5rem;
}
.calendar__days.validity .calendar__day:nth-child(9n+5) {
    background-color: rgba(4, 148, 155, 1);
    color: var(--text-dark);
    font-size: 1.5rem;
}

/* CALENDAR CONTENT */
.calendar__content--wrapper{
    display: flex;
    flex-direction: column;
    width: 50%;
    min-height: 45rem;
}
.calendar-content__head{
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
}
.calendar-content__dataset{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;

    padding-block: 10%;
}
.calendar-content__data{
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    border-radius: .6rem;
    padding: var(--space-2);
}
.calendar-content__data:hover{
    background-color: rgba(255, 255, 255, .1);
}
.calendar-content__header{
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
}
.calendar-content__copy{
    font-family: var(--ff-accent);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
}


@media (min-width: 1150px) and (max-width: 1750px) {
    .versions-calendar {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 50vh;
        margin-top: var(--space-10);
    }
    .versions__wrapper {
        width: 80%;
        height: auto;
    }
    .calendar__wrapper {
        width: 85%;
        height: auto;
        padding-block: var(--space-8);
    }
}
@media (min-width: 769px) and (max-width: 1149px) {
    .versions-calendar {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 50vh;
        margin-top: var(--space-10);
    }
    .versions__wrapper {
        width: 80%;
        height: auto;
    }
    .calendar__wrapper {
        width: 90%;
        padding-block: var(--space-8);
    }
}

@media (max-width: 768px) {
    .before-card{
        transform: none
    }
    .versions-calendar{
        display: flex;
        flex-direction: column;
        overflow: clip;
        height: auto;
        padding-block: var(--space-4);
    }
    .versions__wrapper{
        width: 100%;
        min-height: 50dvh;
        height: max-content;
        padding-inline: var(--space-2);
        margin-block: var(--space-6);
    }
    .versions__head{
        width: 100%;
        gap: var(--space-4);
        padding-inline: var(--space-2);
        padding-block: var(--space-4);
    }
    .versions__header{
        font-size: 1.6rem;
    }
    .versions__copy{
        font-size: 1.6rem;
    }
    .versions__content{
        /* grid-template-columns: repeat(1, 1fr);
        grid-template-rows: 1fr .5fr 1fr;
        place-items: center;
        height: min-content; */
        position: relative;
        display: flex;
        flex-direction: row;
    }
    .versions__card {
        flex: 1;
        justify-content: center;
        width: 50%;
        min-height: 30vh;
        height: min-content;
        transform: scale(.9);
        animation: none;
    }
    .versions__card--separator{
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30%;
        height: 30%;
        aspect-ratio: auto;
        opacity: 1;
        transform: translate(-50%, -50%);
        z-index: 5;
        animation: none;
    }
    .versions__card--separator svg{
        height: 20vh;
    }
    .arrow-head {
        opacity: .3;
        animation: arrowPulse 4s ease-in-out .25s infinite;
    }

    .arrow-head--second {
        animation-delay: 0s;
    }

    @keyframes arrowPulse {
        0%, 100% { opacity: .3; }
        25%, 55% { opacity: 1; }
    }

    .calendar__wrapper{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        padding-inline: var(--space-2);
    }
    .calendar__wrapper::after{
        content: "Encuentra fácilmente tus documentos · Calendarios dinámícos";
        padding-inline: var(--space-2);
        font-family: var(--ff-accent);
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--text-primary);         
    }
    .calendar__mock--wrapper{
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        row-gap: var(--space-4);
        place-items: center;
        padding-inline: var(--space-4);
        width: 100%;   
        height: 100%;
        animation: none;
    }
    .calendar__mockup{
        position: relative;
        width: 65%;
        height: 38vh;
    }
    .calendar__mock--wrapper::before{
        content: "01 · Encuentra el ritmo de tu operación · Consulta la actividad documental en el calendario. La intensidad visual te permite identificar las fechas en las que se concentró la creación de documentos.";
        grid-area: 1 / 1 / 2 / 2; 
        padding-block: var(--space-2);
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-secondary);
    }
    .calendar__mock--wrapper::after{
        content: "2 · Que ninguna vigencia te tome por sorpresa · Identifica las cotizaciones próximas a vencer y reconoce visualmente cuáles requieren atención primero.";
        grid-area: 3 / 1 / 4 / 2; 
        padding-block: var(--space-2);
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--text-secondary);
    }
    .calendar__mockup:first-child {
        grid-area: 2 / 1 / 3 / 2;
    }

    .calendar__mockup:last-child {
        transform: translate(0, 0);
        grid-area: 4 / 1 / 5 / 2; 
    }

    .calendar__content--wrapper{
        display: none;
    }
}
/* =================*/
/*     LEST SCOPE   */
/* =================*/
.lest-scope {
    display: flex;
    flex-direction: column;
    min-height: 50vh;
}

.scope__wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr;
    column-gap: var(--space-2);
}


.scope__head{
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
    height: 100%;
    padding-left: 10%;
}
.scope__tittle{
    font-family: var(--ff-accent);
    /* font-size: 7.2rem; */
    /* font-size: 4rem; */
    /* font-size: 8.5rem; */
    font-size: clamp(4rem, 3.75vw, 8.5rem);
    font-weight: 600;
    line-height: 1;
    color: var(--text-primary);
}
.scope__copy{
    font-family: var(--ff-accent);
    /* font-size: 2.2rem; */
    /* font-size: 1.5rem; */
    /* font-size: 2.8rem; */
    font-size: clamp(1.5rem, 1.11vw, 2.8rem);
    font-weight: 700;
    color: var(--text-secondary);
}


.scope__table{
    grid-area: 1 / 2 / 2 / 3;
    display: grid; 
    grid-template-columns: 1fr .2fr 1fr; 
    grid-template-rows: repeat(3, 1fr);
    gap: 0px 0px; 
    grid-template-areas: 
        "point-1 point__separator point-4"
        "point-2 point__separator point-5"
        "point-3 point__separator point-6"; 
    justify-content: stretch; 
    align-content: stretch; 
    justify-items: stretch; 
    align-items: stretch; 
    width: 100%; 
    height: 100%; 
    color: var(--text-primary);
}
.point-1 { grid-area: point-1; border-bottom: 2pt solid var(--border-strong); }
.point-2 { grid-area: point-2; border-bottom: 2pt solid var(--border-strong); }
.point-3 { grid-area: point-3; }
.point-4 { grid-area: point-4; border-bottom: 2pt solid var(--border-strong); }
.point-5 { grid-area: point-5; border-bottom: 2pt solid var(--border-strong); }
.point-6 { grid-area: point-6; }
.point__separator { grid-area: point__separator; }

.scope__table--points{
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: 5%;
}
.point__icon{
    /* height: 4.5rem; */
    /* height: 3.5rem; */
    /* height: 5.5rem; */
    height: clamp(3.5rem, 2.3vw, 5.5rem);
    width: auto;
    aspect-ratio: 1;
    color: var(--icon-bright);
}
.point__head--wrapper{
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    align-items: flex-start;
}
.point__head{
    display: inline-flex;
    justify-content: center;
    justify-content: center;
    gap: var(--space-2);
}
.point__numerator{
    font-family: var(--ff-accent);
    font-weight: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}
.point__header{
    /* font-size: 1.6rem; */
    /* font-size: 1.3rem; */
    /* font-size: 2.4rem; */
    font-size: clamp(1.3rem, .85vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.point__content{
    font-family: var(--ff-accent);
    font-size: clamp(1.3rem, 1vw, 2.4rem);
    font-weight: 700;
    color: var(--text-secondary);
}

.point__separator{
    place-self: center;
    width: 2pt;
    height: 90%;
    background-color: var(--border-strong);
}
.scope__end{
    grid-area: 1 / 3 / 2 / 4; 
    display: inline-flex;
    gap: 10%;
    padding-inline: 10%;
}
.scope__end > * {
    flex: 1;
    height: 100%;
}
.points__copy--img{
    background-image: url(../../img/img/points__img.webp);
    background-position: top;
    background-size: cover;

    animation: justshow linear both;
    animation-timeline: view();
}
.points__copy--wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-3);
}
.points__copy--separator{
    width: 1.5pt;
    height: 100%;
    background-color: var(--border-strong);
}
.points__copy{
    width: 70%;
    /* font-size: 1.2rem; */
    /* font-size: 1rem; */
    /* font-size: 1.8rem; */
    font-size: clamp(1rem, 0.6vw, 1.8rem);
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .lest-scope {
        min-height: 100vh;
        padding-top: var(--space-6);
    }
    .scope__wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        row-gap: var(--space-8);
    }
    .scope__head,
    .scope__table,
    .scope__end {
        grid-area: auto;
        padding-left: 0;
    }
    .scope__table {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: none;
    }
    .point-1, .point-2, .point-3,
    .point-4, .point-5, .point-6 { grid-area: auto; border: none; }
    .point__separator { display: none; }
    .scope__end{
        display: flex;
        flex-direction: column-reverse;
        height: 25vh;
        padding-inline: 0;
    }
    .points__copy--img{
        flex: 2;
    }
    .points__copy--wrapper{
        flex-direction: row;
        gap: 0;
    }
    .points__copy--separator{
        display: none;
    }
    .points__copy{
        flex: 1;
        width: 100%;
        height: min-content;
        font-size: 1.2rem;
    }
    .points__copy--img{
        animation: none;
    }
}

/* =================*/
/*   LANDING CLOSE  */
/* =================*/
.landing__close{
    --close-h: 50vh;
    --mock-w: calc(var(--close-h) * 442 / 763);  /* A ocupa la altura de la sección */
    --mock-travel: calc(var(--mock-w) * 0.485);  /* 7.8125 / 16.1 = recorrido actual */

    width: 100%;
    height: var(--close-h);
}
.landing__close--wrapper{
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-1);

    height: 100%;
    width: 100%;
    background-image: url(../../img/bg/close_bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.close__cta, .close__mockup{
    flex: 1 0 0;
    min-width: 500px;
}
.the-killing-of-a-sacred-deer{
    flex: 0 1 600px;
    min-width: 0;
    overflow: hidden;
    transition: flex-basis .4s ease, opacity .3s ease;
}

.close__cta{
    grid-area: close__cta;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: var(--space-3);

    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--hero-bright);
    /* text-shadow:
        0 2px 4px rgba(0, 0, 0, .28),
        0 6px 16px rgba(0, 0, 0, .22),
        0 14px 32px rgba(0, 0, 0, .14); */
}
.close__cta--button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border-radius: .8rem;
    border: 1.5pt solid transparent;
    padding-block: var(--space-2);
    padding-inline: var(--space-6);
    background-color: var(--main-cta);

    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cta-dark);
    transition: border-color 0.5s ease;
}
.close__cta--button:hover .arrow-icon{
    animation: arrow-right 1s ease-out both;
}
.close__cta--button:hover .arrow__wrapper::before{
    animation: arrow-right2 1s ease-in .2s both;
}
.arrow__wrapper{
    position: relative;
    overflow: hidden;
}

.arrow__wrapper::before{
    position: absolute;
    content: url("../../img/icon/arrow_right.svg");
    display: inline-block;
    inset: 0;
    transform: translateX(-1.1vw);
    opacity: 0;
}
.close__mockup{
    position: relative;
    grid-area: close__mockup;
    display: block;

    padding-top: var(--space-4);
    min-height: 0;
    width: 100%;
    height: 100%;

    align-self: flex-end;
}

.close_mock_a{
    position: absolute;
    display: block;
    max-height: 100%;
    
    width: var(--mock-w);
    object-fit: contain;

    transform: translateX(50%);

    top: auto;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.close_mock_b{
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: var(--mock-w);
    aspect-ratio: auto;

    transform: translateX(50%);

    animation: mock-slide linear both;
    animation-timeline: view();
    z-index: 0;
}
@media (max-width: 768px) {
    .landing__close{
        --close-h: 100vh;
    }
    .landing__close--wrapper{
        flex-direction: column;
    }
    .close__mockup,
    .the-killing-of-a-sacred-deer { display: none; }

    .close__cta { 
        position: relative;
        justify-content: flex-start; /* Empieza el texto y botón desde arriba en lugar de centrar todo */
        padding-top: var(--space-10); /* Ajusta el aire superior del título según tu diseño */
        padding-inline: var(--space-4);
        gap: var(--space-6);
        min-width: 0; 
        font-size: 2rem;
    }
    .close__cta::after {
        content: "";
        display: block;
        width: 100%;          /* Imprescindible: le da ancho real para que se vea el fondo */
        flex: 1 1 auto;       /* Ocupa todo el alto restante debajo del botón hasta el borde inferior */
        min-height: 0;        /* Evita que desborde el 100dvh si la imagen es muy alta */
        
        background-image: url("../../img/img/mock_home.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom center; /* Pega el mockup al borde inferior de la sección */
        z-index: 5;
    }
}
/* =================*/
/*      FOOTER      */
/* =================*/
footer{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;

    width: 100%;
    height: 25vh;
    background-image: var(--footer-surface);
    background-size:  115%;
    background-position: right;
    background-repeat: no-repeat;

    padding-inline: 5vw;
    color: var(--text-primary);
}
.footer__logos--wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.footer__logos{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 0.63vw;
    height: 60%;
    max-width: 17%;
    color: var(--text-primary);
}
.lest__footer--logo{
    height: 25%;
    color: var(--icon-base);
}
.saelar__footer--logo{
    color: var(--icon-base);
    width: 100%;
    overflow: visible;
    z-index: var(--z-drawer);
    mix-blend-mode: difference;
}


.lest__footer--name{
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-base);
}

.footer__separator{
    width: 100%;
    height: 1.5pt;
    background-color: var(--border-strong);
}
.footer__lest--slogan{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    /* font-size: 2rem; */
    /* font-size: 1.6rem; */
    /* font-size: 2.8rem; */
    font-size: clamp(1.6rem, 1vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    opacity: .5;
    text-shadow: 
    -1px -1px 0 var(--surface-base),  
     1px -1px 0 var(--surface-base),
    -1px  1px 0 var(--surface-base),
     1px  1px 0 var(--surface-base);
}

.footer__actions{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    height: 100%;
}
.footer__actions--wrapper{
    display: flex;
    justify-content: space-evenly;
    height: fit-content;
    width: 100%;
    font-size: clamp(1rem, .63vw, 1.6rem);
    font-weight: 600;
    padding-block: var(--space-4);
}
@media (max-width: 768px) {
    footer{
        display: flex;
        flex-direction: column;
        flex-wrap: no-wrap;
        min-height: 25vh;
        background-size:  200%;
    }
    .footer__logos--wrapper{
        flex-direction: row;
        width: 100%;
    }
    .footer__logos{
        flex-direction: row;
        justify-content: center;
        gap:var(--space-2);
        height: 100%;
        min-width: 100%;
        color: var(--text-primary);
        margin-block: var(--space-2);
    }
    .footer__logos svg{
        height: 4rem;
    }
    .footer__separator{
        display: none;
    }
    .footer__lest--slogan{
        height: 60%;
    }

}
/* ====================*/
/*  EFFECTS ANIMATIONS */
/* ====================*/
@keyframes back-to-front {
    to {
        transform: translate(0, 0) scale(1);
        z-index: 1;
        opacity: .5;
    }
}

@keyframes front-to-back {
    to {
        transform: translate(12%, 12%) scale(.94);
        z-index: 2;
    }
}


/* ===================*/
/*  SCROLL ANIMATIONS */
/* ===================*/
@keyframes showup {
    entry 0% { opacity: .2; transform: translateY(8rem); } 
    entry 200% { opacity: 1; transform: translateY(0px);}
}
@keyframes showleft {
    entry 0% { opacity: .2; transform: translateX(-6rem);}
    entry 150% { opacity: 1; transform: translateX(0px);}
}
@keyframes showleft2 {
    entry 50% { opacity: .2; transform: translateX(-4rem);}
    entry 170% { opacity: 1; transform: translateX(0px);}
}
@keyframes showright {
    entry 0% { opacity: .2; transform: translateX(4rem);}
    entry 50% { opacity: 1; transform: translateX(0px);}
}
@keyframes justshow {
    entry 0% { opacity: .1; }
    entry 200% { opacity: 1; }
}
@keyframes mock-slide {
    entry 0% {
        transform: translate(50%, 0);
    }
    entry 150% {
        transform: translate(50%, calc(var(--mock-travel) * -1));
    }
}
@keyframes arrow-right {
    to{ transform: translateX(2.5rem); opacity: 0; }
}
@keyframes arrow-right2 {
    to{ transform: translateX(0px); opacity: 1; }
}
/* ==========================*/
/*  MOBILE SCROLL ANIMATIONS */
/* ==========================*/
@keyframes mobile-show-down  {
    entry 0% { opacity: .2; transform: translateY(9rem) scale(.9);}
    entry 100% { opacity: 1; transform: translateY(0px) scale(.9);}
}
@keyframes mobile-show-down2  {
    entry 100% { opacity: .2; transform: translateY(-9rem) rotate(90deg); opacity: .2;}
    entry 350% { opacity: 1; transform: translateY(0px) rotate(90deg); opacity: 1;}
}


/* =============*/
/*  MODAL FORM  */
/* =============*/
.contact-modal{
    position: fixed;
    inset: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);

    display: none;
    align-items: center;
    justify-content: center;
}
.contact-form{
    display: flex;
    flex-direction: row;
    width: 80%;
    max-width: 1200px;
    max-height: 800px;
    height: 70%;
    border: 1pt solid var(--border-strong);
}
.contact-form__brand{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-inline: var(--space-4);
    padding-top: 8%;
    padding-bottom: 4%;
    background-image: url(../../img/bg/contact_bg.webp);
    background-size: cover;
    background-position: center;
    filter: var(--contact-image-filter);
}
.contact-form__header{
    font-family: var(--ff-normal);
    font-size: clamp(3rem, 2.2vw, 4.3rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
}
.contact-form__message{
    font-family: var(--ff-accent);
    font-size: clamp(1.8rem, .75vw, 2.3rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
}
/* CLOSE MODAL */
.modal-close__wrapper{
    width: 100%;
    display: flex;
    justify-content: center;
}
.contact-modal__close{
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 4rem;
    padding-inline: var(--space-6);
    background-color: transparent;
    border: 1.5pt solid var(--border-strong);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--cta-dark);
    transition:  background 250ms ease;
}
.contact-modal__close .modal__close--icon {
    display: block;
    transform-origin: center;
    transition: transform 250ms ease;
    backface-visibility: hidden;
}
.contact-modal__close:hover{
    background-color: var(--close-modal);
}
.contact-modal__close:hover .modal__close--icon {
    transform-origin: center;
    transform: rotate(90deg);
}

.contact-form__wrapper{
    position: relative;
    flex: 1;
    background-color: color-mix(in srgb, var(--surface-base) 90%, transparent);
    isolation: isolate;
}
.form__query{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: var(--space-6);
    z-index: 2;
    opacity: 1;
    visibility: visible;
}
.form__query.hidden{
    opacity: 0;
    visibility: hidden;
    z-index: 0;
}
.contact-form__content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5vh;
    width: 100%;
}
.contact-form__content label{
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 60%;

    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}
.contact-form__content input, textarea{
    height: 4rem;
    padding-inline: var(--space-2);
    border-radius: .8rem;
    border: 1pt solid var(--border-strong);
    background-color: var(--surface-elevated);

    font-family: var(--ff-normal);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}
.contact-form__content #message {
    height: 12rem;
}
.contact-form__content input::placeholder{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.form-action__wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 15%;
}
.contact-form__action{
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    height: 4rem;
    padding-inline: var(--space-6);
    background-color: var(--main-cta);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--cta-dark);
}
.form__response{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--close-modal-light);
    opacity: 0;
    visibility: hidden;

    transition: opacity .25s ease, background .2s ease;
    z-index: 3;

    font-size: 1.8rem;
    font-weight: 600;
}
.form__response.active{
    opacity: 1;
    visibility: visible;
}
.form__response__icon{
    height: 8vh;
    width: auto;
    aspect-ratio: auto;
}
.form__response.active #confirm-close{
    position: relative;
    background-color: transparent;
    z-index: 1;
}
.form__response.active #confirm-close::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--cta-dark);
    z-index: 0;

    animation: close-modal 8s linear  1 forwards;
}

@keyframes close-modal {
    0%{
        width: 100%;
        opacity: .4;
    }
    20%{
        width: 100%;
        opacity: .2;
    }
    100% {
        width: 1%;
        opacity: .2;
    }
}
/* =================*/
/*  REDUCED MOTION  */
/* =================*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}