/* Slider principal de portada: responsive, sencillo y con autoplay CSS cada 7 segundos. */
.home-slider {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 52vw, 560px);
  overflow: hidden;
  background: #f6f6f4;
}

.home-slider__track {
  position: relative;
  min-height: inherit;
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: clamp(28px, 6vw, 76px) clamp(22px, 8vw, 110px);
  box-sizing: border-box;
  background-size: cover;
  background-position: center right;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}

.home-slider__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .82) 34%, rgba(255, 255, 255, .42) 62%, rgba(255, 255, 255, .14) 100%);
}

.home-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-slider:not(.home-slider--manual) .home-slider__slide {
  animation: homeSliderAutoplay 21s infinite;
}

.home-slider:not(.home-slider--manual) .home-slider__slide:nth-child(2) {
  animation-delay: 7s;
}

.home-slider:not(.home-slider--manual) .home-slider__slide:nth-child(3) {
  animation-delay: 14s;
}

.home-slider__content {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  text-align: left;
}

.home-slider__content h3 {
  margin: 0 0 16px 0;
  color: #222;
  font-family: var(--fuente-interface, Arial, Helvetica, sans-serif);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-slider__content p {
  margin: 0 0 24px 0;
  color: #444;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  text-align: left;
}

.home-slider__link {
  display: inline-block;
  padding: 14px 22px;
  background: var(--color-primario, #ff5e00);
  color: #fff !important;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.home-slider__link:hover {
  background: #222;
  text-decoration: none;
}

.home-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #222;
  font-size: 34px;
  line-height: 40px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
}

.home-slider__arrow:hover {
  background: #fff;
  color: var(--color-primario, #ff5e00);
}

.home-slider__arrow--prev {
  left: 18px;
}

.home-slider__arrow--next {
  right: 18px;
}

@keyframes homeSliderAutoplay {
  0%,
  29% {
    opacity: 1;
    visibility: visible;
  }

  33%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slider:not(.home-slider--manual) .home-slider__slide {
    animation: none;
  }
}

@media (max-width: 760px) {
  .home-slider {
    min-height: 430px;
  }

  .home-slider__slide {
    align-items: flex-end;
    padding: 34px 22px 72px 22px;
    background-position: center;
  }

  .home-slider__slide::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .9) 55%, rgba(255, 255, 255, .96) 100%);
  }

  .home-slider__arrow {
    top: auto;
    bottom: 18px;
    width: 40px;
    height: 40px;
    margin-top: 0;
    font-size: 28px;
    line-height: 34px;
  }

  .home-slider__arrow--prev {
    left: 22px;
  }

  .home-slider__arrow--next {
    right: 22px;
  }
}
