/*Estilo de banner publicitario*/

.lead-banner {
  position: relative;
  
  max-width: 300px;
  height: 402px;
  margin: 20px auto;
  overflow: hidden;
  background: #eee;
  border-radius: 4px;
  border: 0;
}

.lead-banner__label {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 4px 6px;
  border-radius: 2px;
  pointer-events: none
}

.lead-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease
}

.lead-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1
}

.lead-banner__slide a,
.lead-banner__slide img {
  display: block;
  width: 100%;
  height: 100%;
  
}

.lead-banner__slide img {
  object-fit: cover;
}

.lead-banner__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s
}

.lead-banner:hover .lead-banner__btn,
.lead-banner__btn:focus-visible {
  opacity: 1
}

.lead-banner__btn--prev {
  left: 8px
}

.lead-banner__btn--next {
  right: 8px
}

.lead-banner__dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px
}

.lead-banner__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer
}

.lead-banner__dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4)
}

.lead-banner__slide img {
  transition: transform .4s
}

.lead-banner__slide a:hover img {
  transform: scale(1.02)
}

/* Mobile: formato más alto y flechas siempre visibles */
.lead-banner {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin: 14px 0;
    border-radius: 8px;
    overflow: hidden;
}

    /* Tablets y pantallas generales */
@media (min-width: 768px) {
  .lead-banner {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
  }
}

/* Dispositivos móviles */
@media (max-width: 767px) {
  .lead-banner {
    width: 100%;
    max-width: 300px;
    height: 402px;
    margin: 14px auto;
    border-radius: 6px;
  }

  .lead-banner__btn {
    opacity: .85;
    width: 32px;
    height: 32px;
  }
}


@media (prefers-reduced-motion:reduce) {

  .lead-banner__slide,
  .lead-banner__slide img {
    transition: none
  }
}
