@import url("https://fonts.googleapis.com/css2?family=Poppins&family=Rubik&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "poppins", "Courier New", Courier, monospace;
}

body {
  font-family: "Roboto", sans-serif;
  display: grid;
  grid-template-rows: 1fr;
}

html {
  scroll-behavior: smooth;
}

.container {
  margin: 0 auto;
  width: 100;
  overflow: hidden;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2)),
    url("./assets/auto-4155651_1920-min.jpg");
  background-size: cover;
  min-height: 100vh;
  height: 100vh;
  color: #fff;
}

.nav {
  --state-close: scale(0);
  --state-hamburguer: scale(1);
  --state-menu: translate(-100%);
  background-color: #000;
  padding: 1em;
  display: grid;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: repeat(2, max-content);
}

.nav:target {
  --state-menu: translate(0);
  --state-close: scale(1);
  --state-hamburguer: scale(0);
}

.nav__logo {
  max-width: 10em;
  z-index: 1;
}

.nav__hamburguer,
.nav__close {
  cursor: pointer;
  grid-column: -2/-1;
  grid-row: 1/2;
  transition: 0.4s transform;
}

.nav__hamburguer {
  transform: var(--state-hamburguer);
}

.nav__close {
  transform: var(--state-close);
}

.nav__icon {
  width: 40px;
}

.nav__links {
  background-color: #000;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;

  display: grid;
  align-content: center;
  gap: 2em;
  padding-left: 5%;

  transform: var(--state-menu);
  transition: 0.3s transform;
}

.nav__item {
  list-style: none;
}

.nav__link {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

a {
  color: white;
  text-decoration: none;
}
a :hover {
  color: #0f4d80;
}

.nav__item :hover {
  color: #0f4d80;
}

.tituloheader {
  display: flex;
  min-width: 17em;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
  min-height: 100vh;
  padding-top: 40%;
  gap: 2em;
}

.textoheader p {
  font-size: 1em;
}

.comoelprimerdia {
  font-size: 2em;
}

.buttonheader {
  background-color: black;
  min-height: 5em;
  align-items: center;
  justify-content: center;
  padding: 1em;
}

.buttonheader:hover {
 background-color: #021729;
 border-width: 1px;
}

.buttonheader p {
  padding-top: 0.5em;
}

.titulo {
  align-self: center;
  margin-bottom: 1em;
  margin-top: 2em;
}


.servicios {
  background-color: #0f4d80;
  min-height: 100vh;
  color: white;
  text-align: center;
  padding-top: 3em;
}

.containerservicios {
  background-color: #0f4d80;
}

.botoncontacto {
  background-color: black;
  min-height: 2em;
  align-items: center;
  justify-content: center;
  padding: 1em;
  margin-top: 5em;
  max-width: 10em;
  align-self: center;
}
.detailing {
  background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2)),
    url("assets/car-detailing-7223497_1920-min.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pintura {
  background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2)),
    url("assets/service-worker-painting-car-auto-service-min.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.desabolladura {
  background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2)),
    url("assets/close-up-car-care-process-min-min.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nosotros {
  background-color: white;
  color: black;
  min-height: 100vh;
  text-align: center;
  padding-top: 3em;
}

.containernosotros {
  background-color: white;
}
.rapidez {
  background-image: linear-gradient(rgb(255, 255, 255), rgba(0, 0, 0, 0.2)),
    url("assets/pexels-jay-pizzle-3849551-min.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.transparencia {
  background-image: linear-gradient(rgb(255, 255, 255), rgba(0, 0, 0, 0.2)),
    url("assets/ferrari-458-spider-2932191_1280-min-min.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.seriedad {
  background-image: linear-gradient(rgb(255, 255, 255), rgba(0, 0, 0, 0.2)),
    url("assets/pexels-pixabay-237195-min.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contacto {
  background-color: #b9cad3;
  color: #0f4d80;
  min-height: 100vh;
  text-align: center;
  padding-top: 3em;
}

.containercontacto {
  background-color: white;
}

.ubicacion {
  background-color: black;
  color: white;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.horario {
  background-color: #0f4d80;
  color: white;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.iconosredessociales {
  gap: 1em;
  display: block;
  align-items: center;
}

.redessociales {
  background-color: white;
  color: black;
  min-height: 30em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
}

.iconoredsocial {
  width: 5em;
  margin: 0, 5em;
}

.footer {
  background-color: black;
  min-height: 10vh;
  display: flex;
  flex-direction: column;
  color: white;
  text-align: center;
  align-items: center;
  padding: 1, 5em;
  padding-bottom: 5em;
}

.logofooter {
  max-width: 10em;
  margin: 1em;
}

.opcionesfooter {
  display: flex;
  flex-direction: column;
  padding: 1em;
  gap: 1em;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .btn-wsp {
    display: block;
    width: 63px;
    height: 63px;
    line-height: 66px;
  }
}

/* MODIFICACIONES MEDIA QUERY TABLET*/

@media (min-width: 768px) {
  .nav {
    --state-hamburguer: scale(0);
    --state-menu: translate(0);
    background-color: #000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
  }

  .nav:target {
    --state-close: scale(0);
  }

  .nav__links {
    padding: 0;
    background-color: unset;
    position: unset;
    gap: 1.5em;
    grid-auto-flow: column;

    transform: unset;

    grid-column: -2/-1;
    grid-row: 1/2;
  }

  .nav__link {
    font-size: 1rem;
    letter-spacing: none;
  }

  #logonav {
    display: none;
  }

  .tituloheader {
    padding-top: 30%;
  }
  .textoheader p {
    font-size: 1, 5em;
  }

  .comoelprimerdia {
    font-size: 3em;
  }

  .containercontacto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .footer {
    flex-direction: row;
  }
  .opcionesfooter {
    flex-direction: row;
    align-items: center;
  }
  .logofooter {
    width: 50em;
  }
}

/* MODIFICACIONES MEDIA QUERY COMPUTADOR*/
@media (min-width: 992px) {
  .containerservicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Divide en 3 columnas iguales */
  }
  .containernosotros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .containercontacto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .navbar {
    display: flex;
    justify-content: space-between;
  }

  .tituloheader {
    padding-top: 15%;
  }

  .textoheader p {
    font-size: 2em;
  }

  .comoelprimerdia {
    font-size: 4em;
  }

  .opcionesfooter {
    flex-direction: row;
    gap: 10em;
  }
}
