/* =====================================================================
   Synthetix Host — Sistema de diseño
   Tokens, base, componentes, secciones del sitio, autenticación y panel.
   ===================================================================== */

:root {
  --bg: #04060d;
  --bg-2: #080c18;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.055);
  --solid: #0b1020;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #e8edf7;
  --muted: #94a3b8;
  --dim: #64748b;

  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --lilac: #c4b5fd;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;

  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 48%, #8b5cf6 100%);
  --grad-btn: linear-gradient(135deg, #2563eb 0%, #6d4df2 100%);
  --grad-text: linear-gradient(120deg, #ffffff 0%, #7dd3fc 38%, #c4b5fd 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 18px 60px -18px rgba(34, 211, 238, 0.35);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Fondo: malla de luz + rejilla */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(800px 520px at 92% 4%, rgba(139, 92, 246, 0.15), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(34, 211, 238, 0.09), transparent 60%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(59, 130, 246, 0.4); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mobile-only { display: none !important; }
.icon { flex: none; }

/* ------------------------------ Primitivas ------------------------------ */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 0.95rem; border-radius: 14px; }
.btn-wide { width: 100%; }

.btn-primary {
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-primary:hover:not(:disabled)::after { transform: translateX(120%); }

.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); border-color: rgba(125, 211, 252, 0.45); transform: translateY(-1px); }
.btn-solid { background: rgba(255, 255, 255, 0.07); }
.btn-danger { color: #fecaca; background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.18); }

.btn-discord { color: #fff; background: #5865f2; box-shadow: 0 10px 30px -12px rgba(88, 101, 242, 0.8); }
.btn-discord:hover { background: #6672f5; transform: translateY(-2px); }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(125, 211, 252, 0.45); }
.icon-btn--sm { width: 34px; height: 34px; border-radius: 10px; color: var(--muted); }
.icon-btn--sm:hover { color: var(--red); border-color: rgba(248, 113, 113, 0.4); }

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(3, 6, 15, 0.7);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(255, 255, 255, 0.22); }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14); }

.field { display: block; }
.field__label, .eyebrow-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-label { color: var(--cyan); }
.field__error { margin-top: 6px; font-size: 0.75rem; color: var(--red); }

.select-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 0.2s;
}
.select-pill:hover { border-color: rgba(125, 211, 252, 0.45); }
.select-pill select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  padding-right: 4px;
}
.select-pill select option { background: var(--solid); color: var(--text); }
.select-pill__label { font-weight: 600; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot--live { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--live { color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
}
.tag--hot { color: #fff; background: var(--grad-btn); border-color: transparent; box-shadow: 0 8px 22px -8px rgba(99, 102, 241, 0.8); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
}
.notice button { margin-left: auto; color: inherit; opacity: 0.8; display: grid; }
.notice--violet { color: var(--lilac); background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.35); }
.notice--green { color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: #fff; }
.brand img { border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.brand em { font-style: normal; color: var(--cyan); }

/* ------------------------------ Revelado y 3D ------------------------------ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

.tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(125, 211, 252, 0.13), transparent 55%);
  transition: opacity 0.3s;
}
.tilt:hover::after { opacity: 1; }

/* ------------------------------ Banner y navegación ------------------------------ */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  color: #e0e7ff;
  background: linear-gradient(90deg, #172554 0%, #1e3a8a 35%, #4c1d95 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.announce__text { display: inline-flex; align-items: center; gap: 8px; }
.announce__text .icon { color: #93c5fd; }
.code-chip { padding: 2px 9px; border-radius: 6px; font-family: var(--font-mono); letter-spacing: 0.04em; color: #fde68a; background: rgba(255, 255, 255, 0.14); }
.announce__timer { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.72rem; color: #cbd5e1; }
.announce__timer b { font-family: var(--font-mono); color: #fde68a; }

.nav-wrap { position: sticky; top: 0; z-index: 100; padding: 12px 0; transition: padding 0.3s var(--ease); }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 18px;
  background: rgba(8, 12, 24, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  max-width: 1176px;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.nav-wrap.is-scrolled .navbar { background: rgba(8, 12, 24, 0.86); border-color: var(--line-2); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.85); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links .nav-discord { display: inline-flex; align-items: center; gap: 7px; color: var(--lilac); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-auth { display: flex; align-items: center; gap: 8px; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 0 0 2px var(--bg);
  animation: pop 0.4s var(--ease);
}
@keyframes pop { 0% { transform: scale(0.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ------------------------------ Drawers ------------------------------ */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(2, 4, 10, 0.66); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(380px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #0b1122, #070a14);
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.9);
  transform: translateX(105%);
  transition: transform 0.45s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.1rem; }
.drawer__body { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.drawer__foot { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer__nav { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; font-size: 0.92rem; font-weight: 600; color: var(--text); transition: background 0.2s; }
.drawer__nav a:hover { background: rgba(255, 255, 255, 0.06); }
.drawer__nav a .icon { color: var(--cyan); }
.drawer__nav a.is-accent { color: var(--lilac); }
.drawer__nav hr { border: 0; height: 1px; background: var(--line); margin: 8px 0; }
.drawer__nav .eyebrow-label { margin: 6px 12px; }

.cart-empty { display: grid; justify-items: center; gap: 12px; padding: 44px 10px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.cart-empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22); }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); animation: slide-in 0.4s var(--ease); }
.cart-item strong { display: block; font-size: 0.88rem; }
.cart-item span { font-size: 0.8rem; font-weight: 700; color: var(--cyan); }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.promo__row { display: flex; gap: 8px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.cart-total strong { font-family: var(--font-head); font-size: 1.35rem; color: #fff; }

/* ------------------------------ Toasts ------------------------------ */
.toast-stack { position: fixed; z-index: 400; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: calc(100vw - 40px); }
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 380px;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  background: rgba(10, 14, 28, 0.94);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  animation: toast-in 0.5s var(--ease);
}
.toast .icon { margin-top: 1px; }
.toast--success { border-color: rgba(52, 211, 153, 0.4); } .toast--success .icon { color: var(--green); }
.toast--error { border-color: rgba(248, 113, 113, 0.45); } .toast--error .icon { color: var(--red); }
.toast--info { border-color: rgba(96, 165, 250, 0.4); } .toast--info .icon { color: #60a5fa; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ------------------------------ Hero ------------------------------ */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; margin-bottom: 22px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #bae6fd; background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.24); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); animation: ping-c 2s infinite; }
@keyframes ping-c { 70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }

.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 4.9vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; color: #fff; }
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 7s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.hero__lead { max-width: 560px; margin-top: 22px; font-size: 1.06rem; color: var(--muted); }
.hero__lead b { color: var(--cyan); font-weight: 600; }

.ip-copier { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.ip-copier__label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.ip-copier code { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--cyan); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--cyan); }

.hero__stage { position: relative; width: 100%; display: flex; flex-direction: column; gap: 0; }
.globe { position: relative; width: 100%; aspect-ratio: 1 / 0.92; cursor: grab; touch-action: pan-y; animation: float 9s ease-in-out infinite; }
.globe.is-grabbing { cursor: grabbing; }
@keyframes float { 50% { transform: translateY(-10px); } }
.node-card { position: relative; margin-top: -18px; padding: 16px 18px; border-radius: 18px; background: rgba(8, 12, 24, 0.82); }
.node-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.node-card__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.node-card__grid > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.node-card__grid b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.node-card__grid small { font-size: 0.7rem; color: var(--muted); }

/* ------------------------------ Secciones ------------------------------ */
.section { padding-top: 56px; padding-bottom: 28px; }
.section__head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.section h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.025em; color: #fff; }
.section__head p, .section p.lead { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }

/* Catálogo */
.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; }
.segmented { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.segmented button { position: relative; z-index: 1; padding: 10px 18px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; color: var(--muted); transition: color 0.25s; white-space: nowrap; }
.segmented button.is-on { color: #fff; }
.segmented em { font-style: normal; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 0.66rem; color: #052e16; background: var(--green); }
.segmented__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--grad-btn); box-shadow: 0 8px 22px -8px rgba(99, 102, 241, 0.8); transition: transform 0.45s var(--ease); }
.segmented[data-active='annual'] .segmented__thumb { transform: translateX(100%); }

.cat-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.cat-tab { display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.cat-tab:hover { transform: translateY(-3px); border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); }
.cat-tab__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: all 0.3s; }
.cat-tab__txt b { display: block; font-size: 0.92rem; color: #fff; line-height: 1.25; }
.cat-tab__txt small { font-size: 0.74rem; color: var(--dim); }
.cat-tab.is-on { border-color: rgba(34, 211, 238, 0.5); background: linear-gradient(160deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.08)); box-shadow: var(--glow); }
.cat-tab.is-on .cat-tab__ico { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 10px 24px -8px rgba(34, 211, 238, 0.7); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; perspective: 1400px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 26px; animation: plan-in 0.7s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes plan-in { from { opacity: 0; transform: translateY(26px) rotateX(10deg); } to { opacity: 1; transform: perspective(1000px); } }
.plan:hover { border-color: rgba(125, 211, 252, 0.4); box-shadow: 0 30px 70px -28px rgba(34, 211, 238, 0.3); }
.plan--hot { border-color: rgba(34, 211, 238, 0.5); background: linear-gradient(160deg, rgba(34, 211, 238, 0.09), rgba(139, 92, 246, 0.07) 60%, rgba(255, 255, 255, 0.02)); box-shadow: var(--glow); }
.plan__glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; background: conic-gradient(from var(--a, 0deg), transparent 0 60%, rgba(34, 211, 238, 0.65), transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 1px; }
.plan--hot .plan__glow { opacity: 1; animation: spin-a 5s linear infinite; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-a { to { --a: 360deg; } }
.plan__head h3 { margin-top: 14px; font-family: var(--font-head); font-size: 1.4rem; letter-spacing: -0.02em; color: #fff; }
.plan__head p { margin-top: 6px; font-size: 0.84rem; color: var(--muted); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.plan__price s { width: 100%; font-size: 0.8rem; color: var(--dim); }
.plan__cur { font-size: 1.2rem; font-weight: 700; color: var(--cyan); align-self: flex-start; margin-top: 6px; }
.plan__price strong { font-family: var(--font-head); font-size: 3rem; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.plan__per { margin-left: 4px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.plan__features { display: flex; flex-direction: column; gap: 11px; flex: 1; padding-top: 18px; border-top: 1px solid var(--line); }
.plan__features li { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: #cbd5e1; }
.plan__features b { color: #fff; font-weight: 700; }
.plan__ico { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.18); }

/* Dominios */
.domain { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 32px; padding: 38px; position: relative; overflow: hidden; }
.domain::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 65%); pointer-events: none; }
.domain p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.domain__bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(3, 6, 15, 0.75); border: 1px solid var(--line-2); transition: border-color 0.2s, box-shadow 0.2s; }
.domain__bar:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12); }
.domain__bar > .icon { color: var(--dim); }
.domain__bar input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 0.92rem; }
.domain__bar input::placeholder { color: var(--dim); }
.domain__bar select { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--cyan); font-weight: 700; font-size: 0.8rem; outline: none; cursor: pointer; }
.domain__bar select option { background: var(--solid); }
.domain__result { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; animation: slide-up 0.5s var(--ease); }
.domain__result strong { display: block; font-family: var(--font-mono); font-size: 0.95rem; }
.domain__result span { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.82rem; font-weight: 700; }
.domain__result.is-free { background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); } .is-free span { color: var(--green); }
.domain__result.is-taken { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.3); } .is-taken span { color: var(--red); }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Comparativa */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-head); font-size: 0.95rem; color: #fff; background: rgba(255, 255, 255, 0.03); }
.compare thead th.is-cyan { color: var(--cyan); } .compare thead th.is-violet { color: var(--lilac); }
.compare tbody th { font-weight: 700; color: #fff; white-space: nowrap; }
.compare tbody th .icon { display: inline-block; vertical-align: -3px; margin-right: 8px; color: var(--cyan); }
.compare td { color: #cbd5e1; }
.compare td.is-hi { color: var(--cyan); font-weight: 700; background: rgba(34, 211, 238, 0.04); }
.compare td.is-dim { color: var(--dim); }
.compare tbody tr { transition: background 0.2s; } .compare tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Latencia */
.latency { padding: 32px; }
.latency__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.latency__top p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; max-width: 520px; }
.latency__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.lat-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 18px; border-radius: 16px; background: rgba(3, 6, 15, 0.6); border: 1px solid var(--line); }
.lat-card__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.2); }
.lat-card__txt b { display: block; font-size: 0.92rem; }
.lat-card__txt small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim); }
.lat-card__val { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--muted); text-align: right; }
.lat-card__val.is-good { color: var(--green); } .lat-card__val.is-mid { color: var(--amber); } .lat-card__val.is-bad { color: var(--red); }
.lat-bar { grid-column: 1 / -1; height: 5px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.lat-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 1s var(--ease); }
.lat-card__min { grid-column: 1 / -1; font-size: 0.72rem; color: var(--dim); }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--cyan); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Configurador */
.builder { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; overflow: hidden; }
.builder__controls { padding: 38px; }
.builder__controls > p { margin: 10px 0 28px; color: var(--muted); font-size: 0.92rem; }
.slider { margin-top: 26px; }
.slider__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.slider__head label { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 700; color: #fff; }
.slider__head label .icon { color: var(--cyan); }
.slider__head output { padding: 4px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--cyan); background: rgba(34, 211, 238, 0.09); border: 1px solid rgba(34, 211, 238, 0.25); }
.slider__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.72rem; color: var(--dim); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; outline: none; cursor: pointer; background: linear-gradient(90deg, var(--cyan), var(--violet)) 0 / var(--p, 0%) 100% no-repeat, rgba(255, 255, 255, 0.1); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); box-shadow: 0 6px 18px rgba(59, 130, 246, 0.6); transition: transform 0.2s var(--ease); }
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); box-shadow: 0 6px 18px rgba(59, 130, 246, 0.6); }
.builder__summary { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 38px; background: linear-gradient(160deg, rgba(34, 211, 238, 0.07), rgba(139, 92, 246, 0.1)); border-left: 1px solid var(--line); }
.builder__price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.builder__price span { font-size: 1.5rem; font-weight: 700; color: var(--cyan); }
.builder__price strong { font-family: var(--font-head); font-size: 3.6rem; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.builder__price em { font-style: normal; font-weight: 700; color: var(--muted); }
.builder__summary small { margin-bottom: 18px; color: var(--dim); font-size: 0.8rem; }
.rig { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 22px; transform: perspective(500px) rotateX(18deg); }
.rig span { height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); transition: all 0.5s var(--ease); transition-delay: calc(var(--k) * 40ms); }
.rig span.on { background: var(--grad); box-shadow: 0 0 16px rgba(34, 211, 238, 0.55); transform: translateY(-3px); }

/* Soporte */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.support-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; transition: transform 0.35s var(--ease), border-color 0.3s; }
.support-card:hover { transform: translateY(-5px); border-color: rgba(125, 211, 252, 0.4); }
.support-card h3 { font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.support-card p { flex: 1; font-size: 0.9rem; color: var(--muted); }
.support-card__ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 16px; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(34, 211, 238, 0.7); }
.support-card--discord { border-color: rgba(34, 211, 238, 0.4); background: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08)); }
.support-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.steps, .faq { padding: 30px; }
.steps h3, .faq h3 { margin-bottom: 20px; font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.steps ol { display: flex; flex-direction: column; gap: 20px; position: relative; }
.steps ol::before { content: ''; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); opacity: 0.35; }
.steps li { position: relative; display: flex; gap: 16px; }
.steps li > span { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--grad-btn); box-shadow: 0 0 0 5px var(--bg), 0 10px 24px -8px rgba(99, 102, 241, 0.8); }
.steps b { color: #fff; font-size: 0.95rem; }
.steps p { margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.faq { background: none; border: 0; box-shadow: none; padding: 30px 6px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 4px; text-align: left; font-weight: 700; font-size: 0.95rem; color: #fff; }
.faq-item__ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22); transition: transform 0.4s var(--ease), background 0.3s; }
.faq-item.is-open .faq-item__ico { background: rgba(34, 211, 238, 0.2); transform: rotate(180deg); }
.faq-item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.is-open .faq-item__body { grid-template-rows: 1fr; }
.faq-item__body > div { overflow: hidden; }
.faq-item__body p { padding: 0 4px 20px; font-size: 0.9rem; color: var(--muted); }

/* Footer */
.footer { margin-top: 70px; padding-top: 54px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(8, 12, 24, 0.9)); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand p { max-width: 330px; margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.footer h4 { margin-bottom: 14px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.footer__grid > div:not(.footer__brand) a { display: block; padding: 5px 0; font-size: 0.88rem; color: var(--muted); transition: color 0.2s, transform 0.2s; }
.footer__grid > div:not(.footer__brand) a:hover { color: #fff; transform: translateX(3px); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--dim); }
.status-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 999px; color: var(--green); font-weight: 700; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.25); }

/* Pantalla de carga inicial */
#boot { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: var(--bg); }
#boot .spinner { width: 34px; height: 34px; border-width: 3px; }

/* ------------------------------ Autenticación ------------------------------ */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth__visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(700px 500px at 30% 40%, rgba(59, 130, 246, 0.16), transparent 65%), radial-gradient(600px 500px at 80% 80%, rgba(139, 92, 246, 0.16), transparent 65%); }
.auth__visual .globe-wrap { position: relative; flex: 1; min-height: 340px; margin: 10px -40px; }
.auth__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.auth__pitch h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; color: #fff; }
.auth__pitch h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__pitch p { margin-top: 12px; max-width: 460px; color: var(--muted); font-size: 0.95rem; }
.auth__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.auth__chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; color: #cbd5e1; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.auth__chips .icon { color: var(--cyan); }

.auth__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; animation: slide-up 0.7s var(--ease); }
.auth-card__head { text-align: center; margin-bottom: 26px; }
.auth-card__head .kicker { margin-bottom: 12px; }
.auth-card h1 { font-family: var(--font-head); font-size: 1.85rem; letter-spacing: -0.03em; color: #fff; }
.auth-card h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-card__head p { margin-top: 6px; font-size: 0.88rem; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 16px; }
.input-wrap { position: relative; }
.input-wrap > .input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; display: grid; transition: color 0.2s; }
.input-wrap .input { padding-left: 44px; padding-top: 13px; padding-bottom: 13px; }
.input-wrap:focus-within > .input-ico { color: var(--cyan); }
.input-wrap .toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--dim); }
.input-wrap .toggle-pass:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.input-wrap .input.has-toggle { padding-right: 46px; }
.form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.82rem; }
.check { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(3, 6, 15, 0.7); display: grid; place-items: center; cursor: pointer; transition: all 0.2s; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ''; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.link { color: var(--cyan); font-weight: 700; transition: color 0.2s; } .link:hover { color: #a5f3fc; text-decoration: underline; text-underline-offset: 3px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { margin-top: 22px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--dim); transition: color 0.2s; } .back-link:hover { color: #fff; }
.strength { display: flex; gap: 5px; margin-top: 9px; }
.strength span { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); transition: background 0.3s; }
.strength[data-level='1'] span:nth-child(-n + 1) { background: var(--red); }
.strength[data-level='2'] span:nth-child(-n + 2) { background: var(--amber); }
.strength[data-level='3'] span:nth-child(-n + 3) { background: #a3e635; }
.strength[data-level='4'] span:nth-child(-n + 4) { background: var(--green); }
.strength-label { margin-top: 5px; font-size: 0.72rem; color: var(--dim); }
.auth-card .brand { justify-content: center; }

/* ------------------------------ Panel de cliente ------------------------------ */
.dash { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 18px; background: rgba(6, 9, 18, 0.7); border-right: 1px solid var(--line); backdrop-filter: blur(20px); }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 0.88rem; font-weight: 700; color: var(--muted); border: 1px solid transparent; transition: all 0.2s; }
.side-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.side-link.is-on { color: #fff; background: linear-gradient(120deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.12)); border-color: rgba(34, 211, 238, 0.3); }
.side-link.is-on .icon { color: var(--cyan); }
.side-foot { display: flex; flex-direction: column; gap: 10px; }
.dash-top { display: none; }
.dash-main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 44px 36px 60px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dash-head h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; color: #fff; }
.dash-head p { margin-top: 4px; font-size: 0.9rem; color: var(--muted); }
.user-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; font-size: 0.82rem; font-weight: 700; color: var(--cyan); background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.25); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 38px; }
.stat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.stat__label { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.stat__label .icon { color: var(--cyan); }
.stat__value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.1; }
.stat__value--sm { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; color: var(--green); }
.stat a.stat__value--sm { color: var(--lilac); }
.stat a.stat__value--sm:hover { text-decoration: underline; }
.stat::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 70%); }
.block { margin-bottom: 38px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block__head h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.block__head h2 .icon { color: var(--cyan); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.02); }
.empty__ico { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 16px; border-radius: 18px; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22); animation: float 5s ease-in-out infinite; }
.empty h3 { font-size: 1rem; color: #fff; }
.empty p { max-width: 420px; margin: 6px 0 22px; font-size: 0.86rem; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { padding: 14px 22px; text-align: left; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--line); }
.data-table th:last-child { text-align: right; }
.data-table td { padding: 30px 22px; text-align: center; color: var(--dim); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.quick { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 28px; }
.quick--main { border-color: rgba(34, 211, 238, 0.4); background: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.07)); }
.quick__ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 15px; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(34, 211, 238, 0.7); }
.quick__ico--violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 14px 30px -12px rgba(139, 92, 246, 0.7); }
.quick__ico--discord { background: #5865f2; box-shadow: 0 14px 30px -12px rgba(88, 101, 242, 0.7); }
.quick h3 { font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.quick p { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.quick p b { color: var(--cyan); font-weight: 600; }
.soon { padding: 4px 10px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lilac); background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); }
.quick__top { display: flex; align-items: flex-start; justify-content: space-between; }
.quick--soon { opacity: 0.85; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1080px) {
  .nav-links a:not(.nav-discord) { padding: 8px 9px; font-size: 0.8rem; }
  .cat-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-links, .desktop-only { display: none !important; }
  .mobile-only { display: inline-grid !important; }
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero__stage { max-width: 520px; margin: 0 auto; }
  .domain, .builder, .support-lower { grid-template-columns: 1fr; }
  .builder__summary { border-left: 0; border-top: 1px solid var(--line); }
  .support-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dash-top { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: rgba(6, 9, 18, 0.85); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
  .dash-main { padding: 28px 20px 48px; }
  .stat-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .domain, .latency, .builder__controls, .builder__summary { padding: 24px; }
  .domain__bar { flex-wrap: wrap; padding: 12px; }
  .domain__bar input { flex-basis: 60%; }
  .cat-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-tab { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .segmented button { padding: 10px 12px; font-size: 0.75rem; }
  .segmented em { display: none; }
  .select-pill__label { display: none; }
  .node-card__grid { gap: 6px; }
  .node-card__grid > div { padding: 8px; }
  .node-card__grid b { font-size: 0.85rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 22px; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; }
  .section { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Iconos inyectados por JS en páginas estáticas */
[data-icon] { display: inline-grid; place-items: center; line-height: 0; flex: none; }
.brand { flex: none; }
.nav-links { margin: 0 auto; }
.hero__actions .btn { flex: 0 1 auto; }
@media (max-width: 640px) { .hero__actions .btn { width: 100%; } .ip-copier { width: 100%; } }

/* ===== MOBILE / ANDROID FIX ===== */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .container,
  .dashboard,
  .dashboard-main,
  .main,
  main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  img, canvas, video {
    max-width: 100%;
    height: auto;
  }

  .sidebar {
    max-width: 85vw;
  }

  .dashboard-content,
  .content,
  .main-content {
    width: 100%;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }

  table {
    max-width: 100%;
  }

  .card,
  .panel,
  .stat-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  button,
  a,
  input,
  select {
    max-width: 100%;
  }
}

/* ===== DASHBOARD ANDROID ===== */
@media screen and (max-width: 768px) {
  html {
    width: 100%;
    overflow-x: hidden !important;
  }

  body {
    width: 100%;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .dashboard,
  .dashboard-layout,
  .dashboard-shell,
  .dashboard-main,
  .main-content,
  main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sidebar {
    width: min(280px, 85vw) !important;
    max-width: 85vw !important;
  }

  .content,
  .dashboard-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .stats,
  .stat-grid,
  .dashboard-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .card,
  .panel,
  .stat-card,
  .service-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .table-container,
  .table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }

  img {
    max-width: 100%;
  }
}


/* =========================================================
   DASHBOARD — MOBILE DEVICE HARD FIX
   Uses a device class in addition to viewport media queries.
   This prevents Android browsers with a large/desktop CSS
   viewport from leaving the hidden 264px sidebar column.
   ========================================================= */
html.dashboard-mobile,
html.dashboard-mobile body {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

html.dashboard-mobile .dash {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

html.dashboard-mobile .dash > aside.sidebar {
  display: none !important;
}

html.dashboard-mobile .dash > div:last-child {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

html.dashboard-mobile .dash-top {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html.dashboard-mobile .dash-main {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px 16px 44px !important;
  box-sizing: border-box !important;
}

html.dashboard-mobile .stat-grid,
html.dashboard-mobile .quick-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  min-width: 0 !important;
}

html.dashboard-mobile .stat,
html.dashboard-mobile .quick,
html.dashboard-mobile .empty,
html.dashboard-mobile .block {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.dashboard-mobile .dash-head {
  display: block !important;
}

html.dashboard-mobile .user-badge {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html.dashboard-mobile .block > .glass {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html.dashboard-mobile .data-table {
  min-width: 640px !important;
}
