/*
 * Nortei Solar Core · Frontend CSS module
 * File: 10-hero.css
 * Purpose: Hero slider inicial y ratios base.
 * Note: module order is intentional; preserve enqueue order unless testing the full cascade.
 */

.nsrm-home-hero--fullwidth {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 40px;
}

.nsrm-home-hero__slider--full {
  position: relative;
  min-height: var(--nsrm-hero-height, 560px);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #0b1c35;
}

.nsrm-home-hero__slider--full:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  outline: 0;
}

.nsrm-home-hero__slider--full .nsrm-home-hero__slides,
.nsrm-home-hero__slider--full .nsrm-slide,
.nsrm-home-hero__slider--full .nsrm-slide__image,
.nsrm-home-hero__slider--full .nsrm-slide__overlay {
  position: absolute;
  inset: 0;
}

.nsrm-home-hero__slider--full .nsrm-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 2s ease, visibility 2s ease;
}

.nsrm-home-hero__slider--full .nsrm-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nsrm-home-hero__slider--full .nsrm-slide__image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform: scale(1.01);
}

.nsrm-home-hero__slider--full .nsrm-slide__overlay {
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.06) 0%, rgba(8, 17, 31, 0.14) 100%);
}

.nsrm-home-hero__slider--full .nsrm-slider-nav {
  top: 50%;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(15, 23, 42, 0.24);
  color: #fff;
  font-size: 30px;
  backdrop-filter: blur(8px);
}

.nsrm-home-hero__slider--full .nsrm-slider-nav:hover {
  background: rgba(15, 23, 42, 0.42);
  transform: translateY(0) scale(1.05);
}

.nsrm-home-hero__slider--full .nsrm-slider-nav--prev {
  left: 24px;
}

.nsrm-home-hero__slider--full .nsrm-slider-nav--next {
  right: 24px;
}

.nsrm-home-hero__slider--full .nsrm-slider-progress {
  left: 50%;
  right: auto;
  bottom: 22px;
  width: min(220px, calc(100% - 48px));
  height: 6px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.24);
}

.nsrm-home-hero__slider--full .nsrm-slider-progress__bar {
  background: linear-gradient(90deg, rgba(255,255,255,0.92), var(--nsrm-gold));
}

.nsrm-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.nsrm-slider-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 0 0 1px rgba(8, 17, 31, 0.12);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.nsrm-slider-dot:hover,
.nsrm-slider-dot.is-active {
  background: #fff;
  transform: scale(1.18);
}

.nsrm-slider-dot.is-active {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

@media (max-width: 1024px) {
  .nsrm-home-hero__slider--full {
    min-height: min(68vw, var(--nsrm-hero-height, 560px));
  }
}

@media (max-width: 780px) {
  .nsrm-home-hero--fullwidth {
    margin-bottom: 28px;
  }

  .nsrm-home-hero__slider--full {
    min-height: 56vw;
  }

  .nsrm-home-hero__slider--full .nsrm-slider-nav {
    width: 46px;
    height: 46px;
    margin-top: -23px;
    font-size: 24px;
  }

  .nsrm-home-hero__slider--full .nsrm-slider-nav--prev {
    left: 14px;
  }

  .nsrm-home-hero__slider--full .nsrm-slider-nav--next {
    right: 14px;
  }

  .nsrm-slider-dots {
    bottom: 26px;
    gap: 8px;
  }

  .nsrm-home-hero__slider--full .nsrm-slider-progress {
    bottom: 12px;
    width: min(170px, calc(100% - 28px));
  }
}

.nsrm-home-hero--fullwidth {
  margin-top: -40px;
}

.nsrm-home-hero__slider--full {
  height: auto;
  min-height: 0;
  aspect-ratio: 1536 / 1024;
  max-height: 940px;
  background: #08111f;
}

.nsrm-home-hero__slider--full .nsrm-slide__image {
  display: none;
}

.nsrm-home-hero__slider--full .nsrm-slide__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #08111f;
}

.nsrm-home-hero__slider--full .nsrm-slide__overlay {
  background: none;
}

.nsrm-home-hero__slider--full .nsrm-slider-nav,
.nsrm-home-hero__slider--full .nsrm-slider-nav:hover {
  transform: none;
}

.nsrm-home-hero__slider--full .nsrm-slider-nav:hover {
  box-shadow: none;
}

@media (max-width: 1180px) {
  .nsrm-home-hero--fullwidth {
    margin-top: -30px;
  }

  .nsrm-home-hero__slider--full {
    max-height: none;
  }
}

@media (max-width: 780px) {
  .nsrm-home-hero--fullwidth {
    margin-top: -20px;
  }

  .nsrm-home-hero__slider--full {
    aspect-ratio: 1536 / 1024;
    min-height: 0;
    max-height: none;
  }

  .nsrm-home-hero__slider--full .nsrm-slide__media {
    object-fit: contain;
    object-position: center top;
  }
}

.nsrm-home-hero__slider--full {
  aspect-ratio: 1920 / 860;
  max-height: none;
}

.nsrm-home-hero__slider--full .nsrm-slide__media {
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 780px) {
  .nsrm-home-hero__slider--full {
    aspect-ratio: 1920 / 860;
  }

  .nsrm-home-hero__slider--full .nsrm-slide__media {
    object-fit: cover;
    object-position: center center;
  }
}

.nsrm-home-hero__slider--full {
  aspect-ratio: 1376 / 768;
}

.nsrm-home-hero__slider--full .nsrm-slide__media {
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 780px) {
  .nsrm-home-hero__slider--full {
    aspect-ratio: 1376 / 768;
  }
}
