.rail-wrap {
    position: relative;
    max-width: 1100px;
    margin: 24px auto;
  }
  
  .rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 48px;
    scroll-snap-type: x mandatory;
  }
  
  .rail::-webkit-scrollbar {
    height: 8px;
  }
  
  .rail::-webkit-scrollbar-thumb {
    background: #c6c6c6;
    border-radius: 4px;
  }
  .card-thumb {
    flex: 0 0 clamp(45%, 260px, 32%);
    scroll-snap-align: start;
    border: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .card-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 5 / 5;
    object-fit: contain;
    background: #f7f7f7;
  }
  
  .pill {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 999px;
  }
  
  /* --- FLECHAS DE NAVEGACIÓN --- */
  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 5;
  }
  
  .nav-btn.prev {
    left: 0;
  }
  
  .nav-btn.next {
    right: 0;
    transform: translateY(-50%) !important;
  }
  
  /* Efecto hover opcional */
  .nav-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
  }
  


  /* Responsivo */
  @media (min-width: 768px) {
    .card-thumb {
      flex-basis: 50%;
    }
  }
  
  @media (min-width: 1200px) {
    .card-thumb {
      flex-basis: 30%;
    }
  }

