body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Merriweather", serif;
  font-family: "Montserrat", sans-serif;
}

.grid-container {
  max-width: 90%;
  margin: auto;
}

.grid-container2 {
  max-width: 100%;
  margin: auto;
}

a {
  text-decoration: none;
  cursor: pointer;
}

/* MENU */

.menu {
  width: 100%;
  height: 60px;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, 50%);
  background-color: #193783;
}

.logo-menu {
  display: grid;
  grid-column: 1/2;
  padding: 10px 50px;
  width: 30px;
}

.nav {
  display: grid;
  grid-column: 2/2;
  align-self: center;
  justify-self: end;
}

nav ul li {
  display: inline-block;
  margin: 0 5px;
}

.nav-menu {
  width: 600px;
  list-style: none;
}

.nav-menu a {
  font-size: 15px;
  margin-right: 20px;
  color: #ffffff;
}

.nav-menu li a:hover {
  color: #ffcc00;
}

.checkbtn {
  font-size: 30px;
  color: #fff;
  float: right;
  line-height: 80px;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

/* PANTALLA CARGA */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* BANNER */

.MainBanner {
  align-items: center;
  background: url(/img/Portadas/Portada-Media.jpg) 50% no-repeat;
  background-size: cover;
  display: flex;
  height: 550px;
  justify-content: flex-start;
  max-height: 600px;
  overflow: hidden;
  width: 100%;
}

.content {
  display: flex;
  margin-top: 20%;
}

.botones-banner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 500px;
  padding: 2%;
}

.h1-banner {
  color: #ffffff;
  text-align: center;
  font-size: 34px;
  max-width: 80%;
  margin: 0 auto;
}

.p-banner {
  color: #ffffff;
  text-align: center;
  max-width: 90%;
  font-size: 20px;
  margin: 0 auto;
}

/* BOTONES */

.btn {
  width: 150px;
  display: grid;
  grid-template-columns: 20% auto;
  margin: 0 0 0 50px;
  padding: 10px 20px;
  font-size: 22px;
  background-color: #ccc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 80%;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease-in-out;
  z-index: -1;
}

.btn:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  opacity: 100%;
}

.btn:hover:before {
  width: 100%;
}

.btn:active {
  transform: scale(0.95);
  opacity: 50%;
}

.fa-solid {
  font-size: 25px;
}

/* General Container */

.general-container {
  display: grid;
  grid-template-columns: 60% auto;
  margin: 0 auto;
  max-width: 1500px;
  width: 100%;
  padding-top: 100px;
}

.txt-bases {
  width: 90%;
  margin: 0 auto;
  font-size: 19px;
  color: #707070;
  text-align: justify;
}

.txt-general {
  width: 90%;
  margin: 0 auto;
  font-size: 19px;
  color: #707070;
  display: grid;
  grid-template-rows: auto;
  max-height: 50%;
}

.info {
  display: grid;
  grid-template-columns: 7% auto;
}

.formato {
  display: grid;
  grid-template-columns: 7% auto;
}

.clases {
  display: grid;
  grid-template-columns: 7% auto;
}

h1 {
  color: #193783;
}

p {
  margin: 0px;
}

.fa-sharp {
  font-size: 25px;
}

.fa-solid {
  font-size: 25px;
}

/* FOOTER */

footer {
  width: 100%;
  height: auto;
  display: grid;
  justify-content: center;
  grid-template-rows: 1fr 1fr;
  margin-top: 100px;
}

.footer-container {
  display: grid;
  grid-row: 50% 50%;
  justify-items: center;
}

.logo-footer {
  display: flex;
  align-items: center;
  width: 40px;
}

.redes-container {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 40px;
  height: 40px;
  margin: auto;
}

.face {
  display: flex;
  width: 100%;
  grid-column: 1/2;
}

.insta {
  display: flex;
  width: 100%;
  grid-column: 2/3;
}

.whats {
  display: flex;
  width: 100%;
  grid-column: 3/3;
}

@media (max-width: 980px) {
  .nav-menu {
    width: 350px;
    height: 100vh;
    list-style: none;
    justify-content: center;
    align-items: center;
    z-index: 4;
  }

  .fas {
    z-index: 6;
  }

  .checkbtn {
    display: grid;
    justify-self: end;
    align-self: center;
  }

  ul {
    position: fixed;
    justify-self: center;
    width: 100%;
    height: 100vh;
    background: #193783;
    left: -100%;
    margin-top: -15px;
    text-align: center;
    transition: all 0.5s;
    z-index: 6;
  }

  nav ul li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }

  nav ul li a {
    font-size: 20px;
  }

  li a:hover,
  li a.active {
    background: none;
    color: #ffffff;
  }

  #check:checked~ul {
    left: 0;
  }

  .grid-container {
    grid-template-columns: 100%;
    grid-template-rows: 2fr;
  }

  /*BANNER */

  .MainBanner {
    background: url(/img/Portadas/Movil/Portada-Mediamovil.jpg) 50% no-repeat;
    background-size: cover;
    justify-content: center;
  }

  .general-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0;
    max-height: auto;
  }

  .txt-general {
    max-height: 100%;
  }

  .formato {
    padding-top: 5%;
  }

  .MainBanner .content {
    height: 50%;
  }

  .clases {
    padding-top: 5%;
  }

  .botones-banner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0;
    width: 80%;
    justify-content: center;
  }

  /* BOTONES */

  .btn {
    width: 125px;
    display: grid;
    grid-template-columns: 20% auto;
    margin: 0 0 0 0px;
    margin-left: 15px;
    padding: 10px 20px;
    justify-self: center;
    align-items: center;
    font-size: 14px;
    height: 45px;
  }
}

@media (max-width: 750px) {
  .nav-menu {
    width: 90.5%;
    height: 100vh;
    list-style: none;
    justify-content: center;
    align-items: center;
    z-index: 4;
  }

  ul {
    position: fixed;
    justify-self: center;
    width: 100%;
    height: 100vh;
    background: #193783;
    left: -130%;
    margin-top: -15px;
    text-align: center;
    transition: all 0.5s;
    z-index: 6;
  }

  .MainBanner {
    background: url(/img/Portadas/Movil/Portada-Mediamovil.jpg) 50% no-repeat;
    background-size: cover;
    justify-content: center;
  }

  .MainBanner {
    height: 370px;
  }

  .h1-banner {
    color: #ffffff;
    text-align: center;
    font-size: 24px;
  }

  .p-banner {
    color: #ffffff;
    text-align: center;
    font-size: 18px;
  }
}