* {
  font-family: tcomMed, HelveticaNeueMedium, Helvetica Neue light, Arial, sans-serif;
}

#heroBanner {
  position: relative;
  overflow: hidden;
  height: 85vh;
}

.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.85, .09, .37, 1.03), opacity 0.5s;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: all;
}

/* Indicadores estilo Toyota, full-width */
.bestune-indicators {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  gap: 4px;
  padding: 0 0rem;
  box-sizing: border-box;
  margin: 0;
  z-index: 10;
}

.lifestyle-gradient.top {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(17, 17, 17, 0.01));
  height: 200px;
  left: 0;
  width: 100%;
}

.lifestyle-gradient {
  position: absolute;
}

.lifestyle-gradient.bottom {
  background: linear-gradient(1turn, rgb(0, 0, 0), rgba(17, 17, 17, 0));
  bottom: 0;
  height: 150px;
  left: 0;
  width: 100%;
}

.bestune-indicator {
  flex: 1;
  height: 8px;
  background: #bcbcbc;
  position: relative;
  overflow: hidden;
}

.bestune-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  height: 100%;
  background: #111;
  transition: width 4s linear;
  z-index: 2;
}

/* Botones hero */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  pointer-events: none;
  z-index: 20;
}

.carousel-controls button {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 1.7rem;
  position: absolute;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel-controls .prev {
  left: 24px;
}

.carousel-controls .next {
  right: 24px;
}

.carousel-controls button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Menú de categorías */
.vehicles-nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.vehicles-nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 40%;
  left: 30%;
  height: 1px;
  background: #e0e0e0;
}

.vehicles-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vehicles-nav__link:hover {
  color: #000;
}

.vehicles-nav__link.active {
  color: #000;
  font-weight: 600;
}

.vehicles-nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
}

/* ===== SLIDER NAVIGATION (Toyota style) ===== */
.vehicle-slider-wrapper {
  width: 100%;
}

.vehicle-slider-nav {
  gap: 36px;
}

.slider-btn {
  border: none;
  background: #222;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
  outline: none;
}

.slider-btn--right {
  background: #111;
}

.slider-btn[disabled] {
  background: #cccccc !important;
  color: #888 !important;
  cursor: not-allowed;
}

.slider-page-indicator {
  min-width: 72px;
  text-align: center;
  font-weight: 500;
  font-size: 1.13rem;
  color: #222;
}

/* ===== BOTONES DE ACCIÓN ===== */
.slider-actions {
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.explore-btn {
  padding: 0.75rem 2rem;
  border: 1.5px solid #111;
  border-radius: 30px;
  font-weight: 600;
  background: #fff;
  color: #111;
  font-size: 1.15rem;
  transition: background .15s, color .15s;
}

.explore-btn:hover {
  background: #f6f6f6;
  color: #000;
}

.search-link {
  font-weight: 600;
  color: #111;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .15s;
}

.search-link:hover {
  color: #fc8403;
}

/* btn animated */
.animated-btn {
  position: relative;
  min-height: 40px;
  padding: 9pt 2pc;
  transform-style: preserve-3d;
  background: white;
  color: black;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  font-family: tcomMed, HelveticaNeueMedium, Helvetica Neue Medium, Arial, sans-serif;
}

.animated-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.btn-text {
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.arrow {
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  z-index: 2;
}

.arrow svg {
  width: 10px;
  height: 10px;
  fill: white;
}

.animated-btn:hover .btn-text {
  transform: translateX(-10px);
}

.animated-btn:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- AJUSTES RESPONSIVOS PARA TARJETAS DE VEHÍCULOS --- */

/* Estilos por defecto para las tarjetas (mobile-first) */
.vehicle-slider-wrapper .d-flex.flex-shrink-0 {
  min-width: 90%;
  /* En pantallas pequeñas, las tarjetas ocupan la mayor parte del ancho */
  height: auto;
  /* Permitir que la altura se ajuste dinámicamente */
  flex-direction: column;
  /* Apilar imagen y texto verticalmente */
  width: auto !important;
  /* Anular cualquier ancho en línea o previo */
  max-width: 100%;
  /* Asegurar que no desborde el contenedor */
}

/* Ajustes para la sección de la imagen de la tarjeta */
.vehicle-slider-wrapper .d-flex.flex-shrink-0>div:first-child {
  width: 100% !important;
  /* La imagen ocupa todo el ancho de la tarjeta */
  height: 200px;
  /* Altura fija para la imagen en móvil. Ajusta según sea necesario. */
  background-size: contain;
  /* o 'cover' según tu preferencia de visualización de la imagen */
  background-position: center;
  background-repeat: no-repeat;
}

/* Ajustes para la sección de contenido de texto de la tarjeta */
.vehicle-slider-wrapper .d-flex.flex-shrink-0>div:last-child {
  width: 100% !important;
  /* El contenido de texto ocupa todo el ancho de la tarjeta */
  padding: 1.25rem;
  /* Relleno ligeramente reducido para móvil */
}

/* Ajustar el tamaño de fuente para la legibilidad en móviles */
.vehicle-slider-wrapper .d-flex.flex-shrink-0 .sub-text,
.vehicle-slider-wrapper .d-flex.flex-shrink-0 .mini-text-tab {
  font-size: 0.85rem;
  /* Hacer que el texto pequeño sea más legible */
}

.vehicle-slider-wrapper .d-flex.flex-shrink-0 .h5 {
  font-size: 1.25rem;
  /* Ajustar el tamaño del encabezado */
}

.vehicle-slider-wrapper .d-flex.flex-shrink-0 .text-price-tab {
  font-size: 1.15rem;
  /* Ajustar el tamaño del precio */
}

/* Ajustar el espacio entre tarjetas para pantallas más pequeñas */
#vehicleSliderToyota {
  gap: 1rem;
  /* Espacio más pequeño para móvil para maximizar el espacio */
}

/* Media query para Tablets y pantallas más grandes (ej. min-width: 768px) */
@media (min-width: 768px) {
  .vehicle-slider-wrapper .d-flex.flex-shrink-0 {
    min-width: 600px;
    /* Ajusta este valor si quieres 2 tarjetas lado a lado en tablets */
    height: 320px;
    /* Restaurar la altura original */
    flex-direction: row;
    /* Volver al diseño horizontal */
  }

  .vehicle-slider-wrapper .d-flex.flex-shrink-0>div:first-child {
    width: 55% !important;
    /* Restaurar ancho original de la imagen */
    height: 100%;
    /* Restaurar altura original de la imagen */
  }

  .vehicle-slider-wrapper .d-flex.flex-shrink-0>div:last-child {
    width: 45% !important;
    /* Restaurar ancho original del contenido de texto */
    padding: 1.5rem 2rem;
    /* Restaurar relleno original */
  }

  #vehicleSliderToyota {
    gap: 1.5rem;
    /* Restaurar el espacio original para pantallas más grandes */
  }
}

/* Media query para Desktops y pantallas más grandes (ej. min-width: 992px) */
@media (min-width: 992px) {
  .vehicle-slider-wrapper .d-flex.flex-shrink-0 {
    min-width: 680px;
    /* Ancho mínimo original para pantallas más grandes */
  }
}

/* --- FIN DE AJUSTES RESPONSIVOS --- */

/* Text subtab */
.sub-text {
  font-family: tcomLight, HelvNeueLight, Helvetica Neue Light, Arial, sans-serif;
  font-size: 16px;
}

.text-price-tab {
  font-family: tcomLight, HelvNeueLight, Helvetica Neue Light, Arial, sans-serif;
  font-size: 24px;
}

.mini-text-tab {
  font-family: tcomLight, HelvNeueLight, Helvetica Neue Light, Arial, sans-serif;
  font-size: 10px;
  line-height: 18px;
}