/* beaktv.com — sistema de diseño (ver DESIGN_SYSTEM.md). Sin frameworks ni fuentes externas.
   Colores base = tokens de la app (lib/ui/theme/tokens.dart). */
:root {
  /* Color */
  --bg: #0b101a;
  --bg-deep: #070a11;
  --surface: #121a27;
  --surface-2: #182233;
  --elevated: #202b3b;
  --line: #263246;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #f5f7fa;
  --text-2: #c9d2de;
  --muted: #a7b2c2;
  --accent: #ff7849;
  --accent-strong: #ff8f66;
  --accent-ink: #1a0b04;
  --violet: #8e44f5;
  --magenta: #e0457b;
  --ok: #3dd68c;
  --warn: #ffc266;
  --danger: #ff6b70;
  --brand-gradient: linear-gradient(120deg, #ff7849 0%, #e0457b 45%, #8e44f5 100%);
  /* Tipografía */
  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 2.2vw, 1.5rem);
  --fs-h2: clamp(1.6rem, 3.6vw, 2.25rem);
  --fs-h1: clamp(2.1rem, 6vw, 3.6rem);
  /* Espacio */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  /* Forma */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .7);
  --shadow-glow: 0 30px 80px -30px rgba(142, 68, 245, .45), 0 20px 60px -30px rgba(255, 120, 73, .35);
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px #fff;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1160px;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--fs-md)/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--elevated); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; }
h1 { font-size: var(--fs-h1); line-height: 1.08; margin: 0 0 var(--s4); font-weight: 800; }
h2 { font-size: var(--fs-h2); line-height: 1.18; margin: 0 0 var(--s4); font-weight: 750; }
h3 { font-size: var(--fs-lg); line-height: 1.3; margin: 0 0 var(--s2); font-weight: 700; }
p { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: var(--s2); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 640px) { .wrap { padding: 0 var(--s5); } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 20; font-weight: 700; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Texto */
.lead { font-size: var(--fs-lg); color: var(--text-2); max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.note { color: var(--muted); font-size: var(--fs-sm); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-strong); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); margin: 0 0 var(--s3); }
.gradient-text { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 10; background: rgba(9, 13, 21, .82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line-soft); }
.header-row { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.nav { margin-left: auto; display: none; gap: 2px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; }
.nav a:hover { color: var(--text); background: var(--line-soft); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 120, 73, .14); }
.header .header-cta { display: none; }
.header-link-mobile { margin-left: auto; color: var(--text); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; padding: 10px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); min-height: 44px; display: inline-flex; align-items: center; }
.header-link-mobile[aria-current="page"] { background: rgba(255, 120, 73, .14); }
.header-link-mobile + .menu { margin-left: var(--s2); }
.menu { margin-left: auto; position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--text); }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--surface-2); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 320px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s2); box-shadow: var(--shadow); display: grid; }
.menu-panel a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: var(--r-md); font-weight: 600; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface-2); }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .header .header-cta { display: inline-flex; }
  .menu { display: none; }
  .header-link-mobile { display: none; }
}

main { display: block; }
.page { padding-top: var(--s7); padding-bottom: var(--s8); }
.section { padding: var(--s8) 0; }
.section-tight { padding: var(--s7) 0; }
.section-head { max-width: 46rem; margin-bottom: var(--s6); }
.section-head p { color: var(--text-2); }
.band { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 700 var(--fs-md)/1.2 var(--font); text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgba(255, 120, 73, .7);
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--elevated); color: var(--muted); box-shadow: none; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 var(--s4); }

/* Chips y estados */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .01em; background: var(--line-soft); color: var(--text-2); border: 1px solid var(--line); }
.chip-ok { color: #8ef0bd; background: rgba(61, 214, 140, .1); border-color: rgba(61, 214, 140, .3); }
.chip-warn { color: var(--warn); background: rgba(255, 194, 102, .08); border-color: rgba(255, 194, 102, .3); }
.chip-no { color: #ffadb0; background: rgba(255, 107, 112, .08); border-color: rgba(255, 107, 112, .3); }
.chip-accent { color: var(--accent-strong); background: rgba(255, 120, 73, .1); border-color: rgba(255, 120, 73, .35); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Tarjetas */
.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-2 { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); }
.card p { color: var(--text-2); margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: var(--s4); background: rgba(255, 120, 73, .12); color: var(--accent-strong); }
.card .icon svg { width: 22px; height: 22px; }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s5); margin: var(--s5) 0; }
.panel > :last-child, .card > :last-child { margin-bottom: 0; }
.callout { border-left: 3px solid var(--accent); background: rgba(255, 120, 73, .06); padding: var(--s4) var(--s5); border-radius: 0 var(--r-md) var(--r-md) 0; margin: var(--s5) 0; }
.callout-warn { border-left-color: var(--warn); background: rgba(255, 194, 102, .06); }

/* Hero */
.hero { position: relative; padding: var(--s8) 0 var(--s7); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 620px; background: radial-gradient(closest-side, rgba(142, 68, 245, .28), transparent 70%), radial-gradient(closest-side at 30% 60%, rgba(255, 120, 73, .22), transparent 70%); filter: blur(10px); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s4); }
.hero-meta span::before { content: "•"; margin-right: var(--s2); color: var(--accent); }
.hero-meta span:first-child::before { content: none; }

/* Pantalla decorativa del hero (no simula la app) */
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-xl); padding: 10px; background: linear-gradient(160deg, #2a3446, #0e141f); box-shadow: var(--shadow-glow); }
.screen-inner { position: absolute; inset: 10px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 80% 10%, rgba(142, 68, 245, .45), transparent 55%), radial-gradient(90% 80% at 10% 100%, rgba(255, 120, 73, .4), transparent 60%), #0a0f18; display: grid; place-items: center; }
.screen-inner img { width: 34%; max-width: 180px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); }
.screen-stand { width: 34%; height: 12px; margin: 10px auto 0; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #1f2836, #121823); }
.device-pills { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: 92%; }
.device-pills .chip { background: rgba(12, 17, 27, .92); }

/* Galería de capturas */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s3); }
@media (min-width: 900px) { .shots { grid-auto-columns: calc((100% - 2 * var(--s4)) / 3); } }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.shots figcaption { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s2); }
.shots-title { font-size: var(--fs-md, 1.15rem); margin: var(--s5, 1.5rem) 0 var(--s3); }
/* Móvil: capturas verticales (9:16), sin recortar. */
.shots-portrait { grid-auto-columns: minmax(46%, 1fr); }
@media (min-width: 900px) { .shots-portrait { grid-auto-columns: calc((100% - 2 * var(--s4)) / 3); max-width: 760px; } }
.shots-portrait img { aspect-ratio: 9 / 16; object-fit: contain; }
.shots-empty { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.shot-slot { aspect-ratio: 16 / 9; border-radius: var(--r-md); border: 1px dashed var(--line); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 12px, transparent 12px 24px), var(--surface); display: grid; place-items: center; text-align: center; padding: var(--s4); color: var(--muted); font-size: var(--fs-sm); }

/* Dispositivos */
.devices { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.device { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.device h3 { margin: 0; }
.device p { color: var(--text-2); margin: 0; font-size: var(--fs-sm); }
.device .meta { margin-top: auto; color: var(--muted); font-size: var(--fs-sm); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > li { counter-increment: s; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s5); margin: 0; }
.steps > li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-gradient); color: #fff; font-weight: 800; margin-bottom: var(--s3); }
.steps > li h3 { margin-bottom: var(--s1); }
.steps > li p { color: var(--text-2); margin: 0; }
.steps-v { list-style: none; padding: 0; counter-reset: s; margin: var(--s4) 0; }
.steps-v > li { counter-increment: s; position: relative; padding: 0 0 var(--s5) 52px; margin: 0; }
.steps-v > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--elevated); border: 1px solid var(--line); color: var(--text); font-weight: 800; font-size: var(--fs-sm); }
.steps-v > li::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 6px; width: 1px; background: var(--line); }
.steps-v > li:last-child::after { content: none; }
.steps-v > li:last-child { padding-bottom: 0; }

/* Demostración de vinculación (ilustración) */
.pair-demo { display: grid; gap: var(--s4); align-items: stretch; }
@media (min-width: 900px) { .pair-demo { grid-template-columns: 1fr auto 1fr auto 1fr; } }
.pair-step { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s5); }
.pair-step p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
.pair-arrow { display: none; align-self: center; color: var(--muted); }
@media (min-width: 900px) { .pair-arrow { display: block; } }
.code-display { font-family: var(--mono); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: .14em; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); text-align: center; margin: var(--s3) 0; color: var(--text); }
.tag-example { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Descargas */
.dl-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.dl-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); box-shadow: var(--shadow); }
.dl-card header { display: flex; align-items: center; gap: var(--s3); }
.dl-card header .icon { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(255, 120, 73, .12); color: var(--accent-strong); flex: none; }
.dl-card header .icon svg { width: 24px; height: 24px; }
.dl-card h2, .dl-card h3 { font-size: var(--fs-xl); margin: 0; }
.dl-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s4); margin: 0; font-size: var(--fs-sm); }
.dl-facts dt { color: var(--muted); }
.dl-facts dd { margin: 0; color: var(--text-2); }
.dl-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s2); }
.hash { display: block; font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-2); background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s2) var(--s3); overflow-wrap: anywhere; }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-lg); margin: var(--s4) 0; }
.status { width: 100%; border-collapse: collapse; min-width: 560px; }
.status th, .status td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: var(--fs-sm); }
.status thead th { color: var(--muted); font-weight: 700; background: var(--surface); }
.status tr:last-child td { border-bottom: 0; }

/* Pestañas de sistema (instalar) */
.os-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 var(--s5); }
.os-nav a { text-decoration: none; }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 0 var(--s5); margin-bottom: var(--s2); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent-strong); font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 var(--s4); color: var(--text-2); }

/* Formularios (vincular) */
.stepper { list-style: none; padding: 0; display: flex; gap: var(--s2); margin: 0 0 var(--s5); flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: var(--s2); margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.stepper li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: var(--fs-xs); }
.stepper li + li::before { content: ""; width: 24px; height: 1px; background: var(--line); }
@media (max-width: 520px) { .stepper { flex-direction: column; gap: 6px; } .stepper li + li::before { content: none; } }
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: var(--s5); max-width: 640px; }
@media (min-width: 640px) { .form-card { padding: var(--s6); } }
.form-card h2 { font-size: var(--fs-xl); }
form label { display: block; font-weight: 700; margin: var(--s4) 0 6px; font-size: var(--fs-sm); }
form input { width: 100%; font: inherit; color: var(--text); background: var(--bg-deep); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; min-height: 48px; }
form input:hover { border-color: #33415a; }
form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(255, 120, 73, .2); }
form input[aria-invalid="true"] { border-color: var(--danger); }
#code { font-family: var(--mono); font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: .22em; text-transform: uppercase; text-align: center; max-width: 340px; padding: 14px; }
form .btn { margin-top: var(--s5); }
form details { margin-top: var(--s4); }
form details summary { cursor: pointer; color: var(--text-2); font-weight: 600; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: var(--s4) 0 var(--s2); background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r-pill); }
.tabs [role="tab"] { font: inherit; font-weight: 700; color: var(--text-2); background: transparent; border: 0; border-radius: var(--r-pill); padding: 10px 18px; cursor: pointer; min-height: 44px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.device-line { display: flex; align-items: center; gap: var(--s2); color: var(--text-2); }
.lock-note { display: flex; gap: var(--s2); align-items: flex-start; color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s4); }
.lock-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ok); }
.error { color: var(--danger); font-weight: 700; }
.field-error { margin: 6px 0 0; font-size: var(--fs-sm); }
.device-line:focus { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-md); }
#otro-codigo { margin-top: var(--s3); }
#otro-codigo[hidden], .field-error[hidden] { display: none; }
.ok { color: var(--ok); font-weight: 700; }
#estado { font-size: var(--fs-lg); font-weight: 700; margin: 0; }
.device-lists { margin: var(--s4) 0 var(--s5); }
.device-lists h2, #nueva h2 { font-size: var(--fs-lg); margin: 0 0 var(--s2); }
.device-lists ul { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.device-lists li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: var(--s3); background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r-md); }
.device-lists .list-info { flex: 1 1 14rem; min-width: 0; }
.device-lists .list-info strong { display: block; overflow-wrap: anywhere; }
.device-lists .list-info span { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.device-lists .list-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.mode-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin: var(--s4) 0 0; padding: var(--s3); border: 1.5px solid var(--accent); border-radius: var(--r-md); }
.mode-banner p { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.mode-banner[hidden], .device-lists[hidden], .device-lists ul[hidden] { display: none; }

.pending { background: #5a2a00; color: #ffd2b8; padding: 0 4px; border-radius: 4px; }
.pending-box { border: 2px dashed var(--accent); padding: 12px 16px; border-radius: var(--r-md); color: #ffd2b8; }

/* Migas */
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s4); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

/* Artículos (guías) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--s7); font-size: clamp(1.35rem, 3vw, 1.75rem); }
.prose h3 { margin-top: var(--s5); }
.link-list { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.link-list li { margin: 0; }
.link-card { display: block; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s4) var(--s5); color: var(--text); text-decoration: none; }
.link-card:hover { border-color: var(--line); background: var(--surface-2); }
.link-card strong { display: block; }
.link-card span { color: var(--muted); font-size: var(--fs-sm); }

/* Banda final */
.final-cta { text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(142, 68, 245, .22), transparent 60%), var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: var(--s7) var(--s5); }
.final-cta .cta { justify-content: center; }

/* Pie */
.footer { border-top: 1px solid var(--line-soft); padding: var(--s7) 0 var(--s6); background: var(--bg-deep); margin-top: var(--s7); }
.footer-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.footer a { display: block; color: var(--text-2); text-decoration: none; padding: 5px 0; font-size: var(--fs-sm); }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer-title { font-weight: 800; margin: 0 0 var(--s2); font-size: var(--fs-sm); color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: var(--s6); padding-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--muted); font-size: var(--fs-xs); }
.footer .brand { margin-bottom: var(--s3); }

/* Movimiento: pequeño y solo si el usuario no pide reducirlo */
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .card, .link-card, .menu-panel a { transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
  .card:hover, .link-card:hover { transform: translateY(-2px); }
  .reveal { animation: rise .6s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .btn { border: 1px solid ButtonText; } .chip { border: 1px solid CanvasText; } }

/* Utilidades (la CSP no permite estilos en línea) */
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }
.text-left { text-align: left; } .cta.cta-start, .final-cta .cta.cta-start { justify-content: flex-start; }
