/* SELECTOR UNIVERSAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5;
  text-decoration: none;
}

img {
  max-width: 100%;
}

figure {
  margin: 0%;
}

/* CUERPO */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  font-family: Helvetica, sans-serif;
  color: #000000;
  background-color: whitesmoke;
}

h1, h2, h3 {
  color: hsla(157, 87%, 12%, 0.863);
}

/* LINKS */
a:hover, a:focus-visible {
 color: hsl(95, 55%, 30%);
}

ul, ol {
  list-style: none;
  padding: 0%;
}

.contenedora {
  width: min(75rem, calc(100% - 2rem));
  margin-inline: auto;
}

/* MENU NAVEGABLE */
header img {
  height: 50px;
}

header nav ul {
  margin-block: 0;
  display: flex;
  gap: 0.5em;
}

header nav a {
  display: block;
  width: fit-content;
  color: #ffffff;
  background-color: rgb(107, 189, 141);
  font-weight: 800px;
  padding-inline: 1rem;
  padding-block: .5rem;
  border-radius: 5px;
}

header nav ul li a:hover {
  background-color: hsl(0, 0%, 95%);
  color: hsl(0, 0%, 15%);
}

#logo {
  border-radius: 6px;
  padding: .3rem;
  background-color: whitesmoke;
}

/* SECCIONES DE CADA ARTI */
section {
  padding-block: 2rem;
}

section h1, section h2 {
  background-color: darkseagreen;
  border-radius: 5px;
  padding: .3rem;
}

/* MENU Y PIE */
header .contenedora {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

header, footer {
  background-color: olivedrab;
  color: hsl(0, 0%, 95%);
  padding-block: 1rem;
}

footer p {
  font-weight: 400px;
  text-align: center;
  margin-block: 0;
}

/* PERFIL */
.perfil {
  margin-top: 40px;
  padding: 50px 40px;
  border-radius: 20px;
  max-width: 70%;
  margin: 40px auto 40px auto;
  gap: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 7px 8px rgba(0, 153, 94, 0.651);
}

.perfil-foto {
  width: 250px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 7px 8px #05c57b50;
}

.perfil-texto {
  flex: 1;
  color: #202c45;
}

.perfil-texto h1 {
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 2px solid #07f5ad9c;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.perfil-texto p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.perfil > h1 {
  flex: 1;
  color: hsl(138, 37%, 20%);
}

/* MATERIAS */
.materias .contenedora {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(22em, 100%), 1fr));
  gap: 1.5em;
}

/* ETUIPO JT11 */
.equipojt11 .contenedora {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(22em, 100%), 1fr));
  gap: 1.5em;
}

.equipojt11 article {
  display: grid;
  grid-template-columns: auto;
  text-align: center;
  gap: 2em;
  padding: 2em;
  border-radius: 6px;
}

.equipojt11 a {
  background-color: darkseagreen;
  border-radius: .50rem;
  color: whitesmoke;
  padding-block: .25em;
  padding-inline: 1em .80em;
}

.equipojt11 a:hover,
.equipojt11 a:focus-visible {
  color: rgb(0, 0, 0);
  background-color: hsl(145, 73%, 80%);
}

/* COMITENTE y BOCETOS -no me queda como quiero...*/ 
.comitente .contenedora, 
.bocetos .contenedora {
  gap: 1.5em;
}

/* ACADEMICOS */
.academicos .contenedora {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(22em, 100%), 1fr));
  gap: 2em;
}

.academicos img {
  display: block;
  width: 9em;
  aspect-ratio: 1;
  object-fit: contain;
  padding: .5rem;
  border-radius: .25ren;
  box-shadow: 0 7px 8px #05c57b50;
}

.academicos ul.contenedora > li {
  display: grid;
  gap: 1.5em;
  grid-template-rows: auto 1fr auto;
}

.academicos ul.contenedora > li > *, .academicos ul.contenedora > li h3 {
  margin-block: 0;
}

.academicos ul.contenedora > li h3 + * {
  margin-block-start: 11h;
}

.academicos ul.contenedora > li a {
  justify-self: start;
  margin-inline-end: auto;
}

.academicos a {
  background-color: darkseagreen;
  border-radius: .50rem;
  color: rgb(5, 105, 92);
  padding-block: .25em;
  padding-inline: 1em .80em;
}
