.nosotros-page {
  background-image: url('/bk.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nosotros-page h1, 
.nosotros-page h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}

.intro {
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  padding: 60px;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 60px;
}

.intro h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.intro p {
  line-height: 1.7;
  color: #ccc;
  font-size: 1rem;
}

/* Misión y visión */
.mision-vision {
  display: flex;
  gap: 30px;
  width: 90%;
  max-width: 1000px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.mision-vision .bloque {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.mision-vision h2 {
  font-size: 1.4rem;
  color: #a041ff;
  margin-bottom: 15px;
}

.mision-vision p {
  color: #ccc;
  line-height: 1.6;
}

/* Valores */
.valores {
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  padding: 50px;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 60px;
}

.valores h2 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.valores ul {
  list-style: none;
  padding: 0;
}

.valores li {
  margin-bottom: 12px;
  color: #ccc;
  line-height: 1.6;
}

/* Equipo */
.equipo {
  width: 90%;
  max-width: 1100px;
  text-align: center;
  margin-bottom: 80px;
}

.equipo h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 40px;
}

.cards-equipo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.card {
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card h3 {
  margin: 15px 0 5px;
  color: #a041ff;
}

.card p {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(160, 65, 255, 0.4);
}

/* Espacio */
.espacio {
  width: 90%;
  max-width: 1000px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 60px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 80px;
}

.espacio h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.espacio p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 30px;
}

.espacio img {
  width: 50px;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(160, 65, 255, 0.3);
}

/* =========================================================
   🌐 MEDIA QUERIES — RESPONSIVE NOSOTROS 808 URBAN SCHOOL
   ========================================================= */

/* === TABLETS (≤ 992px) === */
@media (max-width: 992px) {

  .intro {
    padding: 50px 30px;
    width: 95%;
  }

  .intro h1 {
    font-size: 1.9rem;
  }

  .intro p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .mision-vision {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .mision-vision .bloque {
    width: 100%;
    padding: 35px;
  }

  .valores {
    padding: 40px 30px;
    width: 95%;
  }

  .espacio {
    width: 95%;
    padding: 50px 30px;
  }

  .espacio img {
    width: 80%;
    height: auto;
  }
}

/* === MÓVILES (≤ 768px) === */
@media (max-width: 768px) {

  .nosotros-page {
    padding: 50px 0;
  }

  .intro {
    padding: 35px 20px;
  }

  .intro h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .intro p {
    font-size: 0.95rem;
  }

  .mision-vision .bloque {
    padding: 30px 20px;
    text-align: center;
  }

  .mision-vision h2 {
    font-size: 1.3rem;
  }

  .mision-vision p {
    font-size: 0.95rem;
  }

  .valores {
    padding: 35px 25px;
  }

  .valores h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .valores li {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .espacio {
    padding: 40px 20px;
  }

  .espacio h2 {
    font-size: 1.5rem;
  }

  .espacio p {
    font-size: 0.95rem;
  }

  .espacio img {
    width: 100%;
  }
}

/* === MÓVILES PEQUEÑOS (≤ 480px) === */
@media (max-width: 480px) {

  .intro {
    padding: 25px 15px;
  }

  .intro h1 {
    font-size: 1.4rem;
  }

  .intro p {
    font-size: 0.9rem;
  }

  .mision-vision .bloque {
    padding: 25px 15px;
  }

  .mision-vision h2 {
    font-size: 1.2rem;
  }

  .mision-vision p {
    font-size: 0.9rem;
  }

  .valores {
    padding: 25px 15px;
  }

  .valores h2 {
    font-size: 1.3rem;
  }

  .valores li {
    font-size: 0.9rem;
  }

  .espacio {
    padding: 25px 15px;
  }

  .espacio h2 {
    font-size: 1.3rem;
  }

  .espacio p {
    font-size: 0.9rem;
  }

  .espacio img {
    width: 100%;
    margin-top: 20px;
  }
}
