/* ═══════════════════════════════════════════════════════════════
   SLIDER DE VIDEOS — reemplaza slider-video.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Panel BOOK: layout de columna completa ─────────────────── */
#p-book .pb {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  height: 100%;
}

.slider-home{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* ── Slider principal ───────────────────────────────────────── */
#sliderWrap {
  position: relative;
  width: 80%;
  flex: 1 1 auto;
  min-height: clamp(240px, 60vh, 400px);
  background: #2a2a2a;
  overflow: hidden;
  border-radius: 0;
}
.panel{
  z-index: 999999;
}
/* Slides apilados con fade */
#sliderWrap .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  height: 100%;
  width: 100%;
}

#sliderWrap .slide.act {
  opacity: 1;
  /* pointer-events: auto; */
}

/* Thumbnail cover — fondo mientras carga el video */
.sthumb-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* Video */
.svideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Info overlay */
.sinfo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

.snum {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  letter-spacing: 3px;
  margin-bottom: 3px;
}

.sinfo h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(16px, 2.5vw, 26px);
  color: #fff;
  letter-spacing: 1px;
  margin: 0 0 2px;
  line-height: 1;
}

.sinfo p {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ── iframe embed (YouTube / Vimeo) ─────────────────────────── */
.sivideo {
  position: absolute;
  inset: -10%; /* overscan para ocultar controles del player */
  z-index: 2;
  pointer-events: none; /* evita que el usuario interactúe con el iframe */
}

.sivideo-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Barra de progreso al fondo del slider ──────────────────── */
.sprogress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 5;
}

.sbar {
  height: 100%;
  width: 0%;
  background: #d4e000;
  transition: none;
}

/* Flechas flotantes sobre el slider */
.sctrl {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 99999;
  pointer-events: none;
}

.sbtn {
  pointer-events: auto;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
  z-index: 9999999;
}

.sbtn:hover {
  background: rgba(212,224,0,0.9);
  border-color: #d4e000;
  color: #000;
}

.scnt { display: none; }

/* ── Thumbnails carrusel scrolleable infinito ───────────────── */
.sthumbs-wrap {
  flex-shrink: 0;
  overflow: hidden;               /* oculta scrollbar */
  border-top: 1px solid rgba(255,255,255,0.06);
  height: clamp(80px, 30vh, 200px);
}

.sthumbs {
  display: flex;
  gap: 14px;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
}

.sthumbs::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.sthumb {
  flex: 0 0 clamp(100px, 20vw, 280px); /* ancho fijo mínimo para que sean scrolleables */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: flex 0.35s ease, opacity 0.3s;
}

.sthumb:last-child { border-right: none; }

/* Thumb activo un poco más ancho */
.sthumb.act {
  flex: 0 0 clamp(130px, 22vw, 300px);
}

.sthumb-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(0.55);
}

.sthumb.act .sthumb-img {
  filter: brightness(0.85);
  transform: scale(1.04);
}

.sthumb:hover:not(.act) .sthumb-img {
  filter: brightness(0.7);
  transform: scale(1.03);
}

.sthumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  transition: background 0.3s;
}

.sthumb.act .sthumb-overlay { background: rgba(0,0,0,0); }

/* Línea amarilla abajo en thumb activo */
.sthumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #d4e000;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}

.sthumb.act::after { opacity: 1; }

/* Número en cada thumb */
.sthumb-num {
  position: absolute;
  bottom: 7px;
  left: 9px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  z-index: 2;
  transition: color 0.3s;
}

.sthumb.act .sthumb-num { color: #d4e000; }



.bcta:hover { color: #d4e000; }


@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ── LIGHTBOX ───────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999999999999999999999;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;

}

#lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

#lbInner {
  position: relative;
  width: min(92vw, 160vh);
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

#lbInner video,
#lbInner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

#lbMeta {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

#lbNum {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

#lbTitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 3vw, 36px);
  color: #fff;
  letter-spacing: 2px;
  margin: 0 0 4px;
}

#lbSub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

#lbClose {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  z-index: 2;
}

#lbClose:hover { border-color: #d4e000; color: #d4e000; }

#lbPrev, #lbNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  z-index: 2;
}

#lbPrev { left: 20px; }
#lbNext { right: 20px; }
#lbPrev:hover, #lbNext:hover {
  background: rgba(212,224,0,0.9);
  border-color: #d4e000;
  color: #000;
}