/* ============================================================
   Team  -  instructores como avatares circulares (compactos)
   scoped: .out-team-sec  (paleta navy #173856)
   ============================================================ */

/* Tarjeta: sin caja, contenido centrado */
.out-team-sec .team-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  align-items: center;
  text-align: center;
  padding: 8px 8px 0;
}

/* Avatar circular pequeño */
.out-team-sec .team-block .img-block {
  width: clamp(118px, 9vw, 150px);
  height: clamp(118px, 9vw, 150px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 16px 32px -16px rgba(23, 56, 86, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.out-team-sec .team-block .img-block img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}
.out-team-sec .team-block:hover .img-block {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -16px rgba(23, 56, 86, 0.6);
}

/* Contenido centrado bajo el avatar */
.out-team-sec .team-block .team-content {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 0 8px 8px;
}
.out-team-sec .team-block .team-content .h6 {
  color: #173856;
  font-size: clamp(15px, 1.1vw, 17px);
}
.out-team-sec .team-block .team-content .subtitle {
  color: #6b7684;
  font-size: 13px;
}
.out-team-sec .team-block .team-content > div:last-child {
  justify-content: center;
}
.out-team-sec .team-block .team-content .links-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
}
.out-team-sec .team-block .team-content a:hover .links-icon {
  transform: translateY(-2px);
}

/* ============================================================
   Carrusel de equipo (dinamico e interactivo)
   ============================================================ */
.team-carousel-sec .team-carousel {
  margin: 0 -14px;
  visibility: hidden;
}
.team-carousel-sec .team-carousel.slick-initialized {
  visibility: visible;
}
.team-carousel-sec .team-carousel .slick-track {
  display: flex !important;
  align-items: flex-start;
}
.team-carousel-sec .team-carousel .slick-slide {
  height: auto;
  padding: 10px 14px;
}
.team-carousel-sec .team-carousel .team-slide {
  height: 100%;
}

/* Controles: flechas + dots centrados bajo el carrusel */
.team-carousel-sec .team-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.team-carousel-sec .team-controls .arrow-btn {
  width: 54px;
  height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #E2E6EB;
  background: #fff;
  box-shadow: 0 8px 20px -14px rgba(23, 56, 86, 0.55);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, transform 0.2s ease;
}
.team-carousel-sec .team-controls .arrow-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}
.team-carousel-sec .team-controls .arrow-btn svg path {
  transition: fill 0.3s ease;
}
.team-carousel-sec .team-controls .arrow-btn:hover {
  background: #e77235;
  border-color: #e77235;
  box-shadow: 0 16px 28px -14px rgba(231, 114, 53, 0.7);
  transform: translateY(-2px);
}
.team-carousel-sec .team-controls .arrow-btn:hover svg path {
  fill: #ffffff;
}
.team-carousel-sec .team-controls .btn-prev:hover svg { transform: translateX(-3px); }
.team-carousel-sec .team-controls .btn-next:hover svg { transform: translateX(3px); }
.team-carousel-sec .team-controls .arrow-btn:active { transform: scale(0.94); }
.team-carousel-sec .team-controls .arrow-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}

/* Dots */
.team-carousel-sec .team-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-carousel-sec .team-dots .slick-dots {
  position: static;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-carousel-sec .team-dots .slick-dots li { width: auto; height: auto; margin: 0; }
.team-carousel-sec .team-dots .slick-dots li button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #D5DBE1;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.team-carousel-sec .team-dots .slick-dots li button::before { display: none; }
.team-carousel-sec .team-dots .slick-dots li.slick-active button {
  width: 26px;
  border-radius: 100px;
  background: #e77235;
}
.team-carousel-sec .team-dots .slick-dots li:not(.slick-active) button:hover { background: #91A0AC; }

@media (max-width: 575px) {
  .team-carousel-sec .team-controls .arrow-btn { width: 48px; height: 48px; }
}
