* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Recursive", Arial, Helvetica, sans-serif;
  text-align: center;
  background-image: url("../img/fondo2.jpg");
}

header {
  margin-top: 70px;
}

nav a {
  background-color: rgba(255, 255, 255, 0.5);
  color: #212e47;
  padding: 20px 32px;
  border-radius: 16px;
  text-decoration: none;
  margin: 0px 2px;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 1);
  font-weight: 900;
  /*box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;*/
  box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

.yoyoyo {
  margin-top: 4rem;
  margin-bottom: -16rem;
}
.yoyoyo img {
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 30px 90px;
}
.yoyoyo h1 {
  font-size: 2rem;
  margin-top: 2rem;
  color: #3d5991;
}
.yoyoyo h2 {
  font-size: 1.2rem;
  color: #212e47;
}

.materias {
  background: #fff;
  padding-top: 18rem;
  padding-bottom: 4rem;
}

.materias article.niveles {
  background-color: #d9e0e7;
  display: flex;
  flex-wrap: wrap;
  transition: transform 0.3s;
  transform: rotate(-1deg);
}
.materias article.niveles div * {
  user-select: none;
}
.materias article.niveles div {
  background-color: #ffffff;
  border: solid 8px #d9e0e7;
  width: 50%;
  padding: 2rem;
  flex: 1 0 auto;
  border-radius: 12px;
}
.materias article.niveles:hover {
  transform: rotate(2deg);
}
.materias article.niveles:hover figure {
  display: none;
}
.materias article.niveles:hover ul {
  display: block;
}
.materias article.niveles ul {
  display: none;
}
.materias article.niveles ul,
.materias article.niveles ul li {
  list-style-type: none;
}
.materias article.niveles ul li {
  margin-top: 1rem;
}
.materias article.niveles h4 {
  font-size: 1.2rem;
}
.materias article.niveles ul li strong {
  font-size: 0.9rem;
}
.materias article.niveles ul li span {
  font-size: 0.8rem;
}
.materias article.niveles ul li span,
strong {
  display: block;
}

.datoscatedra {
  background: #fff;
  padding-bottom: 2rem;
}
.datoscatedra article {
  background: #212e47;
  color: #fff;
}

.panel-redondeado {
  max-width: 40rem;
  border-radius: 16px;
  margin: 0 auto;
  padding: 2rem;
}

.contenedor {
  margin: 0 auto;
}

.facultad {
  font-size: 0.8rem;
  margin: 1rem 0;
}

.integrantes {
  margin: 4rem 0rem;
}

.integrantes nav a {
  background-size: cover;
  background-position: center;
}
.integrantes nav a:hover {
  color: white;
  text-shadow: 0 6px 14px black;
}

.integrantes nav a.alumn2:hover {
  background-image: url("../../2/avatar.jpg");
}
.integrantes nav a.alumn3:hover {
  background-image: url("../../3/avatar.jpg");
}
.integrantes nav a.alumn4:hover {
  background-image: url("../../4/avatar.jpg");
}
.integrantes nav a.alumn5:hover {
  background-image: url("../../5/avatar.jpg");
}

footer {
  max-width: 35rem;
  margin: 3rem auto;
}

.legales {
  font-size: 0.8rem;
}

.link-catedra {
  margin-bottom: 16px;
}
.link-catedra a {
  color: #fff;
}
.link-catedra a:link,
.link-catedra a:visited {
  color: #fff;
}
