/* ─────────────────────────────────────────────────────────────────
   hero-slide.css
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

/* ══════════════════════════════════════════════════════════════
   WRAPPER
   ══════════════════════════════════════════════════════════════ */
.hs {
  position: relative;
  height: calc(100vh - 82px);
  min-height: 640px;
  background: #ffffff;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   SLIDE  (todas absolutas, se apilan)
   ══════════════════════════════════════════════════════════════ */
.hs__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}
.hs__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Watermark (imagen estática) ── */
.hs__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 900px;
  height: auto;
  opacity: .06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  object-fit: contain;
}

/* ── Moto – columna izquierda, anclada al fondo ── */
.hs__moto-col {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 68px;   /* deja espacio para la nav inferior */
  width: 50%;
  z-index: 1;
}

.hs__moto-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 78%;          /* altura fija = mismo tamaño visual en todas las categorías */
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, .14));
}

/* ── Contenido – columna derecha, centrado vertical ── */
.hs__content {
  position: absolute;
  right: 0;
  width: 50%;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 80px 60px 32px;
  z-index: 1;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   ANIMACIONES STAGGER al activar slide
   ══════════════════════════════════════════════════════════════ */
.hs__eyebrow,
.hs__title,
.hs__text,
.hs__actions {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.hs__moto-img {
  opacity: 0;
  transition: opacity .7s ease .05s;
}
.hs__slide.is-active .hs__eyebrow  { opacity: 1; transform: none; transition-delay: .1s;  }
.hs__slide.is-active .hs__title    { opacity: 1; transform: none; transition-delay: .24s; }
.hs__slide.is-active .hs__text     { opacity: 1; transform: none; transition-delay: .38s; }
.hs__slide.is-active .hs__actions  { opacity: 1; transform: none; transition-delay: .52s; }
.hs__slide.is-active .hs__moto-img { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   TIPOGRAFÍA
   ══════════════════════════════════════════════════════════════ */
.hs__eyebrow {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lifan-red);
  margin-bottom: 4px;
  display: block;
}

.hs__title {
  margin: 0 0 18px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #0e1220;
}

.hs__text {
  margin: 0 0 28px;
  max-width: 440px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 400;
  color: #64697a;
}

.hs__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════════════ */
.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 28px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.hs-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.hs-btn:hover::before { left: 160%; }
.hs-btn__arrow {
  display: inline-block;
  font-style: normal;
  font-size: 13px;
  letter-spacing: -.02em;
  transition: transform .25s ease;
}
.hs-btn:hover .hs-btn__arrow { transform: translateX(6px); }
.hs-btn:hover { transform: translateY(-2px); }

.hs-btn--fill {
  background: var(--lifan-red);
  color: #fff;
  border-color: var(--lifan-red);
  box-shadow: 0 4px 18px rgba(227,30,36,.3);
}
.hs-btn--fill:hover {
  background: var(--lifan-red-dark);
  border-color: var(--lifan-red-dark);
  box-shadow: 0 8px 28px rgba(227,30,36,.45);
}

.hs-btn--outline {
  background: transparent;
  color: #0e1220;
  border-color: #0e1220;
}
.hs-btn--outline:hover {
  background: #0e1220;
  color: #fff;
  box-shadow: 0 8px 24px rgba(14,18,32,.18);
}

/* ══════════════════════════════════════════════════════════════
   DOTS – barra derecha
   ══════════════════════════════════════════════════════════════ */
.hs__dots {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 10;
}

.hs__dot {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  color: rgba(0,0,0,.25);
  transition: color .25s;
}
.hs__dot.is-active { color: #0e1220; }
.hs__dot:hover     { color: var(--lifan-red); }

.hs__dot-num {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  width: 20px;
  text-align: right;
}

.hs__dot-track {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: width .3s ease;
}
.hs__dot.is-active .hs__dot-track { width: 32px; }

.hs__dot-tag {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0;
  transition: opacity .25s;
}
.hs__dot.is-active .hs__dot-tag { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   NAV inferior
   ══════════════════════════════════════════════════════════════ */
.hs__nav {
  position: absolute;
  bottom: 20px;
  left: 32px;
  right: 70px;
  display: flex;
  align-items: center;
  z-index: 10;
}

.hs__nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9099ab;
  padding: 8px 0;
  transition: color .2s;
}
.hs__nav-btn:hover { color: #0e1220; }
.hs__nav-btn--next { margin-left: auto; }

.hs__nav-arrow { font-size: 15px; transition: transform .2s; }
.hs__nav-btn:first-child:hover .hs__nav-arrow { transform: translateX(-4px); }
.hs__nav-btn--next:hover .hs__nav-arrow       { transform: translateX(4px); }

.hs__nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hs__counter {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #9099ab;
  letter-spacing: .1em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hs__counter-sep { margin: 0 4px; opacity: .4; }

/* Barra de progreso */
.hs__progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--lifan-red);
  z-index: 20;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* Tablet (≤ 1100px): reducir padding derecho */
@media (max-width: 1100px) {
  .hs__content { padding: 0 60px 60px 24px; }
  .hs__title   { font-size: 48px; }
}

/* Mobile (≤ 900px): layout de una columna, centrado */
@media (max-width: 900px) {
  .hs {
    height: auto;
    min-height: calc(100svh - 82px);
  }

  /* Las slides en mobile son flujo normal (no absoluto) */
  .hs__slide {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px 100px;
    min-height: calc(100svh - 82px);
    justify-content: center;
    opacity: 1;         /* visible cuando display:flex */
    pointer-events: auto;
  }
  .hs__slide.is-active { display: flex; }

  /* Moto como imagen centrada arriba */
  .hs__moto-col {
    position: relative;
    width: 100%;
    height: 220px;
    bottom: auto;
    top: auto;
    order: -1;
    margin-bottom: 20px;
  }
  .hs__moto-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    max-width: 90%;
    object-position: bottom center;
  }

  /* Contenido centrado */
  .hs__content {
    position: relative;
    width: 100%;
    top: auto;
    transform: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hs__text { text-align: center; }
  .hs__actions { justify-content: center; }
  .hs__title { font-size: clamp(28px, 9vw, 46px); }

  .hs__watermark {
    top: 18%;
    left: 50%;
    font-size: 22vw;
  }

  /* Dots: mover a la derecha, más compactos */
  .hs__dots { right: 10px; gap: 14px; }
  .hs__dot-tag { display: none; }
  .hs__dot-track { width: 14px; }
  .hs__dot.is-active .hs__dot-track { width: 22px; }

  .hs__nav { left: 16px; right: 48px; bottom: 16px; }
  .hs__counter { font-size: 10px; }
}

@media (max-width: 640px) {
  .hs__slide { padding: 40px 16px 90px; }
  .hs__moto-col { height: 180px; }
  .hs__title { font-size: 28px; }
  .hs-btn { height: 44px; padding: 0 18px; font-size: 10px; }
  .hs__actions { gap: 10px; }
}
