li{list-style: none;}

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

body {
  min-height: 100vh;
  min-width: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  background-color: whitesmoke;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

header,footer{background-color: #c0392b; color:whitesmoke;}

header .contenedora{display:flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;}

.contenedora {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

#logo{display: block;
    border-radius: 5px;
    width: 6rem;
    padding: .20rem .2rem;
    background-color: whitesmoke;}

img{max-width: 100%; overflow-clip-margin:content-box;
overflow: clip;}

header nav ul{display: flex;
flex-wrap: wrap;
gap: 0.5rem;}

header nav a {
  display: inline-block;
  background-color: whitesmoke;
  color: #c0392b;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;}

header nav a:hover {
  background-color: #e2c120;
  transform: scale(1.05);
  color: #c0392b;}

.presentacion {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
}

#fotoperfil {
  flex: 0 0 auto;
  width: 300px;
  height: auto;
  border-radius: 10%;
  padding: 5px;
}

.quiensoy {
  flex: 1;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: #c0392b;
  font-weight: bold;
  border-bottom: solid 3px #c0392b;
  margin: 5%;
}

p{display: block;
margin-block-start: 1rem;
margin-block-end: 1rem;
margin-inline-start: 0px;
margin-inline-end: 0px;
color:#19110b;
margin: 5%;}

h2 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: #c0392b;
  font-weight: bold;
  border-bottom: solid 2px #c0392b;
  margin: 1rem 5%;
  padding: 0;
}

h3 {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #c0392b;
  font-weight: bold;
  border-bottom: solid 1px #c0392b;
  margin: 5%;
}

.imgnosotras {
  width: min(200px, 80%);
  height: auto;
  border-radius: 10%;
  padding: 5px;
}

.nosotras{text-align: center;
text-wrap: wrap;
padding: 0.5rem;}

h4{font-size: 150%;
color:whitesmoke;
font-weight: bold;
margin: 5%;
}

h5{font-size: 100%;
color: whitesmoke;
font-weight: bold;
margin: 5%;
}

.linkrotulo {font-weight: bold;
  width: min(300px, 90%);
  border-radius: 8px;
  background-color: whitesmoke;
  color: #c0392b;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.linkrotulo:hover{ background-color: #e2c120;
  transform: scale(1.05);
  color: #c0392b;}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: small;
  width: 100%;
  background-color: #c0392b;
  min-height: 150px;
  padding: 2rem 0;
}

footer div {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

footer p {
  margin: 0;
  padding: 1rem;
  color: whitesmoke;
  text-align: left;
  max-width: 100%;
  line-height: 1.5;
}

.destacado{ color:#c0392b;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;}

.contdatos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 1rem;
}

.logosuba {
  background-color: white;
  width: min(100px, 20vw);
  height: auto;
  border-radius: 10%;
  border: #c0392b 1px solid;
  padding: 5px;
}

hr{border: none;
height: 1px;
background-color: #c0392b;
margin: 5%;}

.fondoamarillo {
  background-color: #e2c120;
  padding: 2rem 0 0 0;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  margin-bottom: -2rem;
  padding-bottom: 2rem;
}

.fondorojo{background-color: #c0392b;
  padding-bottom: 2rem;
  margin-bottom: 0;
  width: 100%;}

h6{font-size: 150%;
color:whitesmoke;
font-weight: bold;
border-bottom: solid 2px whitesmoke;
margin: 5%;
padding: 5%;}

#equipo {
  display: grid;
  grid-template-areas: 
    "title title title"
    "card1 card2 card3";
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
  width: 100%;
}

#equipo h6 {
  grid-area: title;
  text-align: center;
  margin-bottom: 1rem;
  padding: 0;
}

#equipo article:nth-child(2) {
  grid-area: card1;
}

#equipo article:nth-child(3) {
  grid-area: card2;
}

#equipo article:nth-child(4) {
  grid-area: card3;
}

#equipo article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
}

@media (max-width: 768px) {
  header .contenedora {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  #logo {
    margin: 0 auto;
  }

  header nav ul {
    justify-content: center;
    margin-top: 1rem;
  }

  #equipo {
    grid-template-areas: 
      "title"
      "card1"
      "card2"
      "card3";
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }

  .contdatos {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  h1, h2, h3, p {
    margin: 1rem;
    padding: 0.5rem;
  }

  .presentacion {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  #fotoperfil {
    width: 200px;
    margin-bottom: 1rem;
  }

  .quiensoy {
    text-align: center;
  }
}

.materiascursando, .materiascursadas {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: black;
  font-weight: bold;
  margin: 1rem;
  padding: 0.5rem;
}

.materiascursando ul, .materiascursadas ul {
  list-style: none;
  padding: 0;
  margin: 1rem;
}

.materiascursadas li {
  text-decoration: line-through;
}

@media (max-width: 768px) {
  .materiascursando, .materiascursadas {
    margin: 0.5rem;
    padding: 0.25rem;
  }
  
  .materiascursando ul, .materiascursadas ul {
    margin: 0.5rem;
  }
  
  .materiascursando li, .materiascursadas li {
    margin: 0.25rem 0;
    padding: 0.25rem;
  }
}

#jugadoresindependiente {
  padding: 2rem;
  width: 100%;
}

.jugadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.jugador-card {
  background-color: whitesmoke;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.jugador-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #c0392b;
}

.jugador-card h4 {
  color: #c0392b;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 0.5rem 0;
}

.posicion {
  color: #19110b;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: bold;
  margin: 0;
}

.dato-curioso {
  margin-top: 2rem;
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  #jugadoresindependiente {
    padding: 1rem;
  }

  .jugadores-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .jugador-img {
    width: 150px;
    height: 150px;
  }
}

#prototipomobile{
  display: grid;
  grid-template-areas: 
    "title title title"
    "card1 card2 card3";
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 1rem 1rem 1rem;
  width: 100%;
  background-color: #004331;
}

#prototipomobile h8 ,#postervideo h8{
  grid-area: title;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 2rem;
  padding: 0;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: whitesmoke;
  font-weight: bold;
  border-bottom: solid 2px whitesmoke;
}

#prototipomobile article:nth-child(2) {
  grid-area: card1;
}

#prototipomobile article:nth-child(3) {
  grid-area: card2;
}

#prototipomobile article:nth-child(4) {
  grid-area: card3;
}

#prototipomobile article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
}

.imgprototipomobile {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  #prototipomobile {
    grid-template-areas: 
      "title"
      "card1"
      "card2"
      "card3";
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }
}
#prototipodesktop, #postervideo{background-color: #004331;
  padding: 2rem 1rem 1rem 1rem;
  width: 100%;}

.imgprototipodesktop, .imgpostervideo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 2rem;
}