/**
 * RIDER TRIP MÉXICO - Estilos de la Página de Inicio (Index)
 */

/* Hero Carousel */
.hero-carousel-container {
  position: relative;
  background-color: var(--rt-black);
  overflow: hidden;
}

.hero-slide-item {
  height: clamp(540px, 85vh, 850px);
  min-height: 540px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-slide-item .container-xl,
.hero-slide-item .container-xxl {
  height: 100%;
}

.hero-slide-item .row {
  height: 100%;
  align-items: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.94) 0%,
    rgba(17, 17, 17, 0.75) 50%,
    rgba(17, 17, 17, 0.45) 100%
  );
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  color: var(--rt-white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  /* text-transform: uppercase; */
}

/* =========================================================================
   CALCOMANÍA / STICKER MOTOCROSS 3D "CLIC"
   Emblema de competición en cromo cepillado, llamas rojas y silueta troquelada
   ========================================================================= */
.biker-decal-wrapper {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  position: relative;
  margin-left: 0.12em;
  line-height: 1;
}

.hero-biker-decal {
  display: inline-block;
  height: clamp(50px, 6.5vw,150px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.8))
          drop-shadow(0 2px 8px rgba(215, 25, 32, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.3s ease;
  user-select: none;
  cursor: pointer;
  transform: rotate(-1.5deg);
}

.hero-biker-decal:hover {
  transform: scale(1.07) rotate(-3deg);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.9))
          drop-shadow(0 4px 18px rgba(215, 25, 32, 0.75))
          brightness(1.06);
}

.hero-lead {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.88);
  font-weight: var(--fw-light);
  line-height: 1.6;
  max-width: 58ch;
  margin-bottom: 2.25rem;
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Contenedor Inferior de Navegación: Indicadores (Dots) + Botón Pausa */
.hero-carousel-controls-wrapper {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.hero-carousel-controls-wrapper .carousel-indicators {
  position: static;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 15;
}

.hero-carousel-controls-wrapper .carousel-indicators [data-bs-target] {
  width: 44px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background-color: rgba(255, 255, 255, 0.45);
  transition: all 0.35s ease;
  padding: 0;
  margin: 0;
  opacity: 0.6;
  cursor: pointer;
}

.hero-carousel-controls-wrapper .carousel-indicators [data-bs-target].active {
  width: 72px;
  background-color: var(--rt-red);
  opacity: 1;
}

/* Botón de Pausa / Reproducción Accesible */
.carousel-pause-control {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: rgba(17, 17, 17, 0.75);
  color: var(--rt-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--rt-transition-fast);
  z-index: 15;
  padding: 0;
  line-height: 1;
}

.carousel-pause-control:hover,
.carousel-pause-control:focus-visible {
  background-color: var(--rt-red);
  border-color: var(--rt-red);
  color: var(--rt-white);
  transform: scale(1.08);
}

/* Controles Prev / Next */
.hero-carousel-control {
  width: 58px;
  height: 58px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(17, 17, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 3;
  opacity: 0.85;
  transition: all var(--rt-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel-control:hover,
.hero-carousel-control:focus-visible {
  background-color: var(--rt-red);
  border-color: var(--rt-red);
  opacity: 1;
}

.hero-carousel-control-prev {
  left: 2rem;
}

.hero-carousel-control-next {
  right: 2rem;
}

/* =========================================================================
   BARRA DE VALOR Y PROPÓSITO: CARRUSEL INFINITO (MARQUEE)
   Desplazamiento suave continuo infinito en Desktop y Móvil
   ========================================================================= */
.stats-infinite-marquee {
  background: #090a0d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Efectos de difuminado lateral tipo viñeta cinematográfica */
.stats-infinite-marquee::before,
.stats-infinite-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 5;
  pointer-events: none;
}

.stats-infinite-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #090a0d 0%, rgba(9, 10, 13, 0) 100%);
}

.stats-infinite-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #090a0d 0%, rgba(9, 10, 13, 0) 100%);
}

.marquee-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  animation: rtMarqueeScroll 28s linear infinite;
  will-change: transform;
}

.stats-infinite-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.stat-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.7rem 1.4rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card-pill:hover {
  background: rgba(215, 25, 32, 0.09);
  border-color: rgba(215, 25, 32, 0.4);
  box-shadow: 0 6px 22px rgba(215, 25, 32, 0.25);
  transform: translateY(-2px);
}

.stat-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(215, 25, 32, 0.15);
  border: 1px solid rgba(215, 25, 32, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff333d;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(215, 25, 32, 0.25);
}

.stat-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.stat-card-pill .stat-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 2px;
}

.stat-card-pill .stat-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  line-height: 1.15;
}

@keyframes rtMarqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 991.98px) {
  .stats-infinite-marquee {
    padding: 0.85rem 0;
  }
  .stats-infinite-marquee::before,
  .stats-infinite-marquee::after {
    width: 35px;
  }
  .marquee-track {
    animation-duration: 20s;
  }
  .marquee-group {
    gap: 1rem;
    padding-right: 1rem;
  }
  .stat-card-pill {
    padding: 0.55rem 1.1rem;
    gap: 0.85rem;
  }
  .stat-icon-badge {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .stat-card-pill .stat-label {
    font-size: 0.85rem;
  }
  .stat-card-pill .stat-sub {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* Cinta de Marcas Compatibles / Aliadas */
.brand-strip-container {
  padding: 2.5rem 0;
  background-color: var(--rt-white);
  border-top: 1px solid var(--rt-gray-border);
  border-bottom: 1px solid var(--rt-gray-border);
}

.brand-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--rt-gray-light);
  border-radius: var(--rt-radius-sm);
  font-weight: var(--fw-extrabold);
  font-size: 1rem;
  color: var(--rt-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
