/* =========================================================
   💾 AstroBackup Dashboard — estilo galáctico
   (misma familia visual que www.astrosoftware.xyz)
========================================================= */
@font-face { font-family: Poppins; src: url(/static/fonts/Poppins_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/static/fonts/Poppins_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(/static/fonts/Poppins_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Poppins; src: url(/static/fonts/Poppins_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #07060f; --bg-2: #0d0b1d; --panel: rgba(20, 16, 42, .66); --panel-solid: #141029; --panel-2: #1a1535;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .14);
  --text: #f4f2ff; --muted: #a19cbf; --faint: #6f6a8f;
  --sky: #38bdf8; --green: #22c55e; --amber: #f59e0b; --red: #ef4444; --violet: #8b5cf6; --pink: #ec4899;
  --series: #3987e5;
  --grad: linear-gradient(135deg, #60a5fa, #a78bfa);
  --grad-2: linear-gradient(135deg, #8b5cf6, #38bdf8);
  --radius: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 15.5px/1.6 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emoji { width: 1.35em; height: 1.35em; display: inline-block; vertical-align: -.3em; object-fit: contain; }
.emoji-lg { width: 44px; height: 44px; }
.hidden { display: none !important; }

/* Fondo estrellado */
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(56, 189, 248, .20), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(34, 197, 94, .08), transparent 60%),
    var(--bg); }
.starfield::before, .starfield::after { content: ""; position: absolute; inset: 0; background-repeat: repeat; opacity: .5; }
.starfield::before { background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 140px 80px, #cbd5ff, transparent), radial-gradient(1.5px 1.5px at 260px 160px, #fff, transparent), radial-gradient(1px 1px at 330px 40px, #bae6fd, transparent); background-size: 360px 220px; }
.starfield::after { background-image: radial-gradient(1px 1px at 60px 120px, #fff, transparent), radial-gradient(1.2px 1.2px at 210px 20px, #bbf7d0, transparent); background-size: 280px 260px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .7; } }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: rgba(7, 6, 15, .65); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 24px; color: var(--muted); font-weight: 500; font-size: .93rem; }
.links a:hover, .links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; width: 40px; height: 38px; cursor: pointer; font-size: 1.1rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 19px; border-radius: 999px; font-weight: 600; font-size: .93rem; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .08); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border: 0; color: #04121a; box-shadow: 0 10px 30px -8px rgba(56, 189, 248, .6); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 14px 36px -8px rgba(34, 197, 94, .6); }
.btn-danger { background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .45); color: #fecaca; }
.btn-danger:hover { background: rgba(239, 68, 68, .24); }
.btn-sm { padding: 7px 13px; font-size: .84rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 84px 0 56px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--muted); font-size: .85rem; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; }
.dot.off { background: var(--red); box-shadow: 0 0 10px var(--red); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); margin: 22px auto 18px; max-width: 920px; font-weight: 800; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 700px; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-shot { margin: 56px auto 0; max-width: 980px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -30px rgba(56, 189, 248, .45); }

/* Tarjetas genéricas */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .88rem; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.stats-row .card { text-align: center; }

section { padding: 76px 0; }
.head { text-align: center; max-width: 740px; margin: 0 auto 42px; }
.kicker { color: var(--sky); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.head h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: 10px 0 12px; }
.head p { color: var(--muted); font-size: 1.05rem; }

.feature { position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .4); }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico img { width: 34px; height: 34px; }
.feature p { color: var(--muted); font-size: .93rem; }

.showcase { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; margin-bottom: 46px; }
.showcase.rev { grid-template-columns: .9fr 1.1fr; }
.showcase.rev .shot { order: 2; }
.shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.showcase h3 { font-size: 1.7rem; margin: 8px 0 10px; }
.showcase ul { list-style: none; display: grid; gap: 9px; margin-top: 14px; }
.showcase li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.showcase li img { width: 22px; height: 22px; margin-top: 2px; flex: none; }

.band { position: relative; text-align: center; border-radius: 28px; padding: 60px 28px; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(34, 197, 94, .12)), var(--panel-solid); }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.band p { color: #d5e9f5; max-width: 560px; margin: 0 auto 26px; }

footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: .9rem; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Selector de servidores */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.server { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 18px; }
.server .gicon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; background: var(--grad-2); overflow: hidden; border: 3px solid var(--line-strong); }
.server .gicon img { width: 100%; height: 100%; object-fit: cover; }
.server h3 { font-size: 1.02rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server.nobot { opacity: .78; }

/* ===== Panel de servidor ===== */
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 28px 0 40px; align-items: start; }
.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 4px; }
.side .guild-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side .guild-head .gicon { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--grad-2); display: grid; place-items: center; font-weight: 800; flex: none; }
.side .guild-head b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side select { width: 100%; margin: 0 0 10px; }
.tab { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: .93rem; cursor: pointer; border: 1px solid transparent; background: none; text-align: left; font-family: inherit; width: 100%; }
.tab img { width: 22px; height: 22px; }
.tab:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.tab.active { background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .3); color: var(--text); }
.side .sep { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 12px 4px; }

.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h1 { font-size: 1.8rem; display: flex; align-items: center; gap: 10px; }
.panel-head p { color: var(--muted); }
.section { display: none; }
.section.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Medidor de blindaje */
.armor { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.gauge { position: relative; width: 200px; height: 200px; margin-inline: auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(135deg); }
.gauge .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .val b { font-size: 3rem; font-weight: 800; line-height: 1; display: block; }
.gauge .val span { font-size: .9rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--faint); }
.chip.on { color: #bbf7d0; border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.kpi { display: flex; align-items: center; gap: 14px; }
.kpi img { width: 42px; height: 42px; flex: none; }
.kpi b { font-size: 1.6rem; font-weight: 800; display: block; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .84rem; }

/* Gráficas */
.chart { width: 100%; height: 220px; position: relative; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .axis { fill: var(--faint); font-size: 11px; }
.chart .grid-line { stroke: rgba(255, 255, 255, .06); }
.chart .bar { fill: var(--series); }
.chart .bar:hover, .chart .bar.hl { fill: #6aa7ee; }
.tooltip { position: fixed; pointer-events: none; z-index: 50; background: #0c0a1c; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 11px; font-size: .84rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); white-space: nowrap; }
.tooltip b { display: block; font-size: 1rem; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; font-size: .88rem; }
.hbar .track { height: 12px; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, .04); overflow: hidden; }
.hbar .fill { height: 100%; background: var(--series); border-radius: 0 4px 4px 0; }
.hbar span:first-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar b { text-align: right; }

/* Formularios */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .lbl { font-weight: 600; font-size: .9rem; }
.field small, .hint { color: var(--faint); font-size: .8rem; }
input[type=text], input[type=number], select, textarea { width: 100%; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-strong); color: var(--text); padding: 10px 12px; border-radius: 12px; font: inherit; font-size: .92rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(56, 189, 248, .5); outline-offset: 1px; }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.toggle-row .t { display: flex; gap: 12px; align-items: center; }
.toggle-row .t img { width: 30px; height: 30px; flex: none; }
.toggle-row .t b { display: block; font-size: .95rem; }
.toggle-row .t small { color: var(--muted); font-size: .82rem; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); min-height: 46px; align-items: center; }
.tags .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 8px; background: rgba(56, 189, 248, .12); border: 1px solid rgba(56, 189, 248, .3); font-size: .84rem; }
.tags .tag button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px; }
.tags input { flex: 1; min-width: 140px; border: 0; background: none; padding: 6px; }
.tags input:focus { outline: none; }

.savebar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Tablas / listas */
.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.item .grow { flex: 1; min-width: 0; }
.item .grow b { display: block; font-size: .93rem; }
.item .grow small { color: var(--muted); font-size: .82rem; display: block; overflow: hidden; text-overflow: ellipsis; }
.item img.av { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.badge.red { color: #fecaca; border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .1); }
.badge.amber { color: #fde68a; border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); }
.badge.green { color: #bbf7d0; border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .1); }
.badge.sky { color: #bae6fd; border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .1); }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.empty img { width: 64px; height: 64px; margin: 0 auto 10px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

/* Avisos y notificaciones */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #0c0a1c; border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); max-width: min(420px, calc(100% - 40px)); animation: fade .2s ease; }
.toast.err { border-color: rgba(239, 68, 68, .5); }
.toast img { width: 26px; height: 26px; }
.notice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(56, 189, 248, .35); background: rgba(56, 189, 248, .08); margin-bottom: 18px; }
.notice img { width: 32px; height: 32px; flex: none; }
.notice.warn { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); }

/* Verificación */
.verify-box { max-width: 520px; margin: 60px auto; text-align: center; padding: 40px 28px; }
.verify-box .gicon { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; background: var(--grad-2); display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; border: 3px solid rgba(34, 197, 94, .5); }
.verify-box h1 { font-size: 1.7rem; margin-bottom: 8px; }
.verify-box .cf-turnstile { display: flex; justify-content: center; margin: 22px 0; min-height: 66px; }
.big-emoji { width: 84px; height: 84px; margin: 0 auto 12px; }

/* Comandos */
.cmd { display: grid; gap: 6px; }
.cmd code { font-family: ui-monospace, Consolas, monospace; color: var(--sky); font-size: .98rem; font-weight: 600; }
.subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.subs span { font-size: .78rem; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--muted); }
.search { max-width: 420px; margin: 0 auto 26px; }

.legal { max-width: 820px; margin: 40px auto; }
.legal h1 { font-size: 2.2rem; margin-bottom: 18px; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 8px; }
.legal ul { padding-left: 22px; }
.legal h3 { font-size: 1.02rem; margin: 16px 0 6px; color: var(--text); }
.legal code { color: var(--sky); font-size: .9em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.toc a { font-size: .85rem; padding: 4px 10px; border-radius: 8px; background: rgba(56, 189, 248, .08); color: var(--muted); }
.toc a:hover { color: var(--text); }
.legal h2 { scroll-margin-top: 84px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal-table th { color: var(--text); font-weight: 600; }
.legal-en { margin-top: 30px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(139, 92, 246, .06); }
.legal-en summary { cursor: pointer; font-weight: 700; color: var(--text); }
.legal-en p { margin-top: 10px; }
@media (max-width: 720px) { .legal-table { font-size: .82rem; } .legal-table th, .legal-table td { padding: 7px 6px; } }

@media (max-width: 980px) {
  .g3, .g4, .stats-row, .kpis { grid-template-columns: repeat(2, 1fr); }
  .showcase, .showcase.rev { grid-template-columns: 1fr; }
  .showcase.rev .shot { order: 0; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; gap: 6px; }
  .side .guild-head, .side .sep, .side select { display: none; }
  .tab { white-space: nowrap; width: auto; }
  .armor { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7, 6, 15, .97); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .links.open { display: flex; }
  .links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav .btn-hide-sm { display: none; }
  .g2, .row, .row3 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  section { padding: 54px 0; }
  .hbar { grid-template-columns: 90px 1fr 36px; }
}
@media (max-width: 460px) {
  .g3, .g4 { grid-template-columns: 1fr; }
  .stats-row, .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-row .card, .kpis .card { padding: 16px 12px; }
  .stat b { font-size: 1.45rem; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kpi img { width: 34px; height: 34px; }
  .kpi b { font-size: 1.3rem; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ================= AstroBackup ================= */
.head h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: 10px 0 12px; }
.faq-head { margin-top: 64px; }
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--sky); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 10px; }
label.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.code-row { cursor: pointer; }
.lang-btn { min-width: 44px; }
.page { padding: 34px 0 56px; }
.sub { font-size: 1.25rem; margin: 34px 0 14px; }
.mt { margin-top: 18px; }
.big { font-size: 1.7rem; line-height: 1; flex: none; }
.feature .ico.big { font-size: 1.8rem; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cta-row select { width: auto; min-width: 220px; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters input { max-width: 320px; }
.chips button.chip { cursor: pointer; font-family: inherit; }
.backup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bk { display: grid; gap: 12px; transition: transform .2s, border-color .2s; }
.bk:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, .45); }
.bk-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bk-top .grow { min-width: 0; }
.bk-top b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-top small { color: var(--muted); }
.bk-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.gicon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; background: var(--grad-2); overflow: hidden; flex: none; border: 2px solid var(--line-strong); }
.gicon.sm { width: 44px; height: 44px; font-size: 1rem; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.back { color: var(--muted); display: inline-block; margin-bottom: 14px; }
.back:hover { color: var(--text); }
.bk-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 4px; }
.bk-hero .grow { min-width: 0; }
.bk-hero h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); overflow-wrap: anywhere; }
.bk-hero code, .notice code { color: var(--sky); overflow-wrap: anywhere; }
.bk-hero .chips { margin-top: 10px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 18px 0; }
.actions .grow { flex: 1; min-width: 200px; }
.tree { max-height: 560px; overflow: auto; font-size: .92rem; }
.tree .cat { color: var(--faint); font-size: .75rem; font-weight: 700; letter-spacing: .06em; margin: 14px 0 4px; }
.tree .cat:first-child { margin-top: 4px; }
.tree .ch { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; color: var(--muted); }
.tree .ch:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.tree .ch .t { width: 18px; text-align: center; color: var(--faint); }
.roles { display: flex; flex-wrap: wrap; gap: 6px; max-height: 340px; overflow: auto; }
.role { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .82rem; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); background: color-mix(in srgb, var(--rc) 12%, transparent); }
.role::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rc); }
.role img { width: 16px; height: 16px; }
.emojis { display: flex; flex-wrap: wrap; gap: 8px; }
.emojis img { width: 34px; height: 34px; object-fit: contain; }
.plan.premium { border-color: rgba(167, 139, 250, .5); box-shadow: 0 20px 60px -30px rgba(167, 139, 250, .6); }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 12px; color: var(--muted); }
.checks b { color: var(--text); }
.dialog { margin: auto; background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-strong); border-radius: 20px; padding: 24px; width: min(480px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars .bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--grad); }
.kpi .big { font-size: 2rem; }
/* Vista previa del inicio */
.mock { display: grid; grid-template-columns: 240px 1fr; max-width: 900px; margin: 52px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel-solid); text-align: left; box-shadow: 0 40px 120px -30px rgba(96, 165, 250, .45); }
.mock-side { background: #110e24; padding: 16px; font-size: .88rem; color: var(--muted); }
.mock-head { display: flex; gap: 8px; align-items: center; color: var(--text); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mock-head img { width: 26px; height: 26px; border-radius: 50%; }
.mock-side .cat { font-size: .72rem; letter-spacing: .06em; color: var(--faint); margin: 12px 0 4px; font-weight: 700; }
.mock-side .ch { padding: 3px 8px; border-radius: 6px; }
.mock-main { padding: 22px; display: grid; gap: 12px; align-content: start; }
.mock-card { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); }
.mock-card.ok { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); color: var(--text); }
.mock-card code { color: var(--sky); }
@media (max-width: 720px) {
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .bk-hero { flex-direction: column; text-align: center; }
  .cta-row select, .filters input { width: 100%; max-width: none; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .nav-right { gap: 6px; }
}
