@charset "utf-8";
* body { box-sizing: border-box;
}
img {
    max-width: 100%;
}

#logo img {
    padding: .5rem;
    border-radius: .5rem;
    max-width: 15%;
    height: auto;
    background-color: #625366;
    margin: 15px;
}

section {
  margin: 10px 20px;
  padding: 20px;
  justify-self: center;
}

p {
margin: 10px 0;
line-height: 1.3;
max-width: 65ch;
font-family: helvetica;
}

a{
text-decoration: none;
color: #4b3a58;
text-align: center;
}

body {
font-family:'Cochin', serif, helvetica, sans-serif, 'cambria', serif;
margin: 0;
padding: 0;
color: #f5f5f5;
background-color:#938197}
 
 /* --- MENÚ HAMBURGUESA con CHECKBOX --- */

.menu-toggle-checkbox {
  display: none;
} 

.menu-toggle-label {    
  display: block;
  font-size: 1.7em;
  font-weight: bold;
  color: #f5f5f5;
  border-radius: .5rem;
  padding: .2rem .5rem;
}

.menu-toggle-label:hover {
background-color:#938197;
  color: #703960;
}  

  /* Oculta el menú de navegación horizontal */
  nav.nav-menu {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #382735;
    box-shadow: 0 4px 4px #0f080e;
    z-index: 10;
    max-height: 0;
    /* animación */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  /* Los links ahora son verticales */
  nav.nav-menu ul {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    width: 100%;
  gap: 20px;
  margin: 0;
  list-style: none;
  justify-content: flex-start;
  text-align: center;
 }

/* Muestra el menú al hacer check */
.menu-toggle-checkbox:checked ~ nav.nav-menu {
  max-height: 500px; 
  }

/* --- FIN DE LA LÓGICA DEL MENÚ HAMBURGUESA (MÓVIL) --- */


 header, footer {
    background-color: #180e16;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
 }

 header {
    display: flex;
    flex-wrap: wrap;
    position: relative;
  }

header nav ul li a {
    text-decoration: none;
    font-family: 'helvetica';
    font-variant:small-caps;
    color:  #f5f5f5;
  padding: 8px 10px;
    border-radius: 10px;
    transition: .6s;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

header nav a:hover,
header nav a:focus-visible {
background-color:#f5f5f5;
  color: #703960;
  outline: none;
box-shadow: 0 4px 4px #0f080e;
}

footer p { 
    font-family: 'cochin';
    font-weight: lighter;
    color: #f5f5f5;
    justify-self: center;
}

h1, h2, h3, h4{
color: #0f0738;
line-height: 1.1;
margin-top: 10px;
margin-bottom: 5px;
}

h1 {
  color:#531216;
  border-block-end: 2px solid #531216;
  padding-block-end: .35rem;
  margin-top: 0.5rem;
  font-size: 2.3em;
  }

h2 { 
    font-family: 'cochin';
    font-weight:lighter;
    font-size: 2em;
    font-style: italic;
}
h3 {
  color: #411339; 
    font-family: 'helvetica';
    font-variant:small-caps ;
    font-weight:lighter;
    margin-bottom: 10px;
}

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

.perfil{
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  align-items: center;
  text-align: justify;
  font-size: .8em;
  color:#322830;
   margin-bottom: 15px;
  margin: 40px 20px;
  padding: 20px;
  display: flex;
flex-direction: column;
  box-shadow:
    0 4px 2px hsl(0 0% 0% / 20%),
    0 4px 6px hsl(0 0% 0% / 20%) inset;
}

.perfil img {
  aspect-ratio: 1;
  border: solid .4em #531216;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15%;
    margin-bottom: 15px;
}

li img {
  aspect-ratio: 1;
  border: solid .4em hsl(280 29% 44%);
  box-shadow:
    0 4px 2px hsl(0 0% 0% / 20%),
    0 4px 2px hsl(0 0% 0% / 20%) inset;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0px;
    margin-inline: 25px;
}
.galeria div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  justify-items: stretch;
  align-items: stretch;
  }
  .galeria {
  justify-self: center;
  justify-items: center;
  }

  .equipo {
  margin: 40px 20px 20px;
  padding: 20px;
  align-items: center;
}

.equipo-articulos ul {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));;
  margin-block-end: 30px;
  justify-self: center;
}

.equipo-articulos li {
background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column; /* Imagen arriba, texto abajo aa*/
  align-items: center;
  text-align: center;
  font-size: 1em;
}

.propuesta{
  align-items: center;
  object-fit: cover;
  padding: 0%;
  }

.propuesta img {
  gap: 1rem;
  border-radius: 3%;
  width: auto;
    height: 80%;
    object-fit: cover;
    align-self: center;
  }

  .cursada {
background-color: #f5f5f5;
  gap: 1rem;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column; /* Imagen arriba, texto abajo aa*/
  align-items: center;
  text-align: justify;
    }

    .cursada ul li ol { 
    font-family: 'cochin';
    font-weight: lighter;
    color: hsl(280 29% 44%);
    list-style: none;
    }



    /* --- MEDIA PARA PANTALLAS MÁS GRANDES (ESCRITORIO) --- */
  @media (min-width: 828px) {
  
  .menu-toggle-label {
  display: none;
  }
      
/* Muestra el menú de navegación horizontal */
nav.nav-menu {
        max-height: none;
        position: static;
        background-color: transparent;
        overflow: visible;
        transition: none;
        flex-direction: row;
        align-items: center;
      }
      
/* botones horizontales */
nav.nav-menu ul {
  display: flex;
  flex-direction: row;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 10px;
  justify-content: flex-end;
  font-size: 1em;
  }


  .perfil{
  align-items: center;
  text-align: justify;
  font-size: 1.3em;
  display: grid;
  margin: 40px 60px;
  grid-template-areas: "nombre nombre ."
                        "carrera . info"
                        "imagen imagen info";
}

.perfil h1 {
  grid-area: nombre;
} 
.perfil h3 {
  grid-area: carrera;
} 
.perfil img {
  width: 250px;
  height: 250px;
  margin: 0;
  grid-area: imagen;
}

.perfil .info {
  grid-area: info;
  margin-left: 20px;
}

.equipo-articulos ul {
  display: flex;
  gap: 35px;
  margin-block: 30px;
}
.equipo {
  justify-items: center;
  font-size: 1.3em;
}

li img {
    width: 200px;
    height: 200px;
}
section {
  margin: 30px 40px;
  justify-items: center;
}

.propuesta img {
  width: 1080px;
  margin: 5px;
}

}