/* style-hero-slider.css — Part hero-slider (BEM). Bootstrap utilities para layout/responsive */

.ark-hero-slider {
  height: var(--ark-hero-slider-height, 70vh);
}

.ark-hero-slider--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.ark-hero-slider__slide {
  height: 100%;
  position: relative;
}

.ark-hero-slider__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4),
    transparent 50%,
    rgba(0, 0, 0, 0.4)
  );
  pointer-events: none;
  z-index: 1;
}

.ark-hero-slider__img {
  display: block;
}

.ark-hero-slider__link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Contenedor de controles (nav + paginación) con posicionamiento absoluto */
.ark-hero-slider__controls {
  position: absolute;
  bottom: var(--ark-hero-slider-controls-bottom, 60px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 0 1.25rem;
  max-width: var(--arkadia-container-max, 1080px);
  width: 100%;
}

/* Navegación: botones — posicionados a la izquierda, prev a la izquierda de next */
.ark-hero-slider__nav {
  position: absolute;
  left: 1.25rem;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

/* Paginación numérica (bullets) — posicionada a la derecha, ancho automático */
.ark-hero-slider .swiper-pagination {
  position: absolute;
  right: 1.25rem;
  left: auto;
  bottom: 0;
  width: auto;
  display: flex;
  gap: 0rem;
  justify-content: flex-end;
  z-index: 10;
}

.ark-hero-slider .swiper-pagination-bullet {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--color-surface);
  font-size: 16px;
  font-weight: 400;
  opacity: 1;
  z-index: 1;
}

.ark-hero-slider .swiper-pagination-bullet-active {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-surface);
  position: relative;
  z-index: 3;
}

.ark-hero-slider .swiper-pagination-bullet-active::after {
  content: '';
  width: 100px;
  height: 1px;
  background: var(--color-surface);
  z-index: 1;
  margin-left: 15px;
}

/* Botones de navegación */
.ark-hero-slider__nav-btn {
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-surface);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-surface);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  position: static; /* anula position: absolute de Swiper para que flex funcione */
}

.ark-hero-slider__nav-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-surface);
}

.ark-hero-slider__nav-btn i {
  font-size: 20px;
}

.ark-hero-slider .swiper-button-prev::after,
.ark-hero-slider .swiper-button-next::after,
.ark-hero-slider .swiper-navigation-icon {
  display: none;
}

/* Responsive: breakpoints de Bootstrap */
@media (max-width: 575.98px) {
  .ark-hero-slider {
    height: 60vh;
  }

  .ark-hero-slider__controls {
    bottom: var(--ark-hero-slider-controls-bottom, 30px);
    padding: 0 1rem;
  }

  .ark-hero-slider__nav {
    left: 1rem;
  }

  .ark-hero-slider .swiper-pagination {
    right: 1rem;
  }

  .ark-hero-slider .swiper-pagination-bullet {
    width: 2rem;
    height: 2rem;
    font-size: 0.8125rem;
  }

  .ark-hero-slider__nav-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}
