/* =========================================
   HONDA AUTOS - HERO SLIDER
   PHP + HTML + CSS + JS
========================================= */

.honda-hero {
  --honda-red: #cc0000;
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 416;
  overflow: hidden;
  background: #111;
  isolation: isolate;
  font-family: "Open Sans", Arial, sans-serif;
}

.honda-hero *,
.honda-hero *::before,
.honda-hero *::after {
  box-sizing: border-box;
}

.honda-hero__track {
  position: absolute;
  inset: 0;
}

.honda-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 0;
}

.honda-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.honda-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* FLECHAS */

.honda-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    background .3s,
    border-color .3s,
    transform .3s;
}

.honda-hero__arrow:hover {
  background: var(--honda-red);
  border-color: var(--honda-red);
  transform: translateY(-50%) scale(1.08);
}

.honda-hero__arrow svg {
  width: 23px;
  height: 23px;
}

.honda-hero__prev {
  left: 25px;
}

.honda-hero__next {
  right: 25px;
}

/* INDICADORES */

.honda-hero__bottom {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 40px;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.honda-hero__pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}

.honda-hero__dot {
  position: relative;
  width: 38px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: rgba(255,255,255,.4);
  overflow: hidden;
  cursor: pointer;
}

.honda-hero__dot span {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

.honda-hero__dot.is-active span {
  background: var(--honda-red);
  animation: hondaProgress 5s linear forwards;
}

.honda-hero.is-paused
.honda-hero__dot.is-active span {
  animation-play-state: paused;
}

@keyframes hondaProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* CONTADOR */

.honda-hero__counter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.honda-hero__separator {
  opacity: .45;
}

/* TABLET */

@media (max-width: 1024px) {
  .honda-hero__arrow {
    width: 38px;
    height: 38px;
  }

  .honda-hero__prev {
    left: 12px;
  }

  .honda-hero__next {
    right: 12px;
  }
}

/* MOVIL */

@media (max-width: 767px) {
  .honda-hero {
    aspect-ratio: 1000 / 416;
  }

  .honda-hero__arrow {
    width: 28px;
    height: 28px;
    border-color: rgba(255,255,255,.25);
  }

  .honda-hero__arrow svg {
    width: 17px;
    height: 17px;
  }

  .honda-hero__prev {
    left: 6px;
  }

  .honda-hero__next {
    right: 6px;
  }

  .honda-hero__bottom {
    bottom: 5px;
    gap: 10px;
    padding: 7px 11px;
  }

  .honda-hero__dot {
    width: 22px;
    height: 3px;
  }

  .honda-hero__counter {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .honda-hero__slide,
  .honda-hero__arrow {
    transition: none;
  }

  .honda-hero__dot.is-active span {
    animation: none;
    width: 100%;
  }
}
