* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --colorPrimario: rgb(195, 46, 46);
  --colorSecundario: #ffae9c;
  --colorTerciario: rgb(231, 231, 231);
  --colorNegroDifuminado: rgb(38, 38, 44);
}

body {
  background-color: var(--colorTerciario);
  font-family: Roboto, sans-serif;
  font-weight: 400;
}

.link-whatsapp {
  background-color: red;
  width: 300px;
  height: 300px;
}

.ico-whatsapp {
  position: fixed;
  width: 3em;
  height: 3em;
  bottom: 1em;
  right: 1em;
  z-index: 2000;
  border-bottom-right-radius: 50%;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}

/* ------------------------- BARRA DE NAVEGACIÓN ------------------------- */

nav {
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: auto;
  padding: 0 1% 0 1%;
  background-color: var(--colorTerciario);

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: 0px 1px 9px rgb(113, 109, 109);
}

#silser img {
  width: 11rem;
  height: auto;
}

#home-nav {
  width: 25px;
  height: 25px;
}

#logo-sub {
  font-size: 1em;
  color: black;
  text-align: center;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.nav-links li {
  border-left: 1px solid grey;
}

.nav-links li:last-child {
  border: none;
}

.nav-links li a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  padding: 0.5em 2em;
}

.nav-links .btn-contacto {
  background-color: var(--colorPrimario);
  color: var(--colorTerciario);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  padding: 0.5em 1em;
}

.activo {
  font-weight: 700;
}

/* ------------------------- HOVER MENU ------------------------- */

nav ul li a:hover {
  font-weight: bold;
  letter-spacing: 0.3px;
  transition: all 0.3s ease-in;
  -webkit-transition: all 0.3s ease-in;
  -moz-transition: all 0.3s ease-in;
  -ms-transition: all 0.3s ease-in;
  -o-transition: all 0.3s ease-in;
}

/* ------------------------- BURGUER MENU ------------------------- */

.burguer-menu {
  display: none;
}

.burguer-menu div {
  width: 25px;
  height: 3px;
  margin: 5px;
  background-color: var(--colorPrimario);
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

/* ------------------------- BOTON CERRAR MENU X ------------------------- */
.barras .linea1 {
  transform: rotate(-45deg) translate(-5px, 6px);
  -webkit-transform: rotate(-45deg) translate(-5px, 6px);
  -moz-transform: rotate(-45deg) translate(-5px, 6px);
  -ms-transform: rotate(-45deg) translate(-5px, 6px);
  -o-transform: rotate(-45deg) translate(-5px, 6px);
}
.barras .linea2 {
  opacity: 0;
}
.barras .linea3 {
  transform: rotate(45deg) translate(-5px, -6px);
  -webkit-transform: rotate(45deg) translate(-5px, -6px);
  -moz-transform: rotate(45deg) translate(-5px, -6px);
  -ms-transform: rotate(45deg) translate(-5px, -6px);
  -o-transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateZ(50px);
    -webkit-transform: translateZ(50px);
    -moz-transform: translateZ(50px);
    -ms-transform: translateZ(50px);
    -o-transform: translateZ(50px);
  }

  to {
    opacity: 1;
    transform: translateZ(0px);
    -webkit-transform: translateZ(0px);
    -moz-transform: translateZ(0px);
    -ms-transform: translateZ(0px);
    -o-transform: translateZ(0px);
  }
}
/* ------------------------- FIN BOTON CERRAR MENU X ------------------------- */

/* ------------------------- SECCIÓN 2 CAJA ANUNCIOS ------------------------- */
.servicios {
  margin-top: 50px;
  width: 100%;
  height: auto;
  padding: 1em;
  background-color: var(--colorPrimario);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1em;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 9px black;
}

.servicios img {
  object-fit: contain;
  width: 10em;
  height: 10em;
  padding: 2rem;
  background-color: var(--colorPrimario);
}

@keyframes servicios-anuncio {
  from {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
  to {
    transform: scale(0.97);
    -webkit-transform: scale(0.97);
    -moz-transform: scale(0.97);
    -ms-transform: scale(0.97);
    -o-transform: scale(0.97);
  }
}

.servicios-anuncio {
  width: 100%;
  height: auto;
  padding: 1.5rem;
  background-color: var(--colorPrimario);
  text-align: center;
  color: white;
  border-radius: 5%;
  -webkit-border-radius: 5%;
  -moz-border-radius: 5%;
  -ms-border-radius: 5%;
  -o-border-radius: 5%;
  box-shadow: 0px 2px 10px rgb(69, 14, 14);
  animation: servicios-anuncio 1.5s ease-in-out infinite alternate;
  -webkit-animation: servicios-anuncio 1.5s ease-in-out infinite alternate;
}

.servicios-anuncio h2 {
  padding: 0.5em;
}

.servicios-anuncio p {
  padding: 1rem;
}

/* ------------------------- Sección 3 MARCAS RELACIONADAS ------------------------- */

.marcas-relacionadas {
  width: 100%;
  margin-top: 2rem;
  background-color: var(--colorTerciario);
  text-align: center;
  padding: 2em 0;
}

.marcas {
  width: 100%;
  height: auto;
  margin: auto;
}

.marcas img {
  width: 350px;
  height: 150px;
  margin: 1rem;
  box-shadow: 0px 0px 20px black;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

/* ------------------------- SECCION 4: MEDIOS DE PAGOS ------------------------- */
.mediosPago {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mediosPago p {
  padding: 0 2em;
  text-align: center;
}

.mediosPago ul {
  width: 90%;
  margin: 5em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 0.5em;
}

.mediosPago ul li {
  width: auto;
  list-style: none;
}

.mediosPago ul li img {
  box-shadow: 0px 0px 1px black;
  width: 4em;
  height: 2em;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  -ms-border-radius: 2px;
  -o-border-radius: 2px;
}

/* ------------------------- FOOTER ------------------------- */
footer {
  width: 100%;
  padding: 3em 0.5em;
  background-color: var(--colorPrimario);
  color: white;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contacto,
.redes {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.contacto ul li {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 1.5em 0;
}

.contacto ul li img {
  width: 2em;
  height: 2em;
  margin-right: 1em;
}

.redes ul {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.redes ul li {
  align-items: center;
}

.redes ul li a {
  margin: 2em;
}

.redes ul li a img {
  width: 2.5em;
  height: 2.5em;
}

.redes ul li {
  list-style: none;
}

.redes ul li img:hover {
  transform: rotateY(-360deg);
  -webkit-transform: rotateY(-360deg);
  -moz-transform: rotateY(-360deg);
  -ms-transform: rotateY(-360deg);
  -o-transform: rotateY(-360deg);
  transition: 2.5s;
  -webkit-transition: 2.5s;
  -moz-transition: 2.5s;
  -ms-transition: 2.5s;
  -o-transition: 2.5s;
}

.mapa {
  padding: 0.5em;
}

/* ------------------------- MEDIA QUERY MENU ------------------------- */

@media screen and (max-width: 940px) {
  body {
    overflow-x: hidden;
  }

  .logo {
    margin: 0.5rem 0;
  }

  #silser img {
    object-fit: cover;
    width: 110px;
    height: auto;
  }

  #home-nav {
    display: none;
  }

  #logo-sub {
    font-size: 0.5em;
    vertical-align: middle;
  }

  .servicios {
    height: 100%;
    padding: 2rem 0.5rem;
    display: flex;
    flex-direction: column;
  }

  .servicios-anuncio {
    margin: 0;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--colorTerciario);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transition: all 0.5s ease-in;
    -webkit-transition: all 0.5s ease-in;
    -moz-transition: all 0.5s ease-in;
    -ms-transition: all 0.5s ease-in;
    -o-transition: all 0.5s ease-in;
  }

  .logo {
    position: relative;
    z-index: 5000;
    text-align: center;
  }

  nav {
    position: fixed;
    z-index: 3000;
    width: 100vw;
  }

  .nav-links li {
    display: flex;
    opacity: 0;
    border: none;
  }

  .nav-links li a {
    padding: 2em 0;
  }

  .btn-contacto {
    margin-top: 1em;
  }

  .burguer-menu {
    display: block;
    cursor: pointer;
  }

  /* ------------------------- TEXTO BANNER Y SECCIONES PRODUCTOS, SERIVIOS, MARCAS Y REDES ------------------------- */

  .titulo-banner {
    font-size: 1.4rem;
  }

  .texto-banner {
    font-size: 1.2rem;
  }

  .titulos {
    font-size: 1.2rem;
  }

  .mediosPago p {
    font-size: 1rem;
    text-align: justify;
    letter-spacing: -1px;
  }

  .marcas img {
    width: 190px;
    height: 90px;
    margin: 0.2rem;
  }

  .redes {
    height: 200px;
  }
}

@media screen and (max-width: 1100px) {
  #logo-sub {
    display: block;
    font-size: 0.8rem;
  }
}

/* ------------------------- FIN MEDIA QUERY ------------------------- */
/* ------------------------- CLASES ACTIVAS PARA JAVASCRIPT ------------------------- */

.nav-active {
  transform: translateX(0%);
  -webkit-transform: translateX(0%);
  -moz-transform: translateX(0%);
  -ms-transform: translateX(0%);
  -o-transform: translateX(0%);
}
