.contain-specialist {
  width: 100%;
  margin: 5rem auto;
  display: flex;
  justify-content: center;
  max-width: 1220px;
  align-items: start;
  background-color: #086aa2;
  height: 400px;
  border-radius: 10px;
  padding: 0.5rem 2rem;
}

.container-first-second-sections {
  max-width: 1220px;
  display: flex;
}

/* CAROUSEL NUEVO */

.contain-specialist .embla {
  margin: auto;
  position: relative;
  --slide-height: 19rem;
  --slide-spacing: 1rem;
  --slide-size: 70%;
}

.contain-specialist .embla__viewport {
  overflow: hidden;
  transform: none !important;
}

.contain-specialist .embla__container {
  backface-visibility: hidden;
  display: flex;
  gap: 1rem;
  touch-action: pan-y;
  padding: 0.8rem;
  margin-left: calc(var(--slide-spacing) * -1);
  /* transform: translate3d(0px, 0px, 0px) !important; */
}

.contain-specialist .embla__slide {
  flex: 0 0 var(20%);
  min-width: 300px;
  /* padding-left: var(--slide-spacing); */
}

.contain-specialist .embla__controls {
  width: 100%;
  position: absolute;
  top: 47%;
  height: 0;
}

.contain-specialist .embla__buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 0;
}

.contain-specialist .embla__button {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  -webkit-appearance: none;
  appearance: none;
  background-color: white;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 1rem;
  margin: 0;
  -webkit-box-shadow: 0px 0px 20px -4px rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0px 0px 20px -4px rgba(0, 0, 0, 0.12);
  box-shadow: 0px 0px 20px -4px rgba(0, 0, 0, 0.12);
  z-index: 1;
  border-radius: 50%;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contain-specialist .embla__button:disabled {
  color: var(--detail-high-contrast);
}

.contain-specialist .embla__button__svg {
  width: 20px;
}

.contain-specialist .first-section {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
  align-items: start;
  margin-top: 13px;
  height: 100%;
}

.contain-specialist .second-section {
  width: 68%;
}

.contain-specialist .first-section h2 {
  font-size: 20px;
  font-weight: 900;
  color: white;
}

.contain-specialist .first-section h2 span {
  font-size: 56px;
}

.contain-specialist .first-section p {
  font-size: 14px;
  color: #ffffff;
  font-weight: 300;
}

.contain-specialist .first-section button {
  border-radius: 20px;
  border: none;
  color: #086aa2;
  background-color: white;
  padding: 0.6rem;
  width: 90%;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  max-width: 400px;
}

.contain-specialist .card-specialist {
  user-select: none;
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 20px;
  min-width: 248px;
  display: flex;
  background: white;
  flex-direction: column;
  justify-content: space-between;
  height: fit-content;
  transition: none !important;
}

.contain-specialist .card-specialist button{
  width: 130px;
  border: none;
  border-radius: 3px;
  background-color: #086aa2;
  color: white;
  transition: .5s ease;
  padding: .3rem 1rem;
  font-weight: 700;
  font-size: 12px;
  margin: 1rem auto;
}

.contain-specialist .card-specialist button:hover{
  cursor: pointer;
  text-decoration: underline;
}

.contain-specialist .card-specialist .info-doc {
  padding: .5rem 1rem 0 1rem;
}

.contain-specialist .card-specialist .content-img {
  width: 100%;
  height: fit-content;
  position: relative;
  height: 258px;
  object-fit: cover;
  object-position: top;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
}

.contain-specialist .card-specialist .content-img .img-doc {
  width: 100%;
  height: 250px;
  border-top-right-radius:20px;
  border-top-left-radius: 20px;
  object-fit: cover;
  object-position: top;
  cursor: pointer;
}

.contain-specialist .card-specialist .content-img span{
  position: absolute;
  bottom: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  left: 0;
  background-color: #8a8a8a;
  padding: .3rem 0;
  color: white;
  width: 100%;
}


.contain-specialist .card-specialist .text-new {
  position: absolute;
  top: 0;
  border-top-left-radius: 21px;
  left: 0;
  background-color: #086aa2;
  padding: 0.3rem 1rem;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
  clip-path: polygon(100% 0%, 87% 52%, 100% 100%, 0 100%, 0 50%, 0 0);
}

.contain-specialist .card-specialist .info-doc h4 {
  font-size: 16px;
  height: 20px;
  overflow: hidden;
  font-weight: 700;
  margin: 0;
}

.contain-specialist .card-specialist .info-doc p {
  font-size: 12px;
  font-weight: 300;
  margin: 0;
  color: gray;
  overflow: hidden;
  height: 22px;
  display: flex;
}

.contain-specialist .card-specialist .footer-card {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.contain-specialist .card-specialist .footer-card p {
  width: 60%;
  font-size: 12px;
  text-transform: capitalize;
  margin-bottom: 0;
  font-weight: 300;
  overflow: hidden;
  display: flex;
}

.contain-specialist .card-specialist .footer-card span {
  font-weight: 700;
  color: black;
  display: flex;
  font-size: 14px;
  align-items: center;
  gap: 6px;
}

.contain-specialist .card-specialist .footer-card span img{
  width: 17px;
  height: 17px;
}


.loading-container {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader {
  width: 8px;
  height: 8px;
  position: relative;
  border-radius: 50%;
  background: #086aa2;
  animation: wave 1s ease-in infinite;
}

@keyframes wave {
  0% {
    box-shadow: 0 0 0 0px #086aa2, 0 0 0 20px rgba(255, 255, 255, 0.2),
      0 0 0 40px rgba(255, 255, 255, 0.6), 0 0 0 60px rgba(255, 255, 255, 0.4),
      0 0 0 80px rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 0 80px rgba(255, 255, 255, 0),
      0 0 0 60px rgba(255, 255, 255, 0.2), 0 0 0 40px rgba(255, 255, 255, 0.4),
      0 0 0 20px rgba(255, 255, 255, 0.6), 0 0 0 0px #086aa2;
  }
}

@media screen and (max-width:1200px) {
  .contain-specialist{
    border-radius: 0;
  }
  
}

@media screen and (max-width: 1200px) {
  .contain-specialist {
    flex-direction: column;
    height: 600px;
    padding: 0.5rem 1rem;
  }
  .contain-specialist .first-section {
    width: 100%;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
    margin-top: 56px;
  }
  .contain-specialist .first-section h2 {
    display: flex;
    align-items: center;
  }
  .contain-specialist .second-section {
    width: 100%;
    margin-top: 15px;
  }
  .contain-specialist .first-section h2 span {
    margin-left: 1rem;
  }
  .contain-specialist .card-specialist .img-doc {
    height: 250px;
  }
}
@media screen and (max-width: 1000px) {
  .contain-specialist .first-section h2 {
    font-size: 20px;
    font-weight: 900;
    color: white;
  }

  .contain-specialist .first-section h2 span {
    font-size: 46px;
  }
}



@media screen and (max-width: 780px) {
}

@media screen and (max-width: 600px) {
  .contain-specialist .first-section{
    margin-bottom: 0;
  }
  .contain-specialist .card-specialist {
    width: 300px;
  }
  .contain-specialist .first-section h2 {
    font-size: 16px;
  }
  .contain-specialist .first-section h2 span {
    font-size: 26px;
    margin-left: 1rem;
  }
  
}

@media screen and (max-width: 500px) {
  .contain-specialist .card-specialist .content-img span {
    font-size: 13px;
  }

  .contain-specialist .card-specialist h4 {
    font-size: 14px;
  }

  .contain-specialist .card-specialist p {
    font-size: 13px;
  }
  .contain-specialist .content-title-specialist h2 {
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 20px;
  }
}
