*{
  padding: 0;
  margin: 0;
}
body{
  background: #fff;
  font-family: 'Source Sans Pro', sans-serif;
}
a{
  text-decoration: none;
  
}
.container{
  width: 100%;
  height: 100%;
  display: grid;
  grid-template: auto 1em auto 1em auto auto auto/1fr;
  
  
  /* border: solid 3px green; */
  box-sizing: border-box;
  position: relative;
  
}
.header{
  /* border: solid red 1px; */
  background: #fff;
  border-radius: 0 0 10% 10%;
  display: flex;
  justify-content: space-between;
  flex-flow: row nowrap;
  padding: 0 15px;
  line-height: 1.5em;
  position: relative;
  z-index: 4;
  
}
.header a {
  color: black;
}

.social{
  /* border: yellow solid 2px; */
  align-self: center;
  
  
}
.icono{
  margin-right: 5px;
}
.fa-facebook{
  color: #3b5998;
}
.fa-instagram{
  color: #cc0153;
}
.fa-whatsapp{
  color: #72b239;
}
.tel{
  font-weight: bold;
  font-size: 1.2em;
}
.fa-envelope{
  color: #ff423c;
}
.contact{
  align-self: center;
}
.logo{
  /* border: solid black 2px; */
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

}
.logo img{
  width: 15em;
  height: 100%;
  
}
.relleno{
  width: 100%;
  height: 200%;
  background: #1a1a1a;
  position: relative;
  top: -1em;
  z-index: 2;
}
.relleno2 {
  width: 100%;
  height: 130%;
  background: #1a1a1a;
  position: relative;
  top: -0.2em;
  z-index: 3;
  

  
}
.relleno2 img{
  width: 20em;
  position: absolute;
 right: 0;
}

.hero{
  
  background: url(./images/banner.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: center;

  /* background-position-x: -2em; */
  
  
 
  
  
  
}
.hero img {
  visibility: hidden;
  width: 100%;
}
.nav{
  width: 90%;
  margin: 0 auto;
 
  position: relative;
  z-index: 2;
  
}
.nav img{
  width: 100%;
 
  box-shadow: 5px 5px 17px -8px rgba(0,0,0,0.75);
  display: block;
  border-radius: 0  0 3em 3em;
}
.catalogo-container{
  background: #fff;
}
nav{
  width: 80%;
  padding: 0.3em;
  margin: 0 auto;
  text-align: center;
  background: #1a1a1a;
  border-radius: 0 0  3em 3em;
}
nav a {
  color: white;
  padding: 0.6em;
  font-weight: bold;
  font-size: 1.1em;
}
nav a:hover{
  color: #ff111c;
 
}
.tapas{
  background: url(./images/tapasheader.png);
  background-size: 15em;
  background-repeat: no-repeat;
  margin:0 auto;
  width: 90%;
  height: 100%;
  /* border: 2px blue solid; */
  display: flex;
  margin-top: 1em;
  box-shadow: 8px 8px 6px -7px rgba(0,0,0,0.75);
  /* border-left: 2px solid #1a1a1aaf; */
}
h1{
  color: white;
  text-align: center;
}
.tapas.sistemas{
  background: url(./images/sistemasheader.png);
  background-size: 15em;
  background-repeat: no-repeat;
  background-position-x: right;
}
.tapas.tornillos{
  background: url(./images/tornillosheader.png);
  background-size: 15em;
  background-repeat: no-repeat;
  
}
.tapas.repuestos{
  background: url(./images/repuestosheader.png);
  background-size: 15em;
  background-repeat: no-repeat;
  background-position-x: right;
}
/* ESTILO DE LA GALERIA */
.galeria{
  width: 100%;
  margin: auto;
  list-style: none;
  padding: 4em 3em 2em 3em;
  box-sizing: border-box;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.galeria li {
  margin: 5px;
  border-bottom: 2px solid #ff111c;
  text-align: center;
  font-size: 1.2em;
  font-weight: 500;
  
  
  padding-bottom: 0.2em; 
}
.galeria li a {
  color: #000;
}

.galeria img {
  width: 232px;
 
  display: block;
}
/* ESTILOS DEL MODAL */

.modal{
  display: none;

}
.modal:target {
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  top: 0;
  left: 0;
  width: 100vw;
  height:100% ;
  z-index: 6;

}
.modal h3 {
  color: #fff;
  font-size: 30px;
  text-align: center;
  margin: 15px 0;
  width: 100%;
}
.imagen{
  width: 100%;
  

  display: flex;
  justify-content: center;
  align-items: center;
}
.imagen a {
  color: #fff;
  font-size: 40px;
  text-decoration: none;
  margin: 0 10px;

}
.imagen a:nth-child(2){
  margin: 0;
  height: auto;
  flex-shrink: 2;
}
.imagen img {
  width: 500px;
  height: auto;
  max-width: 100%;
  border: 6px solid #3131;
  box-sizing: border-box;
  display: block;
  margin: auto;
}
.cerrar{
  display: block;
  background: #fff;
  width: 25px;
  height: 25px;
  margin: 24px auto;
  text-align: center;
  text-decoration: none;
  font-style: 25px;
  color:#000;
  padding: 5px;
  border-radius: 50%;
  line-height: 25px;


}
.cerrar:hover{
  background: #ff111c;
  color: white;
}
.footer {
  position: relative;
  /* top: -40px; */
  z-index: 3;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 300px;
  background: #222222;
  border-radius: 7% 7% 0% 0%;
  color: #fff;
  
  text-align: center;
  margin-top: 1em;
  /* border-top: 2px solid #de1822d7; */
}
.footer h2{
  margin-bottom: 10px;
 
}


.contactanos{
  text-align: left;
  display: grid;
  justify-self: center;
}
.contactanos span {
  margin-top: 1em;
}
.siguenos{
  display: block;
  grid-template-rows: 20% 80%;
}
.siguenos .social{
  position: relative;
  align-self:center;
  top:-20px; 
}
.siguenos span{
  font-size: 30px;
  padding: 10px;
}

 @media screen and (max-width: 768px){
  .header {
    justify-content: center;
  }
  .marca{
    display: none;
  }
  .social{
    display: none;
  }
  .contact{
    display: none;
  }
  .hero{
  
    background: url(./images/banner780.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
  
    /* background-position-x: -2em; */
    
    
   
    
    
    
  }
  .hero img {
    visibility: hidden;
    width: 171%;
  }
  .relleno2 img {
    width: 15em;
  }
  .nav{
    width: 100%;
  }
  nav {
    width: 79%;
    padding: 0.3em;
    margin: 0 auto;
    text-align: center;
    background: #1a1a1a;
    border-radius: 0 0 3em 3em;
}

.footer {
  
  grid-template-columns: 1fr 1fr;
  
}

} 

@media screen and (max-width: 679px){
  .container {
    
    grid-template: auto 1em auto 1em auto auto/1fr;
    
  }
  .tapas {
    
    background-size: 12em;
    
}
  .header {
    
    /* border: solid red 1px; */
    justify-content: center;
    flex-flow: row wrap;
  
  }
.social {
  /* border: yellow solid 2px; */
  align-self: center;
  width: 50%;
}
.logo {
  /* border: solid black 2px; */
  
  order: 3;
  
}
.relleno2 img {
  width: 15em;
}
}
@media screen and (max-width: 644px){
  .tapas {
    
    width: 98%;
    
}
.galeria {
  
  padding: 5em 1em 2em 1em;
  
}
.galeria img {
  width: 193px;
  
}
}

@media screen and (max-width: 566px){
  nav {
    width: 94%;
}
nav a {
  padding: 0.5em;
}
.nav img {
  
  border-radius: 0 0 1em 1em;
}
}
@media screen and (max-width: 446px){
  .galeria {
    padding: 5em 0em 2em 0em;
}
}
@media screen and (max-width: 425px){
  .modal:target {
    
    width: 100vw;
   
  
  }
  nav a {
    padding: 0.3em;
    font-size: 1em;
  }

}
@media screen and (max-width: 375px){
  .galeria img {
    width: 151px;
}
}
@media screen and (max-width: 320px){
  .modal:target {
    
    width: 100vw;
   
  
  }
  
}
