/* ── Hero / Slider — estilo manhwa ─────────────────── */

#hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #05080c;
  box-shadow: none;
  margin-top: 0;
  margin-bottom: 0;
}

/* ── Track ── */
.hero-slider {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Cada slide ── */
.hero-slide {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
}

/* fallback mientras carga la imagen */
.hero-slide {
  background-color: #09010c;
}

/* ── Imagen <img> como fondo de slide ── */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: block;
}

/* Overlay oscuro sobre el backdrop */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(5, 8, 12, 0.92) 0%,
      rgba(5, 8, 12, 0.70) 45%,
      rgba(5, 8, 12, 0.25) 100%);
  z-index: 1;
}

/* ── Panel de info (side izquierdo) ── */
.hero-slide__info {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ── Géneros ── */
.hero-slide__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.genre-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.6);
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.12);
}

/* ── Título ── */
.hero-slide__title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ── Descripción ── */
.hero-slide__desc {
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Meta chips (rating, caps, estado) ── */
.hero-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-chip .fa-star {
  color: #fbbf24;
}

.meta-chip--status {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

/* ── CTA Button ── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  background: var(--primary, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
  margin-top: 0.25rem;
}

.hero-cta:hover {
  background: var(--primary-hover, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55);
}

/* ── Nav buttons ── */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s, opacity 0.25s;
  opacity: 0;
}

#hero:hover .hero-btn {
  opacity: 1;
}

.hero-btn:hover {
  background: rgba(124, 58, 237, 0.6);
  border-color: rgba(124, 58, 237, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.hero-btn--prev {
  left: 14px;
}

.hero-btn--next {
  right: 14px;
}

/* ── Dot indicators ── */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 2.5rem;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-dot {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  border: none;
  padding: 0;
}

.hero-dot.active {
  background: var(--primary, #7c3aed);
  width: 36px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #hero {
    border-radius: 10px;
  }

  .hero-slide {
    aspect-ratio: 16 / 9;
    align-items: flex-end;
  }

  .hero-slide__title {
    font-size: 1.5rem;
  }

  .hero-slide__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .hero-btn {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
    opacity: 1;
  }

  .hero-dots {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ── Móvil muy pequeño ── */
@media (max-width: 480px) {
  .hero-slide {
    aspect-ratio: 4 / 3;
  }

  .hero-slide__info {
    padding: 1rem 1rem 1.5rem;
    gap: 0.6rem;
  }

  .hero-slide__title {
    font-size: 1.2rem;
  }

  .hero-slide__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.78rem;
  }

  .hero-cta {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
  }

  .hero-dots {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
  }
}