.imp-hero-carousel {
  --imp-hero-height: clamp(546px, 44.2708vw, 638px) !important;
  --imp-hero-speed: 520ms;
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  background-color: #b91512;
  box-sizing: border-box;
}

.e-con:has(> .elementor-widget-imperatriz_hero_carousel) {
  padding-block-start: 0 !important;
  padding-block-end: 0 !important;
  padding-inline: 0 !important;
}

.imp-hero-carousel__viewport {
  position: relative;
  width: 100%;
  max-width: var(--imp-site-canvas-max-width, 1920px) !important;
  margin-inline: auto;
  overflow: hidden;
  background: #b91512;
}

.imp-hero-carousel__track {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: 0;
  height: var(--imp-hero-height);
  aspect-ratio: 1920 / 850;
  transition: transform var(--imp-hero-speed) ease;
  will-change: transform;
}

.imp-hero-carousel__slide {
  position: relative;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background-color: #b91512;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.imp-hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transition-delay: 0s;
}

.imp-hero-carousel__slide picture,
.imp-hero-carousel__picture,
.imp-hero-carousel__poster,
.imp-hero-carousel__video,
.imp-hero-carousel__link {
  display: block;
  width: 100%;
  height: 100%;
}

.imp-hero-carousel__slide > .imp-hero-carousel__video,
.imp-hero-carousel__link > .imp-hero-carousel__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 180ms ease;
}

.imp-hero-carousel__slide > .imp-hero-carousel__picture,
.imp-hero-carousel__slide > .imp-hero-carousel__poster,
.imp-hero-carousel__link > .imp-hero-carousel__picture,
.imp-hero-carousel__link > .imp-hero-carousel__poster {
  position: relative;
  z-index: 1;
}

.imp-hero-carousel__video.is-ready,
.imp-hero-carousel__video.is-playing {
  opacity: 1;
}

.imp-hero-carousel__image,
.imp-hero-carousel__poster-image,
.imp-hero-carousel__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  background-color: #b91512;
}

.imp-hero-carousel__video {
  border: 0;
  outline: 0;
}

.imp-hero-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.imp-hero-carousel__arrow:hover,
.imp-hero-carousel__arrow:focus-visible {
  opacity: 0.94;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.imp-hero-carousel__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.imp-hero-carousel__arrow svg {
  width: 64%;
  height: 64%;
}

.imp-hero-carousel__arrow--prev {
  left: 28px;
}

.imp-hero-carousel__arrow--next {
  right: 28px;
}

.imp-hero-carousel__arrow:focus-visible,
.imp-hero-carousel__dot:focus-visible,
.imp-hero-carousel__link:focus-visible {
  outline: 3px solid #fff4b8;
  outline-offset: 3px;
}

.imp-hero-carousel__dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.imp-hero-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #fff !important;
  opacity: 0.55;
  pointer-events: auto;
  cursor: pointer;
}

.imp-hero-carousel__dot.is-active {
  opacity: 1;
  transform: scale(1.25);
}

.imp-hero-carousel__empty {
  padding: 24px;
  color: #7a0c16;
  background: #fff4b8;
  border: 1px dashed #d50000;
}

@media (max-width: 767px) {
  .imp-hero-carousel {
    --imp-hero-height: clamp(360px, 118vw, 494px) !important;
  }

  .imp-hero-carousel__arrow {
    width: 44px !important;
    height: 44px !important;
  }

  .imp-hero-carousel__arrow--prev {
    left: 12px;
  }

  .imp-hero-carousel__arrow--next {
    right: 12px;
  }
}

@media (max-width: 360px) {
  .imp-hero-carousel {
    --imp-hero-height: clamp(330px, 106vw, 380px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .imp-hero-carousel__track,
  .imp-hero-carousel__arrow {
    transition: none;
  }

  .imp-hero-carousel__arrow:hover,
  .imp-hero-carousel__arrow:focus-visible,
  .imp-hero-carousel__arrow:active {
    transform: translateY(-50%);
  }
}
