@import url(normalize.css);

:root {
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    /* Custom Colors */
    --color-white: #fff;
    --color-text: #999999;
    --color-text-dark: #222222;
    --color-primary: #2ac2f1;
    --color-primary-dark: #007bff;
    --color-blue: #0060A4;
    --color-orange: #FF7640;
    --color-blue-navy: #000f5c;
    --color-blue-dark: #06627f;
    --color-grey-light:#eeeeee;
    --color-gray-dark: #343a40;
    --color-border-grey: #D5D5D5;
    --color-bg-grey: #262d36;
    --color-bg-grey-2: #F6F6F6;
    --color-bg-grey-3: #e3e7e8;
    --color-bg-grey-blue: #3f4565;
    /* Breakpoints */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    /* Sizes */
    --size-width: calc(100% - 64px);
    --value-transition: all 0.3s ease;
}

body {
    font-family: "Lato", sans-serif;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.46em;
}
*{
    box-sizing: border-box;
}
p{
    margin: 0;
    padding: 0 0 1em 0;
}
h1 {
    font-weight: 800;
    line-height: 1.2em;
}
h1, h2, h3{
    text-wrap: balance;
}
figure {
    margin: 0;
    line-height: 0;
}
img {
   max-width: 100%;
}
ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
a, button{
    text-decoration: none;
    transition: var(--value-transition);
}
.rrss{
            display: flex;
            a{
                display: block;
                height: 50px;
                padding: 0;
                svg{
                    width: 50px;
                    height: 50px;
                    path{
                        transition: var(--value-transition);
                    }
                }
                &:hover{
                    svg path{
                        fill: var(--color-orange);
                    }
                }
            }
        }
header{
    position: sticky;
    top: 0;
    left: 0;
    z-index: 5;
    .top{
        background-color: var(--color-blue);
        width:100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: var(--value-transition);
        .wrap-top{
            width: var(--size-width);
            max-width: 1400px;
            margin: 0 auto;
            padding: 0;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }
       
        
    }
    .nav-stripe{
        padding: 0 0 0 0;
        background-color: transparent;
        width: var(--size-width);
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        nav{
            max-width: 1100px;
            height: 50px;
            display: flex;
            align-items: center;
            gap: 32px;
            padding: 16px 0;
            text-transform: uppercase;
        }
        a{
            color: var(--color-white);
            font-weight: 600;
            &:hover, &.active{
                color: var(--color-orange);
            }
        }
        .logo{
            padding: 18px 0 0 0;
        }
    }
     &:after{
        z-index: -1;
        content: "";
        width: 100%;
        height: 150px;
        position: absolute;
        top: 0;
        left: 0;
        background: linear-gradient(180deg,rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 100%);
        transition: var(--value-transition);
    }
    &.sticky{
        position: sticky;
        .top{
            height: 0;
            overflow: hidden;
            /* display: none; */
        }
        .logo{
            padding: 8px 0 0 0;
            img{
                max-height: 50px;
            }
        }
        &:after{
            height: 70px;
            background: #000;
        }
    }
}

[class*="btn-"]{
    background: var(--color-orange);
    color: var(--color-white);
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    &:hover{
        background: var(--color-blue);
    }
}
.btn-contacto{
    background: var(--color-blue);
    color: var(--color-white)!important;
    &:hover{
        background: var(--color-orange);
        color: var(--color-white)!important;
    }
}
.actions{
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 16px 0 0 0;
}
.hero{
    z-index: 0;
    background: url('../img/hero-img.webp') no-repeat bottom center/cover;
    height: auto;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    color: var(--color-white);
    flex-direction: column;
    padding: 10vh 0;
    position: relative;
    margin: -120px 0 0 0;
    overflow: hidden;
    &:after{
        content: "";
        background-image: url(../img/wave-white.svg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        width: calc(100% + 4px);
        height: auto;
        aspect-ratio: 22.33/1;
        display: block;
        position: absolute;
        bottom: -1px;
        left: -2px;
    }
    .hero-content{
        max-width: 500px;
        padding: 24px;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 16px;
        margin: 0 10vw 0 0;
        z-index: 2;
        position: relative;
    }
    h1{
        color: var(--color-white);
        font-size: clamp(1.5rem, 2.676vw + 0.216rem, 2.5rem);
        margin-bottom: 16px;
        width: 100%;
    }
    p{  
        font-size: clamp(0.85rem, 0.8vw + 0.45rem, 1rem);
        padding: 0 0 14px 0;
        line-height: 1.6em;
    }
}
.tit{
    position: relative;
    width: fit-content;
    margin: 0 0 16px;
    z-index: 1;
    h2{
        font-size: clamp(1.5rem, 2.676vw + 0.216rem, 2.5rem);
        color: var(--color-blue);
        line-height: normal;
        margin: 0;
        &:after{
            position: absolute;
            z-index: -1;
            bottom: 0;
            left: 0;
            content: "";
            width: 100%;
            height: 6px;
            background: #F8C62F;
            background: linear-gradient(-90deg,rgba(248, 198, 47, 1) 0%, rgba(255, 118, 64, 1) 100%);
        }
    }
}
#quehacemos{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 64px;
    padding: 32px 0;
    .cont-txt{
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 32px 0 0;
        .bajada{
            max-width: 90%;
            font-size: 20px;
            color: var(--color-blue);
        }
    }
    .item-uso{
        color: var(--color-white);
        background-color: var(--color-blue);
        padding: 30px 50px;
        border-radius: 16px;
        max-width: 90%;
        font-size: 20px;
    }
    .item-video{
        padding: 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        span{
            color: var(--color-blue);
            font-size: 20px;
        }
    }
    @media screen and (width < 780px) {
        flex-direction: column;
        align-items: flex-start;
        .cont-txt{
            padding: 0;
            margin: 0 auto;
            max-width: calc(100% - 32px);
            order: 1;
        }
        figure{
            order: 2;
        }
    }
}

#pqe{
    width: 100%;
    min-height: 50vh;
    background-color: var(--color-blue);
    position: relative;
    padding: 100px 0;
    .wrap-pqe{
        width: var(--size-width);
        max-width: 1400px;
        margin: 100px auto;
        h2{
            color: white;
        }
        .cont-items{
            margin: 80px auto;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 32px;
            align-items: stretch;
            .item{
                width: calc(25% - 32px);
                min-width: 250px;
                color: white;
                border: 1px solid var(--color-white);
                border-radius: 16px;
                padding: 20px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-align: center;
                gap: 16px;
                .tit{
                    font-weight: 600;
                    font-size: 20px;
                    flex: 1 0 auto;
                }
                img{
                    width: 100px;
                }
            }
        }
        @media screen and (width < 650px) {
            width: 100%;
            .tit{
                padding: 0 16px;
                h2{
                    &:after{
                        display: none;
                    }
                }
            }
            .cont-items{
                gap: 8px;
                margin: 32px auto;
                .item {
                    width: calc(50% - 8px);
                    min-width: auto;
                    .tit{
                        font-size: 16px;
                    }
                    span{
                        font-size: 14px;
                    }
                    img{
                        max-width: 70px;
                    }
                }
            }
        }
    }
    &:after, &::before{
        content: "";
        background-image: url(../img/wave-white.svg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        width: 100%;
        height: auto;
        aspect-ratio: 22.33/1;
        display: block;
        position: absolute;
        bottom: -1px;
        left: 0;
    }
    &:before{
        top: -1px;
        bottom: auto;
        transform: rotate(180deg);
    }
    &:after{
        display: none;
    }
}
#separador{
    width: 100%;
    min-height: 500px;
    background-image: url(../img/img-separador.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    &:after, &::before{
        content: "";
        background-image: url(../img/wave-white.svg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        width: calc(100% + 4px);
        height: auto;
        aspect-ratio: 22.33/1;
        display: block;
        position: absolute;
        bottom: -1px;
        left: 0;
    }
    &:before{
        top: -1px;
        bottom: auto;
        transform: rotate(180deg);
        background-image: url(../img/wave-blue.svg);
    }
    h2{
        padding: 0;
        margin: 0 0 .25em;
        line-height: 1;
        background: -webkit-linear-gradient(-90deg,rgba(248, 198, 47, 1) 20%, rgba(255, 118, 64, 1) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: clamp(1.5rem, 2.676vw + 0.216rem, 2.5rem);
    }
    span{
        font-size: clamp(1.125rem, 2.007vw + 0.162rem, 1.875rem);
        color: var(--color-white);
    }
}
#nosotros{
    width: var(--size-width);
    max-width: 1920px;
    margin: 0px auto;
    padding: 150px 0 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);;
    justify-content: center;
    align-items: center;
    gap: 64px;
    color: var(--color-text-dark);
    position: relative;
    @media screen and (width < 680px) {
        display: flex;
        flex-direction: column;
    }
    figure{
        text-align: center;
    }
    
}
#proyectos{
    position: relative;
    background-color: var(--color-blue);
    width: 100%;
    min-height: 50vh;
    display: block;
    overflow: hidden;
    padding: 0 0 50px 0;
    overflow: hidden;
    &:before{
        content: "";
        background-image: url(../img/wave-white.svg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        width: calc(100% + 4px);
        height: auto;
        aspect-ratio: 22.33/1;
        display: block;
        position: absolute;
        transform: rotate(180deg);
        top: -1px;
        left: -2px;
    }
    .wrap-proy{
        width: var(--size-width);
        max-width: 1400px;
        margin: 150px auto 50px;
        display: block;
        color: var(--color-white);
    }
    .tit{
        h2{
            color: var(--color-white);
        }
    }
    .sop-slider{
        position: relative;
        padding: 0 0 40px;
        overflow: hidden;
        max-width: 1900px;
        margin: 0 auto;
        &:after, &::before{
            content: "";
            background-image: url(../img/wave-blue.svg);
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            width: calc(100% + 4px);
            height: auto;
            aspect-ratio: 22.33/1;
            display: block;
            position: absolute;
            bottom: 35px;
            z-index: 2;
            left: -2px;
            display: none;
        }
        &:before{
            z-index: 3;
            top: -1px;
            bottom: auto;
            transform: rotate(180deg);
            background-image: url(../img/wave-blue.svg);
        }
    }
    a img{
        border-radius: 20px;
        overflow: hidden;
    }
}
.slick-slide{
    img{
        transform: scale(.75);
        transition: var(--value-transition);
    }
    &.slick-center{
        img{
            transform: scale(1);
        }
    }    
}
.slick-dots li button{
    width: 10px;
    height: 10px;
}
.slick-dots li button:before
{
    font-family: 'slick';
    font-size: 10px;
    line-height: 20px;

    position: absolute;
    top: 0;
    left: 0;

    width: 10px;
    height: 10px;

    text-align: center;

    opacity: .25;
    color: white;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before
{
    opacity: .75;
    color: white;
}
[class*="fslightbox-slide-btn"]{
    background: transparent;
    &:hover{
        background: transparent;
    }
}

.slick-prev, .slick-next{
    font-size: 0;
    line-height: 0;
    position: absolute;
    bottom: -40px;
    top: auto;
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    z-index: 3;
    &::before{
        font-size: 30px;
    }
}
.slick-next {
    right: 30px;
}
.slick-prev {
    left: 30px;
}
.slick-dots{
    z-index: 0;
}
#tns1-mw {
    max-height: 700px;
    margin: 0 0 10px 0;
}
.tns-outer{
    position: relative;
    z-index: 2;
    .tns-controls{
        position: absolute;
        bottom: -50px;
        width: 100%;
        padding: 0 32px;
        button{
            background-color: transparent;
            border: 1px solid var(--color-white);
            color: var(--color-white);
            border-radius: 50%;
            width: 30px;
            height: 30px;
            font-size: 20px;
            &:hover{
                background-color: var(--color-white);
                color: var(--color-blue);
            }
        }
        button[data-controls="next"]{
            float: right;
        }
    }
    .tns-nav{
        text-align: center;
        width: fit-content;
        position: absolute;
        bottom: -36px;
        z-index: 2;
        left: 50%;
        transform: translateX(-50%);
        button{
            width: 9px;
            height: 9px;
            padding: 0;
            margin: 0 5px;
            border-radius: 50%;
            background: var(--color-bg-grey-3);
            border: 0;
        }
        > .tns-nav-active { 
            background-color: var(--color-bg-grey-2); 
        }
    }

}
footer{
    background-color: var(--color-blue);
    padding: 50px 0;
    h3, span{
        color: var(--color-white);
        padding: 8px;
        width: fit-content;
    }
    .wrap-content{
        width: var(--size-width);
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        .aero-info{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            img{
                margin: auto;
            }
            a{
                color: var(--color-white);
                &:hover{
                    color: var(--color-orange);
                }
            }
        }
        .cont-info{
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
        }
        
    }
}
#contacto{
    padding: 50px 0;
    position: relative;
    overflow: hidden;
     &:after, &::before{
        content: "";
        background-image: url(../img/wave-footer.svg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        width: calc(100% + 4px);
        height: auto;
        aspect-ratio: 22.33/1;
        display: block;
        position: absolute;
        bottom: -1px;
        left: -2px;
    }
    &:before{
        top: -1px;
        bottom: auto;
        transform: rotate(180deg);
        background-image: url(../img/wave-blue.svg);
    }
}
#wrap-contacto{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    flex-direction: column;
    padding: 10vh 0;
    position: relative;
    color: var(--color-blue);
    
    .cont-contacto{
        width: calc(100% - 32px);
        max-width: 1200px;
        z-index: 2;
        display: flex;
        gap: 32px;
    }
    form{
        width: 60%;
        padding: 0;
        margin: 32px auto;
    }
    .datos-contacto{
        width: 40%;
        .dato{
            padding: 0 0 16px 0;
        }
    }
}
form{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    .form-group{
        position: relative;
        padding: 14px 0 16px 0;
        height: fit-content;
        label{
            position: absolute;
            pointer-events: none;
            top: 16px;
            left: 5px;
            padding: 0 4px;
            font-size: 0.875rem;
            color: var(--color-text);
            transition: var(--value-transition);
        }
        input, textarea, select{
            width: 100%;
            background: var(--color-bg-grey-2);
            border: 1px solid var(--color-border-grey);
            padding: 8px 8px;
            border-radius: 8px;
            color: var(--color-text-dark);
        }
        textarea{
            resize: none;
            min-height: 100px;
        }
        input:focus-within, textarea:focus-within, select:focus-within{
            outline: none;
        }
        &:has(input:focus), &:has(input:not(:placeholder-shown)), &:has(textarea:focus), &:has(textarea:not(:placeholder-shown)){
            input, textarea{
                border-color: var(--color-blue);
            }
            label{
                top: -10px;
                background-color: var(--color-white);
            }
        }
        &:has(select){
            label{
                top: -10px;
                background-color: var(--color-white);
            }
        }
        input[type="submit"]{
            display: block;
            background-color: var(--color-orange);
            color: var(--color-white);
            padding: 12px 40px;
            border-radius: 8px;
            font-weight: 600;
            width: calc(100% - 32px);
            max-width: 300px;
            margin: 0 auto;
            float: right;
            border: none;
            cursor: pointer;
            transition: var(--value-transition);
            &:hover{
                background-color: var(--color-blue);
            }
        }
        &:has(input[required]), &:has(textarea[required]){
            label{
                &:before{
                    content: "*";
                    display: block;
                    float: right;
                    margin: 0 0 0 4px;
                    color: red;
                }
            }
        }
    }
}
span.output_message {
    white-space: pre-line;
    text-align: center;
    display: block;
}
.w-50{
    width: calc(50% - 8px);
}
.w-100{
    width: 100%;
}

#pull{
    display: none;
}
@media screen and (width < 650px) {
    .w-50{
        width: 100%;
    }
    #wrap-contacto .cont-contacto{
        width: 100%;
    }
}
@media only screen and (max-width: 1100px) {
    header{
        height: 50px;
        background-color: var(--color-blue);
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: 1px solid var(--color-white);
        &:after{
            display: none;
        }
        .top{
            padding: 10px;
            width: 100%;
            display: none;
            .datos-contacto, .rrss {
                display: none;
            }
        }
        .logo{
            max-width: auto;
            img{
                max-width: 100%;
                max-height: 100%;
                height: 40px;
            }
        }
        .nav-stripe{
            width: 100%;
            padding: 0 16px;
        }
    }
    .hero{
        align-items: center;

        .hero-content{
            margin: auto;
            max-width: calc(100% - 32px);
        }
    }
    #wrap-contacto{
        overflow: hidden;
        padding: 32px 16px;
        .cont-contacto{
            flex-direction: column;
            gap: 16px;
            max-width: 600px;
            margin: 32px auto;
        }
        form{
            width: 100%;
            padding: 32px 16px;
        }
    }
    footer{
        .wrap-content{
            width: calc(100% - 32px);
            flex-direction: column;
            text-align: center;
        }
    }
    #pull {
        display: block;
        top: 00px;
        width: 30px;
        height: 30px;
        position: relative;
        margin: 10px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
        cursor: pointer;
        float: right;
    }

    #pull span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--color-white);
        border-radius: 9px;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: 0.25s ease-in-out;
        -moz-transition: 0.25s ease-in-out;
        -o-transition: 0.25s ease-in-out;
        transition: 0.25s ease-in-out;
        top: 0;
    }

    #pull span:nth-child(1) {
        top: 5px;
    }

    #pull span:nth-child(2) {
        top: 15px;
    }

    #pull span:nth-child(3) {
        top: 25px;
    }

    #pull.open span:nth-child(1) {
        top: 13px;
        -webkit-transform: rotate(135deg);
        -moz-transform: rotate(135deg);
        -o-transform: rotate(135deg);
        transform: rotate(135deg);
    }

    #pull.open span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    #pull.open span:nth-child(3) {
        top: 13px;
        -webkit-transform: rotate(-135deg);
        -moz-transform: rotate(-135deg);
        -o-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }

    #cssmenu {
        width: 100%;
        background:var(--color-bg-grey);
        position: absolute;
        top: 50px;
        display: none;
        padding: 0;
        height: auto;
        left: 0;
        margin: 0;
        z-index: 10;
    }

    #cssmenu a,
    #cssmenu a:hover,
    #cssmenu a:active {
        display: block;
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding: 15px 10px;
        color: #fff;
        font-size: 16px;
        height: auto;
        line-height: 1.4em;
    }
    #cssmenu .btn-contacto{
        background-color: transparent;
    }
    #cssmenu a:last-child {
        border-bottom: none;
    }
}