/* CSS */
@font-face {
    font-family: 'Gill Sans Display Bold';
    src: url('fonts/GillSansDisplayMTPro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gill Sans Book';
    src: url('fonts/GillSansMTPro-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gill Sans Heavy';
    src: url('fonts/GillSansMTPro-Heavy.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Resto de tus estilos CSS */
/* width */
::-webkit-scrollbar {
    width: 4px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #cbcbcb;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #e20613;
    border-radius: 2px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #e20613;
}

body {
    font-family: 'Gill Sans Book', sans-serif;
    /* Puedes ajustar según la necesidad de tu diseño */
}

p {
    color: #575756;
    font-size: 22px;
}

body {
    width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;

    /* display: flex; */
    height: max-content;
}

body.calidad,
body.diseno,
body.solidez,
body.respaldo,
body.experiencia {
    display: flex !important;


}

header {
    background-color: #E20613;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 30px 10px;
    position: relative;
    width: 100%;
    z-index: 999;
    color: #fff;
    transition: all 0.3s ease;
    /* Agregamos una transición para suavizar la animación */
    height: 50px;
    transition: transform 0.5s ease;

}




.cajaprincipal {
    width: 100%;
    height: 100vh;

}

.logo {
    width: 30%;
    display: flex;
    justify-content: center;
}

.logo img {
    width: 200px;
}

.Menulist {
    width: 30%;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 30px;
}

.Menulist img {
    width: 40px;
}

.ingresar {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 50px;
    gap: 15px;
    font-size: 23px;
}




/* div{
    border: 1px solid blue;
} */

/* --------------------truco de las tranciciones ----------------------------- */
/* CSS */
.cajaprincipal {
    /* display: none; */
    opacity: 0;
    /* transform: translateX(100%) translateY(0);*/
    transition: opacity 3s ease;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 1;
    visibility: hidden;

}




.cajaprincipal.mostrar {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    width: 90%;
    right: 0;
    position: absolute;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

section#calidad {
    justify-content: center;
    gap: 50px;
}

header.sidebar {

    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    max-height: 100vh;
    padding: 0;
    display: flex !important;
}

.sidebar .Menulist,
.sidebar .logo,
.sidebar .ingresar {

    display: none;
}

#home.mostrar {
    display: block;
    width: 100%;

}

.numeros {
    display: none;
}

.sidebar .numeros {
    display: block;
}

.numeros {
    position: absolute;
    z-index: 99;
    width: 150px;
    height: 50px;
    top: 50px;
}

#home.mostrar {
    display: block;
    width: 100%;
    transition: transform 0.5s;
    /* Añade transición a 'home' para que se desplace suavemente */
}

#home:not(.mostrar) {
    transform: translateX(-100%);
}

/* -------------------------------pag home---------------------- */

.principal {
    background-image: url(img/imgbanner.jpg);
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: calc(100vh - 93px);

}

.ttprin {
    color: #fff;
    font-size: 87px;
    text-align: center;

    font-family: 'Gill Sans Display Bold', sans-serif;
}

.btnvideo {
    display: contents;
    cursor: pointer;
}

.btnvideo span {
    background: #2b050381;
    padding: 6px 28px;
    color: #fff;
    border-radius: 50pc;
    margin-top: 10px;
}

.secundario {
    background: #E20613;
    padding: 100px 0px;


}

.secundario p {
    text-align: center;
    color: #fff;
    margin-bottom: 100px;
    font-size: 27px;
    font-family: 'Gill Sans Book', sans-serif;
}

.cajas {
    display: flex;
    width: 85%;
    max-width: 1360px !important;
    margin: auto;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;
}

.caja {
    width: 250px;
    position: relative;
    cursor: pointer;
    border-radius: 30px;
    transition: transform 0.5s ease;

}

.caja:hover {
    transform: scale(1.1) !important;
}

.caja img {
    width: 100% !important;
    height: 350px;
    object-fit: cover;
    border-radius: 30px;
}

.caja h3 {
    background: rgb(255, 255, 255);
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    padding: 10px 0;
    border-radius: 0 0 30px 30px;
    position: absolute;
    bottom: 0;
    width: 100%;
    margin: 0;
    transform: translateX(-50%);
    left: 50%;
    color: #E20613;
    font-family: 'Gill Sans Heavy', sans-serif;
}

.caja:hover h3 {

    border: 2px solid #fff;
    background: #E20613 !important;
    color: #fff;
    width: 98%;

}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 80%);
    z-index: 9999;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff00;
    padding: 0;
    border-radius: 8px;
    width: 75%;
}

.close-popup {
    background-color: #E20613 !important;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    border-radius: 64px;
    font-size: 15px;
    font-weight: 800;
}

h1.titulo {
    font-size: 68px;
    border: 8px solid red;
    padding: 0 10px;
    color: red;
    margin: 10px;
    font-family: 'Gill Sans Display Bold', sans-serif;
}

.mostrar p {
    text-align: center;
    margin: 0 auto;
    width: 90%;
    max-width: 900px;
}

.cabezamenus {
    position: fixed;
    top: 50px;
    right: 50px;
}

.cabezamenus ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 1px solid #707070;
    padding-bottom: 10px;
}

.cabezamenus li {
    margin-right: 20px;
    color: #575756;
    padding: 10px;

}

/* Opcional: Puedes agregar estilos adicionales para resaltar el texto cuando se pasa el mouse */
.cabezamenus li:hover {
    color: #E20613;
    /* Cambia el color al pasar el mouse sobre un elemento */
    cursor: pointer;
}

.mostrar .cabezamenus li {
    position: relative;
    color: #575756;
    opacity: 0.7;
    font-family: 'Gill Sans Book', sans-serif;
    font-size: 18px;
}

.mostrar .cabezamenus li.activo {
    color: #575756;
    opacity: 1;
}

.mostrar .cabezamenus li.activo::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 8px;
    background: red;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);

}


.uno,
.dos,
.tres,
.cuatro,
.cinco {
    display: none;
    font-family: 'Gill Sans Display Bold', sans-serif;
    color: #fff;
    font-size: 200px;

}



.calidad .uno {
    display: block;
}

.diseno .dos {
    display: block;
}

.solidez .tres {
    display: block;
}

.respaldo .cuatro {
    display: block;
}

.experiencia .cinco {
    display: block;
}


.videos {

    display: flex;
}

.videos {

    display: flex;
    gap: 80px;
    max-width: 600px;
    margin-top: 50px;
}

.videos div {

    position: relative;

}

.videos .boton {

    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 40px;

}

.videos .back {
    width: 100%;
    border-radius: 20px;

}



.slider {
    width: 80%;
    /* Ancho del slider */
    margin: 20px auto;
    /* Centrar el slider en la página */
    /* border: 1px solid red; */

}

.slider img {
    width: 90%;
    height: auto;
    object-fit: cover;
    margin: auto;
    border-radius: 20px;
}

ul.slick-dots {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

ul.slick-dots button {
    border: 1px solid red;
    width: 20px;
    height: 20px;
    position: relative;
    background: #000;
    border-radius: 50px;
    margin: 5px;

}

ul.slick-dots button {
    border: 1px solid #CCCCCC;
    width: 10px;
    height: 14px;
    position: relative;
    background: #CCCCCC;
    border-radius: 50px;
    margin: 5px;
    font-size: 0;
}

li.slick-active button {
    border: 1px solid #E20613 !important;
    background: #E20613 !important;
}

.imagen {
    width: 100%;

    height: 45%;

}

.imagen img {

    width: 100%;
    height: 100%;
    object-fit: cover;
}


.image-grid {
    display: flex;
    max-width: 60%;
    gap: 10px;
}

.izquierda {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

section#experiencia {

    justify-content: center;
}

video#videoPopup {
    width: 100%;
}

.equipo img {
    width: 900px;
    height: 100%;
}




a.lb-prev {
    background: url(img/izquierda.svg) !important;
    opacity: 1 !important;
    width: 40px !important;
    height: 40px;
    z-index: 9999;
    position: absolute;
    top: 50%;
    left: 5px !important;
}

a.lb-next {
    background: url(img/derecha.svg) !important;
    opacity: 1 !important;
    width: 40px !important;
    height: 40px;
    z-index: 9999;
    position: absolute;
    top: 50%;
    right: 5px !important;
}

#botonVolver {
    display: none;
    background: #ff000000;
    border-width: 0 0 2px 0;
    border-color: #fff !important;
    color: #fff;
    font-size: 20px;
    position: absolute;
    bottom: 50px;
    opacity: 1 !important;
    font-family: 'Gill Sans Book', sans-serif;
}

body.calidad #botonVolver {
    display: block !important;
}

body.diseno #botonVolver {
    display: block !important;
}

body.solidez #botonVolver {
    display: block !important;
}

body.respaldo #botonVolver {
    display: block !important;
}

body.experiencia #botonVolver {
    display: block !important;
}

#calidad p {
    color: #575756;
    padding: 0;
    margin: 0 auto;
    font-size: 22px;
}


body.diseno .cajaprincipal {
    gap: 30px !important;

}

body.solidez .cajaprincipal {
    gap: 60px !important;
    justify-content: flex-end;
}

body.respaldo .cajaprincipal {
    gap: 30px !important;
    justify-content: flex-end;
    overflow: hidden;
}

body.respaldo .cajaprincipal {
    gap: 30px !important;
    justify-content: flex-end;
}

span.lb-caption {
    display: none !important;
}

.lightbox .lb-image {

    border: 0px solid white !important;
}

.lb-outerContainer {

    background: #ffffff00 !important;
}


body.diseno .cajaprincipal h1.titulo {

    padding: 0px 50px;

}

body.solidez .cajaprincipal h1.titulo {

    padding: 0px 50px;


}

body.respaldo .cajaprincipal h1.titulo {

    padding: 0px 50px;

}

#experiencia .back {
    width: 100%;
    border-radius: 20px;
}

body.experiencia .cajaprincipal {
    gap: 30px !important;
    justify-content: flex-end;
}

.intro {

    padding: 54px 0 70px 0px;
}

/* // ----------------------------------------gsap------------------------------------------------- */
.caja {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.5s, transform 0.5s;


}


#telon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: red;
    z-index: 9999;
    transform-origin: left;
    visibility: hidden;
    transform: scaleX(0);
    /* Inicialmente, el telón tiene escala 0 en X */
}

.vid {
    width: 650px;
    height: 360px;
}

@media only screen and (max-width: 1367px) {
    .cajas {

        width: 95% !important;

    }

    header.sidebar {

        width: 200px !important;

    }

    .uno,
    .dos,
    .tres,
    .cuatro,
    .cinco {

        font-size: 150px !important;
    }

    p {

        font-size: 22px !important;
    }

    h1.titulo {
        font-size: 40px !important;

    }

    .vid {
        width: 446px;
        height: 250px;
    }

    section#calidad {
        justify-content: center;
        gap: 10px;
    }

    body.diseno .cajaprincipal {
        gap: 25px !important;
    }

    .equipo img {
        width: 600px !important;

    }

    body.experiencia .cajaprincipal {
        gap: 10px !important;

    }
}


@media only screen and (max-width: 1025px) {
    .caja {
        width: 178px;

    }

    header.sidebar {
        width: 150px !important;
    }

    .uno,
    .dos,
    .tres,
    .cuatro,
    .cinco {
        font-size: 100px !important;
        text-align: center;
    }

    .vid {
        width: 499px;
        height: 280px;

    }

    .caja h3 {

        font-size: 22px !important;

    }
}


@media (max-height: 768px) {

    .vid {
        width: 395px !important;
        height: 222px !important;

    }

    .cabezamenus {

        top: 15px !important;

    }

    .videos {

        margin-top: 10px !important;
    }

    body.diseno .cajaprincipal {
        gap: 10px !important;
    }

    .slider {
        width: 60% !important;

    }

    body.solidez .cajaprincipal {
        gap: 20px !important;

    }

    body.respaldo .cajaprincipal {
        gap: 17px !important;

    }

    .equipo img {
        width: 500px !important;
    }
}

#home~section {
    max-width: calc(100vw - 200px);
    justify-content: flex-start;
    padding-top: 130px;
    gap: 10px;
}

#calidad .videos,
#experiencia .videos {
    max-width: 90vh;
    margin-top: 24px;
    flex-grow: 2;
}

#calidad .videos .vid,
#experiencia .videos .vid {
    width: 100% !important;
    height: auto !important;
}
#diseño .slider {
    width: 60%;
}
#solidez .imagen {
    flex-grow: 2;
}
#respaldo .equipo {
    flex-grow: 2;
    width: 45%;

}
#respaldo .equipo img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-height: 768px) {
    #home~section {
        justify-content: flex-start;
        padding-top: 85px;

    }
    #calidad .videos {
        max-width: 86vh;
    }
    #calidad .videos .vid {
        width: 100% !important;
        height: auto !important;
    }
    #diseno .slider {
        width: 80% !important;
    }
}