:root{
  --brand:#13317B;
  --accent:#DADADA;
  --ink:#111827;
  --white:#ffffff;
}

.team-section{
  padding:48px 0 64px;
  background:linear-gradient(180deg,#fff 0%, #f7f9fc 100%);
}

.team-section .h1{
  color:var(--brand);
  font-weight:800;
  margin-bottom:.25rem;
}

.team-section .lead-slab{
  color:#4B5563;
  max-width:860px;
  margin:0 auto 2rem auto;
}

.team-section .card{
  width:100%;
  max-width:360px;
  border:0;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transition:transform .25s ease, box-shadow .25s ease;
}
.team-section .card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 36px rgba(0,0,0,.12);
}

.card-img-top{
  width:100%;
  height:280px;
  object-fit:cover;
  object-position:center;
}

.card-body{
  padding:18px 18px 20px;
}

.card-title{
  font-weight:700;
  color:var(--ink);
  margin-bottom:.35rem;
}

.role-badge{
  display:inline-block;
  font-size:.85rem;
  font-weight:600;
  color:var(--brand);
  background:rgba(19,49,123,.08);
  border:1px solid rgba(19,49,123,.18);
  border-radius:999px;
  padding:.25rem .6rem;
  margin-bottom:.6rem;
}

/* NUEVO: Píldora de Ruta */
.route-pill{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.9rem;
  color:#1f2937;
  background:var(--accent);
  border-radius:10px;
  padding:.5rem .65rem;
  line-height:1.25;
}

.btn-brand{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
  font-weight:600;
  border-radius:10px;
}
.btn-brand:hover{
  filter:brightness(.95);
  color:#fff;
}

.team-contact{
  font-weight:600;
  color:#334155;
  margin:.6rem 0 0;
  text-align:center;
}

/* Responsive */
@media (max-width:575.98px){
  .card-img-top{height:260px}
  .route-pill{font-size:.88rem}
}


.team-section .card .card-img-top{
  width: clamp(140px, 28vw, 200px);
  height: clamp(140px, 28vw, 200px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  margin: 1rem auto 0;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

@media (min-width: 992px){
  .team-section .card .card-img-top{
    width: 200px;
    height: 200px;
  }
}
