body {
  margin: 0;
  padding: 0;
  font-family: "Brygada 1918", serif;
  height: 100vh;
}

/*?----------------------- MOBILE-VERSION ------------------------ */
.grid-container {
  height: 100vh;
  display: grid;
  grid-template-areas:
    "navbar"
    "main"
    "footer";
  grid-template-rows: 1fr 11fr 1fr;
}

/* -------------------- MENU DE NAVEGACION -----------------------*/
nav {
  grid-area: navbar;
  background-color: #0f0b26;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: solid rgb(24, 22, 22) 0.1px;
}

.logo {
  height: 4em;
  padding-left: 1em;
  transition: transform 0.5s ease;
  animation: color-change 0.5s infinite;
}

.logo:hover {
  animation: zoom-animation 0.5s infinite;
  cursor: pointer;
}

.toggler {
  margin-bottom: 0.8em;
  color: white;
}

@keyframes zoom-animation {
  0% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.2);
    filter: hue-rotate(180deg);
  }
  100% {
    transform: scale(1);
    filter: hue-rotate(360deg);
  }
}

/* ---------------------SECCION PRINCIPAL------------------------*/
main {
  grid-area: main;
  text-align: center;
  background-image: url(../img/wall-main.jpg);
  overflow-y: auto;
}

.main-container {
  display: grid;
  row-gap: 0.5em;
  column-gap: 0.5;
  padding: 0.8em 0 0.8em 0;
}

.card {
  height: 20em;
  width: 100%;
  position: relative;
}

.product-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 1s;
}

.product-img:hover {
  filter: grayscale(1%);
  cursor: pointer;
}

.card-title {
  margin-bottom: 0.3em;
  margin-top: 0.6em;
  display: inline;
}

.txt {
  font-size: x-small;
  margin: 0 0 0 0;
}

.description-container {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0 10px 10px 10px;
}

/* ---------------------------FOOTER-----------------------------*/
footer {
  grid-area: footer;
  background-color: #0f0b26;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-top: solid rgb(24, 22, 22) 0.1px;
  color: white;
}

i {
  padding-top: 1em;
  margin-right: 1em;
}

.footer-txt {
  margin: 0;
  font-size: 0.8em;
}

.iconf,
.toggler,
li:hover {
  cursor: pointer;
}

ul {
  display: none;
}

.contact-footer {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.text-footer {
  font-size: 0.8em;
}

.location {
  padding-bottom: 1em;
}
/*?----------------------- TABLET-VERSION ------------------------ */

@media (min-width: 768px) {
  /* -------------------- MENU DE NAVEGACION -----------------------*/
  nav {
    grid-area: navbar;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
  }

  ul {
    display: flex;
    align-items: center;
    padding-left: 10em;
    list-style-type: none;
  }

  li {
    padding-left: 2em;
  }
  /* ---------------------SECCION PRINCIPAL------------------------*/

  .main-container {
    display: grid;
    grid-template-columns: repeat(2, auto);
    row-gap: 0.5em;
    column-gap: 0.5em;
  }
  /* ---------------------------FOOTER-----------------------------*/
  nav .toggler {
    display: none;
  }
}
/*?----------------------- DESKTOP-VERSION ------------------------ */

@media (min-width: 992px) {
  .grid-container {
    height: 100vh;
    display: grid;
    grid-template-areas:
      "navbar main main"
      "navbar main main"
      "navbar main main"
      "footer main main";
    grid-template-rows: 1fr 7fr 1fr;
    grid-template-columns: 1fr 6fr 1fr;
  }
  /* -------------------- MENU DE NAVEGACION -----------------------*/
  nav {
    justify-content: start;
    align-items: center;
    flex-direction: column;
  }

  .logo {
    margin-top: 1em;
  }

  ul {
    flex-direction: column;
    padding: 0;
  }

  li {
    margin: 0 2em 1em 0;
  }

  /* ---------------------SECCION PRINCIPAL------------------------*/
  main {
    grid-area: main;
    text-align: center;
    border-left: solid rgb(24, 22, 22) 0.1px;
  }

  .main-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1em;
    padding-left: 0.8em;
  }

  .card:nth-child(4) {
    grid-column-start: span 2;
    width: 99%;
  }

  .card {
    height: 18.7em;
    width: 98%;
  }

  .product-img {
    height: 100%;
    object-fit: cover;
  }

  .card-title {
    margin: 0.3em 0 0.6em;
  }

  .img4 {
    width: 98.1%;
    height: 15%;
  }

  /* ---------------------------FOOTER-----------------------------*/
  footer {
    grid-area: footer;
    background-color: #0f0b26;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-align: center;
    font-size: 0.9em;
  }

  .iconf {
    margin-right: 0.3em;
    margin-top: 0;
  }

  .contact-footer {
    display: flex;
    color: white;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
  }
}