/*!--------------------------- Compartido ---------------------------*/

:root{
    --white: #DAD7D2;
    --grey: #8C8475;
    --blue: #0F0E33;
    --gold: #CD854E;    

    --fs--Title: clamp(1.8rem , 2.8vw,  3.2rem );
    --fs--SubTitle: clamp(20px , 2.1vw,  2.2rem );
    --fs--Text: clamp(18px , 1.3vw,  42px);
    --fs--TextNav: clamp(16px , 1vw,  35px);
}

@font-face {
    font-family: 'titulos';
    src: url(./BambinoBold.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'subTitulos';
    src: url(./Bambino.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'textos';
    src: url(./MyriadProRegular.otf);
    font-display: swap;
}

body{
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

p:hover{
    cursor: default;
}


/*-------------------------------- Scroll Bar --------------------------------*/
/* Works on Firefox */
* {
    scrollbar-width:thin;
    scrollbar-color: var(--blue) var(--white);
}

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 15px;
}

*::-webkit-scrollbar-track {
    background: var(--white);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--blue);
    border-radius: 0px;
    border: 0px solid var(--white);
}


/*-------------------------------- loader --------------------------------*/
#hiddenBody{
    overflow:hidden;
}

#loaderP{
    z-index: 310;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#loader{
    margin-left: auto;
    margin-right: auto;
}

.custom-loader {
    width:50px;
    height:50px;
    display: grid;
    color: var(--gold);
}

.custom-loader,
.custom-loader:before,
.custom-loader:after {
    --c: linear-gradient(currentColor 0 0);
    background:var(--c), var(--c), var(--c), var(--c);
    background-repeat: no-repeat;
    animation: l9-1 3s infinite, l9-2 3s infinite;
}

.custom-loader:before,
.custom-loader:after {
    content: "";
    grid-area: 1/1;
    transform: translate(calc(50% - 2px),calc(2px - 50%)) rotate(90deg);
    animation-delay: -0.5s;
}

.custom-loader:after {
    transform: translate(calc(2px - 50%),calc(50% - 2px)) rotate(90deg);
}

@keyframes l9-1 {
    0%,
    10%   {background-size: 0    4px,4px 0 }
    40%,
    60%   {background-size: 100% 4px,4px 100%}
    90%,
    100%  {background-size: 0    4px,4px 0  }
}

@keyframes l9-2 {
    0%,49.9%{background-position: 0    0,0    0,100% 100%,100% 100%}
    50%,100%{background-position: 100% 0,0 100%,0    100%,100% 0}
}


/*-------------------------------- Nav --------------------------------*/
header{
    position: fixed;
    width: 100vw;
    margin-top: 2%;
    transition: all 0.3s ease-in-out;
    z-index: 300;
}

.smaller{
    background-color: var(--blue);
    margin-top: 0%;
    padding-top: 1%;
    padding-bottom: 1%;
    transition: all 0.3s ease-in-out;

    -webkit-mask-image: linear-gradient(to top, transparent 1%,#1B1931 10%);
    mask-image: linear-gradient(to top, transparent 1%,#1B1931 10%);
}

.menu{
    display: flex;
    flex-direction: row;
}

.infoNav{
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 5%;
}

.infoEle{
    font-size: var(--fs--TextNav);
    font-family: subTitulos;
    color: var(--white);
    text-decoration: none;
}

.infoEle:hover{
    color: var(--gold);
}   

.infoEle:nth-child(n+2){
    margin-left: 50px;
}

.imgNav{
    margin-left: auto;
    margin-right: 5%;
    width: 4%;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.imgNavSmaller{
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.icoNav{
    width: 100%;
}

#ham{
    display: none;
}

#xham{
    display: none;
}

/*-------------------------------- Contacto --------------------------------*/
.contactoSection{
    /* height: 100svh; */
    display: flex;
    flex-wrap: wrap;
    /* margin-top: 20%; */
}

.infoContacto{
    flex: 1;
    min-width: 500px;
    height: 100%;
    display: flex;
    background-color: var(--blue);
    padding-top: 10%;
    padding-bottom: 10%;
    background-image: url(./imgFondoContacto.webp);

    background-size: 15%;
    background-position: 5%;

    /* background-size: 20%;
    background-repeat: no-repeat;
    background-position: center; */
}

.redesContacto{
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    margin-left: 10%;
}

.contactoTitulo{
    font-family: titulos;
    font-size: var(--fs--SubTitle);
    color: var(--white);
}

.infoContactoEle{
    font-family: subTitulos;
    font-size: var(--fs--Text);
    color: var(--white);
    fill: var(--white);
    text-decoration: none;
    width: max-content;
    padding-right: 10px;
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
}

.containerEleContacto{
    display: flex;
    /* justify-content: center; */
    margin-top: 20px;
    /* width: max-content; */
}

/* .containerEleContacto:hover{
    cursor: pointer;
} */

.pEnlaces:hover{
    cursor: pointer;
}

.icoTel{
    width: 30px;
    padding-left: 15px;
    padding-right: 10px;
}

.icoMapa{
    width: 50px;
}

.infoContactoEle:hover{
    fill: var(--gold);
    color: var(--gold);
}

.imgFondoContacto{
    position: relative;
}

.mapsContacto{
    flex: 1;
    min-width: 300px;
    /* height: 100%; */
}

.frameMap{
    width: 100%;
    height: 100%;
    border: none;
}


/*-------------------------------- Footer --------------------------------*/
footer{
    width: 100%;
    height: auto;
    background-color: var(--blue);
    display: flex;
    flex-direction: column;
}

.imgFooter{
    width: 18%;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
}

.copyFooter{
    font-size: var(--fs--TextNav);
    color: var(--white);
    font-family: textos;
    margin-top: 2.5%;
    margin-bottom: 2.5%;
    margin-left: auto;
    margin-right: auto;
}

/*---------------------------------------- Responsive ----------------------------------------*/
@media screen and (max-width: 900px){
    /*-------------------------------- Nav --------------------------------*/
    header{
        padding-top: 4%;
        margin-top: 0%;
    }

    .smaller{
        padding-top: 2%;
        padding-bottom: 2%;
    }

    .infoEle:nth-child(n+2){
        margin-left: 25px;
    }

    .imgNav{
        width: 5%;
    }

    /*-------------------------------- Contacto --------------------------------*/
    .infoContacto{
        background-size: 12%;
    }

    .mapsContacto{
        min-height: 388px;
    }

    /*-------------------------------- Footer --------------------------------*/
    .imgFooter{
        width: 22%;
    }

    .copyFooter{
        margin-top: 5%;
        margin-bottom: 3%;
    }
}


@media screen and (max-width: 600px){
    /*---------------------------------------- Nav ----------------------------------------*/
    nav{
        margin-top: 0%;
    }

    /* .header{
        top: 0%;
    } */

    .menu-btn {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 30px;
        width: 37px;
        padding-top: 20px;
        z-index:50;
        /* margin-left: 10%; */
        margin-right: auto;
        position: absolute;
        left: 5%;
    }

    .smaller {
        height: 77px;
        -webkit-mask-image: none;
        mask-image: none;
        padding-top: 0%;
        padding-bottom: 0%;
    }

    #ham{
        display: inline;
        margin-top: 0px;
        z-index: 50;
        scale: 1;
        transition: transform 0.3s ease-in-out;
    }

    #ham.activeHam{
        display: none;
        transition: transform 0.3s ease-in-out;
    }

    #xham{
        display: none;
        scale: 1;
        transition: transform 0.3s ease-in-out;
    }

    #xham.activeXHam{
        display: inline;
        z-index: 100;
        transition: transform 0.3s ease-in-out;
    }

    .menu {
        flex-direction: column-reverse;
        background-color: var(--blue);
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        height: 100svh;
        transform-origin: top;
        transition: transform 0.3s ease-in-out;
        margin-left: 0px;
        justify-content: center;
        transform: scaleY(0);
    }

    .imgNav{
        margin-left: auto;
        margin-right: auto;
        width: 10%;
        opacity: 1;
        margin-top: auto;
    }

    .infoNav{
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        margin-top: 30px;
    }    

    .eleNav{
        margin-left: 0% !important;
        margin-top: 0px;
        margin-bottom: 30px;
        margin-right: 0px;
        text-align: center;
    }

    .menu.active {
        transform: scaleY(1);
    }

    .menu.disactive {
        transform: scaleY(0);
    }


    /*-------------------------------- Contacto --------------------------------*/
    .infoContacto {
        background-size: 10%;
        padding-top: 0%;
        padding-bottom: 0%;
        min-height: 50svh;
        max-width: 100vw;
        width: 100vw;
        min-width: 100vw;
    }

    .mapsContacto{
        min-height: 60svh;
    }

    .infoContactoEle {
        width: 80%;
    }

    .redesContacto{
        padding-top: 10%;
        padding-bottom: 10%;
    }

    /*-------------------------------- Footer --------------------------------*/
    .imgFooter{
        width: 45%;
        margin-top: 15%;
    }

    .copyFooter{
        margin-top: 10%;
        margin-bottom: 6%;
        margin-left: 5%;
        margin-right: 5%;
    }

}

/*!--------------------------- Compartido ---------------------------*/


/*-------------------------------- Home--------------------------------*/
.home{
    background-color: var(--blue);
    background-image: url(./backgroundImgHome.webp);
    background-size: cover;
    background-position: 50% 50%;
    width: 100vw;
    min-height: 100svh; 
    max-height: auto;
    display: flex;
}

.imgHome{
    z-index: 150;
    margin-left: 5%;
    padding-top: 43svh;
    margin-bottom: auto;
    width: 28%;
}

.imgHomeMovil{
    display: none;
}
/* .backgroundImgHome{
    position: absolute;
    width: 120svh;
    left: auto;
    top: -12%;
    right: 2%;
    -webkit-mask-image: linear-gradient(black, transparent);
    mask-image: linear-gradient(black, transparent);
} */


.arrows{
    position: absolute;
    top: auto;
    bottom: 5%;
    left: 48vw;
    transform: translateY(-48%);
}

.arrow {
    width: 42px;
    height: 16px;
    opacity: 0;

    &::before,
    &::after {
        content: "";
        width:21px;
        height: 2px;
        background-color: var(--white);
        border-radius: 2px;
        display: inline-block;
}

    &::before {
        transform: rotate(45deg) translateX(25%)
    }

    &::after {
        transform: rotate(-45deg) translateX(-25%)
    }

    &:nth-child(1) {
        top: -50px;
        opacity: 1;
        animation: arrow2 1.2s ease 0s infinite;
    }

    &:nth-child(2) {
        top: -25px;
        animation: arrow1 1.2s ease 0.25s infinite;
    }
}

@keyframes arrow1 {
    from {
        opacity: 0;
        top: -25px;
    }

    to {
        opacity: 0;
        top: 0px;
    }

    50% {
        opacity: 1;
    }
}

@keyframes arrow2 {
    from {
        opacity: 0;
        top: -35px;
    }

    to {
        opacity: 0;
        top: -10px;
    }

    50% {
        opacity: 1;
    }
}


/*-------------------------------- Sobre Nosotros --------------------------------*/
.sobreNosotros{
    background-color: var(--blue);
}

.sobreNosotrosTitulo{
    margin-top: 0px;
    width: 34%;
    margin-left: 10%;
    margin-top: 20%;
}

.sobreNosotrosTexto{
    margin-top: 5%;
    padding-bottom: 12%;
    margin-left: 5%;
    margin-right: 40%;
    color: var(--white);
    font-size: var(--fs--Text);
    font-family: textos;
}


/*-------------------------------- NuestrasMarcas --------------------------------*/
.nuestrasMarcasTitulo{
    margin-top: 0px;
    width: 34%;
    margin-left: 10%;
    margin-top: 12%;
}

.proyectosSection{
    margin-top: 10%;
    width: 100vw;
    display: flex;
    flex-wrap: wrap;
}

.parent {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex: 1;
    height: 60svh;
    width: 35vw;
    display: flex;
    min-width: 50%;
}

.child {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-transition: all 1.5s;
    -moz-transition: all 1.5s;
    -o-transition: all 1.5s;
    transition: all 1.5s;
    display: flex;
}

.parent:hover .child, .parent:focus .child {
    -ms-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

.eleLogo{
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    transition: all 1.5s;
}

.child:hover img {
    transform: scale(1.190);
    filter: drop-shadow(0 0 0.5rem rgb(0, 0, 0));
    transition: all 1.5s;
}

.parent:hover .child:before, .parent:focus .child:before {
    display: block;
}

.ele1Logo{
    width: 35%;
}

.bg-one {
    background-image: url(./altitudbackground.webp);
}

.ele2Logo{
    width: 45%;
}

.bg-two {
    background-image: url(./socialsportsBackground.webp);
}

.ele3Logo{
    width: 48%;
}

.bg-three {
    background-image: url(./campestreBackground.webp);
}

.ele4Logo{
    width: 42%;
}

.bg-four {
    background-image: url(./lepreBackground.webp);
}

.ele5Logo{
    width: 45%;
}

.bg-five {
    background-image: url(./republicaBackground.webp);
}

.ele6Logo{
    width: 42%;
}

.bg-six {
    background-image: url(./normalBackground.webp);
}

.ele7Logo{
    width: 15%;
}

.bg-seven {
    background-image: url(./no4Background.webp);
}



/*---------------------------------------- Responsive ----------------------------------------*/
@media screen and (max-width: 900px){

    /*-------------------------------- Home--------------------------------*/
    .imgHome{
        width: 40%;
    }

    .arrow {
        scale: 0.9;
    }


    /*-------------------------------- Sobre Nosotros --------------------------------*/
    .sobreNosotrosTitulo{
        width: 48%;
        margin-bottom: 5%;
    }

    .sobreNosotrosTexto{
        margin-right: 20%;
    }

    /*-------------------------------- NuestrasMarcas --------------------------------*/
    .nuestrasMarcasTitulo{
        width: 48%;
    }

    .parent {
        height: 70svh;
    }

    .ele1Logo{
        width: 45%;
    }

    .ele2Logo{
        width: 65%;
    }

    .ele3Logo{
        width: 58%;
    }

    .ele4Logo{
        width: 52%;
    }

    .ele5Logo{
        width: 55%;
    }

    .ele6Logo{
        width: 52%;
    }

    .ele7Logo{
        width: 40%;
    }
}

@media screen and (max-width: 650px){
    .home{
        background-image: url(./backgroundImgHomeMovil.webp);
        background-size: cover;
        background-position: 50% 50%;
    }

    .imgHomeDesktop{
        display: none;
    }

    .imgHomeMovil{
        display: block;
    }

    .imgHome{
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 0;
        margin-top: auto;
        margin-bottom: auto;
    }

}

@media screen and (max-width: 600px){

    /*-------------------------------- Home--------------------------------*/
    .arrows{
        left: 45vw;
    }

    .arrow {
        scale: 0.8;
    }

    /* .backgroundImgHome{
        width: 120svh;
        top: -25%;
        opacity: 0.6;
    } */


    /*-------------------------------- Sobre Nosotros --------------------------------*/
    .sobreNosotrosTitulo{
        width: 65%;
    }

    .sobreNosotrosTexto{
        margin-right: 5%;
    }

    /*-------------------------------- NuestrasMarcas --------------------------------*/
    .nuestrasMarcasTitulo{
        width: 65%;
    }

    .parent {
        height: 60svh;
        width: 100vw;
        min-width: 100%;
    }

    .child:hover img {
        transform: scale(1);
    }

}