.ide-team-members-wrapper .department-block.hidden { display: none; }
.ide-team-members-wrapper .department-block.active { display: block; }

.team-department-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.department-intro {
  font-size: 1rem;
  color: #333;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top:30px;
}

.team-card {
  text-align: left;  
  background: var(--awb-color7);
}

.team-photo img {  
  aspect-ratio:1 / 1;
  width: 100%;
  height: auto;
}

.team-name {
  font-weight: 600;
  margin-top: .75rem;
  margin-left:.75rem;
  margin-right:.75rem;
  font-size:19px;
}

.team-position {
  color: #666;
  margin-bottom: .75rem;
  margin-left:.75rem;
  margin-right:.75rem;
}

.team-actions {
  display: flex;
  justify-content: flex-start;
  gap: .75rem;
    margin-bottom: .75rem;
  margin-left:.75rem;
  margin-right:.75rem;
}

.team-icon {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration:none!important;
}

.team-icon:hover {
  background: #e2e2e2;
  color: #fff;
  transform: translateY(-2px);
}

/* Modal */
.team-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.75);
  padding: 22px;
  z-index: 9999;
}

.team-modal[aria-hidden="false"] {
  display: flex;
}

.team-modal-dialog {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  position: relative;
}

.team-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 1;
}

.team-modal-close * {
  pointer-events: none;
}

.team-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  padding: 22px;
  z-index: 9999;
}

.team-modal[aria-hidden="false"] {
  display: flex;
}

/* ====== Navegación de departamentos ====== */
.ide-departments-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;  
}

.ide-departments-nav button {
	font-family: 'Plus Jakarta Sans', sans-serif;
  background: none;
  border: none;
  color: var(--awb-text-color); /* azul corporativo */
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.ide-departments-nav button:hover {
  text-decoration: underline; 
}

.ide-departments-nav button.active {
  font-weight: 700;
}

.icon-mail{font-family: 'feather' !important; font-size:22px; color:var(--awb-color2);}
.icon-mail:before{content: "\cd907";}

.icon-in{font-family: 'awb-icons' !important; font-size:20px; color:var(--awb-color2);}
.icon-in:before{content: "\e60f";}


