@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'open sans';
}

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

/* Header */

header {
    width: 100%;
    height: 300px;
    background-image: linear-gradient(to bottom right, rgba(255,255,255,1), rgba(40,139,168,1));
}

nav{
    text-align: right;
    padding: 30px 1px 0 0;
}

nav > a{
    color:#000;
    font-weight: 300;
    text-decoration: none;
    margin-right: 60px;
}

nav > a:hover{
    text-decoration: underline;
}
header .logo .imagen{
width:150px;
height:130px;
float: left;
margin-left: 150px;
 max-width: 300px;

   
}

header .textos-header{
    display: flex;
    height: 130px;
    width: 50%;
    max-width: 1000px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    float: center;
}

.textos-header h1{
    font-size: 50px;
    color:#fff;
}

.textos-header h2{
    font-size: 30px;
    font-weight: 300;
    color:#fff;
}

/*  Our team */
main{
  font-family: 'Montserrat', sans-serif;
}
main .productos{
  padding: 1px 0 1px 0;
  margin-top: 2px;
}

.contenedor-productos{
  display: flex;
  justify-content: space-evenly;
  
}

.imagen-about-us{
  width: 48%;
}

.sobre-nosotros .contenido-textos{
  width: 100%;
}

.contenido-textos h3{
  margin-bottom: 5px;
  color: #075e54;
  font-family: inherit;
  font-size: 22px;
  line-height: 40px;
}

.contenido-textos h3 span{
  background: #4D8C90;
  color: #C4CAA4;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  width: 30px;
  height: 30px;
  padding: 2px;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
  margin-right: 5px;
}

.contenido-textos p{
  padding: 0px 0px 30px 15px;
  font-weight: 300;
  text-align: justify;
  font-family: inherit;
  font-size: 22px;
  line-height: 40px;
}



.linea{
    background: #550b51;
    height: 9px;
    width: 95%;
    display: block;
    margin: auto;
}
.galeria{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  width: 95%;
  margin: auto;
  grid-gap:10px;
  padding: 40px 0;
  overflow: hidden;
}
.galeria >a{
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, .5);
}
.galeria img{
  width: 100%;
  vertical-align: top;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}

.galeria a:hover img{
  filter: blur(2px);
  transform: rotate(10deg) scale(1.3);

}

.cajah{
  position: fixed;
  top:0;
  left: 0;
  background: rgba(0, 0, 0, .5);
  transition: transform .3s ease-in-out;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  display: flex;
  justify-content: center;
  justify-content: center;
  align-items: center;
  transform: scale(0);
}
.cajah img{
  width: 75vw;
  max-height: 70vh;

}

.cajah:target{
  transform: scale(1);

}
.close{
  display: block;
  position: absolute;
  top: 40px;
  right: 40px;
  background: #851919;
  color: #fff;
  text-decoration: none;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
}

.next{
  display: block;
  background: #550b51;
  color: #fff;
  height: 30px;
  width: 30px;
  text-decoration: none;
  text-align: center;
}


/* footer */

footer .redes-sociales {
  background: #1e2b38;
  padding: 0.1px 0; 
}
  footer .redes-sociales .contenedor {
    display: flex;
    justify-content: center; 
  }
    footer .redes-sociales .contenedor a {
      color: #fff;
      text-align: center;
      width: 100px;
      font-size: 30px;
      padding: 0.1px 0;
      display: block;
      margin: 0 20px;
      border-radius: 3px; 
    }
         footer .redes-sociales .contenedor .facebook {
      background: #55acee; 
    }
    footer .redes-sociales .contenedor .whatsapp {
      background: #075e54; 
    }
    footer .redes-sociales .contenedor .linkedln {
      background: #0077b5; 
    }
    footer .redes-sociales .contenedor .instagram {
      background: #e1306c; 
    }
    footer .redes-sociales .contenedor .facebook:hover {
      background: #000; 
    }
    footer .redes-sociales .contenedor .whatsapp:hover {
      background: #000; 
    }
    footer .redes-sociales .contenedor .linkedln:hover {
      background: #000; 
    }
    footer .redes-sociales .contenedor .instagram:hover {
      background: #000; 
    }
  
    footer .final {
      background: #000;
      padding: 4px 0;
    }
      footer .final .contenedor {
        background: #000;
        padding: 4px 0;
      }
        footer .final .contenedor .copyright {
          text-align: center;
          padding: 1px 0;
          color: #fff;
        }




@media screen and (max-width:900px){
  header .logo .imagen{
    width:100px;
    height:90px;
    margin-top: 30PX;
    margin-left: 50px;
    max-width: 100px;
    }
   header .textos-header{
    margin: 0 auto;
    margin-top: 25px;
    text-align: left;
   }
                    
   .textos-header h1{
    font-size: 26px; 
   }
                    
    .textos-header h2{
     font-size: 20px;
     }

  .img_alarmas:last-of-type{
      grid-column: 1/-1;
  }
  .contenido-textos h3{
    font-size: 16px;
    line-height: 30px;
  }
  .contenido-textos p{
    font-size: 16px;
    line-height: 30px;
  }
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .galeria{
      grid-template-columns: repeat(auto-fit,minmax(200px,1fr) );
    }
    .close{
      top: 20px;
      right: 20px;
    }
    
    /* Footer */

    footer .redes-sociales .contenedor {
    flex-wrap: wrap; 
  }
  footer .redes-sociales .contenedor > a {
   margin-right: 5px;
   margin: 1px 1px;
  }
}

 @media screen and (max-width:376px){
  header .logo .imagen{
   width:80px;
   height:70px;
   margin-left: 25px;
  }
  header .textos-header{
    margin-top: 1px;
  }
  .textos-header h1{
   font-size: 20px; 
  }
  .textos-header h2{
   font-size: 14px;
   text-align: center;
  }
 }