* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #373f48;
  font-family: Montserrat;
}

.main-container {
  display: grid;
  height: 100vh;
  grid-template-rows: 1fr 10fr 1fr;
  grid-template-areas:
    "header"
    "main"
    "footer";
}

header {
  grid-area: header;
  justify-content: center;
  align-items: center;
  background-image: url(../img/background2.png);
  background-size: contain;
}

header img {
  width: 220px;
  color: rgb(149, 147, 144);
  border-style: solid;
  border-radius: 100%;
  margin: auto;
  margin-top: 30px;
  margin-bottom: 5px;
  display: block;
}

header p {
  color: #fdf6e8;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  font-size: 19px;
  font-weight: lighter;
  text-align: center;
  margin: 0px 25px 0px 25px;
  padding: 20px 25px;
}

main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 10px;
}

main h1 {
  color: #fdf6e8;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  font-size: 40px;
  font-weight: normal;
  padding: 40px;
  padding-bottom: 20px;
}

section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.row {
  margin: 0px;
}

.card {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fdf6e8;
  border: 0px;
  width: 450px;
  height: 300px;
}

.card1 {
  margin-bottom: 20px;
}

.card h2 {
  font-size: 26px;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  margin: 90px 0px 10px 0px;
}

.card a {
  color: #fdf6e8;
  font-size: 20px;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: color 0.3s ease-in;
}

a:hover {
  color: rgb(216, 145, 94);
}

#cardpr {
  background-image: url(../img/pr.jpg);
  background-size: contain;
}

#cardtm {
  background-image: url(../img/mt.jpg);
  background-size: contain;
  margin-bottom: 20px;
}

#fnav {
  display: none;
}

footer {
  grid-area: footer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  font-weight: lighter;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
}

footer h3 {
  font-size: 15px;
  font-weight: lighter;
  color: #fdf6e8;
  padding-top: 10px;
  margin-bottom: 10px;
}

footer p {
  text-align: center;
  color: #fdf6e8;
  margin-bottom: 0px;
}

.footer_contacto {
  margin-bottom: 10px;
}

footer a {
  color: #fdf6e8;
  text-decoration: none;
  transition: color 0.3s ease-in;
}

a:hover {
  color: rgb(216, 145, 94);
}

@media (min-width: 576px) {
  .main-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 10fr 1fr;
    grid-template-areas:
      "header header"
      "main main"
      "footer footer";
  }
  main {
    grid-area: main;
    display: grid;
    justify-content: center;
    align-items: center;
  }

  .card {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fdf6e8;
    border: 0px;
    width: 450px;
    height: 300px;
    gap: 100px;
  }

  aside {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #fnav {
    display: flex;
  }

  #fmobile {
    display: none;
  }
}
