/* =========================================================================
   Carpeta Estructural Semántica: team_
   ========================================================================= */

.section_team {
  background: var(--c-card-dark);
  margin-top: 8.125rem;    /* 130px — visual separation */
}

/* Bottom padding — padding-section-large only handles top */
.section_team > .padding-global.padding-section-large {
  padding-bottom: 6.875rem; /* 110px */
}

.team_eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--c-celeste);
}

.team_heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2.75rem;      /* 44px */
  line-height: 1.02;
  letter-spacing: 0.03em;
  color: var(--c-ghost);
  text-transform: uppercase;
  margin: 1rem 0 0;
}

.team_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;             /* 24px */
  margin-top: 3rem;        /* 48px */
}

/* ─── Team card ─── */
.team_card {
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-container);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team_card-photo {
  width: 100%;
  height: 15rem;           /* 240px — capped so name + bio stay visible */
  overflow: hidden;
  background: var(--c-band-edge);
}

.team_card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(0.18) contrast(1.02);
}

.team_card-body {
  padding: 1.5rem;         /* 24px */
}

.team_card-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.375rem;     /* 22px */
  letter-spacing: 0.02em;
  color: var(--c-ghost);
}

.team_card-role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;    /* 13px */
  letter-spacing: 0.1em;
  color: var(--c-celeste);
  margin-top: 0.375rem;
}

.team_card-bio {
  font-family: var(--font-primary);
  font-size: 0.9375rem;    /* 15px */
  line-height: 1.65;
  color: var(--c-ghost-grey);
  margin: 1rem 0 0;
}

.team_card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;             /* 8px */
  margin-top: 1.125rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;    /* 13px */
  letter-spacing: 0.1em;
  color: var(--c-celeste);
  text-decoration: none;
  transition: color 0.2s ease;
}

.team_card-linkedin svg {
  width: 1.125rem;         /* 18px */
  height: 1.125rem;
  fill: currentColor;
  flex: none;
}

.team_card-linkedin:hover {
  color: var(--c-ghost);
}

/* Tablet — 2 up keeps each card (and its photo) at a sensible width */
@media (max-width: 900px) {
  .section_team {
    margin-top: 5rem;
  }
  .team_heading {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
  }
  .team_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Mobile — single centered card, photo switches to a portrait crop */
@media (max-width: 600px) {
  .team_grid {
    grid-template-columns: 1fr;
    max-width: 24rem;      /* 384px — stops the lone card going full-bleed */
    margin-left: auto;
    margin-right: auto;
  }
  .team_card-photo {
    height: auto;
    aspect-ratio: 4 / 5;   /* portrait — reads better full width */
  }
}
