/* ==========================================================================
   La Chispa Roleplay — hoja de estilos principal
   Paleta heredada del sitio anterior: fondo #030a1c, azul #0096ff, cyan #00e5ff
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #030a1c;
  --bg-soft: #061225;
  --surface: #0a1526;
  --surface-2: #0e1d33;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7ff;
  --muted: #9fb0c8;
  --subtle: #67788f;
  --blue: #0096ff;
  --cyan: #00e5ff;
  --violet: #a78bfa;
  --green: #34d399;
  --gold: #fbbf24;
  --red: #fb7185;
  --grad: linear-gradient(92deg, var(--blue), var(--cyan));
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius: 16px;
  --header-h: 74px;
  --content-w: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -5%, rgba(0, 150, 255, 0.07), transparent 60%),
    radial-gradient(900px 500px at 95% 15%, rgba(0, 229, 255, 0.05), transparent 60%);
  color: var(--muted);
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1;
}

::selection {
  background: var(--blue);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 6px;
  background: #1c3a5f;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 229, 255, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--content-w), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Iconos SVG inline
   -------------------------------------------------------------------------- */

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Header / Navegación
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(3, 10, 28, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.scrolled {
  background: rgba(3, 10, 28, 0.92);
  border-color: var(--line);
}

.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.brand b {
  color: var(--cyan);
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 21, 38, 0.55);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a.active {
  color: #021322;
  background: var(--grad);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad);
  color: #021322;
  box-shadow: 0 10px 30px rgba(0, 150, 255, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 14px 40px rgba(0, 229, 255, 0.35);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(10, 21, 38, 0.6);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(14, 29, 51, 0.85);
}

.btn-lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1rem;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Hero (portada e interiores)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero.hero-home {
  min-height: min(880px, 100svh);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/hero-city.png");
  background-size: cover;
  background-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 10, 28, 0.82) 0%, rgba(3, 10, 28, 0.62) 45%, var(--bg) 100%),
    radial-gradient(700px 400px at 50% 10%, rgba(0, 150, 255, 0.16), transparent 70%);
}

.hero-inner {
  width: min(940px, calc(100% - 40px));
  margin-inline: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  background: rgba(3, 13, 28, 0.7);
  color: #b8f4ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px currentColor;
  color: var(--gold);
}

.dot.online {
  background: var(--green);
  color: var(--green);
}

.dot.offline {
  background: var(--red);
  color: var(--red);
}

.dot.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(3rem, 9vw, 5.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.97;
  text-transform: uppercase;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
}

.hero h1 .grad {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(0, 180, 255, 0.35));
}

.hero-copy {
  max-width: 640px;
  margin: 24px auto 0;
  color: #c9d5e8;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* Hero interior (subpáginas) */
.hero.hero-sub {
  min-height: 420px;
  padding-bottom: 60px;
  text-align: center;
}

.hero.hero-sub h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.hero.hero-sub .hero-copy {
  font-size: 1.02rem;
}

.kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Consola de servidor (estado + conexión)
   -------------------------------------------------------------------------- */

.server-console {
  width: min(860px, 100%);
  margin: 40px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 0.9fr);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(6, 16, 33, 0.82);
  box-shadow: var(--shadow);
  text-align: left;
  backdrop-filter: blur(14px);
}

.server-state {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.server-state .dot {
  width: 12px;
  height: 12px;
}

.server-state small {
  display: block;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-state strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-players {
  padding: 4px 22px;
  border-inline: 1px solid var(--line);
  text-align: center;
}

.server-players strong {
  display: block;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
}

.server-players small {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.connect-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-family: "Cascadia Mono", ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease;
}

.connect-cmd:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.connect-cmd .prompt {
  color: var(--cyan);
}

.console-buttons {
  display: flex;
  gap: 10px;
}

.console-buttons .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Cinta de estadísticas
   -------------------------------------------------------------------------- */

.facts {
  position: relative;
  z-index: 5;
  padding: 0 20px;
}

.facts-shell {
  width: min(var(--content-w), 100%);
  margin: -46px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 21, 38, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.facts article {
  padding: 28px 20px;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.facts article + article {
  border-left: 1px solid var(--line);
}

.facts .icon {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.facts article:nth-child(2) .icon { color: var(--gold); }
.facts article:nth-child(3) .icon { color: var(--violet); }
.facts article:nth-child(4) .icon { color: var(--green); }

.facts strong {
  color: var(--text);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.facts strong b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.facts .label {
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.section {
  padding: 110px 0;
}

.section-tight {
  padding: 80px 0;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head.left {
  margin-inline: 0;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Tarjetas de características
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent, var(--grad));
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 260ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent-solid, var(--cyan)) 40%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-solid, var(--cyan)) 10%, transparent);
  color: var(--accent-solid, var(--cyan));
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 800;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-card .tag {
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent-solid, var(--cyan));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.accent-blue { --accent: linear-gradient(90deg, #0096ff, #00e5ff); --accent-solid: #33b5ff; }
.accent-cyan { --accent: linear-gradient(90deg, #00e5ff, #7df3ff); --accent-solid: var(--cyan); }
.accent-violet { --accent: linear-gradient(90deg, #8b5cf6, #c4b5fd); --accent-solid: var(--violet); }
.accent-green { --accent: linear-gradient(90deg, #10b981, #6ee7b7); --accent-solid: var(--green); }
.accent-gold { --accent: linear-gradient(90deg, #f59e0b, #fcd34d); --accent-solid: var(--gold); }
.accent-red { --accent: linear-gradient(90deg, #f43f5e, #fda4af); --accent-solid: var(--red); }

/* --------------------------------------------------------------------------
   Banda con imagen (statement)
   -------------------------------------------------------------------------- */

.statement {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.statement .hero-bg {
  background-position: center 70%;
}

.statement .hero-shade {
  background: linear-gradient(90deg, rgba(3, 10, 28, 0.92) 15%, rgba(3, 10, 28, 0.45) 100%);
}

.statement-inner {
  padding: 80px 0;
  max-width: 640px;
}

.statement h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
}

.statement p {
  margin-top: 18px;
  color: #c9d5e8;
  font-size: 1.05rem;
}

.statement .btn {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Pasos (whitelist)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 150, 255, 0.4);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--grad);
  color: #021322;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(0, 150, 255, 0.35);
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.step-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.step-card .btn {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */

.checklist {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.94rem;
}

.checklist .icon {
  margin-top: 3px;
  color: var(--green);
}

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

/* --------------------------------------------------------------------------
   Equipo
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.team-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 150, 255, 0.45);
  box-shadow: var(--shadow);
}

.team-card img {
  width: 108px;
  height: 108px;
  border-radius: 20px;
  border: 2px solid rgba(0, 150, 255, 0.45);
  box-shadow: 0 12px 34px rgba(0, 150, 255, 0.2);
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
}

.team-role {
  display: inline-flex;
  padding: 4px 12px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 150, 255, 0.12);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Acordeón (FAQ)
   -------------------------------------------------------------------------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 200ms ease;
}

.faq-item.open {
  border-color: rgba(0, 150, 255, 0.4);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  transition: color 160ms ease;
}

.faq-trigger:hover {
  color: var(--cyan);
}

.faq-trigger .icon {
  color: var(--cyan);
  transition: transform 240ms ease;
}

.faq-item.open .faq-trigger .icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
}

.faq-panel > div {
  overflow: hidden;
}

.faq-panel p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-panel p + p {
  margin-top: -8px;
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

/* --------------------------------------------------------------------------
   Normativas: pestañas + contenido
   -------------------------------------------------------------------------- */

.rules-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 26px;
  align-items: start;
}

.rules-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 8px;
}

.rules-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
  text-align: left;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.rules-tab .icon {
  color: var(--cyan);
  transition: color 200ms ease;
}

.rules-tab:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.rules-tab.is-active {
  border-color: transparent;
  background: var(--grad);
  color: #021322;
  box-shadow: 0 12px 30px rgba(0, 150, 255, 0.3);
}

.rules-tab.is-active .icon {
  color: #021322;
}

.rules-panelbox {
  min-height: 60vh;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(6, 16, 33, 0.8);
  box-shadow: var(--shadow);
}

.rules-panel {
  display: none;
}

.rules-panel.is-active {
  display: block;
  animation: fadeUp 320ms ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rules-panel > header {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.25);
}

.rules-panel > header .kicker {
  margin-bottom: 8px;
}

.rules-panel > header h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
}

.rules-panel > header p {
  margin-top: 10px;
  color: var(--muted);
}

.rules-content {
  font-size: 0.97rem;
}

.rules-content h2 {
  margin: 40px 0 16px;
  font-size: 1.6rem;
  font-weight: 900;
}

.rules-content h2:first-child {
  margin-top: 0;
}

.rules-content h3 {
  margin: 42px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--cyan);
  font-size: 1.28rem;
  font-weight: 900;
}

.rules-content h4 {
  margin: 28px 0 10px;
  color: #7cc7ff;
  font-size: 1.06rem;
  font-weight: 800;
}

.rules-content p {
  margin: 0 0 14px;
  color: #c3cfe2;
  line-height: 1.8;
}

.rules-content p.rule-note {
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 150, 255, 0.08);
  color: #d9e5f5;
  font-weight: 600;
}

.rules-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: #b9c7db;
}

.rules-content li::marker {
  color: var(--cyan);
}

.rules-content strong {
  color: var(--text);
  font-weight: 700;
}

.rules-content hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Tienda: membresías VIP y catálogo
   -------------------------------------------------------------------------- */

.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}

.vip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.vip-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tier, #00e5ff) 55%, transparent);
  box-shadow: var(--shadow);
}

.vip-head {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tier, #00e5ff) 14%, transparent), transparent);
}

.vip-head h3 {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vip-head h3 b {
  color: var(--tier, var(--cyan));
}

.vip-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.vip-flag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #021322;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vip-perks {
  margin: 0;
  padding: 20px;
  display: grid;
  gap: 11px;
  list-style: none;
}

.vip-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.vip-perks .e {
  flex: 0 0 auto;
  width: 22px;
  text-align: center;
}

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

.vip-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.vip-price > span {
  color: var(--text);
  font-weight: 900;
}

.vip-price-values {
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.vip-price-values b {
  color: var(--cyan);
  font-weight: 900;
}

.vip-buy {
  padding: 16px 20px 20px;
  display: grid;
}

.cat-emoji {
  font-size: 24px;
  line-height: 1;
}

.cat-img {
  width: calc(100% + 56px);
  height: 150px;
  margin: -30px -28px 22px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.cat-price {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.cat-price b {
  color: var(--cyan);
}

.cat-cta {
  margin-top: 16px;
}

.shop-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 860px;
  margin: 40px auto 0;
  padding: 18px 22px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.07);
  color: #e8d9b0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.shop-note .icon {
  margin-top: 3px;
  color: var(--gold);
}

.shop-note strong {
  color: #ffe9ad;
}

/* --------------------------------------------------------------------------
   Banner CTA final
   -------------------------------------------------------------------------- */

.cta-banner {
  position: relative;
  margin: 100px auto;
  padding: clamp(30px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(0, 229, 255, 0.16), transparent 70%),
    linear-gradient(120deg, #072b47, #063050);
}

.cta-banner .kicker {
  color: #8feaff;
}

.cta-banner h2 {
  max-width: 560px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
}

.cta-banner p {
  max-width: 520px;
  margin-top: 12px;
  color: #b9d8ea;
}

.cta-banner .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 16, 33, 0.6);
}

.footer-grid {
  padding: 54px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 900;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand b {
  color: var(--cyan);
}

.footer-col p {
  max-width: 340px;
  color: var(--subtle);
  font-size: 0.88rem;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(400px, calc(100% - 44px));
  padding: 14px 18px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 12px;
  background: #07231a;
  box-shadow: var(--shadow);
  color: #d7ffee;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast .icon {
  color: var(--green);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Animaciones de aparición
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .site-nav a {
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .card-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 66px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-actions .btn-discord {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 10px) 16px auto;
    z-index: 90;
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(4, 13, 30, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    border-radius: 10px;
    justify-content: center;
    font-size: 1rem;
  }

  .server-console {
    grid-template-columns: 1fr auto;
  }

  .console-actions {
    grid-column: 1 / -1;
  }

  .facts-shell {
    grid-template-columns: 1fr;
  }

  .facts article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .steps,
  .card-grid,
  .card-grid.cols-2,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .rules-layout {
    grid-template-columns: 1fr;
  }

  .rules-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 50px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .server-console {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .server-players {
    padding: 12px 0 0;
    border-inline: 0;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .console-buttons {
    flex-direction: column;
  }

  .rules-nav {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    margin: 70px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
