#page-nosotros {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative; 
  overflow-x: hidden;
  overflow-y: clip;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.about-contact {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.about-text {
  padding-bottom: 2rem;
}

.about-image img {
  width: 100%;
  border-radius: 6px;
}

.contact-subtitle {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: #333;
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.contact-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-icons img {
  width: 40px;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-icons a:hover img, .hero-social:hover svg {
  transform: scale(1.1);
  opacity: 0.8;
}

.team-section {
  margin: 1rem auto 4rem;
  max-width: 1000px;
}

section.team-section h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2rem;
  letter-spacing: 1px;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.team-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 3rem;
  animation: fadeUp 0.6s ease both;
  border: 2px solid #000000a3;
  border-radius: 8px;
  padding: 2rem;
  height: 200px;
}

.team-info-main {
  flex: 0 0 160px;
  text-align: center;
}

.team-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.team-role {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-top: 4px;
}

.team-bio {
  flex: 1;
  padding-top: 0.5rem;
}

.team-bio p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  text-align: left;
}

@media (min-width: 769px) {
  .team-card {
    margin: 0 2rem;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-contact {
    align-items: center;
    text-align: center;
  }

  .team-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    height: auto;
  }
  
  .team-info-main {
    flex: none;
    width: 100%;
  }

  .team-bio {
    text-align: center;
    padding: 1rem 1rem 2rem;
  }

  .team-bio p {
    text-align: center;
  }
}