/* Brandius Automatiza — web. Mismo sistema que el panel de la extensión:
   oscuro premium, Lexend, violeta solo como acento, marca cian→violeta. */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/lexend-var.woff2") format("woff2"); }

:root {
  --background: #0b0b0f;
  --surface: #111116;
  --surface-elevated: #17171e;
  --surface-sunken: #0d0d12;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #6f6f78;
  --accent: #7c3aed;
  --accent-2: #6366f1;
  --accent-soft: rgba(124, 58, 237, 0.14);
  --accent-ring: rgba(124, 58, 237, 0.35);
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --success: #4ade80;
  --warn: #fbbf24;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: 200ms cubic-bezier(0.2, 0, 0, 1);
  --font: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--text-primary);
  background:
    radial-gradient(900px 500px at 70% -200px, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(700px 400px at 0% 10%, rgba(34, 211, 238, 0.05), transparent 70%),
    var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: #d8d4ff; white-space: nowrap; }
b { font-weight: 600; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 14px; height: 14px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--font); padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.btn-primary { background: linear-gradient(180deg, #8b5cf6, var(--accent)); color: #fff; box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-secondary { background: var(--surface-elevated); border-color: var(--border-strong); color: var(--text-primary); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.22); }
.btn-premium { background: linear-gradient(90deg, var(--cyan), var(--violet)); color: #0b0b0f; font-weight: 600; }
.btn-lg { padding: 16px 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 15, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; }
.brand b { font-weight: 600; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color var(--ease), background var(--ease); }
.nav-links a:hover { color: var(--text-primary); background: var(--surface-elevated); }
.nav-burger { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text-primary); border-radius: 10px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: rgba(11, 11, 15, 0.97); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-cta { margin-left: auto; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 420px) { .nav-cta { display: none; } .nav-burger { margin-left: auto; } }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 40px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); text-decoration: none; border: 1px solid var(--border-strong); background: var(--surface); padding: 6px 12px 6px 10px; border-radius: 999px; max-width: 100%; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); flex: none; }
.pill:hover { color: var(--text-primary); }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin: 20px 0 18px; background: linear-gradient(180deg, #fff 30%, #b9b6d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 0 28px; }
.lead b { color: var(--text-primary); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; scroll-margin-top: 100px; }
@media (max-width: 480px) { .hero-ctas .btn { width: 100%; } }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; color: var(--text-secondary); font-size: 14px; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts .i { color: var(--success); width: 16px; height: 16px; }

/* Maqueta */
.mock { position: relative; min-height: 440px; }
.mock-flow { position: absolute; inset: 0 22% 8% 0; background: var(--surface-sunken); border: 2px solid var(--accent); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12), 0 30px 80px rgba(0,0,0,0.5); animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.06), 0 30px 80px rgba(0,0,0,0.5); } }
.mock-flow-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mock-flow-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2a2a33; }
.mock-flow-bar em { font-style: normal; font-size: 11px; color: var(--text-muted); margin-left: 10px; background: var(--surface-sunken); padding: 3px 10px; border-radius: 6px; }
.mock-flow-body { padding: 16px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mg { aspect-ratio: 1; border-radius: 10px; background: var(--surface-elevated); border: 1px solid var(--border); display: grid; place-items: center; }
.mg.done { background: var(--img) center / cover; border-color: transparent; }
.mg.working { background: linear-gradient(110deg, var(--surface-elevated) 30%, #24243a 50%, var(--surface-elevated) 70%) 0 0 / 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mock-run { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; background: var(--accent); color: #fff; padding: 7px 12px; border-radius: 999px; }
.mock-run .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--violet); border-radius: 50%; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.mock-panel { position: absolute; right: 0; top: 36px; width: min(310px, 64%); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 14px; box-shadow: 0 40px 90px rgba(0,0,0,0.6); font-size: 12px; }
.mp-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.mp-head strong { display: block; font-size: 13px; font-weight: 600; }
.mp-head small { color: var(--text-muted); font-size: 10.5px; }
.mp-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.mp-seg span { font-size: 9.5px; text-align: center; padding: 6px 2px; border-radius: 7px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-seg .on { background: var(--surface-elevated); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-strong); }
.mp-card { background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.mp-label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin-bottom: 8px; }
.mp-label .i { width: 13px; height: 13px; color: var(--text-secondary); }
.mp-tog { margin-left: auto; display: flex; background: var(--surface-sunken); border-radius: 7px; padding: 2px; font-size: 10px; }
.mp-tog b, .mp-tog i { font-style: normal; font-weight: 500; padding: 3px 7px; border-radius: 5px; color: var(--text-muted); }
.mp-tog b { background: var(--accent-soft); color: #c4b5fd; }
.mp-text { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--text-secondary); display: grid; gap: 3px; min-height: 64px; }
.mp-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-count { text-align: right; color: var(--text-muted); font-size: 10px; margin-top: 4px; }
.mp-actions { display: flex; gap: 6px; margin: 10px 0; }
.mp-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 4px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-elevated); font-size: 10.5px; white-space: nowrap; }
.mp-btn .i { width: 11px; height: 11px; fill: currentColor; }
.mp-btn.pri { background: var(--accent); border-color: transparent; color: #fff; }
.mp-queue { display: grid; gap: 4px; }
.q { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; padding: 6px 8px; border-radius: 7px; background: var(--surface-sunken); color: var(--text-secondary); }
.q .i { width: 12px; height: 12px; }
.q.ok .i { color: var(--success); }
.q.run { color: #c4b5fd; box-shadow: inset 0 0 0 1px var(--accent-ring); }
.q .spin { width: 11px; height: 11px; }
@media (max-width: 960px) { .mock { max-width: 560px; margin: 0 auto; width: 100%; } }
@media (max-width: 520px) {
  .mock { min-height: 0; display: grid; gap: 14px; }
  .mock-flow, .mock-panel { position: relative; inset: auto; width: 100%; top: 0; }
  .mock-flow { min-height: 290px; }
}

/* Secciones */
.sec { padding: 88px 0; }
.sec-alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.025)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .sec { padding: 64px 0; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 500; color: #a78bfa; margin: 0 0 12px; }
.h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 16px; max-width: 760px; }
.sub { color: var(--text-secondary); font-size: 17px; max-width: 640px; margin: 0 0 36px; }
.h2 + .screens, .h2 + .feats, .h2 + .news, .h2 + .plans, .h2 + .install, .h2 + .faq { margin-top: 40px; }

.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .screens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .screens { grid-template-columns: 1fr; } }
.screen { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color var(--ease), transform var(--ease); }
.screen:hover { border-color: var(--accent-ring); transform: translateY(-2px); }
.screen-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: #c4b5fd; margin-bottom: 18px; }
.screen-ico .i { width: 22px; height: 22px; }
.screen h3, .feat h3, .news-card h3, .tl-num + div h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.screen p, .feat p, .news-card p { color: var(--text-secondary); font-size: 15px; margin: 0; }
.screen code, .feat code { white-space: normal; word-break: break-word; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feat > .i { width: 22px; height: 22px; color: var(--cyan); margin-top: 3px; }

.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .styles { grid-template-columns: repeat(2, 1fr); } }
.styles figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1; }
.styles img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.2, 0, 0, 1); }
.styles figure:hover img { transform: scale(1.05); }
.styles figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 14px; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }

.ritmo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .ritmo { grid-template-columns: 1fr; gap: 24px; } }
.ritmo .sub { margin-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tl-num { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.timeline p { margin: 0; color: var(--text-secondary); font-size: 15px; }
@media (max-width: 420px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }
.news-card { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.news-num { display: block; font-family: var(--mono); font-size: 13px; color: #a78bfa; margin-bottom: 14px; }
.tip { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-ring); color: var(--text-secondary); font-size: 15px; }
.tip .i { color: #c4b5fd; margin-top: 3px; }
.tip b { color: var(--text-primary); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.plan h3 { margin: 0; font-size: 18px; font-weight: 500; color: var(--text-secondary); }
.price { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 20px; }
.price small { font-size: 15px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--text-secondary); font-size: 15px; }
.plan li .i { color: var(--success); margin-top: 3px; width: 16px; height: 16px; }
.plan-pro { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--cyan), var(--violet)) border-box; border: 1px solid transparent; box-shadow: 0 20px 60px rgba(124, 58, 237, 0.18); }
.plan-pro li .i { color: var(--cyan); }
.badge { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: #c4b5fd; }
.fine { color: var(--text-muted); font-size: 13px; margin: 14px 0 0; }

.install { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .install { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); }
.steps li b { color: var(--text-primary); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.steps a { color: #c4b5fd; text-decoration: none; }
.steps code { white-space: normal; word-break: break-all; }
.copy { cursor: pointer; }
.copy:hover { border-color: var(--accent-ring); }
.install-side { display: grid; gap: 16px; }
.box { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.box h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.box ul, .box ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-secondary); font-size: 15px; }
.box b { color: var(--text-primary); }
.box-warn { border-color: rgba(251, 191, 36, 0.25); background: linear-gradient(180deg, rgba(251, 191, 36, 0.05), transparent), var(--surface); }
.box-warn h3 { color: var(--warn); }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--ease); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--text-muted); transition: transform var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--text-secondary); font-size: 15px; }
.faq code { white-space: normal; }

.cta-final { padding: 96px 0; text-align: center; background: radial-gradient(600px 300px at 50% 100%, rgba(124, 58, 237, 0.18), transparent 70%); }
.cta-in { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-in h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; margin: 0; max-width: 720px; }
@media (max-width: 480px) { .cta-in .btn { width: 100%; white-space: normal; } }

.foot { border-top: 1px solid var(--border); padding: 32px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot p { margin: 0; color: var(--text-muted); font-size: 13px; flex: 1; min-width: 240px; }
.foot p a { color: var(--text-secondary); }
.foot .ver { flex: none; min-width: 0; font-family: var(--mono); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-elevated); border: 1px solid var(--border-strong); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 100; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }

/* Página Premium */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.solo-card { width: 100%; max-width: 440px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.solo-card img { margin: 0 auto 18px; }
.solo-card h1 { font-size: 26px; margin: 0 0 10px; letter-spacing: -0.02em; }
.solo-card p { color: var(--text-secondary); margin: 0 0 22px; }
.solo-card .who { font-size: 14px; color: var(--text-muted); margin-top: 16px; word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
