/* Hero "Arrendamiento Puro" */
.hero-carousel {
  overflow: hidden;
}

.hero-carousel .carousel-inner {
  position: relative;
}

.hero-photo,
.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
  height: clamp(420px, 78vh, 720px);
}

.hero-photo img {
  object-fit: cover;
  object-position: center;
}

.hero-photo-cars img {
  object-position: 88% 50%;
}

.hero-photo-vans img {
  object-position: 68% 58%;
}

.hero-photo-machinery img {
  object-position: 50% 48%;
}

.hero-photo-solar img {
  object-position: 50% 68%;
}

.hero-text {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(40%, 670px);
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: translateX(-26px);
  animation: hero-text-in 0.7s ease forwards;
}

@keyframes hero-text-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-title-carousel {
  width: 100%;
  margin: 0 0 -1px;
}

.hero-title-carousel .carousel-inner {
  overflow: hidden;
}

.hero-text h1 {
  margin: 0;
  background-color: #33357d;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: clamp(1.2rem, 0.9rem + 1.1vw, 1.75rem);
  line-height: 1.25;
  white-space: normal;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.25rem);
  min-height: clamp(4.6rem, 3.7rem + 3.1vw, 6.1rem);
  display: flex;
  align-items: center;
}

.hero-text-body {
  position: relative;
  background-color: #eef0f3;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 2.25rem);
}

.hero-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.hero-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.9rem;
  color: #33357d;
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.05rem);
  line-height: 1.5;
  opacity: 0;
  transform: translateX(-14px);
  animation: hero-item-in 0.55s ease forwards;
}

.hero-list li:last-child {
  margin-bottom: 0;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #81aae0;
}

.hero-list li:nth-child(1) { animation-delay: 0.45s; }
.hero-list li:nth-child(2) { animation-delay: 0.6s; }
.hero-list li:nth-child(3) { animation-delay: 0.75s; }

@keyframes hero-item-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-note {
  margin: -0.9rem 0 1.25rem;
  padding-left: 1.15rem;
  color: #6b7290;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.4;
}

.hero-cta {
  display: inline-block;
  background-color: #81aae0;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2.2rem;
  border-radius: 1.6rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  animation: hero-cta-in 0.55s ease forwards;
  animation-delay: 0.9s;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  background-color: #6a97d6;
}

@keyframes hero-cta-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-dots {
  position: absolute;
  right: clamp(5rem, 4vw + 3rem, 6.5rem);
  bottom: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dots button:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.hero-dots button.active {
  width: 26px;
  border-radius: 5px;
  background-color: #fff;
}

@media screen and (max-width: 991.20px) {
  .hero-photo,
  .hero-photo picture,
  .hero-photo img {
    height: 62vw;
    min-height: 260px;
    max-height: 420px;
  }

  .hero-text {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    align-items: center;
    text-align: center;
    box-shadow: none;
    margin-top: 1.5rem;
  }

  .hero-text h1 {
    white-space: normal;
  }

  .hero-text-body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-list {
    display: inline-block;
    text-align: left;
  }

  .hero-dots {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 1rem;
  }
}
