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

body{
    font-size: 1.2rem;
  background-color: rgb(255, 255, 255);
  min-height: 100vh;
  margin: 0 auto;
  font-family: Helvetica;
    display: grid;
  grid-template: 
    "header" 
    "hero" 500px
    "nosotros" 300px
    "laCatedra" 
    "main"
    "creditos"
    "footer"  
}


  header{
    grid-area: header;
  }

  .hero{
    grid-area: hero;
    background-image: url('../images/hero-nosotros.webp');
    background-size: cover;      /* Ajusta la imagen para cubrir todo el fondo */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  background-position: center;  
  }

  .nosotros{
  grid-area: nosotros;
     background-color: #000000;
     color: rgb(255, 255, 255);
     display: flex;
     justify-content: center;
     align-items: center;
     position: relative;
     font-size: 25px;
  }

  .laCatedra{
    grid-area: laCatedra;
    font-size: 1.5rem;
    color: #000000;
    margin: 0 auto;
    padding: 100px;
    font-weight: bold;
  }

  .creditos{
    grid-area: creditos;
    background-color: #F08200;
    display: flex;
    flex-direction: column;
     justify-content: center;
     align-items: center;
     position: relative;
     font-size: 1rem;
     text-align: center;
     padding: 25px;
     
    
  }
  
  footer{
    grid-area: footer;
  }

.nosotros button{
  font-size: 30px;
      padding: 10px 50px;
      background-color: #FED02F;
      color: #B0140F;
      border:none;
      cursor: pointer;
      border-radius: 25px;
}

  /* -----Aves en "Nosotros"------ */
.ave {
  position: absolute;
  width: 40px; /* tamaño de las aves, puedes ajustar */
  opacity: 0.8;
    filter: brightness(0) saturate(100%) invert(84%) sepia(85%) saturate(400%) hue-rotate(360deg);
}

.ave1 { top: 60px; left: 10%; transform: rotate(-10deg); }
.ave2 { top: 80px; left: 15%; transform: rotate(5deg); }
.ave3 { bottom: 45px; left: 18%; transform: rotate(-15deg); }
.ave4 { top: 40px; left: 15%; transform: rotate(-10deg); }
.ave5 { bottom: 25px; left: 24%; transform: rotate(5deg); }
.ave6 { bottom: 30px; right: 20%; transform: rotate(-15deg); }
.ave7 { top: 30px; right: 10%; transform: rotate(-15deg); }
.ave8 { top: 60px; right: 20%; transform: rotate(-15deg); }

.title{
  display: flex;
  background-color: #CD032E;
  color: #FED02F;
  margin: 0 auto;
  display: inline-block;
  margin: 35px;
  padding: 5px;
  border-radius: 15px;
  font-size: 25px;
}

.new-coordinador {
    display: inline;
    margin: 0 auto;
    width: 50%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-bottom: 20px;
    text-align: center;
}

.new-coordinador:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

   .all-cards {
        display: flex;
        flex-direction: column;
        gap: 25px;
        margin: 0 auto;
        max-width: 80%;
        margin-bottom: 25px;
    }

    .card {
        display: flex;
        gap: 20px;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        align-items: flex-start;
        background-color: #FED02F;
    }

    .card img {
        width: 200px;
        height: auto;
        border-radius: 50%;
        object-fit: cover;
    }

    .colores{
      padding: 15px;
       border-top-left-radius: 50%;    /* esquina superior izquierda redonda */
  border-top-right-radius: 50%;   /* esquina superior derecha redonda */
  border-bottom-right-radius: 50%;/* esquina inferior derecha redonda */
  border-bottom-left-radius: 0;  
    }

    .all-cards .card:nth-child(odd) .colores {
    background-color: #0072CE;
}

.all-cards .card:nth-child(even) .colores {
    background-color: red;
}

    .info {
        flex: 1;
    }

    .cv {
        white-space: pre-line;
        margin-top: 10px;
        line-height: 1.5;
        color: #333;
    }

    
/* ----- Tablets (≤ 992px) ----- */
@media (max-width: 992px) {
  body {
    grid-template:
      "header"
      "hero" 360px
      "nosotros" auto
      "laCatedra" auto
      "main"
      "creditos"
      "footer";
  }

  .nosotros {
    font-size: 20px;
    padding: 40px;
    text-align: center;
    flex-direction: column;
    gap: 15px;
  }

  .nosotros button {
    font-size: 24px;
    padding: 8px 32px;
  }

  .creditos {
    font-size: 20px;
    padding: 20px;
  }

  .title {
    justify-self: center;
    font-size: 20px;
    display: flex;
    margin: 20px auto;
    padding: 6px 10px;
  }

  .all-cards {
    gap: 20px;
    padding: 0 20px;
  }

  .card {
    gap: 15px;
    padding: 12px;
  }

  .card img {
    width: 160px;
  }

  .cv {
    font-size: 16px;
  }
}

/* ----- Móviles (≤ 600px) ----- */
@media (max-width: 600px) {
  body {
    grid-template:
      "header"
      "hero" 120px
      "nosotros" auto
      "laCatedra" auto
      "main"
      "creditos"
      "footer";
  }

  .nosotros {
    font-size: 18px;
    padding: 40px;
    text-align: center;
  }

  .nosotros button {
    font-size: 20px;
    padding: 8px 24px;
    border-radius: 20px;
  }

  .laCatedra{
    padding: 50px;
    font-size: 16px;
  }

  .creditos {
    font-size: 18px;
    padding: 15px;
  }

  .title {
    font-size: 18px;
    display: flex;
    margin: 20px 20px;
    padding: 5px 8px;
    text-align: center;
  }

  .all-cards {
    gap: 15px;
    padding: 0 12px;
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
  }

  .card img {
    width: 140px;
    max-width: 100%;
  }

  .info {
    text-align: center;
  }

  .cv {
    font-size: 14px;
    line-height: 1.4;
  }
}
