/* Demo online RDA: replica web del launcher de escritorio. Solo se sirve en la demo. */
:root {
  --ds-navy: #2f4a7a; --ds-navy-2: #233a62; --ds-teal: #2bb3a6; --ds-amber: #f59e0b;
  --ds-bg: #eef2f7; --ds-text: #1f2937; --ds-muted: #64748b; --ds-side-w: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ds-text); }
body { display: flex; background: var(--ds-bg); overflow: hidden; }
button, select, a { font: inherit; }
.ds-side { width: var(--ds-side-w); flex: 0 0 var(--ds-side-w); background: linear-gradient(180deg, var(--ds-navy), var(--ds-navy-2));
  color: #e2e8f0; display: flex; flex-direction: column; min-height: 0; }
.ds-brand { background: #fff; margin: 10px; border-radius: 10px; padding: 8px; text-align: center; }
.ds-brand img { max-width: 100%; height: auto; display: block; }
.ds-brand small { display: block; color: var(--ds-muted); font-size: 11px; margin-top: 4px; letter-spacing: .4px; }
.ds-nav { flex: 1; overflow-y: auto; padding: 4px 8px; }
.ds-nav button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit;
  text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.ds-nav button:hover { background: rgba(255,255,255,.08); }
.ds-nav button[aria-current="page"] { background: rgba(43,179,166,.28); box-shadow: inset 3px 0 0 var(--ds-teal); color: #fff; }
.ds-nav button[disabled] { opacity: .55; cursor: not-allowed; }
.ds-nav .ico { width: 22px; text-align: center; }
.ds-nav .sub { display: block; font-size: 11px; opacity: .75; }
.ds-nav hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 8px 4px; }
.ds-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,.15); display: grid; gap: 6px; font-size: 12px; }
.ds-foot .status { text-align: center; line-height: 1.5; }
.ds-foot .status b { color: #a7f3d0; font-weight: 600; }
.ds-foot button, .ds-foot a, .ds-foot select { width: 100%; min-height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; text-align: center; text-decoration: none; padding: 6px; display: block; }
.ds-foot .primary { background: var(--ds-teal); border-color: var(--ds-teal); }
.ds-foot select option { color: var(--ds-text); }
.ds-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ds-banner { background: linear-gradient(90deg, #b45309, var(--ds-amber), #b45309); color: #1a1a1a; font-size: 12px; font-weight: 700;
  text-align: center; padding: 4px 10px; letter-spacing: .3px; }
.ds-stage { flex: 1; position: relative; min-height: 0; display: flex; gap: 12px; padding: 0; }
.ds-stage iframe { border: 0; background: #fff; }
.ds-frame { position: relative; flex: 1; display: flex; min-width: 0; min-height: 0; }
.ds-phone .ds-frame { width: 100%; height: 100%; }
.ds-frame iframe { flex: 1; width: 100%; height: 100%; opacity: 0; transition: opacity .2s; }
.ds-frame.ready iframe { opacity: 1; }
.ds-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ds-muted);
  font-size: 15px; background: #f8fafc; }
.ds-frame.ready .ds-loading { display: none; }
.ds-full { flex: 1; width: 100%; height: 100%; }
.ds-phone-wrap { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 12px; }
.ds-phone { width: 390px; height: min(800px, calc(100vh - 70px)); border: 12px solid #111827; border-radius: 34px;
  overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.25); background: #000; }
.ds-phone iframe { width: 100%; height: 100%; }
.ds-stage.single-phone { justify-content: center; background: #dfe6ef; }
.ds-stage.split { background: #dfe6ef; padding-left: 12px; }
.ds-stage.split .ds-frame:first-child { border-radius: 10px; margin: 12px 0; box-shadow: 0 6px 18px rgba(0,0,0,.12); overflow: hidden; }
.ds-note { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; background: #0f172a; color: #fbbf24;
  font-size: 12px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); max-width: 90%; text-align: center; }
.ds-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.72); display: none; align-items: center; justify-content: center;
  padding: 16px; z-index: 50; }
.ds-overlay.open { display: flex; }
.ds-card { background: #fff; border-radius: 14px; max-width: 760px; width: 100%; max-height: 92vh; overflow: auto; padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ds-card h2 { margin: 0 0 6px; font-size: 20px; color: var(--ds-navy); }
.ds-card p { margin: 0 0 14px; color: var(--ds-muted); font-size: 14px; }
.ds-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ds-role { border: 1px solid #cbd5e1; border-radius: 12px; padding: 14px; text-align: left; background: #f8fafc; cursor: pointer; min-height: 44px; }
.ds-role:hover, .ds-role:focus-visible { border-color: var(--ds-teal); background: #f0fdfa; outline: none; }
.ds-role b { display: block; font-size: 16px; color: var(--ds-navy); }
.ds-role span { display: block; font-size: 13px; color: var(--ds-muted); margin-top: 4px; }
.ds-role code { font-size: 12px; color: #0f766e; }
.ds-error { color: #b91c1c; font-size: 13px; min-height: 18px; margin-top: 10px; }
.ds-close { float: right; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.ds-shots img { max-width: 100%; height: auto; border: 1px solid #cbd5e1; border-radius: 8px; margin: 8px 0 4px; display: block; }
.ds-shots figure { margin: 0; }
.ds-shots figcaption { font-size: 13px; color: var(--ds-muted); margin-bottom: 14px; }
.ds-tour { position: fixed; right: 14px; bottom: 14px; width: 340px; max-width: calc(100vw - 28px); background: #fff; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); z-index: 40; font-size: 13px; overflow: hidden; }
.ds-tour header { background: var(--ds-navy); color: #fff; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ds-tour header button { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; cursor: pointer;
  padding: 2px 10px; min-height: 32px; }
.ds-tour ol { margin: 0; padding: 8px 12px 12px 30px; max-height: 46vh; overflow: auto; }
.ds-tour li { margin: 7px 0; line-height: 1.4; }
.ds-tour li button { border: 0; background: none; color: #0f766e; text-decoration: underline; cursor: pointer; padding: 0; text-align: left;
  display: block; width: 100%; line-height: 1.4; }
.ds-tour.collapsed ol, .ds-tour.collapsed .ds-tour-pick { display: none; }
.ds-tour-pick { display: flex; gap: 6px; padding: 8px 12px 0; }
.ds-tour-pick button { flex: 1; min-height: 32px; border: 1px solid #0f766e; background: #fff; color: #0f766e; border-radius: 6px;
  cursor: pointer; font-weight: 600; font-size: 13px; }
.ds-tour-pick button[aria-pressed="true"] { background: #0f766e; color: #fff; }
@media (max-width: 900px) {
  body { flex-direction: column; overflow: auto; height: auto; }
  .ds-side { width: 100%; flex: 0 0 auto; }
  .ds-brand { display: none; }
  .ds-nav { display: flex; overflow-x: auto; padding: 6px; }
  .ds-nav button { width: auto; flex: 0 0 auto; }
  .ds-nav .sub, .ds-nav hr { display: none; }
  .ds-foot { grid-template-columns: repeat(2, 1fr); }
  .ds-foot .status { grid-column: 1 / -1; }
  .ds-main { height: 88vh; flex: 0 0 auto; }
  .ds-stage.split { flex-direction: column; padding: 0; overflow: auto; }
  .ds-stage.split .ds-full { min-height: 70vh; margin: 0; border-radius: 0; }
  .ds-phone { width: min(390px, 92vw); }
  .ds-stage.single-phone .ds-phone-wrap { padding: 0; width: 100%; }
  .ds-stage.single-phone .ds-phone { width: 100%; height: calc(88vh - 24px); border: 0; border-radius: 0; box-shadow: none; }
  .ds-tour { position: static; width: auto; margin: 10px; }
}
