@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: #c084fc1f;
  --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%,
      #a855f733,
      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: #0d0616d6;

  backdrop-filter: blur(18px);

  border-bottom: 1px solid #a855f71f;
}

.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 a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.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: #a855f71a;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telegram-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a855f726;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 17px;
  transition: 0.2s ease;
}

.telegram-btn:hover {
  color: var(--accent-light);
  border-color: #a855f780;
  background: #a855f714;
  transform: translateY(-1px);
}

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

.hero {
  position: relative;
  max-width: 1400px;
  min-height: 520px;
  margin: auto;
  padding: 90px 28px 70px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      #180a24fa 0%,
      #180a24e0 35%,
      #180a2473 65%,
      #180a2426 100%
    ),
    url("https://ik.imagekit.io/2pu9usk5h/HERO/PELISCOOL.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 0 0 24px 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 75% 50%,
    #a855f72e,
    transparent 35%
  );

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;

  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: #170b25eb;

  border: 1px solid #a855f726;
  border-radius: 14px;

  box-shadow:
    0 16px 45px #00000040,
    0 0 30px #7c3aed0a;
}

.search-box:focus-within {
  border-color: #a855f78c;

  box-shadow:
    0 0 0 3px #a855f714,
    0 16px 45px #00000040;
}

.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 #a855f71a;
  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: #a855f773;

  box-shadow:
    0 18px 35px #00000059,
    0 0 25px #7c3aed1a;
}

.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, #000000d1);
  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: #a855f7eb;

  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: #000000b3;
  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: #a855f780;
  background: #a855f714;
  transform: translateY(-1px);
}
.about-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #000000bf;
  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 #0000008c;
}
.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: #ffffff14;
  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: 0.2s ease;
}

.links a:hover {
  color: var(--accent-light);
  background: #a855f71f;
  transform: translateY(-2px);
}

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

  width: 44px;
  height: 44px;

  border: 1px solid #a855f72e;
  border-radius: 50%;

  background: #170b25f0;

  color: var(--text);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transition: 0.2s ease;
}

#btnSubir:hover {
  color: #ffffff;
  border-color: #a855f780;

  background: #a855f71f;

  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 {
    min-height: 500px;
    padding: 65px 16px 50px;

    background-image:
      linear-gradient(
        180deg,
        #180a24d1 0%,
        #180a24f0 70%,
        #180a24 100%
      ),
      url("https://ik.imagekit.io/2pu9usk5h/HERO/PELISCOOL.png");

    background-position: center;
  }

  .hero-content {
    max-width: 100%;
  }
  .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));
  }
}

.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: #a855f726;
  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: #0d0616f5;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #a855f733;
    padding: 15px 20px;
    gap: 12px;
    box-shadow: 0 15px 30px #00000080;
    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: #ffffff08;
  }

  .about-btn {
    margin-left: 0;
  }

  .header-actions {
    margin-left: 10px;
  }
}

:root {
  --bg: #0b0d16;
  --surface: #151827;
  --surface-2: #1b2032;
  --border: #c084fc24;
  --text: #f7f8fc;
  --muted: #a4abc0;
  --accent: #9b5cff;
  --accent-2: #6c4cff;
  --accent-light: #c5a0ff;
}

body {
  background:
    radial-gradient(
      ellipse at 50% -12%,
      #8b5cf62b,
      transparent 36rem
    ),
    linear-gradient(#0b0d16b8, #0b0d16db),
    url("https://ik.imagekit.io/2pu9usk5h/HERO/PELISCOOL.png") center / cover fixed,
    #0b0d16;
}

.site-header {
  background: #0b0d16e0;
  border-bottom-color: #ffffff14;
}

.header-inner {
  min-height: 68px;
}

.main-nav a {
  font-size: 13px;
  padding: 10px 12px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #a855f726;
  color: #fff;
}

.hero {
  min-height: 390px;
  padding: 58px 34px 52px;
  margin: 18px auto 10px;
  border-radius: 24px;
  background-image:
    linear-gradient(
      90deg,
      #0d0919fa 0%,
      #0d0919e0 38%,
      #0d09196b 72%,
      #0d09192e 100%
    ),
    linear-gradient(0deg, #0b0d168c, transparent 42%),
    url("https://ik.imagekit.io/2pu9usk5h/HERO/PELISCOOL.png");
  box-shadow: 0 20px 55px #00000029;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  margin-top: 14px;
}

.hero p {
  font-size: 14px;
  max-width: 570px;
  margin-bottom: 22px;
}

.eyebrow,
.section-kicker {
  letter-spacing: 1.5px;
}

.search-box {
  background: #0f0c1bf0;
  border-color: #c084fc33;
}

#buscador::placeholder {
  color: #8d91a5;
}

.catalog-section {
  padding: 25px 28px 18px;
  scroll-margin-top: 82px;
}

.section-heading {
  align-items: center;
  margin-bottom: 17px;
}

.section-heading h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  margin-top: 7px;
}

.section-kicker {
  display: inline-block;
  font-size: 10px;
}

.section-kicker i {
  margin-right: 5px;
}

.section-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #c084fc26;
  border-radius: 999px;
  background: #a855f712;
}

.carousel {
  position: relative;
}

.catalog-section .grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(145px, 16vw, 195px);
  grid-template-columns: none;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-section .grid > .card {
  scroll-snap-align: start;
  border-radius: 14px;
  background: linear-gradient(180deg, #191d2d, #111522);
  border-color: #ffffff12;
}

.card-poster {
  border-radius: 13px 13px 0 0;
}

.card .title {
  font-size: 13px;
  line-height: 1.4;
}

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

.card:hover {
  border-color: #c084fc7a;
  box-shadow:
    0 14px 30px #00000057,
    0 0 20px #7c3aed17;
}

.catalog-section .grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.catalog-section .grid-resultados {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 15px;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #c084fc47;
  background: #0f0c1beb;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.carousel-btn.prev {
  left: -6px;
}

.carousel-btn.next {
  right: -6px;
}

.carousel-btn:hover {
  background: var(--accent-2);
  border-color: var(--accent);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.carousel.sin-scroll .carousel-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.footer {
  margin-top: 38px;
  padding: 26px 18px;
  background: #06080ea6;
  border-top: 1px solid #ffffff12;
  color: #9da3b8;
}

#btnSubir {
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px #00000040;
}

@media (min-width: 1100px) {
  .hero {
    min-height: 400px;
  }
  .hero-content {
    max-width: 740px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
    padding: 0 18px;
    gap: 12px;
  }
  .hero {
    min-height: 370px;
    padding: 44px 20px 36px;
    margin: 12px 12px 8px;
    border-radius: 19px;
    background-position: 62% center;
    background-image:
      linear-gradient(90deg, #0d0919f7, #0d0919c4),
      url("https://ik.imagekit.io/2pu9usk5h/HERO/PELISCOOL.png");
  }
  .hero h1 {
    font-size: clamp(35px, 9vw, 48px);
    letter-spacing: -1.7px;
  }
  .hero p {
    font-size: 13px;
  }
  .catalog-section {
    padding: 22px 17px 12px;
  }
  .catalog-section .grid {
    grid-auto-columns: clamp(138px, 42vw, 170px);
    gap: 12px;
    margin-right: -2px;
  }
  .catalog-section .grid-resultados {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-right: 0;
  }
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .carousel-btn.prev {
    left: -4px;
  }
  .carousel-btn.next {
    right: -4px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-count {
    font-size: 11px;
    padding: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
