:root {
  --bg-card: rgb(255, 255, 255);
}

.seccion-team-eres {
  width: 95%;
  margin: auto;
  background: var(--gris-muy-claro);
  box-shadow: 0 0 5px 0 rgb(172, 172, 172);
}

.team-eres-title {
  font-size: 22px;
  text-align: center;
  padding: 10px;
}

.text {
  font-weight: 600;
  color: var(--gris);
}

.text-verde {
  font-weight: 700;
  color: var(--verde);
}

.text-azul {
  font-weight: 700;
  color: var(--azul);
}

.team-imgs-container {
  padding-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.break {
  flex-basis: 100%;
  height: 0;
}

.team-member-card {
  position: relative;
  overflow: hidden;
  margin: 0 5px;
  padding: 10px;
  padding-bottom: 0;
  width: 25%;
  background: var(--bg-card);
  cursor: pointer;
}

.card-img-top {
  box-shadow: 0 0 10px #000;
}

.card-body {
  padding: 5px;
  background: var(--bg-card);
  z-index: 5;
  margin: 0;
}

.card-title {
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0;
}

.card-text {
  text-align: center;
  font-size: 11px;
}

.card-title + .card-text {
  text-align: center;
}

.team-member-card .card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 100%;
  z-index: 10;
  color: #fff;
  background: var(--gris-oscuro);
  transition: top ease-in-out 0.5s;
  overflow-y: scroll;
}
.team-member-card:hover .card-footer {
  top: 0;
}

.card-footer .card-text {
  font-size: 13px;
}

.ver-perfil {
  height: 35px;
  flex-grow: initial;
  font-size: 12px;
  text-decoration: none;
  padding: 7px;
  color: #eee;
  border: 1px solid #eee;
  background: none;
  border-radius: 5px;
  cursor: pointer;
}

.ver-perfil:hover {
  color: #33f;
  text-decoration: underline;
}

/* MEDIA */
@media (max-width: 1000px) {
  .team-member-card {
    width: 40%;
  }

  .team-member-card:nth-child(1) {
    order: 2;
  }
  .team-member-card:nth-child(2) {
    order: 1;
    margin: 0 150px;
    margin-bottom: 20px;
  }
  .team-member-card:nth-child(3) {
    order: 3;
  }
}

@media (max-width: 670px) {
  .team-member-card {
    width: 60%;
    margin-bottom: 20px;
  }

  .team-member-card:nth-child(2) {
    margin: auto;
    margin-bottom: 20px;
  }
}

@media (max-width: 450px) {
  .team-member-card {
    width: 80%;
  }
}

@media (max-width: 350px) {
  .team-member-card {
    width: 90%;
  }
}
