:root { --bg: #0f172a; --card: #1e293b; --txt: #e2e8f0; --mut: #94a3b8; --acc: #38bdf8; --ok: #22c55e; --err: #ef4444; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--txt); }
a { color: var(--acc); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #0b1220; border-bottom: 1px solid #1e293b; flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 800; font-size: 1.2em; color: #fff; text-decoration: none; }
.topbar nav a { margin-left: 14px; text-decoration: none; }
main { max-width: 980px; margin: 0 auto; padding: 24px 16px 60px; }
.card { background: var(--card); border-radius: 12px; padding: 20px; margin: 16px 0; }
.mut { color: var(--mut); }
.btn, button.btn { display: inline-block; background: var(--acc); color: #04222e; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-sec { background: #334155; color: var(--txt); }
.btn-danger { background: var(--err); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #334155; background: #0b1220; color: var(--txt); margin: 6px 0 12px; }
label { font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #334155; font-size: .95em; }
.flash { padding: 12px; border-radius: 8px; margin: 12px 0; }
.flash-ok { background: #052e16; border: 1px solid var(--ok); }
.flash-err { background: #450a0a; border: 1px solid var(--err); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .8em; background: #334155; }
.badge-ok { background: #052e16; color: var(--ok); }
.badge-err { background: #450a0a; color: var(--err); }
.hero { text-align: center; padding: 60px 16px; }
.hero h1 { font-size: 2.4em; margin-bottom: 8px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.plan { background: var(--card); border-radius: 12px; padding: 20px; border: 1px solid #334155; }
.plan.hot { border-color: var(--acc); }
.plan .price { font-size: 1.8em; font-weight: 800; }
small.hint { color: var(--mut); }

/* Progreso de generación (modelo "generación por el agente") */
.gen-item { padding: 12px 0; border-bottom: 1px solid #1e293b; }
.gen-item:last-child { border-bottom: 0; }
.gen-stage { color: var(--mut); font-size: .9em; margin: 4px 0 8px; }
.pbar { height: 10px; border-radius: 6px; background: #1e293b; overflow: hidden; }
.pfill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f59e0b, #fbbf24); transition: width .8s ease; }
