/* ── SECCIÓN hero / view (legado) ── */
section.team {
  background: #cccccc;
  padding: 6rem 0;
}

#team {
  padding: 6rem 0 0 0;
}

section.team .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

section.team h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}

section.team p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

#team div.lead p span {
  font-size: 25px;
}

/* ══════════════════════════════════════════════════════════════════
   SECCIÓN COMITÉ · Cuadrícula de miembros con párrafos
══════════════════════════════════════════════════════════════════ */

.team-committee {
  padding: 5rem 0 6rem;
  background-color: #ffffff;
}

/* ── Cabecera de sección ── */
.team-committee__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════════════════════════════
   TARJETA DE MIEMBRO (team-card)
══════════════════════════════════════════════════════════════════ */

.team-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: visible;          /* permite que el badge sobresalga */
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}

.team-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
  transform: translateY(-3px);
}

/* ── Zona de fotografía ── */
.team-card__photo-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background-color: #e9ecef;
  position: relative;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 3.5rem;
}

/* ── Badge flotante entre foto e info ── */
.team-card__badge-wrap {
  display: flex;
  justify-content: center;
  margin-top: -18px;          /* sube el badge para que solape el borde inferior de la foto */
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}

.team-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  border: none;
  color: #adb5bd;
  font-size: 0.72rem;
  text-decoration: none;
  cursor: default;
}

.team-card__badge--link {
  color: #1d6fa4;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.team-card__badge--link:hover {
  background: #1d6fa4;
  color: #ffffff;
}

/* ── Información del miembro ── */
.team-card__info {
  padding: 0.6rem 2rem 2rem;
  text-align: center;
  border-radius: 0 0 12px 12px;
}

.team-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.team-card__dept {
  font-size: 0.76rem;
  color: #5e629c;             /* azul suave, igual que en el diseño */
  margin: 0 0 0.45rem;
  line-height: 1.4;
}

.team-card__email {
  font-size: 0.76rem;
  color: #1d6fa4;
  text-decoration: none;
  word-break: break-all;
  display: block;
  line-height: 1.3;
}

.team-card__email:hover {
  text-decoration: underline;
  color: #155a88;
}
/* ── Título y descripción del banner ────────────────────────────── */
.team-banner-title {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: #0d1b2a;
  margin-bottom: 0.75rem;
}

.team-banner-desc {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 100;
  line-height: 1.8;
  color: #000000;
  max-width: 75%;
}

@media (min-width: 1200px) {
  .custom-margin {
    margin-left: -35px;
  }
}

@media (max-width: 1199.98px) {
  #team {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #team .col-text {
    text-align: left;
  }

  .team-banner-desc {
    max-width: 100%;
  }

  .team-committee {
    padding: 3rem 0 4rem;
  }

  .team-committee__title {
    font-size: 1.4rem;
  }

  .team-card__info {
    padding: 0.5rem 1rem 1.5rem;
  }

  .team-card__name {
    font-size: 0.82rem;
  }

  .team-card__dept,
  .team-card__email {
    font-size: 0.7rem;
  }
}
