/* TraduGame — estilos de la web. Oscuro, violeta y azul (colores del icono), tarjetas con borde fino. */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-titulo.woff") format("woff"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Bricolage Text"; src: url("../fonts/bricolage-texto.woff") format("woff"); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0a1a;
  --bg-2: #110f26;
  --surface: #16142f;
  --surface-2: #1c1a3b;
  --surface-3: #242149;
  --line: #2c2957;
  --line-2: #3b3770;
  --text: #f1effd;
  --muted: #b3aed6;
  --faint: #8a85b4;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --blue: #3b82f6;
  --cyan: #38bdf8;
  --yellow: #f6c445;
  --green: #34d399;
  --red: #f87171;
  --orange: #fb923c;
  --grad: linear-gradient(100deg, #a855f7 0%, #7c3aed 35%, #3b82f6 75%, #38bdf8 100%);
  --grad-btn: linear-gradient(100deg, #8b5cf6, #6366f1 55%, #3b82f6);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(76, 29, 149, .55);
  --max: 1200px;
  --head: "Bricolage", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Bricolage Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(59, 130, 246, .14), transparent 60%),
    var(--bg);
}
main { flex: 1; }
img, video, iframe { max-width: 100%; }
a { color: var(--violet-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c4b5fd; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; overflow: auto; }
:not(pre) > code { background: var(--surface-3); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: rgba(139, 92, 246, .45); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: .92em; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ---------- Cabecera ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(11, 10, 26, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(60, 55, 120, .5); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.35rem var(--head); letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; position: relative; }
.nav a:hover { color: var(--text); background: rgba(139, 92, 246, .1); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; margin: 0; padding: 6px; list-style: none; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.lang-menu li a:hover, .lang-menu li a[aria-current="true"] { background: var(--surface-3); }
.site-head .menu-btn { display: none; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--b);
  color: var(--text); font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { color: var(--text); border-color: var(--violet); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad-btn); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .8); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(124, 58, 237, 1); border-color: transparent; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.12rem; border-radius: 14px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .9rem; border-radius: 9px; }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .5); color: #fecaca; }
.btn-danger:hover { border-color: var(--red); }
.btn-ok { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .5); color: #bbf7d0; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { color: #1f1f1f; border-color: #fff; }
.btn-patreon { background: #f96854; border-color: #f96854; color: #fff; }
.btn-patreon:hover { color: #fff; border-color: #ffb3a8; }
.linklike { background: none; border: 0; padding: 0; color: var(--violet-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #d6d2f2; max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-note { font-size: .9rem; color: var(--faint); }
.engines { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 600px; }
.engine { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(28, 26, 59, .7); border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.engine img { width: 52px; height: 52px; flex: none; border-radius: 13px; filter: saturate(.55) brightness(.85); transition: filter .3s ease, transform .3s ease; }
.engine-on img { filter: none; animation: bob 3.2s ease-in-out infinite; }
.engine-on { border-color: rgba(52, 211, 153, .45); box-shadow: 0 10px 30px -14px rgba(52, 211, 153, .6); }
.engine:hover { transform: translateY(-3px); border-color: var(--line-2); }
.engine:hover img { filter: none; transform: rotate(-4deg) scale(1.06); }
.engine strong { display: block; font-family: var(--head); font-size: 1rem; line-height: 1.2; }
.engine .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-3); }
.engine .ico svg { width: 26px; height: 26px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-on { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.dot-soon { background: var(--violet-2); }
.state-on { color: var(--green); font-weight: 600; font-size: .95rem; }
.state-soon { color: var(--muted); font-size: .95rem; }

/* Ventana ilustrativa del programa (HTML, no captura). */
.appshot { border-radius: 16px; background: #13112b; border: 1px solid #3a3577; box-shadow: 0 40px 100px -30px rgba(91, 33, 182, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset; overflow: hidden; font-size: 13px; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s ease; }
.appshot:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(0); }
.appshot .bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #191636; border-bottom: 1px solid #2c2957; font-weight: 600; }
.appshot .bar img { width: 20px; height: 20px; border-radius: 5px; }
.appshot .bar .win { margin-left: auto; display: flex; gap: 14px; color: var(--faint); }
.appshot .body { display: grid; grid-template-columns: 170px 1fr; min-height: 330px; }
.appshot .side { border-right: 1px solid #2c2957; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.appshot .side span { padding: 7px 10px; border-radius: 8px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.appshot .side span.on { background: rgba(139, 92, 246, .22); color: #fff; }
.appshot .side span b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--surface-3); color: var(--muted); }
.appshot .side span.done b { background: var(--green); color: #052e1f; }
.appshot .side span.on b { background: var(--violet); color: #fff; }
.appshot .main { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.appshot .tools { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.appshot .tools .chip { padding: 4px 10px; border-radius: 8px; background: var(--surface-3); color: var(--text); }
.appshot table { width: 100%; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.appshot th { text-align: left; color: var(--muted); font-weight: 600; padding: 2px 10px; font-size: 12px; }
.appshot td { background: #1b1940; padding: 9px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-top: 1px solid #2a2756; border-bottom: 1px solid #2a2756; }
.appshot td:first-child { border-left: 1px solid #2a2756; border-radius: 9px 0 0 9px; color: #cfcaf0; }
.appshot td:last-child { border-right: 1px solid #2a2756; border-radius: 0 9px 9px 0; }
.appshot tr.sel td { border-color: var(--violet); background: #221d52; }
.appshot .ok { color: var(--green); font-size: 11px; margin-right: 6px; }
.appshot .typing::after { content: "▍"; color: var(--violet-2); animation: blink 1s steps(1) infinite; }
.appshot .progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.appshot .progress i { display: block; height: 100%; width: 72%; background: var(--grad); border-radius: 6px; }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 46em; }
.section-head h2 { margin: 0 0 6px; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(22, 20, 47, .6); }
.band .wrap { display: flex; justify-content: center; gap: 10px 32px; padding: 9px 20px; flex-wrap: wrap; color: var(--faint); font-size: .86rem; }
.band .wrap span { display: flex; align-items: center; gap: 7px; }
.band svg { width: 16px; height: 16px; color: var(--violet-2); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: linear-gradient(180deg, rgba(28, 26, 59, .92), rgba(22, 20, 47, .92)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card-link:hover { color: inherit; border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(59, 130, 246, .2)); border: 1px solid rgba(139, 92, 246, .35); }
.feature .ico svg { width: 24px; height: 24px; color: #d8ccff; }
.feature p { color: var(--muted); }
.out-card { text-align: center; overflow: hidden; }
.out-art { width: 150px; height: 112px; margin: 4px auto 14px; display: block; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.out-card:hover .out-art { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
.feature .ico { transition: transform .35s ease, box-shadow .35s ease; }
.feature:hover .ico { transform: rotate(-8deg) scale(1.1); box-shadow: 0 0 24px -4px rgba(139, 92, 246, .8); }
.card.feature { transition: transform .25s ease, border-color .25s ease; }
.card.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }

.steps { counter-reset: step; }
.step { padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-btn); display: grid; place-items: center; font: 800 1rem var(--head); }

.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.3rem; }
.panel-head .more { margin-left: auto; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.panel-head .ico { width: 38px; height: 38px; color: var(--violet-2); }
.panel-head .ico svg { width: 38px; height: 38px; }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: rgba(139, 92, 246, .22); color: #ddd6fe; border: 1px solid rgba(139, 92, 246, .45); }
.tag-update { background: rgba(56, 189, 248, .15); color: #bae6fd; border-color: rgba(56, 189, 248, .4); }
.tag-release { background: rgba(52, 211, 153, .14); color: #bbf7d0; border-color: rgba(52, 211, 153, .4); }
.tag-pending { background: rgba(246, 196, 69, .14); color: #fde68a; border-color: rgba(246, 196, 69, .45); }
.tag-rejected { background: rgba(248, 113, 113, .14); color: #fecaca; border-color: rgba(248, 113, 113, .45); }
.tag-approved { background: rgba(52, 211, 153, .14); color: #bbf7d0; border-color: rgba(52, 211, 153, .4); }
.tag-hidden { background: rgba(148, 163, 184, .15); color: #e2e8f0; border-color: rgba(148, 163, 184, .4); }

.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(28, 26, 59, .55); text-decoration: none; color: inherit; transition: border-color .2s ease, background-color .2s ease; }
a.item:hover { border-color: var(--line-2); background: rgba(36, 33, 73, .7); color: inherit; }
.item .t { font-weight: 600; color: var(--text); display: block; }
.item .s { color: var(--muted); font-size: .92rem; }
.item .count { margin-left: auto; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.thumb { width: 96px; height: 60px; border-radius: 8px; flex: none; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--violet-2); }
.thumb svg { width: 28px; height: 28px; }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--grad-btn); color: #fff; font-weight: 700; font-size: .9rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.8rem; }
.who { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who a { color: var(--text); font-weight: 600; text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(249, 104, 84, .14); color: #ffc2b8; border: 1px solid rgba(249, 104, 84, .45); white-space: nowrap; }
.badge.stale { background: rgba(148, 163, 184, .1); color: #cbd5e1; border-color: rgba(148, 163, 184, .35); }
.badge svg { width: 12px; height: 12px; }
.role { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: rgba(56, 189, 248, .14); color: #bae6fd; }

/* ---------- Planes ---------- */
.carousel { position: relative; }
.plans { --per: 3; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 22px 4px 26px; scroll-padding-inline: 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.plans::-webkit-scrollbar { display: none; }
.plans > .plan { flex: 0 0 calc((100% - (var(--per) - 1) * 18px) / var(--per)); scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(28, 26, 59, .92); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s ease, opacity .2s ease, background-color .2s ease; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover { background: var(--violet); transform: scale(1.08); }
.carousel-btn.prev { left: -22px; }
.carousel-btn.prev svg { transform: rotate(180deg); }
.carousel-btn.next { right: -22px; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.carousel-dots button[aria-current="true"] { width: 26px; border-radius: 6px; background: var(--violet); }
.plan { display: flex; flex-direction: column; padding: 22px 18px; }
.plan .price { font: 800 2.2rem/1 var(--head); margin: 6px 0 2px; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan .tagline { color: var(--muted); font-size: .92rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 9px; font-size: .93rem; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 2px; }
.plan .btn { width: 100%; }
.plan-free { background: rgba(22, 20, 47, .7); }
.plan-free li svg { color: var(--faint); }
.plan { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.plan:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.plan-hot { border: 0; background: linear-gradient(180deg, #2a1f63, #1b1845); box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .95); z-index: 1; }
.plan-hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(100deg, #a855f7, #3b82f6, #38bdf8, #f472b6, #a855f7); background-size: 300% 100%; animation: shimmer 6s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-hot:hover { transform: translateY(-8px) scale(1.01); }
.plan-hot .price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-ribbon { animation: pulse 2.6s ease-in-out infinite; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-btn); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .9); }

/* ---------- Contenido ---------- */
.page-head { padding: 48px 0 18px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 46em; }
.crumbs { font-size: .9rem; color: var(--faint); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose img { border-radius: 12px; border: 1px solid var(--line); display: block; margin: 1.2em 0; height: auto; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-left: 3px solid var(--violet); background: rgba(139, 92, 246, .08); border-radius: 0 10px 10px 0; color: #d6d2f2; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 24px; }
.layout-side { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.side-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; }
.side-nav a { padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; display: flex; justify-content: space-between; gap: 8px; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a[aria-current="page"] { background: rgba(139, 92, 246, .18); color: var(--text); }

.notice { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); margin: 0 0 18px; }
.notice-info { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .08); }
.notice-ok { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .08); }
.notice-error { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .09); }
.notice-warn { border-color: rgba(246, 196, 69, .5); background: rgba(246, 196, 69, .08); }
.notice p:last-child { margin: 0; }
.flash-wrap { padding-top: 18px; }

.empty { text-align: center; padding: 36px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--faint); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: #0f0d24; color: var(--text); font: inherit;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--violet); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 3px; flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-box { max-width: 460px; margin: 40px auto 60px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.oauth { display: flex; flex-direction: column; gap: 10px; }
.oauth .btn { width: 100%; }
.search { display: flex; gap: 8px; max-width: 520px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--violet); }

.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

.pager { display: flex; gap: 8px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }

/* ---------- Foro ---------- */
.post { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px; }
.post .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--faint); margin-bottom: 8px; }
.post .content { overflow-wrap: anywhere; }
.post .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: .9rem; }
.post.is-hidden { opacity: .6; border-style: dashed; }
details.inline > summary { cursor: pointer; color: var(--violet-2); list-style: none; display: inline; }
details.inline > summary::-webkit-details-marker { display: none; }
details.inline[open] > summary { margin-bottom: 10px; display: inline-block; }
.cat-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--violet-2); flex: none; }
.cat-ico svg { width: 22px; height: 22px; }

/* ---------- Descarga ---------- */
.dl-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: stretch; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.req li { margin: .35em 0; }

/* ---------- Pie ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 36px 0 30px; color: var(--muted); font-size: .94rem; background: rgba(11, 10, 26, .6); }
.site-foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h2 { font-size: .95rem; color: var(--text); margin-bottom: 10px; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.support-strip { display: flex; justify-content: center; padding: 18px; border-top: 1px solid var(--line); }
.support-strip a { display: inline-flex; align-items: center; gap: 10px; color: #c4b5fd; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.support-strip a:hover { color: #fff; }
.support-strip svg { width: 22px; height: 22px; color: var(--violet); }

/* ---------- Animaciones (se desactivan con «reducir movimiento») ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .9); } 50% { box-shadow: 0 8px 28px -4px rgba(168, 85, 247, 1); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }
@keyframes fill { from { width: 8%; } to { width: 72%; } }
@keyframes rowin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 14s ease-in-out infinite; pointer-events: none; }
.hero::before { width: 380px; height: 380px; left: -120px; top: 40px; background: #6d28d9; }
.hero::after { width: 320px; height: 320px; right: -60px; bottom: -80px; background: #1d4ed8; animation-delay: -7s; }
.appshot .progress i { animation: fill 2.4s cubic-bezier(.2, .7, .2, 1) .4s both; }
.appshot tbody tr { animation: rowin .5s ease both; }
.appshot tbody tr:nth-child(1) { animation-delay: .5s; }
.appshot tbody tr:nth-child(2) { animation-delay: .65s; }
.appshot tbody tr:nth-child(3) { animation-delay: .8s; }
.appshot tbody tr:nth-child(4) { animation-delay: .95s; }
.appshot tbody tr:nth-child(5) { animation-delay: 1.1s; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn-primary:hover::after { animation: sweep .8s ease; }
.btn-lg.btn-primary::after { animation: sweep 1.2s ease 1.6s; }
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 3px; width: 56px; border-radius: 3px; background: var(--grad); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s; }
.js .section-head.reveal:not(.in) h2::after { transform: scaleX(0); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 200% 50%; } }
.hero h1 .grad-text { background-size: 200% 100%; animation: shimmer 8s linear infinite; }
.hero .wrap > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero .wrap > *:nth-child(2) { animation-delay: .12s; }
.js .reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .appshot, .appshot:hover { transform: none; }
}

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1100px) {
  .plans { --per: 2; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero .wrap, .dl-hero { grid-template-columns: 1fr; }
  .appshot { transform: none; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .site-head .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; padding: 12px 16px 18px; margin: 0; background: rgba(11, 10, 26, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .head-tools .hide-sm { display: none; }
  .site-head .menu-btn { order: 3; }
  .site-head .wrap { gap: 10px; }
}
@media (max-width: 480px) {
  .head-tools .btn-label { display: none; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 30px; height: 30px; }
}
@media (max-width: 700px) {
  .plans { --per: 1.15; }
  .carousel-btn { width: 40px; height: 40px; margin-top: -20px; }
  .carousel-btn.prev { left: -6px; }
  .carousel-btn.next { right: -6px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .engines { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .engine { flex-direction: column; text-align: center; padding: 10px 6px; }
  .engine img { width: 44px; height: 44px; }
  .engine strong { font-size: .86rem; }
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 24px; }
  .appshot .body { grid-template-columns: 1fr; }
  .appshot .side { display: none; }
  .post { grid-template-columns: 1fr; }
  .post > .avatar { display: none; }
  .item .count { display: none; }
  .wrap { padding: 0 16px; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
}

/* ---------- Entrar / crear cuenta (panel de bienvenida + formulario claro) ---------- */
.auth-wrap { padding: 48px 16px 64px; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1.05fr; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(76, 29, 149, .8); animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(150deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%); color: #fff; min-height: 560px; display: flex; align-items: center; padding: 48px 44px; }
.auth-side .orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .05) 60%), linear-gradient(150deg, #6d28d9, #1d4ed8); box-shadow: inset -12px -16px 40px rgba(0, 0, 0, .25), 0 20px 40px -10px rgba(0, 0, 0, .35); }
.auth-side .orb-1 { width: 380px; height: 380px; right: -150px; top: -130px; animation: float 16s ease-in-out infinite; }
.auth-side .orb-2 { width: 180px; height: 180px; right: 40px; bottom: 40px; animation: float 11s ease-in-out infinite reverse; }
.auth-side .orb-3 { width: 240px; height: 240px; left: -110px; bottom: -110px; animation: float 13s ease-in-out -4s infinite; }
.auth-side-text { position: relative; z-index: 1; max-width: 320px; }
.auth-side-text img { border-radius: 14px; margin-bottom: 18px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.auth-hello { font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--head); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.auth-brand { font: 700 1.05rem var(--head); letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin: 0 0 18px; }
.auth-blurb { opacity: .85; font-size: .96rem; margin: 0; }
.auth-form { background: #fff; color: #1e1b3a; padding: 44px 46px 34px; display: flex; flex-direction: column; }
.auth-form h1 { font-size: 2.1rem; margin: 0 0 6px; color: #1e1b3a; }
.auth-lead { color: #6b6890; font-size: .95rem; margin: 0 0 22px; }
.auth-form a { color: #4f46e5; }
.auth-form .form { gap: 14px; }
.input-ico { position: relative; display: flex; align-items: center; background: #f1f0f7; border: 1px solid #e3e1f0; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.input-ico:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); background: #fff; }
.input-ico > svg { width: 20px; height: 20px; margin-left: 14px; color: #4b4870; flex: none; }
.input-ico input { flex: 1; border: 0; background: transparent; color: #1e1b3a; min-height: 50px; padding: 10px 12px; box-shadow: none !important; }
.input-ico input::placeholder { color: #8a87a8; }
.show-pw { border: 0; background: none; color: #4f46e5; font: 700 .78rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 0 14px; cursor: pointer; align-self: stretch; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; flex-wrap: wrap; }
.auth-form .check { color: #4b4870; font-size: .9rem; }
.auth-submit { width: 100%; min-height: 52px; font-size: 1.05rem; margin-top: 4px; }
.auth-form .divider { color: #8a87a8; margin: 18px 0; }
.auth-form .divider::before, .auth-form .divider::after { border-color: #e3e1f0; }
.auth-form .oauth .btn { min-height: 50px; }
.auth-form .btn-google { border-color: #d6d4e5; }
.auth-form .btn-google:hover { border-color: #7c3aed; }
.auth-form .btn.disabled { opacity: .55; }
.auth-note { color: #8a87a8; font-size: .82rem; text-align: center; margin: 2px 0 0; }
.auth-hint { color: #8a87a8; font-size: .82rem; margin: -6px 0 0 4px; }
.auth-foot { margin: auto 0 0; padding-top: 22px; text-align: center; color: #6b6890; font-size: .92rem; }
.auth-form .notice-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.auth-form :focus-visible { outline-color: #7c3aed; }
@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; padding: 34px 28px; }
  .auth-side .orb-1 { width: 220px; height: 220px; right: -80px; top: -90px; }
  .auth-side .orb-2, .auth-side .orb-3 { display: none; }
  .auth-hello { font-size: 2rem; }
  .auth-form { padding: 30px 22px 26px; }
}
.engines { max-width: 640px; }
.engine img { width: 62px; height: 62px; }
.state-on, .state-soon { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .88rem; }
.state-on .dot, .state-soon .dot { margin: 0; }
@media (max-width: 700px) { .engine img { width: 48px; height: 48px; } .state-on, .state-soon { justify-content: center; font-size: .78rem; } }

/* Traducción automática de la comunidad */
.translate-always { margin-top: 10px; }
.tr-note { margin: 8px 0 0; font-style: italic; }

/* Inicio: tarjetas de motores en vertical (el texto no se sale), columnas sin huecos y Patreon dentro del cierre */
.engines { max-width: 560px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.engine { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 8px; min-width: 0; }
.engine > div { min-width: 0; }
.engine strong { font-size: .98rem; overflow-wrap: anywhere; }
.engine img { width: 54px; height: 54px; }
.state-on, .state-soon { justify-content: center; font-size: .84rem; white-space: nowrap; }
@media (max-width: 700px) { .engine img { width: 44px; height: 44px; } .engine strong { font-size: .86rem; } .state-on, .state-soon { font-size: .74rem; } }
.hub > .card { display: flex; flex-direction: column; }
.hub > .card > .empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-bottom: 0; }
.hub > .card > .empty p { margin: 0; }
.support-link { margin: 22px 0 0; }
.support-link a { display: inline-flex; align-items: center; gap: 8px; color: #c4b5fd; font-weight: 600; text-decoration: none; }
.support-link a:hover { color: #fff; }
.support-link svg { width: 20px; height: 20px; color: var(--violet); }
.site-foot { margin-top: 24px; }
main > .section:last-child { padding-bottom: 40px; }
/* Logotipos oficiales de los motores */
.engine img { object-fit: contain; background: rgba(255, 255, 255, .04); }
.engine img.logo-tall { background: transparent; border-radius: 0; }
