/* ==========================================================================
   MoonKing — Sitio público
   Identidad: "Noche Real" · tinta profunda, plata lunar y oro de corona
   ========================================================================== */

:root {
  --ink-0: #05070f;
  --ink-1: #090d1a;
  --ink-2: #0f1426;
  --ink-3: #161c33;
  --line: rgba(196, 210, 255, 0.09);
  --line-strong: rgba(196, 210, 255, 0.18);
  --text: #e9edf7;
  --text-soft: #a7b0c6;
  --text-dim: #6c7690;
  --moon: #cfdcff;
  --azure: #5b9cff;
  --azure-deep: #3498db;
  --gold: #f0c96b;
  --gold-deep: #c99a2e;
  --mint: #5ee0b0;
  --rose: #ff7a90;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1560px;
}

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

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Cielo estrellado de fondo (dos capas con parallax sutil) */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 66%, rgba(207, 220, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 88% 52%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 84%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 56% 36%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 94% 88%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.3px 1.3px at 5% 48%, rgba(240, 201, 107, 0.5), transparent 60%);
  background-size: 640px 640px;
  opacity: 0.8;
}

body::after {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(91, 156, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(240, 201, 107, 0.06), transparent 60%),
    linear-gradient(180deg, var(--ink-0), var(--ink-1) 60%, var(--ink-0));
  z-index: -3;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.12;
}

p {
  margin: 0;
}

.grad-moon {
  background: linear-gradient(100deg, #ffffff 0%, var(--moon) 35%, var(--azure) 70%, var(--gold) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-gold {
  background: linear-gradient(100deg, #fff4d6, var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------- Botones ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s;
  white-space: nowrap;
  font-family: var(--font-body);
}

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

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-light {
  background: #f6f8ff;
  color: #0a0f1e;
  box-shadow: 0 10px 30px -10px rgba(207, 220, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.btn-light:hover {
  box-shadow: 0 16px 40px -12px rgba(207, 220, 255, 0.75);
}

.btn-gold {
  background: linear-gradient(180deg, #ffd983, var(--gold) 55%, var(--gold-deep));
  color: #2a1d02;
  box-shadow: 0 12px 30px -12px rgba(240, 201, 107, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(207, 220, 255, 0.35);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --------------------------------- Navegación --------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 7, 15, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 7, 15, 0.82);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

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

/* Selector de Idioma Moderno */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-trigger-btn:hover,
.lang-trigger-btn.open {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(91, 156, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(91, 156, 255, 0.2);
}

.lang-flag-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-code {
  font-size: 12px;
  letter-spacing: 0.5px;
}

.lang-arrow {
  transition: transform 0.2s ease;
  color: var(--text-dim, #94a3b8);
}

.lang-trigger-btn.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  background: #0f1423;
  background: rgba(13, 18, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.15);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 300;
  animation: langPopIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-popover.open {
  display: flex;
}

@keyframes langPopIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-item.active {
  background: rgba(91, 156, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(91, 156, 255, 0.25);
}

.lang-item-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.lang-item .item-label {
  flex: 1;
}

.lang-item .item-check {
  font-size: 12px;
  color: #5b9cff;
}

.nav-user-dropdown {
  position: relative;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.nav-user:hover,
.nav-user.open {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(91, 156, 255, 0.4);
  box-shadow: 0 0 16px rgba(91, 156, 255, 0.18);
}

.nav-user img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s;
  flex-shrink: 0;
}

.nav-user.open .chevron-icon {
  transform: rotate(180deg);
  color: var(--azure);
}

.user-menu-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 290px;
  background: #0d1224;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(91, 156, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
  animation: popoverFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-menu-popover.open {
  display: flex;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.popover-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(91, 156, 255, 0.5);
  box-shadow: 0 0 12px rgba(91, 156, 255, 0.3);
  object-fit: cover;
}

.user-menu-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.popover-name {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--mint);
  margin-top: 2px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  display: inline-block;
}

.user-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

.user-menu-category {
  font-size: 11px;
  font-weight: 800;
  color: #8a8f98;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px 4px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 13.5px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(2px);
}

.user-menu-item .item-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.user-menu-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.user-menu-item small {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 1px;
}

.user-menu-item.item-logout {
  color: #ff94a4;
}

.user-menu-item.item-logout:hover {
  background: rgba(255, 122, 144, 0.12);
  color: #ff7a90;
}

.user-menu-item.item-logout small {
  color: rgba(255, 148, 164, 0.7);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.desktop-only-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mobile-bottom {
  display: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 30px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* ----------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  padding: clamp(60px, 6vw, 96px) 0 clamp(72px, 7vw, 120px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 84px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 26px;
}

.eyebrow b {
  background: rgba(240, 201, 107, 0.14);
  color: var(--gold);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: clamp(18px, 1.25vw, 21px);
  color: var(--text-soft);
  max-width: 680px;
  margin-bottom: 38px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(94, 224, 176, 0.14);
  color: var(--mint);
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

/* Escena: luna + tarjetas flotantes */
.scene {
  position: relative;
  height: clamp(520px, 38vw, 620px);
  width: 100%;
}

.moon {
  position: absolute;
  width: clamp(340px, 24vw, 420px);
  height: clamp(340px, 24vw, 420px);
  right: clamp(20px, 2vw, 45px);
  top: clamp(20px, 2vw, 45px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 34%, rgba(0, 0, 0, 0.12) 0 22px, transparent 23px),
    radial-gradient(circle at 64% 58%, rgba(0, 0, 0, 0.1) 0 34px, transparent 35px),
    radial-gradient(circle at 58% 24%, rgba(0, 0, 0, 0.08) 0 14px, transparent 15px),
    radial-gradient(circle at 36% 72%, rgba(0, 0, 0, 0.09) 0 18px, transparent 19px),
    radial-gradient(circle at 35% 30%, #ffffff, #dfe7ff 38%, #9fb3e6 72%, #5d6f9f 100%);
  box-shadow:
    0 0 80px 10px rgba(159, 179, 230, 0.35),
    0 0 220px 40px rgba(91, 156, 255, 0.18),
    inset -40px -30px 80px rgba(20, 30, 70, 0.55);
  animation: moon-breathe 9s ease-in-out infinite;
}

.moon-ring {
  position: absolute;
  width: clamp(480px, 34vw, 580px);
  height: clamp(480px, 34vw, 580px);
  right: clamp(-50px, -3vw, -25px);
  top: clamp(-50px, -3vw, -25px);
  border-radius: 50%;
  border: 1px dashed rgba(207, 220, 255, 0.16);
  animation: spin 80s linear infinite;
}

.moon-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

.crown {
  position: absolute;
  right: clamp(140px, 11vw, 190px);
  top: -6px;
  width: clamp(84px, 6.5vw, 104px);
  filter: drop-shadow(0 8px 20px rgba(240, 201, 107, 0.45));
  transform: rotate(-12deg);
  animation: float 6s ease-in-out infinite;
}

.float-card {
  position: absolute;
  background: rgba(17, 22, 40, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px;
  font-size: 13.5px;
}

.fc-welcome {
  left: 0;
  top: clamp(210px, 17vw, 250px);
  width: clamp(320px, 24vw, 360px);
  animation: float 7s ease-in-out infinite;
}

.fc-log {
  right: 0;
  bottom: 0;
  width: clamp(330px, 26vw, 395px);
  animation: float 8s ease-in-out infinite 1.2s;
}

.fc-role {
  left: clamp(40px, 5vw, 80px);
  top: 40px;
  animation: float 6.5s ease-in-out infinite 0.6s;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.msg {
  display: flex;
  gap: 12px;
}

.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e7eeff, #8ea6e0);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.msg-name {
  font-weight: 700;
  color: #fff;
}

.tag-app {
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.msg-time {
  color: var(--text-dim);
  font-size: 11.5px;
}

.mini-card {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  height: 110px;
  position: relative;
  background:
    radial-gradient(circle at 50% 120%, rgba(91, 156, 255, 0.55), transparent 60%),
    linear-gradient(135deg, #0b1230, #1a2558 60%, #0b1230);
  display: grid;
  place-items: center;
  text-align: center;
}

.mini-card .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe7a8, var(--gold));
  border: 2px solid #fff;
  margin: 0 auto 6px;
}

.mini-card b {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 12px;
}

.mini-card small {
  display: block;
  color: var(--moon);
  font-size: 11px;
}

.discord-embed-log {
  margin-top: 6px;
  background: rgba(30, 31, 35, 0.9);
  border-left: 4px solid #f59e0b;
  border-radius: 4px 8px 8px 4px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.embed-log-title {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 5px;
}

.embed-log-body {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.d-mention {
  color: #c9cdfb;
  background: rgba(88, 101, 242, 0.22);
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 500;
}

.d-code {
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  padding: 0 4px;
  border-radius: 3px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.d-time {
  color: var(--text-dim);
}

.log-line {
  border-left: 3px solid var(--azure-deep);
  padding-left: 10px;
  margin-top: 6px;
}

.log-line div {
  color: var(--text-soft);
  font-size: 12.5px;
}

.log-line strong {
  color: #fff;
}

.pill-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(94, 224, 176, 0.12);
  color: var(--mint);
  font-weight: 600;
  font-size: 12.5px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes moon-breathe {

  0%,
  100% {
    box-shadow: 0 0 80px 10px rgba(159, 179, 230, 0.35), 0 0 220px 40px rgba(91, 156, 255, 0.18),
      inset -40px -30px 80px rgba(20, 30, 70, 0.55);
  }

  50% {
    box-shadow: 0 0 110px 18px rgba(159, 179, 230, 0.45), 0 0 260px 60px rgba(91, 156, 255, 0.22),
      inset -40px -30px 80px rgba(20, 30, 70, 0.55);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------- Stats ---------------------------------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: clamp(28px, 3vw, 42px) clamp(20px, 2vw, 36px);
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 800;
}

.stat-label {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 4px;
}

/* --------------------------------- Secciones --------------------------------- */
.section {
  padding: clamp(88px, 8vw, 130px) 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 60px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--text-soft);
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.6;
}

/* Bento de funciones */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 22px;
}

.tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: clamp(26px, 2.5vw, 36px);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 220px at var(--mx, 50%) -10%, rgba(91, 156, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.tile-lg {
  grid-column: span 4;
}

.tile-md {
  grid-column: span 3;
}

.tile-sm {
  grid-column: span 2;
}

.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.tile h3 {
  font-size: clamp(20px, 1.4vw, 24px);
  margin-bottom: 10px;
}

.tile p {
  color: var(--text-soft);
  font-size: 15.5px;
  max-width: 520px;
  line-height: 1.6;
}

.tile-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tile-list li {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-family: ui-monospace, 'JetBrains Mono', monospace;
}

.tile-visual {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 52%;
  opacity: 0.95;
}

.tile-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(94, 224, 176, 0.1);
  border: 1px solid rgba(94, 224, 176, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: paso;
}

.step {
  position: relative;
  padding: clamp(28px, 2.5vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.step::before {
  counter-increment: paso;
  content: '0' counter(paso);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(207, 220, 255, 0.55), rgba(207, 220, 255, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

/* Vista previa del panel */
.showcase {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0d1224, #080b17);
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.showcase-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3150;
}

.showcase-bar .url {
  margin-left: 14px;
  flex: 1;
  max-width: 420px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  width: auto;
}

.showcase-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 420px;
}

.sc-side {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-guild {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
}

.sc-guild i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--azure), #8a6bff);
  display: grid;
  place-items: center;
  font-style: normal;
}

.sc-item {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-item.on {
  background: rgba(240, 201, 107, 0.08);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--gold);
}

.sc-main {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-content: start;
}

.sc-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.sc-card small {
  color: var(--text-dim);
  font-size: 12px;
}

.sc-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  margin-top: 4px;
}

.sc-wide {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-switch {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--mint);
  position: relative;
}

.sc-switch::after {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

/* FAQ */
.faq {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 0 clamp(20px, 2.5vw, 32px);
  transition: border-color 0.2s, background 0.2s;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  font-size: clamp(16px, 1.15vw, 18px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq details p {
  color: var(--text-soft);
  padding-bottom: 22px;
  font-size: 16px;
  line-height: 1.65;
}

/* CTA final */
.cta-band {
  position: relative;
  border-radius: 32px;
  padding: clamp(72px, 7vw, 104px) clamp(32px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(240, 201, 107, 0.18), transparent 70%),
    radial-gradient(700px 360px at 50% -40%, rgba(91, 156, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0e1430, #080b18);
}

.cta-band h2 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  margin-bottom: 18px;
}

.cta-band p {
  color: var(--text-soft);
  font-size: clamp(17px, 1.25vw, 20px);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-band .hero-cta {
  justify-content: center;
  margin: 0;
}

/* --------------------------------- Footer --------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 38px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}

.footer p {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 380px;
  margin-top: 14px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul a {
  color: var(--text-soft);
  font-size: 14.5px;
}

.footer ul a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13.5px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

/* ------------------------------ Página de comandos ------------------------------ */
.page-hero {
  padding: 80px 0 40px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 620px;
}

.cmd-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.search {
  flex: 1;
  min-width: 240px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 18px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.search:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 4px rgba(91, 156, 255, 0.12);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
}

.chip.active {
  background: #f6f8ff;
  color: #0a0f1e;
  border-color: transparent;
}

.cmd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}

.cmd {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px 22px;
}

.cmd-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cmd code {
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cmd code::before {
  content: '/';
  color: var(--gold);
}

.cmd-cat {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

.cmd p {
  color: var(--text-soft);
  font-size: 14.5px;
}

.cmd-opts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cmd-opts span {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.cmd-opts span.req {
  color: var(--gold);
  background: rgba(240, 201, 107, 0.08);
}

.empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 0;
  grid-column: 1 / -1;
}

/* Páginas legales */
.legal {
  max-width: 780px;
  padding-bottom: 60px;
}

.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}

.legal p,
.legal li {
  color: var(--text-soft);
  font-size: 15.5px;
}

.legal ul {
  padding-left: 20px;
}

/* Aviso de login */
.toast-site {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1a2140;
  border: 1px solid var(--line-strong);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 100;
}

/* Barra de progreso de lectura / scroll */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #5b9cff, #c084fc, #f0c96b);
  z-index: 1000;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(91, 156, 255, 0.7);
  pointer-events: none;
}

/* Revelado cinemático progresivo y fluido */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Efectos de tarjeta interactiva con resplandor magnético */
.tile,
.resource-card,
.step,
.stat {
  position: relative;
  overflow: hidden;
}

.tile::after,
.resource-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(91, 156, 255, 0.14), transparent 75%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tile:hover::after,
.resource-card:hover::after {
  opacity: 1;
}

/* Efecto Shimmer en badges */
@keyframes shimmerSweep {
  0% {
    transform: translateX(-150%) skewX(-20deg);
  }

  50%,
  100% {
    transform: translateX(250%) skewX(-20deg);
  }
}

.eyebrow {
  position: relative;
  overflow: hidden;
}

.eyebrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmerSweep 4.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* -------------------------------- Responsive -------------------------------- */
/* Navbar compacta para pantallas intermedias (1181px a 1340px) para evitar saltos de línea */
@media (min-width: 1181px) and (max-width: 1340px) {
  .nav-inner {
    gap: 12px;
    flex-wrap: nowrap;
  }
  .nav-links {
    gap: 2px;
    flex-wrap: nowrap;
  }
  .nav-links a {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 13.5px;
  }
  .nav-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .nav-actions .btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .lang-trigger-btn {
    white-space: nowrap;
    padding: 5px 9px;
    font-size: 12px;
  }
}

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

  .scene {
    height: 460px;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tile-lg,
  .tile-md,
  .tile-sm {
    grid-column: span 1;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .showcase-body {
    grid-template-columns: 1fr;
  }

  .sc-side {
    display: none;
  }

  /* ==========================================================================
     Navbar & Menú Móvil / Tablet Pantalla Completa (<= 1024px: iPhone & iPad)
     ========================================================================== */
  .desktop-only-action {
    display: none !important;
  }

  .nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: 72px;
    background: #0b0e14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1005;
  }

  .nav.menu-open {
    background: #0b0e14 !important;
  }

  .nav-inner {
    position: relative;
    z-index: 1006;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    position: relative;
    z-index: 1007;
  }

  .nav-actions {
    position: relative;
    z-index: 1007;
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .nav-toggle.open {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  }

  /* Menú a pantalla completa (100dvh) sin recuadros ni transparencias */
  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #0b0e14; /* Fondo oscuro totalmente sólido */
    z-index: 1001;
    margin: 0;
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  }

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

  /* Enlaces superiores compactos para que nunca se solapen ni requieran scroll */
  .nav-links-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    min-height: 40px;
    font-size: 15px;
    font-weight: 600;
    color: #9aa1b2;
    border-radius: 10px;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(4px);
  }

  /* Bloque inferior fijado (Idioma + Botones 100% de ancho con margen de seguridad) */
  .nav-mobile-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    flex-shrink: 0;
  }

  .nav-mobile-lang-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #636b7b;
    font-weight: 700;
    margin-bottom: -4px;
  }

  .nav-mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: 100%;
  }

  .lang-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 40px;
    padding: 4px 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #9aa1b2;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .lang-pill img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
  }

  .lang-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
  }

  .lang-pill.active {
    background: rgba(91, 156, 255, 0.16);
    border-color: rgba(91, 156, 255, 0.45);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(91, 156, 255, 0.2);
  }

  .nav-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .btn-mobile-full {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
  }

  .btn-ghost.btn-mobile-full {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
  }

  .btn-ghost.btn-mobile-full:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
  }

  .btn-light.btn-mobile-full {
    background: #ffffff !important;
    color: #07090e !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2) !important;
  }

  .btn-light.btn-mobile-full:hover {
    background: #f0f2f7 !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
  }

  .nav-mobile-logout {
    display: inline-block;
    text-align: center;
    color: #e06c75;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 0;
    text-decoration: none;
    transition: opacity 0.15s ease;
  }

  .nav-mobile-logout:hover {
    opacity: 0.8;
  }

  .nav-backdrop {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    display: none !important;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .container {
    padding: 0 18px;
  }

  /* Sección Hero en Móvil */
  .hero {
    padding: 36px 0 48px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(28px, 6.8vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
  }

  .hero-lead {
    font-size: clamp(15px, 2.4vw, 17.5px);
    margin-bottom: 24px;
    line-height: 1.55;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 28px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
  }

  /* Ilustración lunar contenida y fluida en móvil */
  .scene {
    height: 360px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .moon {
    width: 200px;
    height: 200px;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    right: auto;
  }

  .moon-ring {
    width: 270px;
    height: 270px;
    left: 50%;
    transform: translateX(-50%);
    top: -5px;
    right: auto;
  }

  .crown {
    left: calc(50% + 15px);
    transform: translateX(-50%) rotate(-12deg);
    top: 10px;
    width: 68px;
    right: auto;
  }

  .float-card {
    font-size: 11.5px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .fc-role {
    left: 8px;
    top: 14px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .fc-welcome {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: 330px;
    margin: 0 auto;
    top: 195px;
  }

  .fc-welcome .mini-card {
    height: 85px;
  }

  .fc-welcome .mini-card .av {
    width: 32px;
    height: 32px;
    margin-bottom: 3px;
  }

  .fc-log {
    display: none; /* Oculta en pantallas pequeñas para evitar superposición */
  }

  /* Bento Grid en Móvil */
  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tile-lg,
  .tile-md,
  .tile-sm,
  .tile {
    grid-column: span 1 !important;
    padding: 22px 18px;
  }

  #casino,
  #analiticas,
  #tickets-sociales {
    grid-column: span 1 !important;
    padding: 24px 0 8px 0;
  }

  /* Precios en Móvil */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .pricing-grid .tile {
    padding: 24px 20px;
  }

  .pricing-grid .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px;
    font-size: 15px;
  }

  /* Estadísticas en Móvil */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 18px 12px;
  }

  .stat-value {
    font-size: clamp(22px, 5.5vw, 32px);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  /* Recursos & Tutoriales */
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resource-filter-pills {
    gap: 6px;
  }

  .resource-filter-btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* Showcase / Vista Previa */
  .section {
    padding: 56px 0;
  }

  .showcase {
    border-radius: 12px;
    overflow: hidden;
  }

  .showcase-body {
    grid-template-columns: 1fr;
  }

  .sc-side {
    display: none;
  }

  .sc-main {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }

  .sc-wide {
    grid-column: span 1;
  }

  .cta-band {
    padding: 44px 20px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

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

  .stat:nth-child(n) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .hero h1 {
    font-size: clamp(25px, 8vw, 34px);
  }
}


/* -------------------------- Recursos y Guías Rápidas -------------------------- */
.resource-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.resource-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.resource-filter-btn:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.resource-filter-btn.active {
  background: rgba(91, 156, 255, 0.15);
  color: #fff;
  border-color: rgba(91, 156, 255, 0.5);
  box-shadow: 0 0 16px rgba(91, 156, 255, 0.2);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.resource-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: clamp(22px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  overflow: hidden;
}

.resource-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.resource-banner {
  width: 100%;
  height: clamp(160px, 13vw, 200px);
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 50%, rgba(91, 156, 255, 0.18), rgba(5, 7, 15, 0.7)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.resource-card:hover .resource-banner {
  border-color: rgba(91, 156, 255, 0.4);
}

.resource-banner-art {
  font-size: 52px;
  filter: drop-shadow(0 10px 20px rgba(91, 156, 255, 0.45));
  transition: transform 0.25s ease;
}

.resource-card:hover .resource-banner-art {
  transform: scale(1.12) rotate(-3deg);
}

.resource-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--azure);
  margin-bottom: 8px;
}

.resource-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.3;
}

.resource-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

.resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.resource-link {
  color: var(--azure);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modal lector de guías */
.guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.guide-modal-overlay.open {
  display: grid;
}

.guide-modal-box {
  width: 100%;
  max-width: 680px;
  background: #0f1426;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
}

.guide-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.guide-modal-body {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.guide-modal-body h4 {
  color: #fff;
  font-size: 17px;
  margin: 20px 0 8px 0;
}

.guide-modal-body ul,
.guide-modal-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.guide-modal-body li {
  margin-bottom: 6px;
}

.guide-modal-body code {
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  color: var(--gold);
}

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

/* ==========================================================================
   Modern Server Selection Page (/servers)
   ========================================================================== */
.servers-section {
  padding: 50px 0 100px;
  min-height: calc(100vh - 220px);
}

.servers-header {
  text-align: center;
  margin-bottom: 40px;
}

.servers-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.servers-lead {
  font-size: 15.5px;
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.servers-search-wrap {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.servers-search-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 15px;
  pointer-events: none;
}

.servers-search-input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  background: rgba(18, 24, 46, 0.75);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.servers-search-input:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
  background: rgba(22, 30, 58, 0.9);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.server-card {
  background: linear-gradient(180deg, #131728, #0e1220);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  position: relative;
}

.server-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 156, 255, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(91, 156, 255, 0.15);
}

.server-card-banner {
  height: 96px;
  background: radial-gradient(circle at 50% 20%, rgba(91, 156, 255, 0.28), transparent 75%), linear-gradient(135deg, #161c36, #0e1324);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
}

.server-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #131728;
  background: #0d1120;
  margin: -36px auto 14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.server-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-card-avatar .server-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, #fff, var(--moon));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.server-card-body {
  padding: 0 20px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.server-card-name {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.server-card-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-owner {
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.badge-admin {
  background: rgba(91, 156, 255, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(91, 156, 255, 0.25);
}

.server-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.btn-server-go {
  background: #2b70f7;
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 32px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(43, 112, 247, 0.35);
  width: 100%;
}

.btn-server-go:hover {
  background: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-server-add {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-server-add:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: #5865f2;
  color: #fff;
  transform: translateY(-2px);
}

.servers-loading,
.servers-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-soft);
}

.servers-loading .loading-spinner {
  font-size: 36px;
  animation: spin 2s linear infinite;
  margin-bottom: 16px;
}

.servers-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.servers-empty h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.servers-empty p {
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 24px;
  line-height: 1.5;
}