:root {
  --bg: #08080b;
  --bg-2: #0f0f14;
  --surface: #15151c;
  --surface-2: #1c1c25;
  --border: rgba(212, 175, 55, 0.18);
  --border-strong: rgba(212, 175, 55, 0.45);
  --gold: #d4af37;
  --gold-light: #ffe57f;
  --gold-dark: #8a6d1b;
  --text: #ece7da;
  --muted: #a39e92;
  --discord: #5865f2;
  --green: #2a9d8f;
  --radius: 10px;
  --max: 1080px;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: 0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; font-size: 0.9em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 8, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #14110a; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark)); color: #14110a; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto; height: 700px;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.16), transparent);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 span { background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* ---------- Maqueta de mensaje de Discord ---------- */
.discord-mock { background: #313338; border-radius: 12px; padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04); font-size: 0.86rem; color: #dbdee1; }
.dm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dm-head img { width: 38px; height: 38px; border-radius: 50%; }
.dm-name { font-weight: 600; color: #f2f3f5; }
.dm-app { background: var(--discord); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.dm-time { color: #949ba4; font-size: 0.75rem; margin-left: 6px; }
.dm-content { margin: 0 0 6px 48px; }
.mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dm-embed { margin-left: 48px; background: #2b2d31; border-left: 4px solid var(--gold); border-radius: 4px; padding: 10px 14px 12px; }
.dm-embed .author { font-size: 0.75rem; color: #dbdee1; font-weight: 600; }
.dm-embed .title { font-weight: 700; color: #f2f3f5; margin: 4px 0 6px; }
.dm-embed .line { margin: 1px 0; }
.dm-embed b { color: #f2f3f5; }
.dm-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; }
.dm-field .fname { font-weight: 700; color: #f2f3f5; }
.dm-field .sub { font-size: 0.72rem; color: #949ba4; }
.dm-embed img { border-radius: 6px; margin-top: 10px; }
.dm-select { margin: 8px 0 0 48px; background: #1e1f22; border-radius: 6px; padding: 9px 12px; color: #949ba4; display: flex; justify-content: space-between; }
@media (max-width: 520px) { .dm-content, .dm-embed, .dm-select { margin-left: 0; } .dm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Secciones ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px 22px 22px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #14110a; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Planes ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 820px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.plan.featured { border: 2px solid var(--gold); position: relative; }
.plan .badge { position: absolute; top: -13px; right: 20px; background: var(--gold); color: #14110a; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .price { font-family: var(--font-display); font-size: 1.8rem; margin: 6px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.plan li::before { content: '✓'; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- CTA y pie ---------- */
.cta { text-align: center; }
.cta .banner { border-radius: 14px; border: 1px solid var(--border); margin: 0 auto 28px; width: 100%; max-width: min(680px, 100%); }
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .links a { color: var(--muted); }
footer .disclaimer { width: 100%; font-size: 0.8rem; opacity: 0.8; margin: 0; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 16px 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; color: var(--gold-light); }
.legal p, .legal li { color: #d6d1c4; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--gold); font-weight: 600; }
.legal .note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 0; padding: 14px 18px; margin: 1.5em 0; }
@media (max-width: 560px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: none; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--border); padding: 10px 0; } }

/* Marcadores de datos pendientes de rellenar (bórralos al completarlos) */
.todo { background: #5a1d1d; color: #ffd6d6; padding: 0 5px; border-radius: 4px; font-weight: 600; }
