/* ============================================================
   KIT-FLANDES · PIEZA 8 · CARRUSEL CON ZOOM — estilos
   Pareja de kit/carrusel.js.
   ============================================================ */

.kit-carr {
  position: fixed;
  inset: 0;
  z-index: 9760;
  display: none;
  flex-direction: column;
}
.kit-carr--on { display: flex; }

.kit-carr__velo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
}

/* ── barra ── */

.kit-carr__barra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  flex: 0 0 auto;
  padding-top: calc(10px + env(safe-area-inset-top, 0));
}
.kit-carr__t {
  flex: 1 1 auto;
  min-width: 0;
  font: 600 14px/1.3 var(--k-fuente);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kit-carr__cuenta {
  font: 600 11px/1 var(--k-fuente);
  background: rgba(255, 255, 255, .18);
  padding: 4px 9px;
  border-radius: var(--k-r-pill);
  flex: 0 0 auto;
}
.kit-carr__acciones { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }

.kit-carr__b {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: var(--k-r-sm);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.kit-carr__b:hover { background: rgba(255, 255, 255, .18); }
.kit-carr__b:active { transform: scale(.9); }
.kit-carr__b--x:hover { background: var(--k-malo); }

.kit-carr__z {
  font: 600 11px/1 var(--k-fuente);
  min-width: 42px;
  text-align: center;
  opacity: .85;
}

/* ── escena ── */

.kit-carr__escena {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  touch-action: none;
}

.kit-carr__img {
  max-width: 94%;
  max-height: 94%;
  object-fit: contain;
  transform-origin: center;
  transition: transform .16s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}
.kit-carr__img--zoom { cursor: grab; transition: none; }
.kit-carr__img--zoom:active { cursor: grabbing; }

.kit-carr__fl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.kit-carr__fl:hover { background: rgba(255, 255, 255, .28); }
.kit-carr__fl:active { transform: translateY(-50%) scale(.9); }
.kit-carr__fl[disabled] { opacity: .25; cursor: default; }
.kit-carr__fl--izq { left: 12px; }
.kit-carr__fl--der { right: 12px; }

/* ── tira de miniaturas ── */

.kit-carr__tiras {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0));
  overflow-x: auto;
  background: rgba(0, 0, 0, .55);
  flex: 0 0 auto;
  scrollbar-width: none;
}
.kit-carr__tiras::-webkit-scrollbar { display: none; }

.kit-carr__tira {
  appearance: none;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--k-r-sm);
  padding: 0;
  width: 56px; height: 56px;
  flex: 0 0 auto;
  cursor: pointer;
  overflow: hidden;
  opacity: .6;
  transition: opacity .16s ease, border-color .16s ease;
}
.kit-carr__tira.sel { opacity: 1; border-color: #fff; }
.kit-carr__tira:hover { opacity: 1; }
.kit-carr__tira img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 560px) {
  .kit-carr__fl { width: 38px; height: 38px; font-size: 21px; }
  .kit-carr__z { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kit-carr__img { transition: none; }
}
