/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0a0614;
  color: #e6e2f5;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

:root {
  --bg-0: #12071c;
  --bg-1: #1a0a26;
  --bg-2: #241035;
  --purple-deep: #4a1a7a;
  --purple: #7b2cbf;
  --purple-light: #b57ce8;
  --gold: #f5b942;
  --gold-light: #ffd97a;
  --gold-deep: #b8860b;
  --pink-accent: #d946ef;
  --text: #f0e6ff;
  --text-dim: #a89bc4;
  --border: rgba(245, 185, 66, 0.18);
  --card-bg: rgba(45, 22, 75, 0.55);
  --shadow-glow: 0 0 40px rgba(245, 185, 66, 0.3);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADINGS & TEXT ===== */
h1, h2, h3, h4 { font-family: 'Cinzel', serif; letter-spacing: 0.5px; color: #fff; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--text-dim); margin-top: 12px; }

.text-gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--pink-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #2a1200;
  box-shadow: 0 8px 24px rgba(245, 185, 66, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245, 185, 66, 0.6); }
.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: rgba(245, 185, 66, 0.12); border-color: var(--gold-light); color: var(--gold-light); }
.btn-ghost {
  background: rgba(181, 124, 232, 0.1);
  color: var(--text);
  border: 1px solid rgba(181, 124, 232, 0.25);
}
.btn-ghost:hover { background: rgba(181, 124, 232, 0.2); border-color: var(--purple-light); }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 7, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; }
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(245, 185, 66, 0.35));
  transition: filter 0.3s;
}
.logo:hover .logo-img { filter: drop-shadow(0 0 22px rgba(245, 185, 66, 0.7)); }
.logo-img-footer { height: 60px; }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a:hover { color: #fff; }
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--emerald);
  transition: width 0.3s;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a::after { background: var(--gold); }

/* Submenu (Historia dropdown) */
.has-submenu { position: relative; }
.submenu-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.caret {
  font-size: 0.7rem;
  transition: transform 0.25s;
  color: var(--gold);
}
.has-submenu.open > .submenu-trigger .caret,
.has-submenu:hover > .submenu-trigger .caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 340px;
  padding: 12px;
  background: rgba(18, 7, 28, 0.98);
  border: 1px solid rgba(245, 185, 66, 0.28);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(123, 44, 191, 0.25);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.submenu::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.submenu::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(18, 7, 28, 0.98);
  border-top: 1px solid rgba(245, 185, 66, 0.28);
  border-left: 1px solid rgba(245, 185, 66, 0.28);
}
.has-submenu:hover .submenu,
.has-submenu.open .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu-label {
  display: block;
  padding: 10px 14px 6px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 700;
}
.submenu-label-2 {
  margin-top: 6px;
  border-top: 1px dashed rgba(245, 185, 66, 0.15);
  padding-top: 12px;
}
.submenu a {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s;
}
.submenu a::after { display: none; }
.submenu a:hover { background: rgba(245, 185, 66, 0.08); }
.sub-num {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--gold-light);
  text-align: center;
  text-shadow: 0 0 10px rgba(245, 185, 66, 0.4);
}
.sub-title {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
.sub-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 2px;
}
.submenu a:hover .sub-title { color: var(--gold-light); }

.header-actions { display: flex; gap: 12px; }
.menu-toggle {
  display: none;
  background: transparent; border: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #12071c 0%, #1a0a26 100%);
  overflow: hidden;
}
.hero-banner {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(18, 7, 28, 0.55) 60%, rgba(18, 7, 28, 0.95) 100%),
    linear-gradient(180deg, rgba(18, 7, 28, 0.4) 0%, rgba(18, 7, 28, 0.75) 70%, #1a0a26 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 320px; height: 320px; background: var(--purple); top: 10%; left: 5%; }
.orb-2 { width: 260px; height: 260px; background: var(--gold); bottom: 15%; right: 8%; animation-delay: -4s; opacity: 0.35; }
.orb-3 { width: 200px; height: 200px; background: var(--pink-accent); top: 40%; right: 30%; animation-delay: -8s; opacity: 0.28; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 185, 66, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 185, 66, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.08);
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.stat strong {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 4px;
  text-shadow: 0 0 14px rgba(245, 185, 66, 0.4);
}
.stat span { font-size: 0.8rem; color: var(--text-dim); text-align: center; }

.hero-featured {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
.featured-card {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.3), rgba(245, 185, 66, 0.12));
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow);
}
.featured-tag {
  position: absolute;
  transform: translateY(-38px);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
}
.featured-avatar {
  font-size: 2.4rem;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
}
.featured-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-info h3 { margin-bottom: 2px; font-size: 1.1rem; }
.featured-info p { font-size: 0.85rem; color: var(--text-dim); }
.featured-guild { font-size: 0.8rem; margin-top: 4px; color: var(--text-dim); }
.featured-guild span { color: var(--gold-light); }

/* ===== LORE ===== */
.lore {
  position: relative;
  padding: 120px 0 100px;
  background: linear-gradient(180deg, #1a0a26 0%, #0f0518 100%);
  overflow: hidden;
}
.lore-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(123, 44, 191, 0.28), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245, 185, 66, 0.18), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.12), transparent 60%);
  pointer-events: none;
}
.lore-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 185, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 185, 66, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.lore-container { position: relative; z-index: 2; }

.lore-chapters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.lore-chapter {
  position: relative;
  padding: 36px 32px 32px 90px;
  background: linear-gradient(135deg, rgba(45, 22, 75, 0.6), rgba(20, 10, 35, 0.7));
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s, border-color 0.3s;
}
.lore-chapter:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.chapter-num {
  position: absolute;
  top: 28px; left: 28px;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 20px rgba(245, 185, 66, 0.3);
}
.lore-chapter h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--gold-light);
}
.lore-chapter p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}
.lore-chapter strong {
  color: var(--purple-light);
  font-weight: 600;
}

.lore-question {
  text-align: center;
  margin-top: 72px;
  padding: 48px 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.lore-question::before,
.lore-question::after {
  content: '◈';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  background: #12071c;
  padding: 0 12px;
  font-size: 1.2rem;
}
.lore-question::before { top: -10px; }
.lore-question::after  { bottom: -10px; }
.lore-question-intro {
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-size: 1rem;
}
.lore-question-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--pink-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 780px) {
  .lore-chapters { grid-template-columns: 1fr; }
  .lore-chapter { padding: 32px 24px 24px 80px; }
  .chapter-num { font-size: 2.2rem; top: 24px; left: 24px; }
}

/* ===== FEATURES ===== */
.features { padding: 100px 0; background: var(--bg-1); position: relative; }
.features::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.feature-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.35), rgba(245, 185, 66, 0.2));
  border-radius: 12px;
  margin-bottom: 20px;
}
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ===== CLASSES ===== */
.classes { padding: 100px 0; background: var(--bg-0); }
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.class-card {
  padding: 40px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.class-card::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--class-color, var(--purple)) 0%, transparent 60%);
  opacity: 0.15;
  transition: opacity 0.4s;
  pointer-events: none;
}
.class-card:hover { transform: translateY(-8px); }
.class-card:hover::before { opacity: 0.35; }
.class-card[data-color="ruby"]     { --class-color: #ef4444; }
.class-card[data-color="diamond"]  { --class-color: #e6f2ff; }
.class-card[data-color="sapphire"] { --class-color: #3b82f6; }
.class-card[data-color="emerald"]  { --class-color: #10d9a0; }
.class-card[data-color="onyx"]     { --class-color: #6b6b7a; }
.class-card[data-color="amber"]    { --class-color: #f5a524; }
.class-card[data-color="topaz"]    { --class-color: var(--gold); }
.class-card[data-color="pearl"]    { --class-color: #f5e9d1; }
.class-card[data-color="obsidian"] { --class-color: #9ca3af; }
.class-symbol {
  font-size: 3rem;
  color: var(--class-color, var(--purple-light));
  margin-bottom: 16px;
  text-shadow: 0 0 20px currentColor;
  position: relative;
}
.class-symbol img { display: block; width: 100%; height: auto; border-radius: 10px; }
.class-card h3 { position: relative; margin-bottom: 6px; }
.class-role {
  position: relative;
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--class-color, var(--gold));
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(18, 7, 28, 0.4);
}
.class-card p { position: relative; color: var(--text-dim); font-size: 0.9rem; }

/* ===== RANKING ===== */
.ranking { padding: 100px 0; background: var(--bg-1); }
.ranking-table {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
}
.rank-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1.6fr 90px 1.6fr;
  align-items: center;
  padding: 16px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:not(.rank-head):hover { background: rgba(245, 185, 66, 0.06); }
.rank-head {
  background: rgba(123, 44, 191, 0.2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
}
.rank-pos {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.rank-gold   { color: var(--gold-light); text-shadow: 0 0 12px rgba(245, 185, 66, 0.7); }
.rank-silver { color: #d1d5db; text-shadow: 0 0 12px rgba(209, 213, 219, 0.5); }
.rank-bronze { color: #cd7f32; text-shadow: 0 0 12px rgba(205, 127, 50, 0.5); }
.ranking-cta { text-align: center; margin-top: 32px; }

/* ===== NEWS ===== */
.news { padding: 100px 0; background: var(--bg-0); position: relative; overflow: hidden; }
.news::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.10), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.news-card {
  grid-column: span 4;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 185, 66, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(245, 185, 66, 0.15);
}
.news-featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}
.news-featured .news-image { min-height: 260px; }
.news-featured .news-body { padding: 40px; }
.news-featured .news-body h3 { font-size: 1.7rem; line-height: 1.2; }
.news-featured .news-body p { font-size: 1.02rem; }

.news-image {
  position: relative;
  min-height: 180px;
  background: linear-gradient(135deg, var(--purple-deep), var(--bg-1));
  overflow: hidden;
}
.news-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 7, 28, 0.65));
  pointer-events: none;
}
.news-img-1 { background: linear-gradient(135deg, #4a1a7a 0%, #7b2cbf 50%, #d946ef 100%); }
.news-img-2 { background: linear-gradient(135deg, #1a0a26 0%, #4a1a7a 60%, #f5b942 130%); }
.news-img-3 { background: linear-gradient(135deg, #12071c 0%, #7b2cbf 100%); }
.news-img-4 { background: linear-gradient(135deg, #4a1a7a 0%, #d946ef 100%); }
.news-img-5 { background: linear-gradient(135deg, #2b1656 0%, #7b2cbf 55%, #f5b942 130%); }

.news-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 7, 28, 0.72);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  backdrop-filter: blur(4px);
}
.news-tag-update { border-color: var(--gold); color: var(--gold-light); }
.news-tag-event { border-color: var(--pink-accent); color: #f0b0ff; }
.news-tag-patch { border-color: var(--purple-light); color: var(--purple-light); }
.news-tag-community { border-color: #7cd0ff; color: #a8dfff; }

.news-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-date {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.news-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.news-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.news-body h3 a:hover { color: var(--gold-light); }
.news-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.news-link {
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.2s ease, transform 0.2s ease;
}
.news-link:hover { color: var(--gold); transform: translateX(4px); }

.news-footer {
  text-align: center;
  margin-top: 48px;
  position: relative;
}

/* ===== SHOP ===== */
.shop { padding: 100px 0; background: var(--bg-1); position: relative; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.shop-card {
  position: relative;
  padding: 40px 28px 32px;
  background: linear-gradient(180deg, rgba(45, 22, 75, 0.7), rgba(20, 10, 35, 0.85));
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.shop-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.shop-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(123, 44, 191, 0.35), rgba(45, 22, 75, 0.85));
  box-shadow: 0 0 40px rgba(245, 185, 66, 0.2);
  transform: translateY(-10px);
}
.shop-featured:hover { transform: translateY(-16px); }

.shop-badge {
  position: absolute;
  top: -12px; left: 24px;
  padding: 6px 14px;
  background: var(--purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 6px;
  text-transform: uppercase;
}
.shop-badge-hot {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-light));
  color: #2a1200;
  box-shadow: 0 4px 14px rgba(245, 185, 66, 0.5);
}

.shop-icon {
  font-size: 3rem;
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.4), rgba(245, 185, 66, 0.2));
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(245, 185, 66, 0.5);
}
.shop-icon-1 { color: var(--purple-light); }
.shop-icon-2 { color: var(--gold); }
.shop-icon-3 { color: var(--pink-accent); }

.shop-card h3 {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #fff;
}
.shop-desc {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 22px;
  min-height: 42px;
}
.shop-features {
  flex: 1;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.shop-features li {
  padding: 8px 0 8px 24px;
  font-size: 0.88rem;
  color: var(--text);
  position: relative;
}
.shop-features li::before {
  content: '✦';
  position: absolute;
  left: 0; top: 8px;
  color: var(--gold);
  font-size: 0.85rem;
}

.shop-price {
  text-align: center;
  margin-bottom: 20px;
  min-height: 42px;
}
.price-old {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 0.95rem;
  margin-right: 10px;
}
.price-new {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 14px rgba(245, 185, 66, 0.4);
}
.price-period {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 2px;
}
.btn-shop {
  width: 100%;
  justify-content: center;
}

.shop-note {
  text-align: center;
  margin-top: 48px;
  padding: 20px 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(123, 44, 191, 0.12);
  border: 1px dashed rgba(181, 124, 232, 0.3);
  border-radius: 12px;
}
.shop-note p {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.shop-note strong { color: var(--gold); }

/* ===== GALLERY ===== */
.gallery { padding: 100px 0; background: var(--bg-0); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-placeholder {
  aspect-ratio: 16 / 10;
  display: flex; align-items: flex-end;
  padding: 20px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  position: relative;
}
.gallery-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.gallery-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.gallery-caption {
  position: absolute;
  left: 20px; bottom: 16px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.gallery-image { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
  cursor: zoom-out;
  animation: lightboxFade 0.25s ease;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(245, 185, 66, 0.5);
  cursor: default;
  animation: lightboxZoom 0.3s ease;
}
.lightbox-caption {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  text-align: center;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 12px;
  transition: color 0.2s, transform 0.2s;
}
.lightbox-close:hover { color: var(--gold); transform: scale(1.15); }
@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightboxZoom {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.gp-1 { background: linear-gradient(135deg, #10d9a0, #065f46); }
.gp-2 { background: linear-gradient(135deg, #a78bfa, #4c1d95); }
.gp-3 { background: linear-gradient(135deg, #f5c542, #92400e); }
.gp-4 { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.gp-5 { background: linear-gradient(135deg, #6b7280, #1f2937); }
.gp-6 { background: linear-gradient(135deg, #ff6b9d, #9d174d); }

/* ===== COMMUNITY ===== */
.community { padding: 100px 0; background: var(--bg-1); }
.community-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.community-text h2 { margin-top: 10px; margin-bottom: 20px; }
.community-text p { color: var(--text-dim); margin-bottom: 32px; }
.community-text strong { color: var(--gold); }
.community-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.community-card {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.community-card h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--gold);
}
.community-card ul li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: 1px dashed rgba(245, 185, 66, 0.08);
}
.community-card ul li:last-child { border-bottom: none; }
.community-card strong { color: var(--text); margin-right: 6px; }

/* ===== FOOTER ===== */
.site-footer { background: #0a0414; padding: 60px 0 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }
.dev-credit {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s;
}
.dev-credit:hover { color: var(--gold-light); text-shadow: 0 0 8px rgba(245, 185, 66, 0.5); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  min-height: 48px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(123, 44, 191, 0.15);
  border: 1px solid rgba(181, 124, 232, 0.25);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.socials img { width: 24px; height: 24px; flex-shrink: 0; }
.socials span { display: flex; flex-direction: column; gap: 2px; }
.socials strong { color: var(--gold-light); font-size: 0.82rem; }
.socials small { color: var(--text-dim); font-size: 0.75rem; }
.socials a:hover, .socials a:focus-visible {
  background: rgba(245, 185, 66, 0.12); border-color: var(--gold);
}
.socials a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 520px) {
  .socials { width: 100%; }
  .socials a { flex: 1 1 145px; }
}

/* ===== CLASS GUIDE ===== */
.class-guide-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.class-guide-nav a { padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; color: var(--gold-light); background: var(--card-bg); }
.class-guide-nav a:hover { border-color: var(--gold); }
.class-guide-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.class-guide { padding: 60px 0 100px; }
.class-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.class-guide-card { padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--card-bg); scroll-margin-top: 100px; }
.class-guide-portrait { display: block; width: 100%; max-width: 342px; height: auto; margin: 0 auto 28px; border-radius: 12px; border: 1px solid var(--border); }
.class-guide-card h2 { color: var(--gold-light); margin-bottom: 16px; font-size: 1.7rem; }
.class-guide-card p { color: var(--text-dim); line-height: 1.8; margin-bottom: 20px; }
.class-guide-card .class-guide-motto { color: var(--purple-light); }
.class-guide-card ul { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--border); }
.class-guide-card li { padding: 12px 0; color: var(--text-dim); line-height: 1.7; border-bottom: 1px solid var(--border); }
.class-guide-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.class-guide-card li strong { color: var(--gold-light); }
@media (max-width: 760px) {
  .class-guide-grid { grid-template-columns: 1fr; }
  .class-guide-card { padding: 24px; }
}

/* ===== STORY PAGE ===== */
.story-page { background: #0a0414; }

.story-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #12071c 0%, #1a0a26 100%);
  border-bottom: 1px solid var(--border);
}
.story-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(123, 44, 191, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(245, 185, 66, 0.2), transparent 55%);
  pointer-events: none;
}
.story-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 185, 66, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 185, 66, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 75%);
  pointer-events: none;
}
.story-hero .container { position: relative; z-index: 2; text-align: center; max-width: 880px; }
.story-hero.class-guide-hero {
  padding: 84px 0 48px;
  background: #12071c;
}
.class-guide-hero::before, .class-guide-hero::after { display: none; }
.class-guide-banner { display: block; width: 100%; height: auto; margin: 0 auto; }
.class-guide-hero .container { padding-top: 32px; }
.class-guide-hero .breadcrumb { margin-bottom: 18px; }
.class-guide-hero .class-guide-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.class-guide-hero .class-guide-nav a { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 14px; }
.class-guide-hero .story-subtitle { color: #f0e5ff; text-shadow: 0 2px 6px #0a0414; }
.class-guide-hero .class-guide-nav a { background: rgba(18, 7, 28, 0.88); }
@media (max-width: 640px) {
  .story-hero.class-guide-hero { padding: 72px 0 32px; }
  .class-guide-hero .container { padding-top: 24px; }
  .class-guide-hero .class-guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .class-guide-hero .class-guide-nav a { font-size: 0.82rem; }
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold-light); }
.breadcrumb .sep { margin: 0 10px; color: rgba(245, 185, 66, 0.3); }

.story-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.08);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.story-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--pink-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.story-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-style: italic;
  max-width: 620px;
  margin: 0 auto;
}

.story-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.story-body p { margin-bottom: 20px; color: var(--text); }
.story-body .lead {
  font-size: 1.2rem;
  color: var(--gold-light);
  font-style: italic;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.story-image {
  margin: 36px 0 40px;
  text-align: center;
}
.story-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.story-image figcaption {
  margin-top: 14px;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.03em;
}
.story-body h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  color: var(--gold-light);
  margin: 48px 0 20px;
  padding-top: 8px;
  position: relative;
}
.story-body h2::before {
  content: '◈';
  color: var(--gold);
  margin-right: 12px;
  font-size: 1.1rem;
}
.story-body strong { color: var(--purple-light); font-weight: 600; }
.story-body em { color: var(--gold-light); }
.story-body blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(245, 185, 66, 0.08), transparent);
  border-radius: 0 12px 12px 0;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.6;
}
.story-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.story-divider {
  text-align: center;
  margin: 48px 0;
  color: var(--gold);
  letter-spacing: 20px;
  font-size: 0.9rem;
  opacity: 0.6;
}

.story-nav {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.story-nav-item {
  padding: 22px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.story-nav-item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  background: rgba(45, 22, 75, 0.7);
}
.story-nav-item span {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.story-nav-item strong {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
}
.story-nav-item.next { text-align: right; }
.story-nav-empty { visibility: hidden; }

.story-related {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  border-top: 1px solid var(--border);
}
.story-related h3 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 32px;
  letter-spacing: 1px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  padding: 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.3s, border-color 0.3s;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.related-card .rc-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.related-card .rc-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}
.related-card .rc-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===================== NEWS BANNER ===================== */
.news-banner { padding: 30px 0 10px; }
.news-banner-link {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.news-banner-link:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 55px rgba(245, 185, 66, 0.22);
}
.news-banner-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===================== DONACIONES ===================== */
.donate-banner { padding: 30px 0 10px; background: var(--bg-0); }
.donate-banner-link {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.donate-banner-link:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 55px rgba(245, 185, 66, 0.22);
}
.donate-banner-link img {
  display: block;
  width: 100%;
  height: auto;
}

.donate { padding: 70px 0 100px; background: var(--bg-0); position: relative; overflow: hidden; }
.donate::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.12), transparent 65%);
  pointer-events: none;
}
.donate-intro { max-width: 800px; margin: 0 auto 50px; text-align: center; position: relative; z-index: 1; }
.donate-intro .lead { font-size: 1.05rem; line-height: 1.75; color: var(--text-dim); margin: 0; }

.donate-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}
.donate-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.donate-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 45px rgba(245, 185, 66, 0.14);
}
.donate-featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(74, 26, 122, 0.35), var(--card-bg));
  box-shadow: 0 12px 45px rgba(245, 185, 66, 0.14);
}
.donate-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a0a2e;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.donate-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(74, 26, 122, 0.6), rgba(18, 7, 28, 0.7));
  border: 1px solid var(--border);
}
.donate-tier {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.donate-amount {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.donate-period {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 0.06em;
}
.donate-card p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.6; margin: 0; }
.donate-perks {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donate-perks li {
  padding-left: 22px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.donate-perks li .perk-when {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}
.perk-now { color: var(--gold); }
.perk-later { color: var(--purple-light, #b57ce8); }

.donate-freq {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.28);
  align-self: flex-start;
  margin-bottom: 2px;
}
.donate-freq-monthly { border-color: var(--gold); color: var(--gold); }
.donate-freq-flex { border-color: var(--purple-light, #b57ce8); color: var(--purple-light, #b57ce8); }

.donate-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px dashed var(--border);
}
.platform-label {
  width: 100%;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.platform-tag {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 26, 122, 0.28);
  border: 1px solid var(--border);
  color: #eae0ff;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
}
.platform-tag:hover {
  background: rgba(245, 185, 66, 0.18);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}
.platform-tag-featured {
  background: rgba(245, 185, 66, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 600;
}
.platform-tag-featured:hover {
  background: rgba(245, 185, 66, 0.3);
  color: #fff;
}

/* --- Cómo funciona --- */
.donate-how {
  max-width: 1000px;
  margin: 0 auto 70px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.donate-how h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 12px;
}
.donate-how-intro {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 40px;
}
.donate-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
  counter-reset: step;
}
.donate-steps li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donate-steps .step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a0a2e;
  background: var(--gold);
  margin-bottom: 6px;
}
.donate-steps h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold-light);
  margin: 0;
  line-height: 1.35;
}
.donate-steps .step-flag {
  font-size: 0.85rem;
  margin-left: 4px;
}
.donate-steps p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.donate-methods-intro {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 620px;
  margin: -18px auto 30px;
}
.method-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: -2px 0 10px;
}
.method-meta span {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.donate-method-featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(245, 185, 66, 0.1), var(--card-bg));
}
.donate-method-featured .method-meta span:first-child {
  border-color: var(--gold);
  color: var(--gold);
}

.donate-methods { max-width: 1000px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.donate-methods h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 30px;
}
.donate-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}
.donate-method {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
}
.donate-method:hover { border-color: var(--gold); transform: translateY(-3px); }
.donate-method-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.donate-method h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 8px;
}
.donate-method p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; margin: 0 0 12px; }
.donate-method-link {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.donate-method-link:hover { border-bottom-color: var(--gold); }

.donate-note {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 28px;
  background: rgba(74, 26, 122, 0.18);
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.donate-note p { color: var(--text-dim); font-size: 0.92rem; margin: 0; line-height: 1.65; }
.donate-note strong { color: var(--gold-light); }

@media (max-width: 960px) {
  .donate-tiers { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .donate-methods-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .donate-methods-grid { grid-template-columns: 1fr; }
  .donate-steps { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ===================== CONSTRUCCIÓN ===================== */
.construction { padding: 40px 0 120px; background: var(--bg-0); position: relative; }
.construction-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 40px;
  background: linear-gradient(180deg, rgba(74, 26, 122, 0.22), rgba(20, 12, 40, 0.55));
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
}
.construction-icon {
  font-size: 3.6rem;
  color: var(--gold);
  margin-bottom: 18px;
  text-shadow: 0 0 24px rgba(230, 199, 108, 0.5);
}
.construction-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold-light);
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}
.construction-card p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 14px;
}
.construction-note {
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  margin: 22px 0 28px;
}
.construction-note strong { color: var(--gold); }
.construction-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
@media (max-width: 560px) {
  .construction-card { padding: 44px 24px; }
  .construction-actions .btn { width: 100%; }
}

/* ===================== BESTIARIO ===================== */
.bestiary { padding: 80px 0 100px; background: var(--bg-0); position: relative; overflow: hidden; }
.bestiary::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -140px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(181, 124, 232, 0.14), transparent 65%);
  pointer-events: none;
}
.beast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.beast-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.beast-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(245, 185, 66, 0.12);
}
.beast-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(74, 26, 122, 0.6), rgba(18, 7, 28, 0.7));
  border: 1px solid var(--border);
}
.beast-affinity {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  align-self: flex-start;
  background: rgba(18, 7, 28, 0.4);
}
.beast-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.beast-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}
.beast-origin {
  margin-top: auto;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.beast-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
}
.beast-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.beast-stat .stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.beast-stat.beast-level .stat-value {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}
.beast-stat.beast-level {
  text-align: right;
}
.danger-pips {
  display: inline-flex;
  gap: 3px;
  font-size: 0.8rem;
  line-height: 1;
}
.danger-pips i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.12);
}
.danger-pips i::before { content: "◆"; }
.danger-pips.danger-1 i:nth-child(-n+1),
.danger-pips.danger-2 i:nth-child(-n+2),
.danger-pips.danger-3 i:nth-child(-n+3),
.danger-pips.danger-4 i:nth-child(-n+4),
.danger-pips.danger-5 i:nth-child(-n+5) {
  color: var(--gold);
}
.danger-pips.danger-4 i:nth-child(-n+4),
.danger-pips.danger-5 i:nth-child(-n+5) {
  color: #f59c42;
}
.danger-pips.danger-5 i:nth-child(-n+5) {
  color: #e85d4a;
  text-shadow: 0 0 8px rgba(232, 93, 74, 0.5);
}

@media (max-width: 960px) {
  .beast-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .beast-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .story-hero { padding: 130px 0 60px; }
  .story-body { padding: 50px 20px; font-size: 1rem; }
  .story-nav { grid-template-columns: 1fr; }
  .story-nav-item.next { text-align: left; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open {
    display: block;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10, 6, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }
  .main-nav.open ul { flex-direction: column; gap: 16px; }
  .submenu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    background: rgba(45, 22, 75, 0.4);
  }
  .submenu::before, .submenu::after { display: none; }
  .has-submenu.open .submenu { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .rank-row { grid-template-columns: 50px 1fr 1fr; gap: 12px; padding: 14px 16px; }
  .rank-row > span:nth-child(4), .rank-row > span:nth-child(5) { display: none; }
  .community-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .news-card { grid-column: span 6; }
  .news-featured { grid-column: span 12; grid-template-columns: 1fr; }
  .news-featured .news-body { padding: 28px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 110px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .featured-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .featured-tag { position: static; transform: none; margin-bottom: 8px; }
  .news-card { grid-column: span 12; }
}

/* Estado real del servidor: datos obtenidos mediante el backend PHP. */
.server-status { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 18px; border: 1px solid var(--border); border-radius: 12px; background: rgba(18, 7, 28, .85); text-align: left; }
.server-status strong, .server-status small { display: block; }
.server-status strong { font-size: .9rem; color: var(--gold-light); }
.server-status small { color: var(--text-dim); font-size: .8rem; }
.server-status-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: #a89bc4; }
.server-status[data-state="online"] .server-status-dot { background: #65d695; box-shadow: 0 0 12px rgba(101, 214, 149, .4); }
