@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Roboto', sans-serif;
}

header {
    width: 100%;
    height: 70px;
    background: #14335E;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

header img {
    height: 50px;
    padding: 5px;
    margin: 5px;
    background: #fff;
}

#tienda {
    position: fixed;
    z-index: 100;
    right: 0px;
    bottom: 10%;
}

#tienda img {
     width: 150px;
}

.contenedor {
    width: 98%;
    margin: auto;
}

header h1 {
    float: left;
    padding: 4px;
}

header .contenedor {
    display: table;
}

#banner {
    display: none;
}

main {
    margin: 70px 20px 20px 20px;
}

section {
    width: 100%;
    margin-bottom: 25px;
}

h1 {
    color: #0C4C88; 
}

h2 {
   color: #2189C1; 
}

h3 {
    color: #0C4C88;
    padding: 20px 0;
}

p {
    color: #595959;
}

#cat_img {
    display: none;
}

#body {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid #2e318b;
    border-top: 1px solid #2e318b;
    padding: 20px 0;
}

#noticias {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #2e318b;
    border-top: 1px solid #2e318b;
    padding: 20px 0;
}

#body a {
    margin: 5px;
    width: 150px
}

#body img {
    width: 100%;
}

#video {
    width: 90%;
    margin: 20px;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #2e318b;
    padding-bottom: 20px;
}

#video div {
    width: 50%;
    min-width: 300px;
    margin: 10px;
}

#video p {
    text-align: justify;
    padding: 20px;
    font-size: 20px;
}

#video h2 {
    padding: 20px;
}

#youtube iframe {
    width: 100%;
}

.imgparrafo {
    display: flex;
    justify-content: center;
}

.imgparrafo img {
    width: 90%;
}

#slider {
    width: 100%;
    margin: auto;
    overflow: hidden;
    /*background-color: gainsboro;*/
    background-image: linear-gradient(to right, gainsboro , #fff , gainsboro);
    height: 100px;
    padding: 15px 0px;
}

#slider ul {
    padding: 0;
    display: flex;
    animation: cambio 30s infinite;
    animation-timing-function: linear;
    animation-direction: alternate;
    width: 480%;
}

#slider li {
    list-style: none;
    width: 40%;
}

#slider img {
    height: 50px;
    width: auto;
}

#slider img:nth-child(4) {
    height: 50px;
    width: auto;
}

@keyframes cambio {
    0% {margin-left: 0;}
    10% {margin-left: 0;}
    100% {margin-left: -480%;}
}

footer {
    width: 99%;
    background-color: #333333;
    margin-top: 15px;
}

.footer {
    text-align: left;
    padding-left: 30px;
    margin-top: 20px;
    color: #fff;
}

.footer a {
    text-decoration: none;
}

.footer li {
    list-style: none;
    padding-left: 50px;
}

.footer img {
    width: 20px;
    height: 20px;
    margin: 10px;
}

.imagenf {
    display: flex;
}

.imagenf p {
    margin: 10px;
    color: #fff;
}

.imagenf h4 {
    margin: 10px;
}

/* Nosotros */

h3 {
    font-size: 30px;
    margin-bottom: 10px;
}

.articulo {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #2e318b;
    border-radius: 10px;
    margin: 10px 0;
}

.icon {
    width: 100px;
    text-align: center;
}

#manos {
    background-color: aqua;
    padding: 11px;
    border-radius: 50%;
}

#conticon {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
}
/*
.articulo:nth-child(3) {
    border-bottom: none;
}
*/
.subarticulo {
    width: 90%;

    text-align: justify;
    margin: 10px;
    align-self: center;
    font-size: 15px;
}

.subarticulo p {
    width: 100%;
    padding: 10px;
    font-size: 15px;
}

.articulo:nth-child(1) .subarticulo:nth-child(2) {
    width: 100%;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
}

#mision {
    background-image: linear-gradient(to right, #00A5ED , #0D0156);
    transform: translateX(-15px);
    font-size: 13px;
    padding: 15px 10px;
}

#mision p {
    text-align: justify;
}

#vision {
    background-image: linear-gradient(to right, #A0A0A5, #59595B);
    transform: translateX(15px);
    font-size: 13px;
    padding: 15px 10px;
    margin-top: 10px;
}

#vision p {
    text-align: justify;
}

.articulo:nth-child(1) .subarticulo:nth-child(2) h2 {
    color: #fff;
}

.articulo:nth-child(1) .subarticulo:nth-child(2) p {
    color: #fff;
}

.articulo:nth-child(1) p {
    text-align: center;
}

.subarticulo h2 {
    text-align: center;
    margin-bottom: 5px;
}

/* Marcas */

#marcas {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid #2e318b;
    border-top: 1px solid #2e318b;
}

.marca {
    width: 90%;
    margin: 15px;
    border-bottom: 1px solid #2e318b;
    text-align: center;
}

.marca:nth-child(12) {
    border-bottom: none;
}

.marca p {
    margin: 15px 0px;
    text-align: justify;
}

.marca img {
    margin: 10px;
    height: 50px;
}

#dikamar {
    margin: 10px;
    height: 70px;
}

#safety {
    margin: 10px;
    height: 70px;
}

.marca div {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Asesorias */

#asesorias {
    width: 100%;
    align-items: center;
}

#asesorias div {
    width: 100%;
    padding: 20px;
}

#asesorias img {
    width: 100%;
}

.asesoriasparrafo p {
    padding: 20px;
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
}

.asesoriasparrafo p:nth-child(1) {
    background-image: linear-gradient(to right, #00A5ED , #0D0156);
    transform: translateX(-30px);
}

.asesoriasparrafo p:nth-child(2) {
    background-image: linear-gradient(to right, #A0A0A5, #59595B);
    transform: translateX(30px);
}

.asesoriasparrafo p:nth-child(3) {
    background-image: linear-gradient(to right, #00A5ED , #0D0156);
    transform: translateX(-30px);
}

.asesoriasparrafo p:nth-child(4) {
    background-image: linear-gradient(to right, #A0A0A5, #59595B);
    transform: translateX(30px);
}

.asesoriasparrafo p:nth-child(5) {
    background-image: linear-gradient(to right, #00A5ED , #0D0156);
    transform: translateX(-30px);
}

.asesoriasparrafo p:nth-child(6) {
    background-image: linear-gradient(to right, #A0A0A5, #59595B);
    transform: translateX(30px);
}

.asesoriasparrafo p:nth-child(7) {
    background-image: linear-gradient(to right, #00A5ED , #0D0156);
    transform: translateX(-30px);
}

/* Noticias */

.noticias {
    margin: 5px;
    left: 0;
}

.noticias h2 {
    margin: 20px
}

.noticias p {
    margin: 20px;
    text-align: justify;
    font-size: 20px;
}
/* Galeria */

.galeria {
    
    margin: 10px 0px;
    width: 100%;
    list-style: none;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.galeria img {
    max-width: 50px;
}

.modal{
    display: none;
}

.modal:target {
    display: block;
    position: fixed;
    background: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 40px;
}

.modal h3 {
    color: #fff;
    font-size: 30px;
    text-align: center;
    margin: 5px 0px;
}

.imagen-galeria {
    width: 100%;
    height: 70%;
    display: inline-block;
    text-align: center;
}

.imagen-galeria a {
    color: #fff;
    font-size: 40px;
    text-decoration: none;
    margin: 0 10px;
}

.imagen-galeria a:nth-child(1) {
    position: absolute;
    top: 50%;
    transform: translate(-100%);
}

.imagen-galeria a:nth-child(3) {
    position: absolute;
    top: 50%;
}

.imagen-galeria a:nth-child(2) {
    margin: 0;
}

.imagen-galeria img {
    max-width: 340px;
    border: 7px solid #fff;
    box-sizing: border-box;
}

.cerrar {
    background: #fff;
    padding: 7px;
    text-decoration: none;
    color: #000;
    border-radius: 50%;
    line-height: 25px;
}

#cerrar {
    width: 100%;
    position: absolute;
    text-align: center;
}

/*contactenos*/

#contactenos {
    display: flex;
}

#conimg img {
    margin: 10px 0;
}

#contactenos iframe {
    margin-top: 1;
    width: 300px;
    height: 1000px;
}

#conimg {
    width: 100%;
}

/*productos*/

#body_productos {
    display: flex;
}

#arbol a {
    text-decoration: none;
    color: #595959;
}

#body_productos h5 {
    color: #0C4C88;
    font-size: 20px;
    margin: 20px 0;
}

#body_productos li {
    list-style: none;
    margin: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #979494 ;
    font-size: 14px;
}

#arbol {
    width: 20%;
    margin-right: 40px;
}

#ventana {
    width: 80%;
}

#ventana h5 img {
    height: 70px;
    width: auto;
    margin-right: 20px;
}

#proximamente {
    margin: 50px;
}

#proximamente h3 {
    text-align: center; 
}

#marcas_img img {
    height: 55px;
    margin: 30px;
}

#marcas_img div {
    display: flex;
    justify-content: center;
}

/*todos los productos*/

h5 img {
    width: 200px;
}

#productos {
    display: flex;
    flex-wrap: wrap;
}

.producto {
    width: 40%;
    margin: 10px;
    border-bottom: 1px solid #979494;
    border-right: 1px solid #979494;
    padding-bottom: 10px;
    padding-right: 10px;
}

.producto h6 {
    color: #0C4C88;
    font-size: 14px;
    margin: 10px 0;
}

.producto h7 {
    color: #0C4C88;
    font-size: 12px;
}

.producto img {
    margin: 20px;
    max-width: 70px;
    max-height: 70px;
    display: block;
    margin: auto;
}

.producto a {
    text-decoration: none;
}

.container-pop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 40px;
    visibility: hidden;
}

.container-pop:target {
    background: rgba(0,0,0,0.8);
    visibility: visible;
}

.popup {
    max-width: 300px;
    max-height: 500px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
}

.info-pop {
    transform: translate(10%)
}

.img-pop {
    width: 50%;
    margin: 30px;
    display: flex;
    justify-content: center;
}

.text-pop {
    width: 80%;
    margin: 30px 10px 30px 0px;
    border-top: 1px solid #979494;
    padding-left: 30px;
    max-height: 250px;
    overflow-y: auto;
}

.text-pop h7 {
    color: #0C4C88;
    font-size: 17px;
}

.text-pop h6 {
    color: #0C4C88;
    font-size: 20px;
    margin: 20px 0;
}

.cotizar {
    color: #fff;
    text-decoration: none;
    background-color: #0C4C88;
    padding: 10px 30px;
    position: relative;
    left: 32%;
}

.btn-pop {
    color: #fff;
    text-decoration: none;
    position: relative;
    left: 97%;
    padding: 10px;
    background-color: #0C4C88;
    border-radius: 50%;
}

@media(min-width:1024px) {
    header {
        height: 40px;
    }
    
    #banner {
        width: 100%;
        display: block;
        overflow: hidden;
        margin-top: 40px;
        border-bottom: 1px solid #0C4C88 ;
    }
    
    #banner ul {
        display: flex;
        width: 200%;
        animation: cabezote 20s infinite;
        animation-timing-function: step-start;
    }
    
    #banner li {
        list-style: none;
        width: 100%;
    }
    
    #banner img {
        width: 100%;
    }

    
    @keyframes cabezote {
        0% {margin-left: 0;}
        45% {margin-left: 0;}

        50% {margin-left: -100%;}
        100% {margin-left: -100%;}
    }
    
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 10px 20px 20px 20px;
    }

    #cat_img {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 30px;
    }

    #cat_img a {
        width: 20%;
        margin: 10px;
    }

    #cat_img img {
        width: 100%;
    }
    
    #body a {
        width: 20%;
    }
    
    #video {
        width: 90%;
        flex-wrap: nowrap;
        align-items: center;
    }

    .imgparrafo img {
        width: 70%;
    }
    
    #youtube {
        text-align: center;
    }

    #youtube iframe {
        width: 560px;
        height: 315px;
    }
    
    #slider {
        height: 120px;
    }
    
    #slider ul {
        width: 300%;
    }
    
    #slider img {
        height: 90px;
    }  
        
    #slider li {
        width: 20%;
        display: flex;
        justify-content: center;
    }
    
    @keyframes cambio {
        0% {margin-left: 0;}
        10% {margin-left: 0;}
        100% {margin-left: -260%;}
    }
    
    footer {
        display: flex;
    }
    
    .footer {
        width: 33%;
    }
    
    .articulo {
        display: flex;
        flex-direction: row;
    }
    
    .subarticulo p {
        font-size: 20px;
    }
    
    #asesorias {
        display: flex;
    }
    
    #contactenos iframe {
        width: 640px;
        height: 930px;
    }
    
    #conimg {
    width: 40%;
    }
    
    #marcas_img {
        margin: 5px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    
    #marcas_img div {
        padding: 5px;
        width: 30%;
    }
    
    .galeria img {
        max-width: 150px;
    }
    
    #marcas {
         width: 90%;
    }
    
    .marca {
        width: 30%;
        padding: 20px;
    } 
    
    .marca:nth-child(12) {
    border-bottom: none;
    }
    
    .marca:nth-child(11) {
    border-bottom: none;
    }
    
    .marca:nth-child(10) {
    border-bottom: none;
    }
    
    .producto {
    width: 20%;
    margin: 20px;
    }
    
    .producto h6 {
        margin: 20px 0;
    }
    
    .producto img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .popup {
        width: 100%;
        max-width: 700px;
        max-height: 400px;
    }
    
    .info-pop {
        display: flex;
        align-items: center;
    }
    
    .text-pop {
        width: 60%;
        margin: 30px 30px 30px 0px;
        border-left: 1px solid #979494;
        border-top: none;
    }
    
    .img-pop {
        width: 40%;
    }
    
    .cotizar {
        left: 42%;
    }
    
    .info-pop {
        transform: translate(0%);
    }
}