* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  background-color: rgb(250, 255, 255);
}

h1 {
  font-size: 3.5em;
}
h2 {
  font-size: 2.7em;
}
h3 {
  font-size: 2em;
}
p {
  font-size: 1.25em;
}

button {
  font-size: 1.5em;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  background-color: rgb(143, 51, 235);
  position: relative bottom;
}

button:hover {
  background-color: rgb(204, 185, 223);
}

.container {
  max-width: 1800px;
  margin: auto;
}
header {
  background-color: rgb(245, 245, 245);
}

header .logo {
  margin: 0;
  font-weight: bold;
  padding: 25px 30px;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header nav {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 25px;
}

header a {
  padding: 5px 12px;
  text-decoration: none;
  font-weight: bold;
  color: black;
}

header a:hover {
  color: rgb(143, 51, 235);
}

#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  height: 90vh;
  color: white;
  background-image: linear-gradient(0deg, rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5)),
    url("imagenes/textu.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

#recursosHL {
  margin-top: 100px;
  background-color: rgba(30, 30, 30);
  color: white;
  text-align: center;
}

#recursosHL h2 {
  margin-top: 0;
}
#recursosHL .container {
  padding: 100px 0px;
}

#recursosHL .container p {
  display: none;
}

/* #recursosHL .img.container {
  display: flex;
} */

#recursosHL .carta {
  background-position: center center;
  background-size: cover;
  padding: 30px;
  margin: 20px;
  border-radius: 15px;
}
.carta:first-child {
  background-image: linear-gradient(0deg, rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5)),
    url("imagenes/textu.jpg");
}

.carta:nth-child(2) {
  background-image: linear-gradient(0deg, rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5)),
    url("imagenes/textu.jpg");
}

.carta:nth-child(3) {
  background-image: linear-gradient(0deg, rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5)),
    url("imagenes/textu.jpg");
}
.carta:nth-child(4) {
  background-image: linear-gradient(0deg, rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5)),
    url("imagenes/textu.jpg");
}

.carta:nth-child(5) {
  background-image: linear-gradient(0deg, rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5)),
    url("imagenes/textu.jpg");
}
/* .carta:nth-child(6) {
   background-image: linear-gradient(0deg, rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5)),
    url("imagenes/textura2.jpg");
}*/

footer p {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 25px;
}

footer a {
  padding: 5px 12px;
  text-decoration: none;
  font-weight: bold;
  color: black;
}

footer a:hover {
  color: rgb(143, 51, 235);
}

@media (min-width: 700px) {
  header {
    position: fixed;
    width: 100%;
  }

  header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  header nav {
    flex-direction: row;
    padding-bottom: 0;
    padding-right: 20px;
  }

  #hero h1 {
    font-size: 5em;
  }

  #recursosHL .container {
    /*display: flex;*/
    justify-content: center;
  }

  #recursosHL h2 {
    font-size: 4em;
  }

  #recursosHL h3 {
    font-size: 1em;
    margin-top: 0;
  }

  #recursosHL .imgcontainer {
    display: flex;
    justify-content: left;
  }
  #recursosHL .carta {
    padding: 50px;
    background-size: 100% 400px;
    background-repeat: no-repeat;
    background-position-y: 0;
    background-color: rgba(50, 50, 50, 1);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  }

  footer p {
    flex-direction: row;
    padding-bottom: 0;
    padding-right: 20px;
    justify-content: right;
  }
}
