/* =====================
   HYUNDAI MODEL SLIDER
   Layout y estilos similares a hyundai.com.mx
   ===================== */

.hyu-ms-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 40px auto 80px;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #00122B;
  position: relative;
}

/* ---------- TABS ---------- */
.hyu-ms-tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E0E4ED;
}

.hyu-ms-tab {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  padding: 8px 0;
  color: #6F7A8F;
  position: relative;
}

.hyu-ms-tab:hover {
  color: #002C5F;
}

.hyu-ms-tab-active {
  color: #002C5F;
  font-weight: 600;
}

.hyu-ms-tab-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 3px;
  border-radius: 2px;
  background: #002C5F;
}

/* ---------- SLIDER AREA ---------- */
.hyu-ms-slider {
  position: relative;
  padding: 0 90px;
  overflow: hidden; 
}

.hyu-ms-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
}

/* Estado base de cada slide */
.hyu-ms-slide {
  flex: 0 0 auto;
  width: 70%;
  opacity: 0;
  transform: scale(.75);
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
  display: none; /* se activan por JS */
}

.hyu-ms-slide img {
  width: 100%;
  display: block;
}

/* Slide activo (centro, SIN overlay ni blur) */
.hyu-ms-slide-active {
  display: block;
  opacity: 1;
  transform: scale(1);
  z-index: 3;
  pointer-events: auto;
}

/* Anterior y siguiente (laterales recortados, SIN blur) */
.hyu-ms-slide-prev,
.hyu-ms-slide-next {
  display: block;
  opacity: 1;
  transform: scale(.85);
  z-index: 2;
}

.hyu-ms-slide-prev {
  transform-origin: center right;
  transform: scale(.85) translateX(-40px);
}

.hyu-ms-slide-next {
  transform-origin: center left;
  transform: scale(.85) translateX(40px);
}

/* ---------- FLECHAS ---------- */
.hyu-ms-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #CBD2E1;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  z-index: 5;
}

.hyu-ms-arrow span {
  font-size: 18px;
  line-height: 1;
}

.hyu-ms-arrow:hover {
  background: #F4F7FB;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-color: #A8B4C7;
}

.hyu-ms-arrow-prev { left: 20px; }
.hyu-ms-arrow-next { right: 20px; }

/* ---------- INFO INFERIOR ---------- */
.hyu-ms-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 28px;
  padding: 0 110px;
  transition: opacity .2s ease, transform .2s ease;
}

.hyu-ms-info-changing {
  opacity: 0;
  transform: translateY(6px);
}

.hyu-ms-meta-left {
  min-width: 0;
}

.hyu-ms-year {
  font-size: 14px;
  color: #6F7A8F;
  margin-bottom: 4px;
}

.hyu-ms-model {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 4px;
}

.hyu-ms-segment {
  font-size: 15px;
  color: #6F7A8F;
}

/* Especificaciones */
.hyu-ms-specs {
  display: flex;
  gap: 48px;
  font-size: 14px;
}

.hyu-ms-spec-label {
  font-size: 13px;
  color: #6F7A8F;
  margin-bottom: 3px;
  display: block;
}

.hyu-ms-spec-value {
  font-size: 18px;
  font-weight: 600;
  color: #00122B;
}

.hyu-ms-spec-unit {
  font-size: 13px;
  color: #6F7A8F;
  margin-left: 2px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hyu-ms-slider {
    padding: 0 40px;
  }
  .hyu-ms-info {
    padding: 0 40px;
  }
  .hyu-ms-track {
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .hyu-ms-wrapper {
    margin: 20px auto 50px;
  }
  .hyu-ms-tabs {
    padding: 0 16px 6px;
    gap: 22px;
    overflow-x: auto;
  }
  .hyu-ms-slider {
    padding: 0 16px;
  }
  .hyu-ms-arrow {
    display: none;
  }
  .hyu-ms-track {
    gap: 0;
  }
  .hyu-ms-slide,
  .hyu-ms-slide-active,
  .hyu-ms-slide-prev,
  .hyu-ms-slide-next {
    display: block;
    width: 100%;
    opacity: 1;
    transform: scale(1);
  }
  .hyu-ms-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px;
  }
  .hyu-ms-model {
    font-size: 26px;
  }
  .hyu-ms-specs {
    flex-wrap: wrap;
    gap: 20px;
  }
}
