/* Header */
.menu-item.active::after {
  opacity: 1;
  width: 120%;
}

.menu-item.active {
  font-weight: bold;
}

/* New car banner */
.newcar-banner {
  position: relative;
  width: 100%;
  height: 240px;
  background-image: url('/public/images/newcars/banner-0km.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 0;
  padding-top: calc((363 / 1884) * 100%);
}

.header-search-icon,
.header-search {
  display: none;
}

.swiper {
  width: 100%;
  height: auto;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  /* Color de los botones de navegación */
}

.swiper-pagination-bullet-active {
  background: #007bff;
  /* Color del indicador de la página activa */
}

/* Contenedor principal */
.row.noflexmobile2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

/* Columna izquierda (Detalles) */
.detalle-container {
  width: 50%;
}

.detalle-container h3 {
  margin-bottom: 15px;
}

.detalle-titulo {
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.ficha-tecnica {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Columna derecha (Galería) */
.galeria-container {
  width: 50%;
}

/* Paleta de colores */
.paleta-colores {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.paleta-colores li {
  list-style: none;
  width: 30px;
  height: 30px;
  border: 2px solid #ccc;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.paleta-colores li a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Estado activo */
.paleta-colores li.activo {
  border: 2px solid #000;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

#swiper-wrapper {
    transition: opacity 0.3s ease;
}

.slider-image.fade-in {
    opacity: 1;
    transform: scale(1);
}

.mySwiper {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.mySwiper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: 1;
    background: #ccc;
    transition: all 0.3s ease;
    border: 1px solid #999;
}

.swiper-pagination-bullet-active {
    transform: scale(1.3);
    border-color: #000;
}

@media (max-width: 768px) {
  .newcar-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .newcar-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
  }
  
  .banner-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    z-index: 2; /* Para que aparezca por encima del overlay */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Para mejorar legibilidad */
  }
  
  /* Estructura general */
  .noflexmobile2 {
    display: flex;
    flex-direction: column;
  }
  
  /* Poner galería arriba */
  .galeria-container {
    order: -1;
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Ajustes para la galería */
  .swiper {
    height: auto;
    max-height: 250px;
  }
  
  .slider-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    transform: scale(0.7);
  }
  
  /* Detalles técnicos */
  .detalle-container {
    width: 100%;
    padding: 0 15px;
  }
  
  .detalle-titulo {
    font-size: 18px;
    text-align: center;
    margin: 15px 0;
  }
  
  /* Paleta de colores */
  .paleta-colores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
  }
  
  .paleta-colores li {
    width: 25px;
    height: 25px;
    border-radius: 50%;
  }
  
  /* Banner */
  .newcar-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
  }
  
  /* Transición suave para el swiper */
  #swiper-wrapper {
    transition: opacity 0.3s ease;
  }
}