@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #e5e7eb;
  overflow-x: hidden;
  background: #080812;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.45) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(168,85,247,.35) 0 1px, transparent 1.8px);
  background-size: 130px 130px, 220px 220px;
  opacity: .22;
  pointer-events: none;
  z-index: -5;
}

/* NAVBAR */

nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 50px);
  max-width: 1600px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(168,85,247,.18);
  border-radius: 20px;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: white;
}

nav a {
  color: #ddd6fe;
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
  font-weight: 700;
  transition: .25s ease;
}

nav a:hover {
  color: white;
  text-shadow: 0 0 12px rgba(168,85,247,.8);
}

/* HERO */

.hero {
  min-height: 720px;
  padding: 130px 8% 60px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,5,12,.15), #080812 92%),
    url("./fondo-avelune.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 25%, rgba(168,85,247,.18), transparent 32%);
  z-index: -1;
}

.hero-content {
  position: absolute;

  top: 110px;
  left: 50%;

  transform: translateX(-50%);

  text-align: center;

  z-index: 2;

  width: 100%;

  pointer-events: none;
}

.avelune-title {
  margin: 0;
  font-size: clamp(70px, 9vw, 145px);
  font-family: 'Cinzel', serif;
  font-style: italic;
  font-weight: 900;
  color: white;
  letter-spacing: 2px;
  text-shadow:
    0 0 25px rgba(168,85,247,.7),
    0 0 55px rgba(59,130,246,.35);
    position: relative;
    z-index: 1;
}

.avelune-subtitle {
  margin-top: 6px;
  color: #d8d4ff;
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
}

/* LAYOUT */

.main-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 0 4% 80px;
  max-width: 1600px;
  margin: -420px auto 0;
}

.sidebar {
  position: sticky;
  top: 10px;
  height: fit-content;
  background: #111126;
  border: 1px solid rgba(168,85,247,.18);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 0 30px rgba(124,58,237,.10);
}

.sidebar h2 {
  color: #ff7a2f;
  text-align: center;
  margin-bottom: 34px;
  font-size: 22px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  padding: 18px 12px;
  border-radius: 12px;
  transition: .25s ease;
}

.sidebar a:hover {
  background: rgba(168,85,247,.12);
  transform: translateX(6px);
}

.sidebar a span {
  font-size: 24px;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-panel {
  display: block;
  scroll-margin-top: 120px;
  background: #111126;
  border: 1px solid rgba(168,85,247,.18);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 0 30px rgba(124,58,237,.10);
}

.content-panel small {
  font-size: 14px;
  font-weight: 900;
  color: white;
  letter-spacing: 1px;
}

.content-panel h1 {
  font-size: 42px;
  line-height: 1.1;
  color: #cfc8ff;
  margin: 18px 0 22px;
}

.content-panel h2 {
  color: #8b5cf6;
  font-size: 26px;
  margin: 10px 0;
}

.content-panel p {
  color: #c7c4e8;
  font-size: 17px;
  line-height: 1.7;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* CARDS */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(35,15,68,.72), rgba(8,7,22,.76));
  border: 1px solid rgba(168,85,247,.24);
  border-radius: 22px;
  padding: 28px;
  min-height: 220px;
  box-shadow: 0 0 35px rgba(124,58,237,.10);
  transition: .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,.45);
  box-shadow: 0 0 45px rgba(168,85,247,.22);
}

.card h2,
.card h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 14px;
}

.card p {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
}

.card strong {
  display: block;
  margin-top: 20px;
  color: white;
  font-size: 20px;
}

.tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(168,85,247,.14);
  border: 1px solid rgba(168,85,247,.24);
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 800;
}

/* BOTONES */

.btn,
.buy,
button {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #3b82f6);
  color: white;
  border: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(124,58,237,.28);
  cursor: pointer;
  transition: .3s ease;
}

.btn:hover,
.buy:hover,
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 34px rgba(168,85,247,.6);
}

/* SERVER / DISCORD */

.server-box {
  margin-top: 34px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(168,85,247,.3);
}

.server-box span {
  display: block;
  color: #cbd5e1;
  margin-bottom: 8px;
  font-size: 14px;
}

.server-box strong {
  display: block;
  margin-bottom: 16px;
  font-size: 22px;
}

.discord-box {
  margin-top: 28px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.discord-box p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #e5e7eb;
}

.discord-btn {
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  color: white;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}

/* RANGOS + MODAL */

.rank-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(168,85,247,.25);
  cursor: pointer;
  transition: .3s ease;
}

.rank-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.45);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3,3,10,.82);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #111126;
  border: 1px solid rgba(168,85,247,.25);
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 0 55px rgba(168,85,247,.25);
  position: relative;
}

.modal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}

.modal-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 22px;
}

.modal-left h2 {
  font-size: 48px;
  margin: 14px 0;
  color: white;
}

#modal-price {
  font-size: 22px;
  color: #c084fc;
}

.modal-buy {
  width: fit-content;
}

.modal-benefits h3 {
  color: #c084fc;
  margin-top: 18px;
  font-size: 24px;
}

.modal-benefits li {
  color: #d6d6e7;
  margin-bottom: 10px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(168,85,247,.15);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* FOOTER */

footer {
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 900px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-left h2 {
    font-size: 36px;
  }

  .rank-img {
    height: 240px;
  }
}

@media (max-width: 700px) {
  nav {
    width: calc(100% - 20px);
    padding: 14px 16px;
  }

  nav a:not(:first-child) {
    display: none;
  }

  .hero {
    min-height: 280px;
    padding: 90px 5% 20px;
  }

  .main-layout {
    padding: 0 3% 60px;
    margin: -180px auto 0;
  }

  .sidebar a {
    font-size: 16px;
  }

  .content-panel {
    padding: 24px;
  }

  .content-panel h1 {
    font-size: 32px;
  }

  .content-panel p {
    font-size: 15px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .discord-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.poke-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.poke-list span {
  padding: 7px 10px;
  border-radius: 999px;

  background: rgba(168,85,247,.14);

  border: 1px solid rgba(168,85,247,.25);

  color: #d8b4fe;

  font-size: 12px;

  font-weight: 800;
}

.username-input {
  width: 100%;
  padding: 16px;
  margin: 18px 0;
  border-radius: 14px;
  border: 1px solid rgba(168,85,247,.35);
  background: rgba(15,23,42,.8);
  color: white;
  font-size: 16px;
}

.username-input::placeholder {
  color: #aaa;
}

.discord-link {
  position: relative;
  z-index: 9999;
}