/*-------------------------------- root --------------------------------*/
:root{
    --white: #EDEDED;
    --black: #2e2e2e;
    --yellow: #F2C12E;
    --pink: #F22797;
    --blue: #514DE8;

    --fs--Title: clamp(1.8rem , 2.8vw,  3.2rem );
    --fs--SubTitle: clamp(1.2rem , 2.5vw,  3.1rem );
    --fs--Text: clamp(16px , 1.2vw,  40px);
    --fs--TextNav: clamp(16px , 1vw,  35px);
}

@font-face {
    font-family: 'helveticaBold';
    src: url(./HelveticaNowDisplayBold.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'helveticaRegular';
    src: url(./HelveticaNowDisplayRegular.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'helveticaLight';
    src: url(./HelveticaNowDisplayLight.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'helveticaThin';
    src: url(./HelveticaNowDisplayThin.ttf);
    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(--black) var(--white);
}

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 15px;
}

*::-webkit-scrollbar-track {
    background: var(--white);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--black);
    border-radius: 0px;
    border: 0px solid var(--white);
}


/*-------------------------------- loader --------------------------------*/
#hiddenBody{
    overflow:hidden;
}

#loaderP{
    z-index: 110;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#loader{
    margin-left: auto;
    margin-right: auto;
}

.spinner {
    background-image: linear-gradient(#F2C12E 0%, #F22797 50%, #514DE8 100%);
    /* background-image: linear-gradient(#F2C12E 35%,#4a248a); */
    width: 200px;
    height: 200px;
    animation: spinning82341 1.7s linear infinite;
    text-align: center;
    border-radius: 100px;
    filter: blur(1px);
    /* box-shadow: 0px -5px 0px 0px #F2C12E, 0px 0px 0px 0px #F22797, 0px 5px 0px 0px #514DE8; */
    box-shadow: 0px -5px 20px 0px #F2C12E, 0px 15px 20px 0px #514DE8;
}

.spinner1 {
    background-color: rgb(36, 36, 36);
    width: 200px;
    height: 200px;
    border-radius: 100px;
    filter: blur(10px);
}

@keyframes spinning82341 {
    to {
        transform: rotate(360deg);
    }
}


/*-------------------------------- Nav --------------------------------*/
header{
    position: fixed;
    width: 100%;
    height: max-content;
    display: flex;
    flex-direction: column;
    padding-top: 4.5%;
    padding-bottom: 0px;
    transition: all 0.3s ease-in-out;
    margin-top: 0px;
    z-index: 100;
}

.smaller{
    background-image: url(./imgFondo.webp);
    background-position: 50%;
    padding-top: 2%;
    padding-bottom: 2%;
}

nav{
    display: flex;
}

.logoNav{
    margin-top: auto;
    margin-bottom: auto;
    transition: all 0.3s ease-in-out;
    margin-left: 5%;
    max-width: max-content;
    width: 15%;
    position: absolute;
}

.navB{
    padding-top: 4.5%;
    position: absolute;
}

.smallerLogoOR{
    display: none;
    transition: all 0.3s ease-in-out;
}

.smallerLogoSmall{
    display: block !important;
    transition: all 0.3s ease-in-out;
}

.containerLeft{
    margin-left: auto;
    /* margin-right: 10px; */
    justify-content: right;
    display: flex;
    margin-right: 5%;
}

.menuIco{
    margin-bottom: auto;
    margin-top: auto;
    width: 10%;
    margin-left: 50px;
    transition: all 0.2s ease-in-out;
}

.smallerIco{
    width: 10%;
    transition: all 0.2s ease-in-out;
}

.menuIco:hover{
    cursor: pointer;
    scale: 1.03;
    filter: saturate(1.6);
    transition: all 0.2s ease-in-out;
}

.menu-btn{
    z-index: 50;
}

#xham{
    transition: transform 0.3s ease-in-out;
    display: none;
}

#ham.activeHam{
    transition: transform 0.3s ease-in-out;
    display: none;
}

#ham:hover{
    cursor: pointer;
    scale: 1.03;
    filter: saturate(1.6);
    transition: all 0.2s ease-in-out;
}

#xham.activeXHam{
    transition: transform 0.3s ease-in-out;
    display: inline;
}

.menu {
    position: absolute;
    top: 0px;
    right: 0;
    background-color: var(--white);
    width: 100vw;
    height: 100vh;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease-in-out;
}

.menu.active {
    transform: scaleY(1);
}

.menu.disactive {
    transform: scaleY(0);
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.menu-items li {
    margin-bottom: 20px;
}

.menu-items a {
    text-decoration: none;
    color: var(--black);
    font-size: var(--fs--SubTitle);
    font-family: helveticaRegular;
    transition: all 0.2s ease-in-out;
}

.menu-items a:hover{
    /* color: #000000; */
    font-size: calc(var(--fs--SubTitle) + 3px);
    transition: all 0.2s ease-in-out;
    font-family: helveticaBold;
}

#logoNavB{
    transition: all 2s ease-in-out;
    display: none;
}

#logoNavB.visibleLogoNavB{
    transition: all 2s ease-in-out;
    display: inline;
}


/*-------------------------------- recuadroColores--------------------------------*/
.recuadroColores{
    position: fixed;
    width: 90%;
    height: 10px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    background: linear-gradient(90deg, #F2C12E 0%, #F22797 50%, #514DE8 100%);

    /* opacity: 0; */
    transition: 0.5s linear;
}

.colorChange {
	-webkit-animation: colorChange 6s linear infinite alternate both;
	animation: colorChange 6s linear infinite alternate both;
}

@-webkit-keyframes colorChange {
    0% {
        background:#F2C12E;
    }
    50% {
        background:#F22797;
    }
    100% {
        background:#514DE8;
    }
}

@keyframes colorChange {
    0% {
        background:#F2C12E;
    }
    50% {
        background:#F22797;
    }
    100% {
        background:#514DE8;
    }
}

/*-------------------------------- botones lengauje --------------------------------*/
.rightElementsNav{
    display: flex;
    align-items: center;
    margin-right: 10%;
    flex-direction: column;
    margin-top: -3px;
}

.botonLenguaje{
    background: none;
    border: none;
    /* padding: 5px; */
    color: var(--white);
    font-size: var(--fs--Text);
    position: absolute;
    font-family: helveticaBold;}

.botonLenguaje:hover{
    color: #c4c4c4;
    cursor: pointer;
}


/*-------------------------------- Proyectos --------------------------------*/
p{
    color: var(--black);
}

.video-background {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.proytectosVideo {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -0.5px;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    z-index: -1;
    /* filter: brightness(1); */
    filter: brightness(0.5);
    background-color: black;
}

.proyectosTitulo{
    margin-top: 0px;
    padding-top: 15%;
    margin-bottom: 0px;
    margin-left: 5%;
    font-size: var(--fs--Title);
    font-family: helveticaBold;
    color: var(--white);
}

.proyectosSubTitulo{
    margin-top: 20px;
    margin-left: 5%;
    font-size: var(--fs--Text);
    width: 40%;
    font-family: helveticaRegular;
    color: var(--white);
    margin-bottom: 0%;
}

.proyectosSubTitulo2{
    margin-top: 0px;
    margin-bottom: 6%;
}


/*-------------------------------- Filtros botones --------------------------------*/
.filtrosContainer{
    margin-top: 12%;
    width: 90%;
    height: auto;
    /* background-color: red; */
    margin-left: 5%;
    margin-right: auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: baseline;
}

/* .boton {
    outline: none;
    cursor: pointer;
    border: none;

    position: relative;
    display: inline-block;
    border-radius: 0px;
    overflow: hidden;

    color: var(--white);
    background-color: var(--black);
    border: 1px solid var(--black);
    padding: 20px 52px;

    margin-top: auto;
    margin-bottom: auto;
    font-size: var(--fs--Text);
    font-family: helveticaBold;
    transition: all 0.3s ease-in-out;
}

.boton span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
}

.boton:hover{
    transition: all 0.3s ease-in-out;
    -webkit-box-shadow:rgba(242, 193, 46, 0.9) 3px 3px, rgba(242, 39, 151, 0.8) 7px 7px, rgba(82, 77, 232, 0.7) 10px 10px;
    -moz-box-shadow: rgba(242, 193, 46, 0.9) 3px 3px, rgba(242, 39, 151, 0.8) 7px 7px, rgba(82, 77, 232, 0.7) 10px 10px;
    box-shadow: rgba(242, 193, 46, 0.9) 3px 3px, rgba(242, 39, 151, 0.8) 7px 7px, rgba(82, 77, 232, 0.7) 10px 10px;
    color: var(--black);
    background-color: var(--white);
} */

.boton {
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: var(--black);
    font-family: helveticaRegular;
    font-size: var(--fs--Text);
}

.boton span {
    padding-bottom: 7px;
    padding-right: 15px;
    padding-left: 15px;
}

.hoverunderlineanimation {
position: relative;
padding-bottom: 20px;
}

.hoverunderlineanimation:after {
content: "";
position: absolute;
width: 100%;
transform: scaleX(0);
height: 3px;
bottom: 0;
left: 0;
background: linear-gradient(90deg, #F2C12E 0%, #F22797 50%, #514DE8 100%);
transform-origin: bottom right;
transition: transform 0.3s ease-out;
}

.boton:hover .hoverunderlineanimation:after {
transform: scaleX(1);
transform-origin: bottom left;
}

.active{
    border-width: 3px;
    border-image: linear-gradient(to right, #F2C12E 0%, #F22797 50%, #514DE8 100%) 1;
    font-family: helveticaBold;
}

.tabcontent {
    display: none;
}

.tabcontent.active {
    display: block;
}


/*-------------------------------- Proyectos Galeria --------------------------------*/
.proyectos{
    background-color: var(--white);
    padding-top: 7%;
}

.containerProyectos{
    /* background-color: var(--black); */
    width: 95vw;
    height: auto;
    margin-bottom: 8%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    /* gap: 20px; */
    gap: 1.1vw;
}

.elementosPro{
    display: block;
    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    min-width: 40%;
    max-width: 49%;
    min-height: 35vw;
    flex: 1;
    /* flex-wrap: wrap; */
    /* width: 500px;
    min-width: 500px; */
    text-decoration: none;
    justify-content: space-between;
    border: 1px solid var(--white);

    /* transition: all 0.5s ease-in-out !important; */
    transition: all 0.3s ease;
}

#atmosferaEle{
    background-image: url(./atmosfera09.webp);
}

#barraEle{
    background-image: url(./barraNegra19.webp);
}

#gazproEle{
    background-image: url(./gazpro12.webp);
}

#haciendaEle{
    background-image: url(./haciendaNohchakan10.webp);
}

#yellowBirdEle{
    background-image: url(./yellowBird16.webp);
}

#sunnyBobbaEle{
    background-image: url(./sunnyBobba05.webp);
}

#amatoEle{
    background-image: url(./amato09.webp);
}

#letsGolfEle{
    background-image: url(./LetsGolf17.webp);
}

#studioSieteEle{
    background-image: url(./studioSiete011.webp);
}

#tresSesemntaEle{
    background-image: url(./tresSesenta030.webp);
}

#venuePerformanceEle{
    background-image: url(./venuePerformance018.webp);
}

#etereoCafeEle{
    background-image: url(./etereo021.webp);
}

#emprendeCoehete{
    background-image: url(./emprende016.webp);
}

#orbitaMedicaEle{
    background-image: url(./orbitaMedica04.webp);
}

#peluditosEle{
    background-image: url(./peluditos015.webp);
}

#redPandaEle{
    background-image: url(./redPanda010.webp);
}

#cevicheBarEle{
    background-image: url(./cevicheBar022.webp);
}



.elementosPro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    opacity: 0;
    transition: all 0.5s ease;
}

.elementosPro:hover::before {
    opacity: 1;
    transition: all 0.5s ease;
}

.elementosPro:hover{
    -webkit-box-shadow:rgba(242, 193, 46, 0.9) 4px 4px, rgba(242, 39, 151, 0.8) 8px 8px, rgba(82, 77, 232, 0.7) 12px 12px;
    -moz-box-shadow: rgba(242, 193, 46, 0.9) 4px 4px, rgba(242, 39, 151, 0.8) 8px 8px, rgba(82, 77, 232, 0.7) 12px 12px;
    box-shadow: rgba(242, 193, 46, 0.9) 4px 4px, rgba(242, 39, 151, 0.8) 8px 8px, rgba(82, 77, 232, 0.7) 12px 12px;

    border: 1px solid var(--black);
}

.pImgs{
    width: 60%;
    margin-left: 5%;
    color: var(--black);
    transition: all 0.3s ease;
    opacity: 0;
}

.elementosPro:hover p{
    opacity: 1;
    transition: all 0.3s ease;
    position: relative;
}

#tituloImgs{
    margin-top: 5%;
    margin-bottom: 0px;
    font-size: var(--fs--Text);
    font-family: helveticaBold;
}

#subTituloImgs{
    margin-top: 2%;
    font-size: var(--fs--TextNav);
    font-family: helveticaLight;
}


/*-------------------------------- footer--------------------------------*/
footer {
    width: 100%;
    background-image: url(./imgFondo.webp);
    background-position: 10%;
    padding-top: 2%; /* Añadimos un poco de espacio superior */
}

.containerFooter {
    display: flex;
    align-items: center; /* Centra verticalmente el logo y los iconos */
    justify-content: space-between; /* Separa el logo de los iconos */
    padding: 0 5%;
}

.imgFooter {
    width: 15%; /* Ajustado ligeramente el tamaño del logo */
    height: auto;
}

.infoFooter {
    display: flex; /* Esta es la clave para el acomodo horizontal */
    flex-direction: row; 
    gap: 30px; /* Espacio entre cada icono */
    margin-top: 2%;
    margin-bottom: 2%;
}

.textFooter {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease; /* Transición para el efecto hover */
}

/* Efecto hover para los iconos */
.textFooter:hover {
    transform: scale(1.2); /* El icono crece un poco al pasar el mouse */
    filter: brightness(0.8); /* Opcional: un ligero cambio de tono */
}

.icosFooter {
    width: 35px; /* Tamaño un poco más grande para destacar como botones */
    height: 35px;
    object-fit: contain;
}

.copyFooter {
    text-align: center;
    color: var(--white);
    font-size: var(--fs--TextNav);
    font-family: helveticaLight;
    padding: 2% 0;
    margin-bottom: 0px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .containerFooter {
        flex-direction: column; /* En móviles es mejor que el logo esté arriba y los iconos abajo */
        gap: 20px;
    }
    
    .imgFooter {
        width: 40%;
        margin-left: 0;
    }
    
    .infoFooter {
        margin: 0 auto;
    }
}



/*---------------------------------------- Responsive ----------------------------------------*/
@media screen and (max-width: 900px){
    .smaller {
        padding-bottom: 4%;
    }

    .aNavImg{
        margin-top: 10px;
    }

    .botonLenguaje{
        font-size: var(--fs--Title);
    }

    /*-------------------------------- recuadroColores--------------------------------*/
    .recuadroColores{
        height: 12px;
    }


    /*-------------------------------- Nav --------------------------------*/
    .logoNav{
        width: 22%;
    }

    .menuIco{
        width: 11%;
    }

    .menu-items li {
        margin-bottom: 20px;
    }


    /*-------------------------------- Proyectos --------------------------------*/
    .proytectosVideo {
        height: 70vh;
    }


    /*-------------------------------- Filtros botones --------------------------------*/
    .filtrosContainer{
        width: 90%;
    }

    .boton {
        padding: 20px 55px;
    }


    /*-------------------------------- Proyectos Galeria --------------------------------*/
    .containerProyectos{
        margin-bottom: 10%;
        /* gap: 50px; */
    }

    .elementosPro{
        min-height: 420px;
    }

    .pImgs{
        width: 80%;
    }


    /*-------------------------------- footer--------------------------------*/
    .imgFooter {
        width: 25%;
    }

    .infoFooter {
        gap: 20px; /* Reducimos ligeramente el espacio entre iconos para que quepan bien */
    }

    .icosFooter {
        width: 32px; /* Usamos px en lugar de 7% para mantener la proporción */
        height: 32px;
    }

    .copyFooter {
        padding-bottom: 4%;
    }

}

@media screen and (max-width: 700px){
    .botonLenguaje{
        font-size: var(--fs--SubTitle);
    }

    /*-------------------------------- recuadroColores--------------------------------*/
    .recuadroColores{
        width: 100vw;
        height: 15px;
    }


    /*-------------------------------- Nav --------------------------------*/
    /* header{
        padding-top: 10%;
    } */

    .logoNav{
        width: 35%;
    }

    /* .navB{
        padding-top: 10%;
    } */

    .menuIco{
        width: 10%;
    }

    .menu-items li {
        margin-bottom: 30px;
    }

    .menu-items a:hover{
        font-size: calc(var(--fs--SubTitle) + 1px);
    }


    /*-------------------------------- Proyectos --------------------------------*/
    .proytectosVideo {
        height: 80vh;
    }

    #background-video {
        object-fit: cover;
        filter: brightness(0.1);
    }

    .proyectosTitulo{
        padding-top: 0%;
    }

    .proyectosSubTitulo{
        margin-bottom: 0%;
        width: 90%;
    }


    /*-------------------------------- Filtros botones --------------------------------*/
    .filtrosContainer{
        margin-left: auto;
        flex-direction: column;
        gap: 0px;
    }

    .boton {
        border-bottom: 10px solid transparent;
        padding: 10px 0px;
        width: max-content;
        
    }

    .boton span {
        padding-bottom: 15px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .hoverunderlineanimation {
    position: relative;
    padding-bottom: 0px;
    }

    .active{
        border-width: 3px;
    }


    /*-------------------------------- Proyectos Galeria --------------------------------*/
    .elementosPro{
        min-width: 99%;
    }

    .elementosPro:hover{
        -webkit-box-shadow:rgba(242, 193, 46, 0.9) 3px 3px, rgba(242, 39, 151, 0.8) 6px 6px, rgba(82, 77, 232, 0.7) 8px 8px;
        -moz-box-shadow: rgba(242, 193, 46, 0.9) 3px 3px, rgba(242, 39, 151, 0.8) 6px 6px, rgba(82, 77, 232, 0.7) 8px 8px;
        box-shadow: rgba(242, 193, 46, 0.9) 3px 3px, rgba(242, 39, 151, 0.8) 6px 6px, rgba(82, 77, 232, 0.7) 8px 8px;
    }

    .pImgs{
        width: 100%;
    }


    /*-------------------------------- footer--------------------------------*/
    .containerFooter {
        flex-direction: column-reverse; /* Logo abajo, iconos arriba */
        align-items: flex-start; /* Alinea todo a la izquierda */
        padding-top: 5%;
    }

    .imgFooter {
        margin-top: 20px;
        margin-bottom: 20px;
        width: 50%;
        margin-left: 5%;
    }

    .infoFooter {
        margin-top: 5%;
        margin-bottom: 5%;
        margin-left: 5%;
        gap: 25px; /* Controla la separación de los iconos horizontales */
    }

    /* Ya no necesitamos márgenes en .textFooter porque .infoFooter usa 'gap' */
    
    .icosFooter {
        width: 35px; /* Un buen tamaño para que sean fáciles de tocar en móviles */
        height: 35px;
    }

    .copyFooter {
        padding-bottom: 5%;
        margin-left: 5%;
        text-align: left;
    }
}

@media screen and (max-width: 600px){
    /*-------------------------------- Nav --------------------------------*/
    .logoNav{
        width: 40%;
    }

    .menuIco{
        width: 13%;
    }
}