@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #16091f;
  --surface: #21102d;
  --surface-2: #2a1439;
  --border: rgba(192, 132, 252, 0.12);
  --text: #f8f5ff;
  --muted: #ad9bb9;
  --accent: #a855f7;
  --accent-2: #7c3aed;
  --accent-light: #c084fc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(168, 85, 247, 0.20),
      transparent 35rem
    ),
    #180a24;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  min-height: 100vh;
}

body::selection {
  background: var(--accent);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0616;
}
::-webkit-scrollbar-thumb {
  background: #4c1d70;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(13, 6, 22, 0.84);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.header-inner {
  max-width: 1400px;
  min-height: 72px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand b {
  color: var(--accent-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav a {
  padding: 10px 13px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.1);
}

.main-nav i {
  margin-right: 6px;
}

.about-btn {
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}



.page {
  min-height: calc(100vh - 72px);
}

.hero {
  max-width: 1400px;
  margin: auto;
  padding: 75px 28px 45px;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.eyebrow i {
  margin-right: 7px;
}

.hero h1 {
  margin: 14px 0 15px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -3px;
}

.hero h1 span {
  background: linear-gradient(90deg, #c084fc, #a855f7, #7c3aed);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.search-box {
  max-width: 620px;
  height: 54px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 15px;

  background: rgba(23, 11, 37, 0.92);

  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 14px;

  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(124, 58, 237, 0.04);
}

.search-box:focus-within {
  border-color: rgba(168, 85, 247, 0.55);

  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.08),
    0 16px 45px rgba(0, 0, 0, 0.25);
}

.search-box > i {
  color: var(--accent-light);
}

#buscador {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

#buscador::placeholder {
  color: #626c83;
}

#btnLimpiar {
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

#btnLimpiar:hover {
  color: var(--text);
}

.catalog-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -0.7px;
}

.section-count {
  color: var(--muted);
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  min-width: 0;

  background: var(--surface);

  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 13px;

  cursor: pointer;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);

  border-color: rgba(168, 85, 247, 0.45);

  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(124, 58, 237, 0.1);
}

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.card-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-poster img {
  transform: scale(1.045);
}

.card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transition: 0.22s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 7px 9px;

  border-radius: 8px;

  background: rgba(168, 85, 247, 0.92);

  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
}

.card-info {
  padding: 11px 12px 13px;
}

.card .title {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .fecha {
  margin-top: 7px;
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 600;
}

.about-panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.about-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.about-btn:hover {
  color: var(--accent-light);
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.08);
  transform: translateY(-1px);
}
.about-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 300;
}
.about-panel.active {
  opacity: 1;
  pointer-events: all;
}
.about-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 18px;
  background: #171222;
  border: 1px solid #4a2760;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.about-content h2 {
  margin-top: 0;
  color: #d8a8ff;
}
.about-content h3 {
  margin-top: 25px;
  color: #d8a8ff;
  font-size: 15px;
}
.about-content p {
  color: #aaaebb;
}
.about-content hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 22px 0;
}
.close-about {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: #291436;
  color: #d8a8ff;
  cursor: pointer;
}

.links {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  text-decoration: none;
  transition: .2s ease;
}

.links a:hover {
  color: var(--accent-light);
  background: rgba(168, 85, 247, 0.12);
  transform: translateY(-2px);
}

#btnSubir {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 50%;

  background: rgba(23, 11, 37, 0.94);

  color: var(--text);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transition: 0.2s ease;
}

#btnSubir:hover {
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.5);

  background: rgba(168, 85, 247, 0.12);

  transform: translateY(-2px);
}

#btnSubir.mostrar {
  opacity: 1;
  visibility: visible;
}

.footer {
  margin-top: 50px;
  padding: 28px;
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.footer strong {
  color: var(--text);
}

@media (max-width: 760px) {
  .header-inner {
    padding: 0 16px;
  }
  .main-nav {
    display: none;
  }
  .hero {
    padding: 55px 16px 30px;
  }
  .catalog-section {
    padding: 25px 16px;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 480px) and (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =====================================
   BOTÓN HAMBURGUESA Y MENÚ MÓVIL
====================================== */

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-light);
}

@media (max-width: 760px) {
  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(13, 6, 22, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding: 15px 20px;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);

    /* Estado oculto con animación */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
  }

  .about-btn {
    margin-left: 10px;
  }
}