
  .recent-cars {
    padding: 3rem var(--wrapper-padding);
    /* background: linear-gradient(to bottom, #f8f9fa, #ffffff); */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
  }
  
  .recent-cars::before,
  .recent-cars::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--wrapper-padding);
    pointer-events: none;
    z-index: 5;
  }
  .recent-cars::before { left: 0; background: linear-gradient(to right, #f8f9fa, transparent); }
  .recent-cars::after { right: 0; background: linear-gradient(to left, #f8f9fa, transparent); }
  
  .recent-cars__container { margin: 0 auto; }
  
  .recent-cars__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  
  /* Carrusel */
  .carousel {
    position: relative;
    margin: 0 auto;
    max-width: 400px;
  }
  .carousel__track-container { padding: 1rem 0; }
  .carousel__track {
    display: flex;
    gap: var(--gap-slide);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
  }
  .carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    /* transform: translateZ(0); */
    backface-visibility: hidden;
  }
  
  /* Loading Spinner CSS */
  .car-card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 3px solid rgba(0,0,0,0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Zoom: por defecto, las tarjetas están a scale 0.80 y opacidad 0 con transición */
  /* Animación base de la tarjeta (estado inactivo) */
  /* Estado inactivo: tarjetas en escala 0.8 y opacidad 0.6 */
  .carousel__slide .car-card {
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
            opacity .5s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  
  /* Estado activo: tarjeta en escala 1 y opacidad 1 */
  .carousel__slide.active .car-card {
  transform: scale(1);
  opacity: 1;
  transition: transform .5s cubic-bezier(0.25, 0.1, 0.25, 1),
            opacity .3s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  
  
  
  @media (min-width: 768px) {
    .carousel { max-width: none; }
    .carousel__slide { flex: 0 0 calc((100% - var(--gap-slide)) / 2); }
  }
  @media (min-width: 1024px) {
    .carousel__slide { flex: 0 0 calc((100% - 2 * var(--gap-slide)) / 3); }
  }
  @media (min-width: 1900px) {
    .carousel__slide { flex: 0 0 calc((100% - 3 * var(--gap-slide)) / 4); }
  }
  
  .carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
  }
  .carousel__button:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
  .carousel__button--prev { left: -20px; }
  .carousel__button--next { right: -20px; }
  
  /* Tarjeta de coche */
  .car-card {
    background: white;
    border-radius: 16px;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.08); */
    border: solid 1px rgb(227, 227, 227);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
  
  }
  
  
  /* Loading Spinner CSS */
  
  .car-card.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
  }
  
  .car-card.loading .car-card__image {
  opacity: 0.3; /* Reduce la opacidad de la imagen mientras carga */
  filter: blur(2px);
  }
  
  @keyframes spin {
  to { transform: rotate(360deg); }
  }
  
  
  .car-card:hover { transform: translateY(-5px); }
  .car-card__image-container {
    position: relative;
    /* padding-top: 50%; */
    overflow: hidden;
    max-height: 240px
  }
  .car-card__image {
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    object-position: bottom;
  }
  .car-card:hover .car-card__image { transform: scale(1.05); }
  .car-card__iva-overlay {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(255,255,255,0.8);
    color: var(--text-dark);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 6;
  }
  .car-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 5;
  }
  .car-card__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .car-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  .car-card__logo-container { flex-shrink: 0; }
  .car-card__logo {
    width: 60px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }
  .car-card:hover .car-card__logo-container .car-card__logo {
    filter: grayscale(0%);
    opacity: 1;
  }
  .car-card__model-info { margin-left: 1rem; }
  .car-card__make {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
  }
  .car-card__model-name { font-size: 1.5rem; color: var(--text-dark); }
  .car-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 1rem 0;
    justify-content: center;
    order: 1;
  }
  .spec-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
  }
  .spec-item i { margin-right: 0.25rem; font-size: 1rem; }
  .icon-calendar_today::before { content: "\e919"; }
  .icon-map::before { content: "\e965"; }
  .icon-cambio::before { content: "\e91b"; }
  .icon-combustible::before { content: "\e93a"; }
  
  .car-card__pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.75rem;
  }
  .price__column { text-align: center; flex: 1; }
  .price__column:not(:last-child) { margin-right: 0.5rem; }
  .price__label { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.25rem; }
  .price__value,
  .price__monthly { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); }
  .car-card__cta {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
    text-decoration: none;
    text-align: center;
    order: 2;
    margin-top: 0;
    background: var(--green30);
  }
  
  
  .car-card__cta:hover { background: var(--accent-color); 
  background: var(--green50);
  }
  
  .cta-button {
    margin-top: 2rem;
  }
  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42,92,130,0.3);
  }
  .cta-icon { margin-left: 0.75rem; transition: transform 0.3s ease; }
  
  .cta-icon path {
  fill: currentColor;
  }
  
  .cta-button:hover .cta-icon { transform: translateX(3px); }
  
  /* Eliminar transiciones durante el reset */
  .carousel__track.no-transition .car-card {
    transition: none !important;
  }
  /* Para evitar destellos al reset (mantén estas reglas comentadas si te sirven) */
  .carousel__slide:not(.active) .car-card {
    /* opacity: 0 !important;
    transition-delay: 0s !important; */
  }
  