/* Equipo */
.carousel-item {
  position: relative;
  height: 40vh;
}

.carousel-item img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

.carousel-item::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-caption {
  height: 90%;
  display: flex;
  align-items: center;
  z-index: 1;
}

.iconcircle-contacto {
  border-radius: 50%;
  box-sizing: border-box;
  border-width: 1px;
  border-style: solid;
  border-color: var(--secundario);
  color: var(--secundario);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
}

.iconcircle-contacto:hover {
  background-color: var(--secundario);
  color: var(--white) !important;
}


@media (max-width: 768px) {
  .carousel-item {
    min-height: 50vh;
    height: 50vh;
  }

  .carousel-item img {
    min-height: 50vh;
    object-fit: cover;
  }

  .carousel-caption {
    height: 95%;
    display: flex;
    align-items: center;
    z-index: 1;
  }
}


.container-contacto {
  position: relative;
}

.sello-agua-contacto {
  width: 35%;
  top: 50%;
  left: 50%;
  position: absolute;
  opacity: 0.15;
  z-index: -1;
  transform: translate(-50%, -50%);
}

/* Equipo Carrusel */
.team {
  position: relative;
  width: 100%;
  padding: 45px 0 15px 0;
}

.team .team-item {
  position: relative;
  margin-bottom: 75px;
}

.team .team-img {
  position: relative;
  background: url(../../img/equipo/fondoEquipo.webp);
}

.team .team-img img {
  width: 100%;
}

.team .team-text {
  position: absolute;
  width: calc(100% - 30px);
  height: 96px;
  bottom: -46px;
  left: 15px;
  padding: 25px 15px;
  text-align: center;
  background: rgba(256, 256, 256, .9);
  box-shadow: 0 0 30px rgba(0, 0, 0, .1);
  transition: .3s;
  overflow: hidden;
}

.team .team-text h2 {
  color: var(--cuarto);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.team .team-text p {
  margin-bottom: 20px;
  color: var(--primario);
}

.team .team-social {
  position: relative;
  font-size: 0;
}

.team .team-social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  margin: 0 3px;
  padding: 5px 0;
  text-align: center;
  font-size: 14px;
  color: var(--cuarto);
  border: 2px solid var(--cuarto);
  transition: .3s;
}

.team .team-social a:hover {
  color: var(--sexto);
  border-color: var(--sexto);
}

.team .team-item:hover .team-text {
  height: 200px;
}

/* Equipo Display */
.people-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  max-width: 1450px;
  margin: 0 auto;
}
@media only screen and (max-width: 1300px) {
  .people-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media only screen and (max-width: 1024px) {
  .people-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (max-width: 600px) {
  .people-container {
    grid-template-columns: 1fr;
  }
}
.people-container .individual-person {
  border: 1px solid #d1d1d1;
  margin-right: -1px;
  margin-bottom: -1px;
  padding: 1.5em 1em 0em 1em;
  height: 450px;
}

.people-container .individual-person .person-details {
  padding-top: 0.1em;
  height: 140px;
}
.people-container .individual-person .person-details a {
  text-decoration: none;
}
.people-container .individual-person .person-details .person-name {
  font-weight: 500;
  color: var(--dark);
  margin-block: 5px;
}
.people-container .individual-person .person-details .person-position {
  font-weight: 500;
  color: var(--cuarto);
  margin-bottom: 2px;
  text-transform: uppercase;
}
.people-container .individual-person .person-details .person-job-title {
  color: #909090;
  margin-bottom: 5px;
  font-size: 15px;
}

.person-img {
  background-color: var(--light) !important;
  transition: 0.2s ease-in-out;
}

.person-img:hover {
  background-color: var(--sexto) !important;
}

.people-container .individual-person img {
  width: 100%;
  object-fit: cover;
  min-height: 270px;
  max-height: 270px;
}
@media only screen and (max-width: 600px) {
  .people-container .individual-person {
    padding: 5%;
  }
}
@media only screen and (max-width: 600px) {
  .people-container .individual-person .person-details .person-job-title {
    font-size: 15px;
  }
}
@media only screen and (max-width: 600px) {
  .people-container .individual-person img {
    min-height: 200px;
  }
}

/* Pagina Profesional */
#detalleProfesional .carousel-item {
  position: relative;
  height: 75vh;
}

#detalleProfesional .carousel-item img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

#detalleProfesional .carousel-caption {
  height: 80%;
  text-align: start;
  display: flex;
  justify-content: start;
  align-items: start;
  z-index: 1;
}

#detalleProfesional #pageGen-carousel .btn {
  width: 200px;
}

#detalleProfesional .carousel-item p {
  margin: 0 auto 35px auto;
}

#contactoHeroProf .team .team-social {
  position: relative;
  font-size: 0;
}

#contactoHeroProf .team-social a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 35px;
  margin: 0 3px;
  padding: 5px 0;
  text-align: start;
  font-size: 14px;
  color: var(--white);
  transition: .3s;
}

#contactoHeroProf .team-social span {
  display: inline;
}

#contactoHeroProf .team-social a:hover {
  color: var(--secundario);
  border-color: var(--secundario);
}

@media (max-width: 768px) {
  #detalleProfesional .carousel-item {
    min-height: 80vh;
  }

  #detalleProfesional .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0%, 70%);
    height: 40vh;
    object-fit: cover;
  }

  #detalleProfesional .carousel-caption {
    height: 80%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: start;
    z-index: 1;
  }

  #contactoHeroProf .team-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    margin: 0 3px;
    padding: 5px 0;
    text-align: center;
    font-size: 14px;
    color: var(--white);
    transition: .3s;
  }

  #contactoHeroProf .team-social span {
    display: none;
  }
}