/* ==========================================================
   74_home_hero.css
   Hero de portada · mismo lenguaje visual que MEDIA Vídeos
   Escritorio: 24:9
   Móvil: 4:3
========================================================== */

.home-hero {
  --home-hero-padding: clamp(22px, 4.2vw, 72px);
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 9;
  overflow: hidden;
  background: #111;
  color: #fff;
  touch-action: pan-y;
}

.home-hero-slides,
.home-hero-slide,
.home-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-slide {
  opacity: 1;
  visibility: visible;
}

.home-hero-slider .home-hero-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
}

.home-hero-slider .home-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-hero-picture,
.home-hero-bg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero-bg {
  object-fit: cover;
  object-position: center;
}

.home-hero-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.home-hero-video {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.home-hero-slide::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .84) 0%,
      rgba(0, 0, 0, .58) 30%,
      rgba(0, 0, 0, .08) 62%,
      rgba(0, 0, 0, .22) 100%
    );
}

.home-hero-slide.has-overlay::after {
  opacity: 1;
}

.home-hero-slide.no-overlay::after {
  display: none;
}

.home-hero-inner {
  width: min(1440px, calc(100% - (var(--home-hero-padding) * 2)));
  height: 100%;
  margin: 0 auto;
}

.home-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
}

.home-hero-copy {
  width: min(690px, 58%);
}

.home-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-hero-eyebrow span {
  display: block;
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.home-hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: var(--home-hero-title-size, clamp(48px, 5.2vw, 82px));
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.04em;
}

.home-hero-description {
  max-width: 620px;
  margin: 0 0 26px;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.5;
}

.home-hero-description p {
  margin: 0;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 190px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.78);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .2s ease, color .2s ease;
}

.home-hero-btn:hover {
  background: #fff;
  color: #111;
}

.home-hero-btn span {
  font-size: 18px;
  font-weight: 300;
}

.home-hero-controls {
  position: absolute;
  z-index: 10;
  right: var(--home-hero-padding);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-hero-prev,
.home-hero-next,
.home-hero-dot {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.home-hero-prev,
.home-hero-next {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  font-size: 17px;
  line-height: 1;
}

.home-hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.75) !important;
  border-radius: 50%;
  background: transparent;
}

.home-hero-dot.is-active {
  background: #fff !important;
}

@media (max-width: 991px) and (min-width: 768px) {
  .home-hero {
    aspect-ratio: 16 / 7;
  }

  .home-hero-copy {
    width: min(620px, 68%);
  }

  .home-hero h1 {
    font-size: var(--home-hero-title-size, clamp(38px, 5.4vw, 58px));
  }
}

@media (max-width: 767px) {
  .home-hero {
    --home-hero-padding: 20px;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .home-hero-slide::after {
    background:
      linear-gradient(
        180deg,
        rgba(0,0,0,.10) 0%,
        rgba(0,0,0,.20) 35%,
        rgba(0,0,0,.88) 100%
      );
  }

  .home-hero-inner {
    width: calc(100% - (var(--home-hero-padding) * 2));
  }

  .home-hero-content {
    align-items: flex-end;
    padding-bottom: 62px;
  }

  .home-hero-copy {
    width: 100%;
    max-width: none;
  }

  .home-hero-eyebrow {
    gap: 10px;
    margin-bottom: 10px;
    font-size: 9px;
  }

  .home-hero-eyebrow span {
    width: 28px;
  }

  .home-hero h1 {
    margin-bottom: 10px;
    font-size: var(--home-hero-title-size-mobile, clamp(29px, 9vw, 42px));
    line-height: 1;
    font-weight: 700;
  }

  .home-hero-description {
    display: -webkit-box;
    max-width: 100%;
    margin-bottom: 14px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.4;
  }

  .home-hero-btn {
    min-width: 0;
    min-height: 40px;
    padding: 0 13px;
    gap: 20px;
    font-size: 9px;
  }

  .home-hero-controls {
    left: auto;
    right: 16px;
    bottom: 14px;
    gap: 9px;
  }

  .home-hero-prev,
  .home-hero-next {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .home-hero-dots {
    gap: 5px;
  }

  .home-hero-dot {
    width: 7px;
    height: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slider .home-hero-slide {
    transition: none;
  }

  .home-hero-video {
    display: none;
  }
}
