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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: hsl(287, 87%, 15%);
  padding: 0.5em;
}

header .encabezado {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: center;
}

header ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: .5rem;
  width: min(100%, 30rem);
  margin-inline-start: auto;
  list-style: none;
}

header nav a {
  text-decoration: none;
  color: white;
  background-color:  #c56fdb;
  display: block;
  padding: 0.5em 1em;
  text-align: center;
  border-radius: 100vw;
}

header .imagenlogo img {
  width: 8em;
}

main {
  padding: 2rem 1rem;
}

.contenedora {
  max-width: 1200px;
  margin: 0 auto;
}

.titulos {
  color: hsl(287, 87%, 15%);
  margin-bottom: 20px;
}

.sobremí {
  color: hsl(287, 87%, 15%);
  margin-bottom: 10px;
}

.info2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: center;
}

.fotoviole img {
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2.2rem;
  color: hsl(287, 87%, 15%);
  padding-top: 1rem;
}

h2, h3 {
  color: hsl(287, 87%, 15%);
  padding-top: 1rem;
}

.parrafos {
  max-width: 800px;
}

.parrafos p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.5;
}

.parrafos a {
  text-decoration: none;
  background-color: #c56fdb;
  color: hsl(0, 0%, 100%);
  border-radius: 100vw;
  text-align: center;
  padding: .125em 1em;
}

.materias {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr 1fr;
}

section div div ul {
  padding: 0 0 0 1em;
  border-left: solid 10px hsl(287, 87%, 15%);
}

.anios {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.year {
  font-size: 1.5rem;
  color: #c56fdb;
}

.anios ul {
  list-style: none;
}

.anios ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.subtitulo {
  margin-top: 2em;
}

.porcentaje {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.porcentaje .carrera {
  font-size: 1.2rem;
  color: hsl(287, 87%, 15%);
}

.porcentaje .numero {
  font-size: 1.5rem;
  font-weight: 600;
  color: #c56fdb;
}

.rotulos_individuales {
  margin-top: 2em;
}

.rotulos_individuales h2 {
  font-size: 2rem;
  color: hsl(287, 87%, 15%);
  margin-bottom: 30px;
}

.contenedora_3 ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  justify-items: stretch; 
  list-style-type: none;  
}

.contenedora_3 ul li {
  text-align: center; 
  padding: 1rem;
}

.contenedora_3 ul li img {
  width: 100%; 
  max-width: 150px; 
  height: 150px; 
  object-fit: cover; 
  border-radius: 0.25em; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.contenedora_3 ul li h3 {
  font-size: 1.2rem;
  padding: 0;
}

.contenedora_3 ul li a {
  color: hsl(287, 87%, 15%);
  text-decoration: none;
}

.comitente1 {
  margin-top: 2em; 
}

.comitente1 .boceto {
  display: grid;
  grid-auto-flow: column;
  gap: 1em; 
}

.comitente1 a {
  text-decoration: none;
  background-color: #c56fdb;
  color: hsl(0, 0%, 100%);
  border-radius: 100vw;
  text-align: center;
  box-shadow:  0 4px 8px rgba(0, 0, 0, 0.1); 
}

.academicos {
  margin-top: 50px;
}

.logos ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  list-style: none;
}

.logos ul li {
  text-align: center;
}

.logos ul li img {
  max-width: 100%;
  height: 5em;
}

.textos h3 {
  font-size: 1.1rem;
  color: #c56fdb;
}

.textos p {
  font-size: 0.8em;
  color: #555;
}

footer {
  background-color: hsl(287, 87%, 15%);
  color: white;
  padding: 20px;
  margin-top: 50px;
}

footer p {
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  header nav ul {
      gap: 15px;
      text-align: center;
      padding: 5px;
  }

  .info2 {
      grid-template-columns: 1fr;
  }

  .fotoviole img {
      max-width: 270px;
      margin-bottom: 20px;
  }

  .materias {
      grid-template-columns: 1fr;
  }

  .contenedora_3 ul {
      grid-template-columns: 1fr;
  }

  .porcentaje {
      margin-top: 20px;
  }

  .logos ul {
      grid-template-columns: 1fr;
      align-items: center;
  }

  .logos ul li {
      width: 80%;
      margin: 10px 0;
  }

  footer p {
      font-size: 0.8rem;
  }

  .comitente1 {
    margin-top: 1em; 
  }

  .comitente1 .boceto {
    grid-auto-flow: row; 
    gap: 1.5em; 

  }

  .comitente1 a {
    font-size: 0.9rem; 
    padding: 0.5em 1em; 
    width: 100%; 
  }
}
