@charset "utf-8";

*{ 
  box-sizing: border-box;
}

body {
  background-color:rgb(255, 243, 253);
  color: rgb(6, 6, 6);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0 auto;
  font-weight: 100;
  min-height: 100dvh;
}

p {
  line-height: 1.6;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #9f156a;
  line-height:  1.1;
}

img {
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  text-decoration: none;
  color: hsl(318, 49%, 66%);
  font-weight: bold;
  background-color: hsl(318, 49%, 66%);
  color: hsl(0, 0%, 100%);
  padding-block: 0.25em .35em;
  text-align: center;
  border-radius: 100vw;
  padding: .125em 1em;
}

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

footer, 
header {
  background: linear-gradient(86.63deg, #fff3fb -14.08%, #d451a2 44.31%, #9f156a 125.44%);
  color: #fefff3;
  padding: 1rem;
  width: 100%;
  box-shadow: 0px 5px 5px #34113486;
}

.encabezadogeneral {
  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;
}

.header_contenedora {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: justify;
  max-width: 60rem;
  margin-inline: auto;
}

header nav a {
  text-decoration: none;
  color: white;
  background-color:  hsl(318, 49%, 66%);
  display: block;
  padding: 0.5em 1em;
  text-align: center;
  border-radius: 100vw;
}

#imagenlogogeneral {
  width: 8em;
}

header nav a:hover,
header nav a:focus-visible

.index nav li:first-of-type a,
.plan nav li:nth-of-type(2) a,
.mapa nav li:nth-of-type(3) a {
background-color:  #9f156a;
color: hsl(0 0% 95%);
padding: 8px
}

.materias {
  background-color: hsl(304, 38%, 85%);
  color:  #9f156a; 
  padding: 18px;
  border-radius: .6em;
  box-shadow: 3px 3px 3px #3411326d;
}

main {
  width: 85%;
  margin: 0 auto;
}

main section div {
margin-bottom: 1.5em
} 

h1 {
  background-color: #9f156a; 
  color: hsl(0, 0%, 100%);
  text-transform: uppercase;
  padding: 18px;
  border-radius: .6em
} 

.grupointegrantes {
  background-color:  hsl(304, 38%, 85%);
  color: #9f156a; 
  gap: 2rem;
  padding-block: 0.25em .35em;
  border-radius: .6em;
  padding: 10px;
}

.grupointegrantes a:hover,
.grupointegrantes a:focus-visible,
.datosfadu a:hover,
.datosfadu a:focus-visible,
.datosacademicos a:hover,
.datosacademicos a:focus-visible,
.datosdgpc a:hover,
.datosdgpc a:focus-visible,
.textosobremi a:hover,
.textosobremi a:focus-visible {
background-color:  #9f156a; 
color: hsl(0, 0%, 100%);
  padding-block: 0.25em .35em;
  text-align: center;
  border-radius: 100vw;
  padding: .125em 1em;
}

.datos{
  background-color: hsl(304, 38%, 85%);
  color:  #9f156a; 
  border-radius: .6em;
  box-shadow: 3px 3px 3px #3411326d;
}

.datos ul {
    justify-content: space-between;
    list-style: none;
    padding: 1rem;
    gap: 1rem;
}

.datos ul li {
    flex-grow: 1;
    color: #FFFFFF;
    font-size: 1em;
    text-align: center;
}

.datos ul li h2 {
    color: #ffffff;
    text-align: center;
    background-color: hsl(318, 49%, 66%);
}

.datos ul li p {
    text-transform: uppercase;
    color:  #9f156a; 
    text-align: center;
    font-weight: bold;
}

.contenedormaterias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
 gap: 2rem
 ;
}

.contenedortrabajos {
  position: relative;
  overflow: hidden;
}

.contenedortrabajos img {
  width: 100%;
  height: 100%;
  display: block;
}

.textoimagen {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 20px;
  transform: translateY(100%); 
  transition: transform 0.5s ease; 
}

.contenedortrabajos:hover .textoimagen {
  transform: translateY(0); 
}

.botonimagen {
  padding: 2%;
  margin-top: 2%;
}

.sobremicontenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem; 
}

.sobremi img {
  max-width: 100%;
  height: auto; 
  border-radius: 8px;
}

.contenedora_academicos article {
  gap: 1rem;
  }

.contenedora_academicos > div {
  display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
gap: 1rem;
}

.trabajos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); 
  gap: 1rem; 
}

.contenedortrabajos {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.contenedortrabajos img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.textoimagen {
  margin-top: 1rem;
}