:root {
    /*Stuff about general terms here*/
    --alprema-cus: #17488d;
    --alprema-cmx: #bf2128;
    --font-light: #ffffff;
    --font-dark: #181818;
    --bgdark: #1b1b1b;
}

body {
    height: 100%;
    width: 100vw;
    overflow-x: hidden;
}

.myVideo {
    position: fixed;
    overflow: hidden;
    z-index: -2;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.myVideo video {
    min-width: 1400px;
    width: 100%;
    height: auto;
    min-height: 800px;
}

#contentBody {
    width: 100vw;
    justify-content: center;
    align-items: center;
}

.jumplineb {
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #f3f3f3;
    padding-left: 200px;
    padding-right: 200px;
    min-width: 250px;
}

.pmain {
    font-size: 24px;
    text-align: justify;
    text-align-last: center;
    color: var(--font-dark);
    font-family: Gabarito;
    padding-top: 20px;
}

h1 {
    color: var(--font-light);
    justify-content: center;
    align-content: center;
    font-family: Chakra Petch;
    font-weight: 700;
    font-size: 47px;
    text-align: center;
    padding-left: 2%;
    padding-right: 2%;
}

h2 {
    font-size: 42px;
    text-align: center;
    font-family: Chakra Petch;
    font-weight: 600;
    color: var(--font-dark);
}

h3 {
    font-size: 18px;
    font-weight: 800;
    padding-bottom: 5px;
    font-family: Chakra Petch;
    color: var(--font-dark);
}

#aboutus {
    background-color: #1b1b1b5b;
    height: 80vh;
    display: flex;
    justify-content: center;
}

#aboutus2 {
    background-image: url("../img/nosotros/bgg.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding-bottom: 150px;
    padding-top: 150px;
    color: var(--font-light);
    font-family: Gabarito;
    color: var(--font-light);
    height: 100%;
}

/* ========================= OFF CONTENT  ========================= */

.mt-2rem {
    margin-top: 2rem;
}
.mt-3rem {
    margin-top: 3rem;
}
.weare {
    margin: 1.5rem 0 4rem
}

.dualbox {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.dualbox div {
    width: 46%;
    min-width: 250px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
}

.boxa1{
    height: 100%;
}
.boxa2 {
    display: block;
    height: 400px;
}

.boxa1 p {
    font-size: 20px;
    text-align: justify;
    text-align-last: left;
    color: var(--font-dark);
    font-family: Gabarito;
    padding-top: 20px;
}

.boxa1 h2 {
    font-size: 40px;
    text-align: justify;
    text-align-last: left;
    color: var(--font-dark);
    font-family: Gabarito;
    padding-top: 40px;
}

.boxa2 {
    display: flex;
    align-items: center;
    justify-content:center;
    height: 450px;
    overflow: hidden;
}

.boxa2 img {
    height: 450px;
}

.hlight {
    font-size: 60px;
    font-family: Chakra Petch;
    font-weight: 700;
}

.stext {
    font-size: 20px;
}


.sqboxa {
    width: 800px;
    padding-bottom: 20px;
}

.qbox {
    padding: 65px 0 35px;
    display: flex;
    flex-wrap: wrap;
    align-items: start;
}

.qbox div {
    width: 250px;
    padding-right: 20px;
}

.quadbox {
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 20px;
}

.qbdiv {
    width: 22%;
    min-width: 330px;
    padding-top: 20px;
    padding-right: 20px;
}

.innerbox {
    background-color: var(--font-light);
    height: 220px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 25px;
    box-shadow: 0 0 5px #222222;
    border-radius: 10px;
}

.icondiv {
    font-size: 60px;
    width: 100%;
    padding-bottom: 10px;
    color: var(--alprema-cmx);
}

.qbdiv p {
    font-family: Gabarito;
    color: var(--font-dark);
    text-align: left;
    text-align-last: left;
    font-size: 16px;
}

.sortImages {
    background-color: var(--font-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.sortImages img {
    width: 15%;
    min-width: 120px;
    height: 100%;
    background-color: white;
}

.sortImages img:hover {
    -ms-transform: scale(1.5);
    /* IE 9 */
    -webkit-transform: scale(1.5);
    /* Safari 3-8 */
    transform: scale(1.5);
    transition: .5s ease;
    box-shadow: 0 0 10px var(--alprema-cmx);
}

/* ========================= Automatizacion  ========================= */
#automation {
    padding-bottom: 150px;
    padding-top: 150px;
    height: 100%;
    background-image: url("../img/automatizacion/auto1.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
}

#highlighta {
    color: #ffffff;
    font-size: 35px;
}

#fnlinea {
    color: white;
}

.dualboxb {
    display: flex;
    min-width: 250px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cajaa {
    padding-top: 10px;
    width: 46%;
    min-width: 350px;
    height: 400px;
}



.sortImagesc{
    padding-top: 10px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 220px;
    padding-right: 220px;
    color: var(--font-light);
    overflow: hidden;
}
.sortImagesc div{
    height: 200px;
}
.sortImagesc img{
    padding-bottom: 20px;
    min-width: 70px;
    height: 100%;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 20px;
}
.sortImagesc p{
    font-family: Chakra Petch;
    font-weight: 600;
    font-size: 100%;
    position: relative;
    text-align: center;
    top: -140px;
    text-shadow: 0 0 5px #bf2128;
    z-index: 4;
    opacity: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: .5s ease;
}

.sortImagesc div:hover img{
    -ms-transform: scale(1.6); /* IE 9 */
    -webkit-transform: scale(1.6); /* Safari 3-8 */
    transform: scale(1.6); 
    transition: .5s ease;
    /*
    box-shadow: inset 10px 10px 10px 0px rgba(0, 0, 0),
    inset -10px -10px 10px 0px rgba(0, 0, 0);
    background-color: rgb(15, 15, 15);
    */
}

.sortImagesc div:hover .textualbox p{
    opacity: 100;
    transition: .5s ease;
    background-color: rgba(0, 0, 0, 0.608);
}

.imgcar{
    display: block;
    position: relative;
}
.imgcar div{
    position: absolute;
    top: -100;
    width: 100%;
    height: 400px;
    background-size:contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: fade 12s infinite;
    background-color: rgb(24, 24, 24);
}
.boxa21{
    display: block;
    height: 400px;
}

/* ========================= Maquinados  ========================= */
#boxspcial{
    align-items: normal;
}

ul {
    color: var(--font-dark);
    font-family: Gabarito;
    font-size: 22px;
    padding-left: 35px;
    padding-bottom: 10px;
}

#ab2img {
    padding-top: 10px;
    width: 100%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#ab2img img {
    min-width: 250px;
    width: 60%;
}

.dualboxb1{
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;    
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 20px;
}

.dboxsub1{
    width: 46%;    
    min-width: 250px;
    padding-left: 20px;
    padding-right: 20px;
}

.dboxsub1 img{
    width: 100%;
    max-width: 600px;
    float: right;
}
/* ========================= Supplies  ========================= */

.cardboxlyr{
    position: relative;
    height: 520px;
    width: 350px;
    display: flex;
    align-content: center;
    justify-content: center;
    border-radius: 20px;
    transition: .5s ease;
}
.cardboxlyr img{
    position: absolute;
    width: 350px;
    height: 100%;
}
.higherimg{
    z-index: 1;
}
.textualcard{
    position: absolute;
    z-index: 1;
    display: flex;
    align-content: center;
    justify-content: center;
    height: 100%;
}
.cardboxlyr p{
    align-self: center;
    text-align: center;
    color: white;
    font-family: Chakra Petch;
    font-weight: 700;
    font-size: 28px;
    padding-left: 10px;
    display: none;
    transition: .5s ease;
}
.cardboxlyr:hover p{
   display: block;
   transition: .5s ease;
}
.cardboxlyr:hover div{
    background-color: rgba(0, 0, 0, 0.671);
    transition: .5s ease;
}


#suppia {
    padding-bottom: 150px;
    padding-top: 150px;
    height: 100%;
    background-image: url("../img/alsuppliers/0.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
}

#suppia h2{
    color: white;
}

#suppia p{
    color: white;
}

.dualboxss {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    
}

.dualboxss div {
    width: 40%;
    min-width: 250px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
}


.imgside img {
    min-width: 250px;
    width: 100%;
}

#hidemob{
    display: none;
}

#nohidemob{
    display: flex;
}

#hidemob .imgside img {
    min-width: 250px;
    padding-left: 5%;
    width: 90%;
}

/* ========================= ImageCarrousel A ========================= */

#f5{
    animation-delay: 10s;
    background-image: url('../img/automatizacion/4.webp');
}
#f4{
    animation-delay: 8s;
    background-image: url('../img/automatizacion/3.webp');
}
#f3{
    animation-delay: 6s;
    background-image: url('../img/automatizacion/2.webp');
}
#f2{
    animation-delay: 4s;
    background-image: url('../img/automatizacion/1.webp');
}
#f1{
    animation-delay: 2s;
    background-image: url('../img/automatizacion/0.webp');
}

@keyframes fade {
    0% { opacity: 1;}
    20% { opacity: 1;}
    34% { opacity: 0;}
    88% { opacity: 0;}
    100% { opacity: 1;}
}

/* ========================= ImageCarrousel B ========================= */

.boxb1t{
    width: calc(400px * 3);
    overflow: hidden;
}

.boxb1{
    height: 400px;
    display: flex;
    animation: scroll 8s linear infinite;
}

  @keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-3345px)}
}

/* ========================= SIZES  ========================= */


@media only screen and (max-width: 1550px) {
    .jumplineb {
        padding-left: 170px;
        padding-right: 170px;
    }

    .sqboxa {
        width: 70%;
    }

    .dualbox div {
        width: 40%;
    }

    .dualboxss div {
        width: 40%;
    }
    .sortImagesc{
        padding-left: 160px;
        padding-right: 160px;
    }
    .dboxsub1{
        width: 98%;    
        min-width: 250px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .dboxsub1 img{
        float: none;
    }
    #dboximg{
        display: flex;
        align-items: center;
        justify-content: center;
    }

}

@media only screen and (max-width: 1340px) {
    .jumplineb {
        padding-left: 150px;
        padding-right: 150px;
    }

    .sqboxa {
        width: 75%;
    }

    .hlight {
        font-size: 55px;
    }

    .dualbox div {
        width: 95%;
    }

    .cajaa {
        width: 100%;
    }
    .sortImagesc{
        padding-left: 100px;
        padding-right: 100px;
    }

}

@media only screen and (max-width: 900px) {
    .jumplineb {
        padding-left: 60px;
        padding-right: 60px;
    }

    .myVideo {
        margin-top: -20px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 27px;
    }

    .pmain {
        font-size: 20px;
    }

    .sqboxa {
        width: 80%;
    }

    .hlight {
        font-size: 45px;
    }

    .dualbox div {
        width: 95%;
    }

    .dualboxss div {
        width: 95%;
    }

    ul {
        font-size: 18px;
    }
    #ab2img img {
        width: 85%;
    }
    .sortImagesc{
        padding-left: 60px;
        padding-right: 60px;
    }
    #nohidemob{
        display: none;
    }
    #hidemob{
        display: flex;
    }
}

@media only screen and (max-width: 500px) {
    .jumplineb {
        padding-left: 25px;
        padding-right: 25px;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 22px;
    }

    .pmain {
        font-size: 17px;
    }

    .sqboxa {
        width: 90%;
    }

    .qbdiv {
        min-width: 280px;
    }
    #ab2img img {
        width: 100%;
    }
    .sortImagesc{
        padding-left: 25px;
        padding-right: 25px;
    }

}