/* Copyright (c) 2026 IteroLab. Developed by Pedro Iván Parada S. | https://iparada.com */
/* Carrusel principal: conserva la composición de la tarjeta y distribuye la navegación. */
.portrait-panel .tbc-hero-carousel {
  position: absolute;
  inset: 0;
  z-index: auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portrait-panel .tbc-carousel-track,
.portrait-panel .tbc-carousel-slide {
  width: 100%;
  height: 100%;
}

.portrait-panel .tbc-carousel-slide[hidden] {
  display: none !important;
}

.portrait-panel .tbc-carousel-slide .portrait,
.portrait-panel > img.portrait,
.portrait-panel .tbc-carousel-slide > img.portrait {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.portrait-panel .tbc-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: block;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.portrait-panel .tbc-carousel-controls button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 17, 29, .68);
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color .18s ease, border-color .18s ease;
}

.portrait-panel .tbc-carousel-controls button:hover {
  color: #fff;
  background: rgba(10, 17, 29, .94);
  border-color: rgba(119, 225, 228, .75);
}

.portrait-panel .tbc-carousel-controls button:focus-visible {
  outline: 3px solid #77E1E4;
  outline-offset: 3px;
}

.portrait-panel .tbc-carousel-prev,
.portrait-panel .tbc-carousel-next {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.portrait-panel .tbc-carousel-prev {
  left: clamp(10px, 2vw, 20px);
}

.portrait-panel .tbc-carousel-next {
  right: clamp(10px, 2vw, 20px);
}

.portrait-panel .tbc-carousel-prev span,
.portrait-panel .tbc-carousel-next span {
  font-size: 27px;
  line-height: 1;
}

/* Indicadores pequeños; el área táctil sigue siendo mayor que el punto visible. */
.portrait-panel .tbc-carousel-controls .tbc-carousel-dots {
  position: absolute;
  right: 66px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: auto;
  max-width: calc(100% - 124px);
  overflow: hidden;
  transform: none;
  background: transparent;
  pointer-events: auto;
}

.portrait-panel .tbc-carousel-dots button {
  position: relative;
  display: inline-flex;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.portrait-panel .tbc-carousel-dots button::before {
  display: block;
  width: 3px;
  height: 3px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  content: "";
}

.portrait-panel .tbc-carousel-dots button[aria-current="true"]::before {
  width: 5px;
  height: 5px;
  border-color: #77E1E4;
  background: #77E1E4;
}

.portrait-panel .tbc-carousel-controls .tbc-carousel-toggle {
  position: absolute;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  background: rgba(10, 17, 29, .60);
}

.portrait-panel .tbc-carousel-toggle-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.portrait-panel .tbc-carousel-controls .tbc-carousel-toggle [data-tbc-toggle-icon] {
  font-size: 15px;
  line-height: 1;
}

.portrait-panel .tbc-hero-carousel ~ .portrait-overlay {
  pointer-events: none;
}

@media (max-width: 760px) {
  .portrait-panel .tbc-carousel-prev {
    left: 8px;
  }

  .portrait-panel .tbc-carousel-next {
    right: 8px;
  }

  .portrait-panel .tbc-carousel-controls .tbc-carousel-dots {
    right: 60px;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: calc(100% - 112px);
  }

  .portrait-panel .tbc-carousel-dots button {
    flex-basis: 12px;
    width: 12px;
    min-width: 12px;
  }

  .portrait-panel .tbc-carousel-controls .tbc-carousel-toggle {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .portrait-panel .tbc-carousel-prev,
  .portrait-panel .tbc-carousel-next {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .portrait-panel .tbc-carousel-controls .tbc-carousel-dots {
    right: 56px;
    max-width: calc(100% - 104px);
  }

  .portrait-panel .tbc-carousel-dots button {
    flex-basis: 10px;
    width: 10px;
    min-width: 10px;
  }

  .portrait-panel .tbc-carousel-controls .tbc-carousel-toggle {
    right: 8px;
  }
}

@media (max-width: 360px) {
  .portrait-panel .tbc-carousel-controls .tbc-carousel-dots {
    display: none;
  }
}

@media (max-width: 690px) and (min-height: 660px) {
  .portrait-panel .tbc-carousel-slide > img.portrait {
    object-position: 50% 0% !important;
  }
}

@media (max-width: 600px) {
  .portrait-panel .tbc-carousel-slide > img.portrait {
    object-position: 56% 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-panel .tbc-carousel-slide,
  .portrait-panel .tbc-carousel-slide *,
  .portrait-panel .tbc-carousel-controls {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Accesibilidad: respeta la preferencia del sistema por movimiento reducido. */
@media (prefers-reduced-motion: reduce) {
  .tbc-carousel, .tbc-carousel *, .tatiana-carousel, .tatiana-carousel * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
