/* ── sliding_band.css — Carrusel horizontal Rubber Hose ────────────────── */

.sband {
  padding-block:  var(--space-10);
  overflow:       hidden;
}

.sband__head {
  display:         flex;
  align-items:     baseline;
  justify-content: space-between;
  gap:             var(--space-4);
  padding-inline:  var(--gutter);
  max-width:       var(--max-w);
  margin-inline:   auto;
  margin-bottom:   var(--space-6);
}

.sband__title {
  font-family:  var(--font-display);
  font-size:    var(--size-xl);
  color:        var(--text);
  line-height:  1.1;
}

/* "Ver todos" — solo desktop */
.sband__all {
  font-family:    var(--font-body);
  font-size:      var(--size-sm);
  font-weight:    var(--weight-medium);
  color:          var(--accent);
  text-decoration: none;
  display:        none;
  transition:     color var(--dur-fast);
}

.sband__all:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .sband__all { display: inline; }
}

/* Rail de scroll */
.sband__rail {
  display:              flex;
  gap:                  var(--space-4);
  padding-inline:       var(--gutter);
  overflow-x:           auto;
  scroll-snap-type:     x mandatory;
  scroll-behavior:      smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:      none;
  padding-bottom:       var(--space-2); /* espacio para box-shadow de las cards */
}

.sband__rail::-webkit-scrollbar { display: none; }

/* Slide */
.sband__slide {
  flex-shrink:   0;
  scroll-snap-align: start;
  width:         85vw;
}

@media (min-width: 480px)  { .sband__slide { width: 48%; } }
@media (min-width: 768px)  { .sband__slide { width: calc(33.333% - var(--space-3)); } }
@media (min-width: 1024px) { .sband__slide { width: calc(25% - var(--space-3)); } }

/* ── Botón "ver más" al final del rail ────────────────────────────────── */
.sband__ver-mas {
  flex-shrink:     0;
  scroll-snap-align: start;
  width:           160px;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.sband__btn {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             var(--space-3);
  padding:         var(--space-6);
  border:          var(--border-width-lg) solid var(--line);
  border-radius:   var(--radius-lg);
  background:      var(--surface);
  box-shadow:      var(--shadow-sm);
  color:           var(--muted);
  text-decoration: none;
  font-family:     var(--font-body);
  font-size:       var(--size-sm);
  font-weight:     var(--weight-medium);
  text-align:      center;
  width:           100%;
  transition:
    transform  var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    color      var(--dur-fast) var(--ease);
  cursor:          pointer;
}

.sband__btn [data-lucide] {
  width:  28px;
  height: 28px;
  color:  var(--accent);
}

.sband__btn:hover {
  background:  var(--accent);
  color:       var(--on-accent);
  box-shadow:  none;
  transform:   translate(3px, 3px);
}

.sband__btn:hover [data-lucide] {
  color: var(--on-accent);
}

/* ── Controles de navegación opcionales ────────────────────────────────── */
.sband__controls {
  display:         flex;
  justify-content: center;
  gap:             var(--space-3);
  margin-top:      var(--space-5);
  padding-inline:  var(--gutter);
}

.sband__nav {
  display:        grid;
  place-items:    center;
  width:          40px;
  height:         40px;
  border:         var(--border-width) solid var(--line);
  border-radius:  var(--radius-sm);
  background:     var(--background);
  box-shadow:     var(--shadow-xs);
  color:          var(--text);
  cursor:         pointer;
  transition:
    transform  var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.sband__nav:hover {
  background:  var(--accent);
  color:       var(--on-accent);
  box-shadow:  none;
  transform:   translate(2px, 2px);
}

.sband__nav:disabled {
  opacity: 0.4;
  cursor:  not-allowed;
}

.sband__nav:disabled:hover {
  background:  var(--background);
  color:       var(--text);
  box-shadow:  var(--shadow-xs);
  transform:   none;
}

.sband__nav [data-lucide] {
  width:  18px;
  height: 18px;
}