

body {
  margin: 0;
  padding: 0; /*quitar los margenes exteriores*/
}



.grid_servicios{
  margin-top: 15vh;
  display: grid;
  grid-template-columns: 20% 20% 20% 20%;
  justify-content: space-around;
  margin-bottom: 30px;
}



.cuadricula{
  width: 100%; /*100% de cada columna*/
  height: 50vh;
  border-radius: 2px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-bottom: 20vh;
  display:inline;
  margin: auto;
  text-align: center;
  margin-bottom: 5vh;
  padding-top: 10vh;
}

/*para las cuadriculas de accesorios info*/
.acc {
  width: 100%;
  height: 25vh;
  background-color: white;
  border-radius: 3px;
  padding-top: 2vh;
  margin-bottom: 10vh;
  display: flex; /*para que no se salga el contenido de cuadricula acc*/
  align-items: center;
}

.s{
  height: 20vh;
  grid-template-rows:150%;
}


.cuadricula img{
  width: 95%;/*que la foto ocupe el 100% del width de "cuadricula"*/
  border-radius: 0,5px;
  height: 100%;
  object-fit: cover;
  border: 2px solid #f09f07;
  margin: auto;
}

.acc img {
  object-fit: scale-down;
  background-color: white;
  border: 0 solid #f09f07;
}

.video_container{
  width: 100%;
  overflow:hidden;
  height: 100%;
  margin: auto;
  border: 2px solid #f09f07;
}

.cuadricula video{
  width: 200%;
  height: 100%;
  margin-left: -100px;
  object-fit:cover;
}

/* .cuadricula:hover{
  background-color: #f09f07;
  transition: 0.7s;
} */

.cuadricula_texto{

  font-family: 'Libre Franklin';
  font-size: 1.1em;
  text-align: center;
  margin-top:10%;
  color: #e3e3e3;
  width: 90%;
  margin: 2vh auto;
  margin-bottom: 8%;
}

.cuadricula a{
  text-decoration: none;
  color: black;
    background-color: #f09f07;
  padding: 1.2vh 1.2vw;
  font-size: 0.8em;
  margin-bottom: 3vh;
  color: black;
  font-weight: 600;
  border-radius: 7px;
  width: 5vw;
  margin: auto;
}

.acc > .cuadricula_texto{
  margin-top:5%;
  color: black;
  font-size: 1em;
}

.cuadricula a:hover{
  background-color: #999999;
  transition: 0.8s;
}


@media screen and (max-width: 1100px){ /*min-width */

  .grid_servicios{
    padding-top: 10vh;
    grid-template-columns: 30% 30% 30%;
  }

  .cuadricula_texto{
    font-size: 1.2em;
  }

  .cuadricula a{
    font-size: 0.8em;
  }

  .cuadricula{
    width: 90%;
    margin-bottom: 1vh;
  }

  .acc {
    grid-template-rows: 50% ;
    height: 35vh;
    margin-bottom: 4vh;
  }

  /*acc sub*/
  .s{
    height: 15vh;
    grid-template-rows:100%;
  } 

  .acc a{
    width: 15vw;
  }
}


@media screen and (max-width: 650px){ /*min-width*/

  /* .grid_servicios{
    padding-top: 100px;
    grid-template-columns: 90%;
    margin-bottom: 30px;
  } */

  .grid_servicios{
    grid-template-columns: 50% 50%;
  }

  .cuadricula_texto{
    font-size: 0.8em;
  }

  .cuadricula a{
    font-size: 0.7em;
    padding: 1vh 3vw;
  }

  .cuadricula{
    width: 80%;
    height: 20vh;
    margin: 0 auto;
    padding: 0 auto;
  }

  .acc {
    grid-template-rows: 50% ;
    height: 10vh;
    margin-top: 5vh;
    margin-bottom: 0vh;
    font-size: 0.8em;
  }

  .acc img{
    height: 100%;
  }



}

@media screen and (max-width: 350px){ /*min-width*/


  .grid_servicios{
    grid-template-columns: 52% 52%;
    margin-top: 5vh;
  }

  .cuadricula_texto{
    font-size: 0.8em;
  }

  .cuadricula a{
    font-size: 0.7em;
    padding: 1vh 3vw;
  }

  .cuadricula{
    font-size: 0.9em;
  }

  .acc {
    grid-template-rows: 50% ;
    height: 13vh;
    margin-top: 5vh;
    margin-bottom: 0vh;
    font-size: 0.55em;
  }

  .acc img{
    height: 100%;
  }

  h1 {
    font-size: 1em;
  }

  h2{
    font-size: 1em;
  }




}

