 :root{
      --nav-bg: #081423;
      --panel-bg: #07121a;
      --muted: #9ca3af;
    }
    body {
      background: linear-gradient(180deg,#03060a 0%, #07121a 100%);
      color: #fff;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    }
    .glass {
      background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
      backdrop-filter: blur(4px);
    }
    .poster {
      aspect-ratio: 2 / 3;
      object-fit: cover;
      border-radius: 0.5rem;
    }
    .prime-badge {
      background: linear-gradient(90deg,#ffcf3f,#f8b400);
      color: #042029;
      font-weight: 700;
      font-size: 0.75rem;
      padding: 0.18rem 0.4rem;
      border-radius: 999px;
    }
    .pill-top {
      background: rgba(0,0,0,0.6);
      border: 1px solid rgba(255,255,255,0.06);
      padding: 0.12rem 0.36rem;
      border-radius: 0.3rem;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.4px;
    }
    .age-chip {
      background: rgba(255,255,255,0.06);
      padding: 0.12rem 0.28rem;
      border-radius: 0.28rem;
      font-size: 0.7rem;
    }
    .hero {
      height: clamp(200px, 40vh, 360px);
      border-radius: 0.5rem;
      overflow: hidden;
      position: relative;
    }
    .hero img { width: 100%; height:100%; object-fit: cover; display:block; }
    .muted { color: var(--muted); }
    /* Ocultar scroll en carruseles */
    .scrollbar-hide::-webkit-scrollbar { display: none; }
    .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
 
/* ======= AJUSTA ESTE VALOR ======= */
:root {
  --preloader-time: 3s;  /* Cambia aquí el tiempo total (ejemplo: 3s, 5s, 10s) */
}

#preloader {
  position: fixed;
  inset: 0;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease;
}

/* Al ocultarse */
#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

/* Contenido */
.preloader-content {
  text-align: center;
  color: #65615F;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Imagen */
.preloader-content img {
  width: 220px;
  max-width: 80vw;
  filter: drop-shadow(0px -2px 9px #303030);
}

/* Barra de progreso */
.prog-bar-wrapper {
  width: 205px;
  height: 6px;
  position: relative;
  border-radius: 50px;
  overflow: hidden;
}
.prog-bar-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #919191;
  border-radius: 50px;
}
.prog-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(to right,#e300ff,#007cf0);
  border-radius: 50px;
  animation: loadbar var(--preloader-time) forwards;
}
@keyframes loadbar {
  to { width: 100%; }
}

/* Texto + spinner */
.preloader-extra {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}

/* Spinner */
.spinner div {
  width: 20px;
  height: 20px;
  border: 4px solid #65615F;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Ocultar scrollbar en Webkit */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Ocultar scrollbar en Firefox */
.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none; /* IE 10+ */
}

 /* ===== Categorías ===== */
   .categories-container {
  overflow-x: auto;         /* ?? permite scroll horizontal */
  padding: 15px 0;
}

.categories {
  display: flex;
  gap: 20px;
  padding: 0 20px;
}

.category {
  flex: 0 0 auto;           /* ?? evita que se encojan */
  width: 120px;             /* ?? ancho fijo */
  height: 70px;             /* ?? alto fijo */
  background: rgba(0,0,0,0.6);
  border: 2px solid #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.category img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* logos blancos estilo Disney+ */
}

.category:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255,255,255,0.6);
}

/* ?? Estilo scroll oculto y suave */
.categories-container::-webkit-scrollbar {
  display: none; /* Oculta la barra en Chrome */
}
.categories-container {
  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;     /* Firefox */
  scroll-behavior: smooth;   /* Scroll suave */
}




