/* Hero */

.hero {

    .hero-background {
        background: url('/assets/images/IMG1-1920.png') 50% 5%/cover;
        filter: brightness(75%);
    }

    .hero-content {
        background: rgba(var(--zea-rgb-yellow), 0.3);
    }

    .hero-main {
        padding: calc(10vh + 0.3787 * min(60vmin, 380px)) 5vw 10vh;
    }

    .hero-slogan {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;

        img {
            width: min(85%, 330px, 50vh);
        }
    }

    .hero-text {
        padding-top: 1rem;
        text-align: center;
        font-size: min(4vh, 24px);
        font-weight: 500;
        line-height: 1.25;

        p {
            margin: 0;

            &:nth-of-type(1) {
                font-size: 1em;
            }

            &:nth-of-type(2) {
                font-size: 1.3em;
            }

            &:nth-of-type(3) {
                font-size: 1.3875em;
            }
        }
    }

    .hero-text-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: min(3vh, 18px);
        line-height: 1.25;

        p {
            margin: 0;

            &:nth-of-type(1) {
                font-size: 1em;
                font-weight: 600;
                font-style: italic;
            }
        }

        .framed {
            width: fit-content;
            margin-top: 1.5vh;
            border: 0.75vh solid rgb(var(--zea-rgb-white));

            p {
                font-weight: 700;
                font-style: normal;
                text-transform: uppercase;
                line-height: 1;

                &:nth-of-type(1) {
                    font-size: 2em;
                }

                &:nth-of-type(2) {
                    font-size: 1.167em;
                }
            }
        }
    }

    @media (min-width: 576px) and (orientation: landscape) {
        .hero-main {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
        }

        .hero-text {
            padding: 0;
        }
    }

    @media (min-width: 768px) {
        .hero-content {
            background: none;
        }

        .hero-main {
            display: flex;
            flex-direction: column;
            align-items: normal;
            padding: 32.6156vh 0 0 4vw;
            background: url("/assets/images/PLECA-02.svg") left/contain no-repeat;
        }

        .hero-slogan {
            justify-content: normal;

            img {
                width: unset;
                height: 26vh;
            }
        }

        .hero-text {
            width: 35vw;
            text-align: left;

            p {
                &:nth-of-type(1) {
                    font-size: 4vh;
                }

                &:nth-of-type(2) {
                    font-size: 5.2vh;
                }

                &:nth-of-type(3) {
                    font-size: 5.55vh;
                }
            }
        }

        .hero-text-2 {
            position: absolute;
            right: 5vw;
            bottom: 7vh;
            width: 34vh;

            p {
                &:nth-of-type(1) {
                    font-size: 3vh;
                }
            }



            .framed {
                p {
                    &:nth-of-type(1) {
                        font-size: 6vh;
                    }

                    &:nth-of-type(2) {
                        font-size: 3.5vh;
                    }
                }
            }
        }
    }
}

/* Nosotros section */

.site-section.nosotros {
    padding-top: 0px;

    .section-banner {
        background: linear-gradient(rgba(var(--zea-rgb-yellow), 0.9), rgba(var(--zea-rgb-yellow), 0.9)),
            url('/assets/images/IMG1-1920.png') center/cover fixed;
        background-position: 50% 50%;
    }

    .section-container {
        gap: 2.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        align-items: stretch;
        row-gap: 5rem;
        column-gap: 3rem;
    }

    div.section-card:nth-child(1) img {
        object-position: 30% 50%;
    }

    div.section-card:nth-child(2) img {
        object-position: 80% 50%;
    }

    div.section-card:nth-child(3) img {
        object-position: 35% 50%;
    }

    @media (min-width: 576px) {
        .card-img {
            aspect-ratio: 16 / 9;
        }
    }

    @media (min-width: 992px) {
        .grid {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .card-img {
            aspect-ratio: 1 / 1;
        }
    }
}

/* Unidades de trabajo section */

.site-section.unidades {
    background: linear-gradient(rgba(var(--zea-rgb-yellow), 0.9), rgba(var(--zea-rgb-yellow), 0.9)),
        url('/assets/images/fondo-collage.png') center/cover fixed;

    .grid {
        row-gap: 1.5rem;
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(1, 1fr);
        align-items: stretch;
    }

    .svg{
        position: absolute;
        width: 0;
        height: 0;
    }

    .grid-group{
        min-height: 450px;
        padding: 2rem;
        color: rgb(var(--zea-rgb-white));
    }

    .group-title h2 {
        font-size: calc(3.33vw + 2rem);
        font-weight: 700;
        line-height: 0.5;
        text-transform: uppercase;
        margin: 0;

        span {
            font-weight: 600;
        }
    }

    .group-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;

        p, ul, li {
            margin: 0;
        }
    }

    div.grid-group:nth-of-type(1) {
        background: linear-gradient(rgba(var(--zea-rgb-black), 0.4), rgba(var(--zea-rgb-black), 0.4)),
            url("/assets/images/IMG5-1920.png") 50% 50%/cover;
        clip-path: url(#path-1);

        .group-title span {
            font-size: 0.5634em;
        }

        .group-text {
            margin-right: 13%;
            text-align: left;
        }

        ul {
            display: flex;
            flex-direction: column;
        }

        .li-group {
            flex: 1;
        }
    }

    div.grid-group:nth-of-type(2) {
        background: linear-gradient(rgba(var(--zea-rgb-black), 0.4), rgba(var(--zea-rgb-black), 0.4)), 
            url("/assets/images/IMG6.png") 50% 50%/cover;
        clip-path: url(#path-2);
        text-align: right;

        .group-title span {
            font-size: 0.4754em;
        }

        .group-text {
            margin-left: 13%;
        }
    }

    @media (min-width: 705px) {
        div.grid-group:nth-of-type(1) {
            ul {
                flex-direction: row;
            }
        }
    }

    @media (min-width: 768px) {
        .grid {
            row-gap: 0;
            grid-template-rows: repeat(1, 1fr);
            grid-template-columns: repeat(2, 1fr);
        }

        div.grid-group:nth-of-type(1) {
            ul {
                flex-direction: column;
            }
        }
    }

    @media (min-width: 992px) {
        .grid {
            row-gap: 0;
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1200px) {
        .group-title h2 {
            font-size: 4.5rem;
        }
    }

    @media (min-width: 1380px) {
        div.grid-group:nth-of-type(1) {
            ul {
                flex-direction: row;
            }
        }
    }
}

/* Certificados section */

.site-section.certificados {
    padding-top: 100px;

    .grid {
        row-gap: 1.5rem;
        grid-template-columns: repeat(1, 1fr);
        align-items: start;
    }

    .group-img {
        object-fit: contain;
        text-align: center;

        img {
            max-height: 400px;
        }
    }

    .group-title h2 {
        text-align: center;
        font-weight: 700;
        font-size: 50px;
    }

    div.grid-group:nth-of-type(1) {
        .group-title h2 {
            color: rgb(var(--zea-rgb-yellow));
        }
    }

    div.grid-group:nth-of-type(2) {
        .group-title h2 {
            color: rgb(var(--zea-rgb-dark-blue));
        }
    }

    @media (min-width: 768px) {
        .grid {
            gap: 3rem;
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 992px) {
        .grid {
            gap: 6rem;
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

/* Contacto section */

.site-section.contacto {
    padding: 100px 0;
    background: linear-gradient(rgba(var(--zea-rgb-yellow), 0.9), rgba(var(--zea-rgb-yellow), 0.9)), 
        url('/assets/images/fondo-collage.png') center/cover fixed;

    .grid {
        row-gap: 1.5rem;
        grid-template-columns: repeat(1, 1fr);
        align-items: start;
    }

    form {
        label, button{
            text-transform: uppercase;
            font-weight: 600;
        }

        label{
            color: rgb(var(--zea-rgb-white));
        }

        button:hover {
            color: rgb(var(--zea-rgb-yellow));
        }
    }

    @media (min-width: 576px) {
        .section-map {
            aspect-ratio: 16 / 9;
        }
    }

    @media (min-width: 768px) {
        .grid {
            gap: 3rem;
            grid-template-columns: repeat(2, 1fr);
        }

        .section-map {
            aspect-ratio: 1 / 1;
        }
    }

    @media (min-width: 992px) {
        .grid {
            gap: 6rem;
            grid-template-columns: repeat(2, 1fr);
        }

        .section-map {
            aspect-ratio: 16 / 9;
        }
    }
}