/* =============================================
   HERO — Slider principal + Parallax badge
   ============================================= */

/* ── Wrapper ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* ── Track del slider ── */
.hero__track {
  display: flex;
  height: 100%;
  width: 300%;
  transition: transform var(--dur-xslow) var(--ease-snap);
}

/* ── Cada slide ── */
.hero__slide {
  position: relative;
  width: calc(100% / 3);
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

/* ── Fondo con efecto Ken Burns ── */
.hero__slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 10s ease;
  will-change: transform;
}

.hero__slide--active .hero__slide-bg {
  transform: scale(1);
}

/* Gradientes por slide */
.hero__slide:nth-child(1) .hero__slide-bg {
  background-image:
    linear-gradient(135deg, rgba(255,92,0,0.72) 0%, rgba(10,10,10,0.88) 65%),
    url('https://images.unsplash.com/photo-1561070791-2526d30994b5?w=1600&q=80');
}
.hero__slide:nth-child(2) .hero__slide-bg {
  background-image:
    linear-gradient(135deg, rgba(0,229,160,0.6) 0%, rgba(10,10,10,0.88) 65%),
    url('https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?w=1600&q=80');
}
.hero__slide:nth-child(3) .hero__slide-bg {
  background-image:
    linear-gradient(135deg, rgba(255,92,0,0.55) 0%, rgba(0,229,160,0.25) 45%, rgba(10,10,10,0.88) 70%),
    url('https://images.unsplash.com/photo-1611532736597-de2d4265fba3?w=1600&q=80');
}

/* ── Contenido de cada slide ── */
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--section-px);
  max-width: 820px;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 4px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) 0.25s var(--ease-out),
              transform var(--dur-slow) 0.25s var(--ease-out);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 0.93;
  letter-spacing: 2px;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur-slow) 0.45s var(--ease-out),
              transform var(--dur-slow) 0.45s var(--ease-out);
}

.hero__title em { color: var(--color-primary); font-style: normal; }

.hero__desc {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: var(--space-7);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) 0.65s var(--ease-out),
              transform var(--dur-slow) 0.65s var(--ease-out);
}

.hero__cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) 0.85s var(--ease-out),
              transform var(--dur-slow) 0.85s var(--ease-out);
  width: fit-content;
}

/* Activar animaciones en slide activo */
.hero__slide--active .hero__tag,
.hero__slide--active .hero__title,
.hero__slide--active .hero__desc,
.hero__slide--active .hero__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Controles ── */
.hero__dots {
  position: absolute;
  bottom: 56px;
  left: var(--section-px);
  display: flex;
  gap: 10px;
  z-index: var(--z-raised);
}

.hero__dot {
  width: 28px;
  height: 3px;
  background: rgba(245,240,232,0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: width var(--dur-base) var(--ease-out),
              background var(--dur-base) ease;
  border: none;
}

.hero__dot--active {
  width: 54px;
  background: var(--color-primary);
}

.hero__arrows {
  position: absolute;
  bottom: 48px;
  right: var(--section-px);
  display: flex;
  gap: 10px;
  z-index: var(--z-raised);
}

.hero__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245,240,232,0.25);
  background: transparent;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease;
}

.hero__arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}

.hero__counter {
  position: absolute;
  top: 50%;
  right: var(--section-px);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(245,240,232,0.35);
  letter-spacing: 2px;
  z-index: var(--z-raised);
  text-align: right;
}

.hero__counter strong {
  display: block;
  font-size: 2.2rem;
  color: var(--color-primary);
  line-height: 1;
}

/* ── Barra de progreso del slide ── */
.hero__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary);
  width: 0%;
  z-index: var(--z-raised);
  transition: width 6s linear;
}

/* ── Parallax section debajo del hero ── */
.parallax {
  position: relative;
  height: 65vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax__bg {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(to bottom, rgba(10,10,10,0.65), rgba(10,10,10,0.35), rgba(10,10,10,0.88)),
    url('https://images.unsplash.com/photo-1542744094-3a31f272c490?w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

.parallax__content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  padding: 0 var(--section-px);
  max-width: 860px;
  margin: 0 auto;
}

.parallax__content .section-title { margin-bottom: var(--space-4); }
.parallax__content p {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto var(--space-7);
}

/* ── Stats ── */
.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.stats__item { text-align: center; }

.stats__num {
  font-family: var(--font-display);
  font-size: 3.6rem;
  color: var(--color-primary);
  line-height: 1;
}

.stats__label {
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 6px;
}
