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

header {
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #324839;
}

footer {
  justify-items: center;
  text-align: center;
  padding: 20px 30px;
  background-color: #324839;
  color: #fff;
  font-size: smaller;
}

/*tipogradfia para todoss*/
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #324839;
  background-color: #fff8dc;
  margin: 0;
  padding: 0;
}

#logo img {
  padding: none;
  max-width: 20%;
    height: auto;
    margin: 0;
    padding-bottom: 20px;
    padding-top: 20px;
}

header nav ul {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: space-evenly;
}

header nav ul li a {
  text-decoration: none;
  font-size: medium;
  font-weight: bold;
  color: #eba148;
  background-color: #324839;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

header nav ul li a:hover,
header nav ul li a:focus {
  background-color: #eba148;
  color: #324839;
}
.fotos-tema {
  text-align: center;
}

.fotos-tema img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
}

/*essto son para lso margenes generales*/
section {
  margin: 15px;
  padding: 10px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  margin-bottom: 15px;
}

p {
  margin-top: 10px;
  margin-bottom: 0px;
  line-height: normal;
  max-width: 65ch;
  font-size: 0.9em
}

.parrafo-tema {
  text-align: center;
  font-weight: 610;
  justify-self: center;
  margin-block: 15px;
}

.origen-cine {
font-size: 0.8em;
margin-top: 15px;
justify-self: center;
}

.titulo-equipo {
  text-align: center;
  margin-bottom: 20px;
}

/*se modifica columnas y fila columns o rows*/
.articulos-equipo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));;
  margin-block-end: 30px;
}

/* Estilo de cada artículo */
.articulos-equipo article {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
}

/* Imagen de nosotros */
.articulos-equipo article img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.texto-equipo h3 {
  margin-bottom: 10px;
  text-align: center;
}

.texto-equipo p {
  margin-bottom: 2rem;
}

/* Enlace link pefil */
.texto-equipo a {
  text-decoration: none;
  color: #eba148;
  font-weight: bold;
}

.texto-equipo a:hover {
  text-decoration: underline;
  background-color: transparent;
    color: #324839;
    font-weight: bold;
    border: 2px solid #324839;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 0.5rem;
}

.datos-academicos div > ul {
    list-style-type: none;
    padding-inline-start: 10px;
}

/* ----TABLET a partir de aca cambiar disposicion---------- */

@media (min-width: 516px) {

header {
  display: flex;
  gap: 0;
  padding: 5px 25px;
}
header nav ul {
  gap: 10px;
}

header nav ul li a {
font-size: 1em;
padding: 5px 8px;
  }

.parrafo-tema {
 font-size: 1.1em;
 margin-block: 30px;
 }
 
 .origen-cine {
font-size: 1em;
}

.articulos-equipo article {
padding: 30px 40px;
align-self: center;
max-width: 50ch;
}

.fotos-tema img {
  margin-bottom: 20px;
}

/*cierre*/
}


/* ----DESKTOP a partir de 750px cambiar disposicion---------- */

@media (min-width: 815px) {

header {
  gap: 20px;
  padding: 5px 30px
}
header nav ul {
  gap: 30px;
}

.parrafo-tema {
 font-size: 1.5em;
margin-block: 40px;
 }
 
 .origen-cine {
font-size: 1.1em;
}

/* equipo */

.articulos-equipo {
margin-inline: 20px;
}

.articulos-equipo article {
  display: grid;
padding: 30px 40px;
grid-template-areas: "img texto";
grid-template-columns: 250px 65ch;
gap: 30px;
max-width: fit-content;
}

/* areas de img y texto del grid */
.articulos-equipo > img { 
grid-area: foto;
}

.articulos-equipo article img { 
 width: 250px;
  height: 250px;
  margin-bottom: 0;
}

.texto-equipo { 
grid-area: texto;
font-size: 1.2em;
}

/*cierre*/
}