.carousel-container {
  width: 100%;
  max-width: 1200px;
  height: 450px;
  position: relative;
  perspective: 1000px;
}
.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.team-card {
  position: absolute;
  width: 280px;
  height: 380px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  /* Asegurar contenedor uniforme */
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Asegurar que todas las imágenes mantengan su aspecto */
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  display: block;
  /* Evitar distorsión y asegurar calidad uniforme */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.team-card.center {
  z-index: 10;
  transform: scale(1.1) translateZ(0);
}
.team-card.center img {
  filter: none;
}
.team-card.left-2 {
  z-index: 1;
  transform: translateX(-400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}
.team-card.left-2 img {
  filter: grayscale(100%);
}
.team-card.left-1 {
  z-index: 5;
  transform: translateX(-200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}
.team-card.left-1 img {
  filter: grayscale(100%);
}
.team-card.right-1 {
  z-index: 5;
  transform: translateX(200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}
.team-card.right-1 img {
  filter: grayscale(100%);
}
.team-card.right-2 {
  z-index: 1;
  display: none;
  opacity: 0.7;
}
@media (min-width: 768px) {
  .team-card.right-2 {
    display: block;
    transform: translateX(400px) scale(0.8) translateZ(-300px);
  }
}
.team-card.right-2 img {
  filter: grayscale(100%);
}
.team-card.hidden {
  opacity: 0;
  pointer-events: none;
}
.member-info {
  text-align: center;
  margin-top: 40px;
  transition: all 0.5s ease-out;
}
.member-name {
  color: #082a7b;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
[data-theme="dark"] .member-name {
  color: white;
}
.member-name::before,
.member-name::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 100px;
  height: 2px;
  background: #082a7b;
}
.member-name::before {
  left: -120px;
}
.member-name::after {
  right: -120px;
}
.member-role {
  color: #ff3615;
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 0;
  margin-top: -15px;
  position: relative;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(8, 42, 123, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
[data-theme="dark"] .dot {
  background: white;
}
.dot.active {
  background: #082a7b;
  transform: scale(1.2);
}
[data-theme="dark"] .dot.active {
  background: #ff3615;
}
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8, 42, 123, 0.6);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  border: none;
  outline: none;
  padding-bottom: 4px;
}
.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}
.nav-arrow.left {
  left: 20px;
  padding-right: 3px;
}
.nav-arrow.right {
  right: 20px;
  padding-left: 3px;
}
@media (max-width: 768px) {
  .about-title {
    font-size: 4.5rem;
  }
  .team-card {
    width: 200px;
    height: 280px;
    /* Mantener la proporción de imagen consistente en móvil */
  }
  .team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-width: 100%;
    min-height: 100%;
  }
  .team-card.left-2 {
    display: none;
  }
  .team-card.left-1 {
    transform: translateX(-120px) scale(0.9) translateZ(-100px);
  }
  .team-card.right-1 {
    transform: translateX(120px) scale(0.9) translateZ(-100px);
  }
  .team-card.right-2 {
    transform: translateX(250px) scale(0.8) translateZ(-300px);
  }
  .member-name {
    font-size: 2rem;
  }
  [data-theme="black"] .member-name {
    color: white;
  }
  .member-role {
    font-size: 1.2rem;
  }
  .member-name::before,
  .member-name::after {
    width: 50px;
  }
  .member-name::before {
    left: -70px;
  }
  .member-name::after {
    right: -70px;
  }
}
@media (max-width: 768px) and (min-width: 768px) {
  .team-card {
    width: 200px;
    height: 280px;
  }
}
@media (max-width: 768px) and (min-width: 768px) {
  .team-card.left-2 {
    display: block;
    transform: translateX(-250px) scale(0.8) translateZ(-300px);
  }
}
