/* ==================== ABOUT PAGE ==================== */
.about-section { 
  background: #f7f8f9;
  padding: 70px 0 80px 0; /* Reducido el padding-top */
  margin-top: 70px; /* Altura del navbar fijo */
}

/* Intro */
.about-content {
  max-width: 900px;
  margin: 0 auto 80px;
  text-align: center;
}
.about-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

/* ==================== TEAM ==================== */
.team-section { margin-bottom: 90px; }
.team-section h3 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card + aparición */
.team-member {
  background: #fff;
  border: 2px solid #000;
  border-radius: 0; /* Sin bordes redondeados */
  padding: 40px 30px;
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, opacity .6s ease;
  opacity: 0;
  transform: translateY(12px);
}
.team-member.in-view {
  opacity: 1;
  transform: translateY(0);
}
.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  border-color: #111;
}

/* Foto: B/N por defecto -> color en hover/focus */
.team-member img {
  width: 150px; 
  height: 150px; 
  border-radius: 50%;
  object-fit: cover; 
  margin: 0 auto 25px; 
  border: 3px solid #000;
  -webkit-filter: grayscale(100%) contrast(1.05);
          filter: grayscale(100%) contrast(1.05);
  transition: filter .35s ease, transform .35s ease;
}

.team-member:hover img,
.team-member:focus-within img {
  -webkit-filter: grayscale(0%);
          filter: grayscale(0%);
  transform: scale(1.03);
}

/* Textos */
.member-info h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: color .25s ease;
}
.team-member:hover .member-info h4 { color: #111; }

.role {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #666;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.bio { 
  font-size: .95rem; 
  line-height: 1.6; 
  color: #666; 
  margin-bottom: 25px; 
}

/* Social links con subrayado animado */
.social-links { 
  display: flex; 
  justify-content: center; 
  gap: 20px; 
}
.social-links a {
  position: relative;
  font-size: .9rem;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  transition: color .25s ease;
}
.social-links a::after {
  content: "";
  position: absolute;
  left: 0; 
  bottom: -3px;
  height: 2px; 
  width: 0;
  background: #000;
  transition: width .25s ease;
}
.social-links a:hover { color: #000; }
.social-links a:hover::after { width: 100%; }

/* ==================== CONTACT INFO BOX ==================== */
.contact-info-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px;
  border: 2px solid #000;
  border-radius: 0; /* Sin bordes redondeados */
  text-align: center;
  background: #fff;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.contact-info-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  border-color: #111;
}
.contact-info-section h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact-details { text-align: center; }
.contact-details p { 
  font-size: 1rem; 
  margin-bottom: 15px; 
  color: #333; 
}
.contact-details strong { 
  font-weight: 700; 
  color: #000; 
}

/* Anchor compensado por header fijo */
#contact { 
  scroll-margin-top: 70px; /* Ajustado a la altura correcta del navbar */
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .about-section {
    padding: 60px 0 60px 0;
    margin-top: 60px; /* Altura del navbar en tablet */
  }
  
  #contact { 
    scroll-margin-top: 60px;
  }
  
  .about-content h2 { font-size: 2rem; }
  .about-content p { font-size: 1rem; }

  .team-section h3 { font-size: 1.8rem; }
  .team-grid { grid-template-columns: 1fr; gap: 30px; }
  .team-member { padding: 30px 22px; }
  .team-member img { width: 120px; height: 120px; }

  .contact-info-section { padding: 30px 20px; }
  .contact-info-section h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .about-section {
    margin-top: 55px; /* Altura del navbar en móvil */
  }
  
  #contact { 
    scroll-margin-top: 55px;
  }
  
  .about-content h2 { font-size: 1.8rem; }
  .team-section h3 { font-size: 1.5rem; }
  .team-member img { width: 104px; height: 104px; }
  .member-info h4 { font-size: 1.2rem; }
  .bio { font-size: .9rem; }
  .contact-details p { font-size: .9rem; }
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .team-member,
  .team-member img,
  .contact-info-section { transition: none; }
}