/*
================================
  orden de las reglas de estilo:
  de lo general a lo particular,
  de arriba hacia abajo,
  de celular a tablet,
  de tablet a escritorio
================================
*/

* /* === Reset general === */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

body {
  background-color: #ffd5f4;
  font-family: system-ui, sans-serif;
  margin: 0 auto;
  font-weight: 100;
}

p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #140f0d;
}

img {
  max-width: 100%;
}
header nav a:hover,
header nav a:focus-visible {
  background-color: #e468ba8f;
}
a {
  font-weight: bold;
  background-color: #625aa6;
  color: #ffffff;
  padding-block: 0.25em 0.35em;
  text-align: center;
  border-radius: 0.6rem;
  padding: 0.125em 1em;
}

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

/* === Header y navegación === */
.header {
  background-color: #282654;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

#logo img 
  {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: #140f0d;
  background-color: #ddc2fd;
  padding: 0.2rem 0.5rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  background-color: #6f61c0;
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

header,
footer {
  background: #2b2b52;
  padding: 1rem;
  width: 100%;
  box-shadow: 0rem 0.3125rem 0.3125rem #11133486;
}
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #ffffff;
}
footer p {
  margin-block: 0;
}

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


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

header nav a {
  text-decoration: none;
  color: #ffffff;
  background-color: #625aa6;
  display: grid;
  padding: 0.5rem 1rem;
  text-align: center;
}

/* === Main general === */
main {
  width: 85%;
  margin: 0 auto;
}

main section div {
  margin-bottom: 1.5rem;
}

h1 {
  color: #2b2b52;
  text-transform: uppercase;
  padding: 1.125rem;
  border-radius: 0.6rem;
}

/* === Sección "Sobre mí" === */
.sobremicontenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}

.sobremi img {
  max-width: 100%;
  height: auto;
}

/* === Materias === */
/* SECTION MATERIAS */
.materias article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22em, 100%), 1fr));
  gap: 2rem;
}

.materias article div {
  padding: 1rem;
  border: 1px solid #6216dd;
  border-radius: 18px;
  background-color: #ab91fa;
 box-shadow: 0.25rem 0.25rem 0.5rem #c299bd;
}

h2 {
  padding-bottom: 1rem;
  font-size: 1.5rem;
}

.materias article div ul {
  list-style: none;
}






/* === Mi grupo === */

.equipo article {
  background-color: #ab91fa;
  padding: 1em;
  border-radius: .25em;
}
.article img {
  border: none;
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  width: 8em;
  aspect-ratio: 1;
}

a:hover,
a:focus-visible {
  background-color: #e468ba8f;
}


.equipo .contenedora,
.seccion-academicos .contenedora {

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(22em, 100%), 1fr));
  gap: 1.5em;
}


.equipo article {
  display: grid;
  grid-template-columns: auto 1fr;  

  gap: 1em;  
}

.equipo_textos {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

/* === Datos académicos === */
.lista-academicos img {
  display: block;
  width: 8em;
  aspect-ratio: 1;
  object-fit: contain;
  background-color: white;
  padding: .5rem;
  border-radius: .25rem;
  box-shadow: 0 4px 4px transparent;
  transition: box-shadow .6s ease;
}

.lista-academicos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(22em, 100%), 1fr));
  gap: 1.5em;
}
 .lista-academicos ul.lista-academicos > li {
  display: grid;
  gap: 1.5em;
  grid-template-rows: auto 1fr auto;
}

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

.lista-academicos ul.lista-academicos > li> li h3 + * {
  margin-block-start: 1lh;
}

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

.propuesta h2 {
  padding-bottom: 1rem;
}

