/** hero content **/

.home-hero-section__content {
    margin-top: 123px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../images/img-hero.jpg') no-repeat center center / cover;
    height: 400px;
}

.home-hero-section__content .grid-12 {
    position: relative;
}

.home-hero-section__content .grid-12::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary);
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
}

.home-hero-section__content-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    box-sizing: border-box;
    gap: 1.2rem;
    text-align: left;
    color: var(--text-color-light);
    z-index: 20;
}

.home-hero-section__content-titles {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 0;

    & h1 {
        margin: 0;
        line-height: 1.1;
        text-align: left;
        color: var(--text-color-light);
        font-size: 1.3rem;
        text-transform: uppercase;
        font-weight: 800;
    }
}

.home-hero-section__content-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;

    & svg {
        width: 24px;
        height: 24px;

        & path,
        & circle,
        & rect,
        & polygon {
            fill: var(--secondary);
        }
    }
}

.home-hero-section__event-place,
.home-hero-section__event-date {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0.8rem;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
}

.home-hero-section__event-place-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;

    & p {
        font-weight: 700;
        text-align: left;
        color: var(--text-color-light);
        line-height: 1.1;
        margin: 0;
        flex-shrink: 0;
    }

    & .home-hero-section__event-place-1 {
        font-size: 1.1rem;
    }

    & .home-hero-section__event-place-2 {
        font-size: 1rem;
    }

    & .home-hero-section__event-host {
        font-size: 1rem;
        font-weight: 500;
    }

    & .home-hero-section__event-date {
        font-size: 1.2rem;
    }
}

.home-hero-section__content-organization {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    & p {
        font-size: var(--font-size-medium);
        font-weight: 700;
        color: var(--text-color-light);
        line-height: 1.1;
        margin: 0;
    }

    & img {
        width: 90px;
        height: auto;
    }

    & .home-hero-section__content-organization-text {
        font-size: var(--font-size-x-small);
        font-weight: 500;
        color: var(--text-color-light);
        line-height: 1.1;
        text-align: center;
    }
}

.home-hero-section__event-date {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    align-items: center;
}


/**** welcome letter ****/

.home .front-page-content {
    padding: 0;
}

.home-welcome-date-section__background-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    margin-top: 4rem;

    & img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

.home-welcome-date-section {
    z-index: 10;
    position: relative;
}

.home-welcome-letter {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;

    & .home-welcome-letter__content {
        flex: 1;
        position: relative;
        padding-top: 63px;
    }

    & .home-welcome-letter__aside-image {
        width: 140px;
        height: 155px;
        object-fit: cover;
        object-position: center;
        margin-bottom: 1rem;
        filter: grayscale(100%);
        position: absolute;
        top: 0;
        right: 0;
    }

    & .home-welcome-letter__aside-logo {
        width: 90px;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

}


/* section uruguay */

.country-info__grid {
    background-color: var(--primary);
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;

    & h2 {
        font-size: 2rem;
        color: var(--text-color-light);
        margin: 0;
    }
}

.country-info__grid .container {
    display: grid;
    max-width: var(--max-width);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
}

.country-info__grid .country-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    min-width: 0;

    & h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-color-light);
    }
}

/** country info buttons **/

.country-info__buttons {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
}

.country-info__buttons-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    height: 100%;
    width: 100%;
    min-height: 390px;
}

.country-info__buttons-item {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    & a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-color-light);
        font-size: var(--font-size-medium);
        font-weight: 800;
        text-align: center;

        &:hover {
            background-color: var(--primary-50);
        }
    }



    &.country-info__como-llegar {
        position: relative;
        background-color: var(--secondary-dark);

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('../images/home/how-to-get-bg.jpg') center / cover no-repeat;
            opacity: 0.1;
            pointer-events: none;
        }
    }

    &.country-info__visas {
        position: relative;
        background-color: var(--accent-1-dark);

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('../images/home/visa-bg.jpg') center / cover no-repeat;
            opacity: 0.2;
            pointer-events: none;
        }
    }
}


/* media queries */

@media (min-width: 768px) {

    .home-hero-section__content {
        margin-top: 0;
    }

    .home-hero-section__content .home-hero-section__content-container {
        flex-direction: row;
        gap: 2rem;
    }

    .home-hero-section__content-titles {
        max-width: 450px;

        & h1 {
            font-size: 1.5rem;
        }
    }

    .home-hero-section__content-dates {
        width: 800px;
    }


    .home-hero-section__event-place-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }


    .home-hero-section__content-organization {
        & img {
            width: 95px;
            height: auto;
        }
    }

    /**** welcome letter ****/
    .home-welcome-letter {
        flex-direction: row-reverse;


        & .home-welcome-letter__content {

            padding-top: 0;
        }

        & img {
            float: left;
            margin-right: 1rem;
        }

        & .home-welcome-letter__aside-logo {
            width: 120px;
        }

        & .home-welcome-letter__aside-image {
            width: 140px;
            height: 150px;
            float: left;
            top: auto;
            right: auto;
            position: relative;
        }
    }


    /**** country info ****/
    .country-info__buttons-inner {
        min-height: auto;
    }

}