/* ===============================
   RESET GENERAL
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* ===============================
   BODY (CORREGIDO)
   ❌ antes: overflow: hidden
   ✅ ahora: permite scroll
================================ */
body {
  overflow-x: hidden;
  background: black;
  color: white;
}

/* ===============================
   FONDO PARALLAX VERTICAL
================================ */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 300%;
  background:
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429")
    center / cover no-repeat;
  animation: bgMove 30s linear infinite;
  filter: brightness(0.6) saturate(1.3);
  z-index: -3;
  will-change: transform;
}

@keyframes bgMove {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-66%); }
}

/* ===============================
   CANVAS DE PARTÍCULAS
================================ */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* ===============================
   OVERLAY CINEMATOGRÁFICO
================================ */
.cinematic-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.1) 35%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* ===============================
   CONTENEDOR PRINCIPAL
   ❌ antes: height: 100vh (rompía scroll)
   ✅ ahora: min-height
================================ */
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}

/* ===============================
   TÍTULOS ESTILO NETFLIX
================================ */
.title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 25px rgba(255,255,255,0.65);
  animation: fadeIn 2s ease;
}

.subtitle {
  font-size: 1.3rem;
  margin-top: 10px;
  opacity: 0.85;
  animation: fadeIn 3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   CARRUSEL HORIZONTAL
================================ */
.carousel {
  width: min(80%, 1200px);
  overflow: hidden;
  margin-top: 60px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.05);
  padding: 20px;
}

.carousel-track {
  display: flex;
  gap: 30px;
  animation: slide 25s linear infinite;
  will-change: transform;
}

.carousel img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.carousel img:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 30px 60px rgba(255,255,255,0.3);
}

/* ===============================
   ANIMACIÓN HORIZONTAL
================================ */
@keyframes slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* 🎬 SOLO para la sección cinematográfica */
.showcase {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Grid de tarjetas */
.grid {
  display: grid;
  gap: 30px;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Responsive */
@media (max-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}
