/* ============================================
   WIDGET: Hero Slider
   Extracted from nexavalley.css — hero/slider block
   Author: Jherson Martelo Medina
   ============================================ */

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
}

.hero-slider .swiper-wrapper {
  min-height: inherit;
  align-items: stretch;
}

.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: inherit;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  filter: none;
  transition: opacity 0.7s var(--ease-out);
}

.hero-slider.swiper-initialized .hero-slide {
  pointer-events: none;
}

.hero-slide.active,
.hero-slide.swiper-slide-active {
  opacity: 1;
  pointer-events: all;
}

.hero-slide.exit {
  opacity: 0;
  transform: scale(0.97);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), filter 0.6s var(--ease-out);
}

.slide-bg {
  position: absolute;
  inset: 0;
  background: var(--slide-bg-layers, linear-gradient(135deg, #003087 0%, #001830 100%));
  background-position: var(--slide-bg-position, center center);
  background-size: var(--slide-bg-size, cover);
  background-repeat: no-repeat;
  z-index: 0;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 80px 60px;
  flex: 1;
}

.slide-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.slide-title {
  font-family: var(--font-brand);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.text-gradient {
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-orange {
  color: var(--orange-light);
}

.text-lightblue {
  color: var(--blue-sky);
}

.slide-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.btn-slide {
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-bottom-brand {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 4;
  width: 128px;
  height: 64px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-bottom-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Slide Visual (floating cards) */
.slide-visual {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visual-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  min-width: 200px;
  transition: all 0.3s var(--ease-out);
}

.visual-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateX(-4px);
}

.vc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vc-1 { animation: floatIn 0.7s var(--ease-out) 0.3s both; }
.vc-2 { animation: floatIn 0.7s var(--ease-out) 0.5s both; }
.vc-3 { animation: floatIn 0.7s var(--ease-out) 0.7s both; }

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(-50%);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  position: static;
  width: auto;
  transform: none;
}

.dot {
  appearance: none;
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  opacity: 1;
  transition: all 0.3s var(--ease-out);
}

.dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

.dot:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.dot:hover:not(.active) {
  background: rgba(255,255,255,0.6);
}

.slider-progress {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.hero-section.is-progress-running .progress-bar {
  animation: nvHeroProgress var(--nv-hero-autoplay-ms, 6000ms) linear forwards;
}

.hero-section.is-progress-paused .progress-bar {
  animation-play-state: paused;
}

/* --- Animations (hero-specific) --- */
@keyframes nvHeroProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .slide-visual {
    display: none;
  }

  .slide-content {
    padding: 60px 24px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 480px;
  }

  .hero-slider {
    min-height: 480px;
  }

  .slide-content {
    padding: 48px 24px;
  }

  .slider-controls {
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
  }
}

/* V2 mockup layout */
.hero-section,
.hero-slider {
  min-height: 620px;
  font-family: var(--font-body);
}

.hero-slide {
  padding: 96px 48px 84px;
}

.hero-slide-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-slide-inner .slide-content {
  max-width: 650px;
  margin: 0;
  padding: 0;
}

.slide-title {
  font-family: var(--font-brand);
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.slide-visual {
  display: none;
}

.hero-media-card {
  position: relative;
  width: 100%;
  min-height: 470px;
  border-radius: 0.75rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    var(--media-image) center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 52px rgba(0, 24, 48, 0.18);
  isolation: isolate;
}

.hero-media-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(61, 183, 228, 0.18), transparent 28%),
    repeating-radial-gradient(circle at 95% 8%, rgba(0, 48, 135, 0.11) 0 1px, transparent 1px 8px);
}

.hero-media-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #3DB7E4, #FE5000);
}

.hero-media-card__label {
  position: absolute;
  top: 34px;
  left: 34px;
  z-index: 1;
  color: #003087;
  background: var(--white);
  border: 1px solid rgba(0, 48, 135, 0.1);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 24, 48, 0.12);
}

.hero-media-card__copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 32px;
  z-index: 1;
  max-width: 520px;
}

.hero-media-card__copy span {
  display: block;
  margin-bottom: 10px;
  color: #FE5000;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.hero-media-card__copy h2 {
  color: var(--gray-900);
  font-family: var(--font-brand);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-media-card__copy p {
  max-width: 440px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .hero-slide {
    padding: 122px 36px 96px;
  }

  .hero-slide-inner {
    grid-template-columns: 1fr;
  }

  .hero-media-card {
    display: none;
  }

  .slide-title {
    font-size: 48px;
    line-height: 1.1;
  }

  .slide-desc {
    font-size: 20px;
    line-height: 34.76px;
  }
}

@media (max-width: 767px) {
  .hero-section,
  .hero-slider {
    min-height: calc(100svh - 24px);
  }

  .hero-slide {
    padding: 116px 22px 92px;
  }

  .slide-title {
    font-size: 30px;
    line-height: 31px;
  }

  .slide-desc {
    font-size: 16px;
    line-height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    animation: none !important;
    transform: scaleX(0.48);
    will-change: auto;
  }
}

/* --- Home page Figma Hero layer --- */
body.nexavalley-site:not(.partner-template) .hero-section {
  --nv-home-hero-height: min(56.46vw, 813px);
  margin-top: 0;
  position: relative;
  overflow: hidden;
  min-height: var(--nv-home-hero-height);
  padding: 0;
  background: var(--white);
}

body.nexavalley-site:not(.partner-template) .hero-slider {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: var(--nv-home-hero-height);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--blue-dark);
}

body.nexavalley-site:not(.partner-template) .hero-slider .swiper-wrapper {
  min-height: inherit;
  align-items: stretch;
}

body.nexavalley-site:not(.partner-template) .hero-slide {
  position: relative;
  width: 100%;
  height: auto;
  min-height: var(--nv-home-hero-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 148px clamp(28px, 8vw, 120px) 110px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  filter: none;
  transition: opacity 0.7s var(--ease-out);
}

body.nexavalley-site:not(.partner-template) .hero-slider.swiper-initialized .hero-slide {
  pointer-events: none;
}

body.nexavalley-site:not(.partner-template) .hero-slide.active,
body.nexavalley-site:not(.partner-template) .hero-slide.swiper-slide-active {
  opacity: 1;
  pointer-events: all;
}

body.nexavalley-site:not(.partner-template) .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--slide-bg-layers, linear-gradient(135deg, #003087 0%, #001830 100%));
  background-position: var(--slide-bg-position, center center);
  background-size: var(--slide-bg-size, cover);
  background-repeat: no-repeat;
  transform: scale(1.01);
}

body.nexavalley-site:not(.partner-template) .hero-slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  display: block;
  margin: 0 auto;
}

body.nexavalley-site:not(.partner-template) .slide-content {
  width: 100%;
  max-width: 920px;
  padding: 0;
  text-align: center;
}

body.nexavalley-site:not(.partner-template) .slide-badge,
body.nexavalley-site:not(.partner-template) .hero-media-card,
body.nexavalley-site:not(.partner-template) .slide-visual {
  display: none;
}

body.nexavalley-site:not(.partner-template) .slide-title {
  max-width: 13.5em;
  margin: 0 auto 24px;
  color: var(--white);
  font-family: var(--font-brand);
  font-size: clamp(48px, 4.45vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 14px 44px rgba(0, 24, 48, 0.38);
}

body.nexavalley-site:not(.partner-template) .text-orange {
  color: var(--orange);
}

body.nexavalley-site:not(.partner-template) .slide-desc {
  max-width: 660px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.58;
}

body.nexavalley-site:not(.partner-template) .hero-bottom-brand {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  z-index: 4;
  width: 128px;
  height: 64px;
  transform: translateX(-50%);
  pointer-events: none;
}

body.nexavalley-site:not(.partner-template) .hero-bottom-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.nexavalley-site:not(.partner-template) .slider-controls {
  bottom: 2rem;
  left: 50%;
  width: auto;
  min-width: 174px;
  justify-content: center;
  transform: translateX(-50%);
}

body.nexavalley-site:not(.partner-template) .slider-controls .slider-dots {
  position: static;
  width: auto;
  min-width: 34px;
  transform: none;
}

body.nexavalley-site:not(.partner-template) .slider-controls .slider-progress {
  flex: 0 0 120px;
}

body.nexavalley-site:not(.partner-template) .hero-section.is-static .slider-controls {
  display: none;
}

@media (max-width: 1024px) {
  body.nexavalley-site:not(.partner-template) .slide-title {
    max-width: 680px;
    font-size: 48px;
    line-height: 1.1;
  }

  body.nexavalley-site:not(.partner-template) .slide-desc {
    font-size: 20px;
    line-height: 34.76px;
  }
}

@media (max-width: 767px) {
  body.nexavalley-site:not(.partner-template) .hero-slider {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

  body.nexavalley-site:not(.partner-template) .hero-slide {
    padding: 100px 18px 86px;
  }

  body.nexavalley-site:not(.partner-template) .slide-title {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
    line-height: 31px;
  }

  body.nexavalley-site:not(.partner-template) .slide-desc {
    max-width: 330px;
    font-size: 16px;
    line-height: 23px;
  }

  body.nexavalley-site:not(.partner-template) .btn-slide {
    width: 100%;
    max-width: min(300px, calc(100vw - 72px));
  }
}
