/* RustEros · web pública. Estilo HUD Rust: oscuro, acento ember, técnico. */
:root {
  --bg: #14110d;
  --surface: #1b1712;
  --surface-2: #241f18;
  --ink: #ece5da;
  --muted: #9a9082;
  --faint: #746b5d;
  --line: #2c261d;
  --line-2: #3b342a;
  --accent: #f2691f;
  --accent-2: #ff8845;
  --ink-on-accent: #16110c;
  --ok: #52b98a;
  --radius: 12px;
  --wrap: 1120px;
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ee; --surface: #fffdf9; --surface-2: #efeae1;
    --ink: #1b1814; --muted: #6c6357; --faint: #928878;
    --line: #e3dccf; --line-2: #d3cabb; --accent: #d9540f; --ink-on-accent: #fff;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5rem; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 600; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.2rem; }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 1.2rem; height: 62px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 1.15rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 8px; padding: .4rem .6rem; font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-weight: 600;
  padding: .7rem 1.15rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-size: .98rem; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--ink-on-accent); box-shadow: 0 6px 20px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-sep { border-top: 1px solid var(--line); }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: radial-gradient(1200px 500px at 70% -10%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%); }
.hero h1 { text-wrap: balance; max-width: 18ch; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { font-family: var(--font-mono); font-size: .78rem; color: var(--faint); margin-top: 1rem; }

/* Panel mock (demo visual sin imágenes externas) */
.mock { margin-top: 2.5rem; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 70px -40px #000; }
.mock .bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.mock .bar span { margin-left: .6rem; font-family: var(--font-mono); font-size: .78rem; color: var(--faint); }
.mock .body { display: grid; grid-template-columns: 150px 1fr; min-height: 260px; }
.mock .side { border-right: 1px solid var(--line); padding: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.mock .side b { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.mock .side a2 { color: var(--muted); font-size: .85rem; }
.mock .side .on { color: var(--accent); }
.mock .main { padding: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; align-content: start; }
.mock .tile { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; background: var(--surface-2); }
.mock .tile .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.mock .tile .l { font-size: .72rem; color: var(--muted); }
.mock .tile .n.ember { color: var(--accent); }

/* Feature grid */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: var(--surface); }
.feature h3 { font-size: 1.15rem; }
.feature .ic { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.feature p { color: var(--muted); margin: .4rem 0 0; font-size: .95rem; }

/* Pricing */
.toggle { display: inline-flex; gap: .25rem; border: 1px solid var(--line-2); border-radius: 10px; padding: .25rem; margin: 0 auto 2rem; }
.toggle button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: .5rem 1rem; border-radius: 7px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: start; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; background: var(--surface); display: flex; flex-direction: column; gap: .9rem; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -40px var(--accent); }
.plan .name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.plan .tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.plan .price { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; }
.plan .price small { font-size: .85rem; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.plan ul { list-style: none; margin: .2rem 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.plan li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: .92rem; }
.plan li::before { content: "▪"; position: absolute; left: .15rem; color: var(--accent); }
.plan li.off { color: var(--faint); }
.plan li.off::before { content: "–"; color: var(--faint); }

/* Docs / prose */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }
.prose code { font-family: var(--font-mono); font-size: .85em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: .1em .4em; }
.callout { border-left: 3px solid var(--accent); background: var(--surface); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 10px; padding: .3rem 1rem; margin: .6rem 0; background: var(--surface); }
details summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; padding: .6rem 0; }
details[open] summary { color: var(--accent); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; margin-top: 2rem; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); text-decoration: none; }
footer.site .fcol b { display: block; color: var(--ink); font-family: var(--font-display); margin-bottom: .5rem; font-size: .95rem; }
footer.site .fcol a { display: block; padding: .18rem 0; }

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem 1.2rem; gap: .2rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem 0; }
  .nav-toggle { display: inline-block; }
  .mock .body { grid-template-columns: 1fr; }
  .mock .side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .mock .main { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* F11 · Testimonios */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.testi p { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.55; }
.testi .who { display: flex; align-items: center; gap: .6rem; margin-top: auto; }
.testi .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: .85rem; }
.testi .who b { display: block; font-size: .9rem; color: var(--ink); }
.testi .who span { display: block; font-size: .78rem; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: .85rem; }
@media (max-width: 820px) { .testi-grid { grid-template-columns: 1fr; } }

/* F11 · Comparativa */
.compare { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .95rem; }
.compare th, .compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); color: var(--ink); font-size: .9rem; }
.compare thead th.us { color: var(--accent); }
.compare tbody td:first-child { color: var(--muted); }
.compare .yes { color: var(--ok); font-weight: 600; }
.compare .no { color: var(--faint); }
.compare td.us { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--ink); font-weight: 600; }
.compare-wrap { overflow-x: auto; }

/* F11 · Demo interactiva */
.demo-panel { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.demo-tabs { display: flex; gap: .25rem; padding: .5rem; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.demo-tabs button { font: inherit; font-size: .85rem; padding: .4rem .8rem; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.demo-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.demo-view { padding: 1.25rem; }
.demo-view[hidden] { display: none; }
.dev-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.dev-row:last-child { border-bottom: 0; }
.dev-row .name { color: var(--ink); font-size: .95rem; }
.dev-row .kind { color: var(--muted); font-size: .8rem; }
.sw { position: relative; width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: background .15s; flex: none; }
.sw[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.sw[aria-pressed="true"]::after { transform: translateX(20px); background: var(--ink-on-accent); }
.demo-live { margin-top: 1rem; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; max-height: 8.5rem; overflow: auto; }
.demo-live b { color: var(--accent); }
.mini-map { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: .4rem; max-width: 320px; }
.mini-map i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); }
.mini-map i.mon { background: var(--line-2); }
.mini-map i.team { background: var(--accent); }
.mini-map i.dead { background: #b3453a; }

/* F11 · Guías/artículos SEO */
.guide-meta { color: var(--muted); font-size: .85rem; margin: 0 0 1.5rem; }
.callout { border-left: 3px solid var(--accent); background: var(--surface); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1.4rem 0; }
.callout p { margin: 0; color: var(--ink); }
.prose { max-width: 46rem; }
.prose p, .prose li { line-height: 1.7; color: var(--ink); }
.prose h2 { margin-top: 2rem; }
