.wrap { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-top) + var(--s-6)) var(--gutter) calc(var(--s-12) + var(--safe-bottom)); }
.top h1 { margin-top: var(--s-4); }
.top .t-subhead { margin-top: var(--s-2); }
.tabs { margin: var(--s-6) 0 var(--s-5); }
.panel { animation: aparecer var(--dur-3) var(--ease-snappy) both; }
.lead { color: var(--text-2); font-size: var(--fs-subhead); margin-bottom: var(--s-4); }
.lead b { color: var(--text); }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-4); }
.acciones label.btn { cursor: pointer; }
.estado { min-height: 18px; margin-bottom: var(--s-3); }
.dui-input { font-size: var(--fs-title-2) !important; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.resultado:empty { display: none; }
.res-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; animation: aparecer var(--dur-3) var(--ease-spring) both; }
.res-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); }
.res-head .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; font-weight: 800; font-size: 20px; }
.ok .ic { background: var(--success-soft); color: var(--success); }
.mal .ic { background: var(--danger-soft); color: var(--danger); }
.dudoso .ic { background: var(--warning-soft); color: var(--warning); }
.res-head b { display: block; font-size: var(--fs-headline); }
.res-head span { font-size: var(--fs-subhead); color: var(--text-2); }
.res-card dl { margin: 0; }
.res-card .r { display: grid; grid-template-columns: 128px 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: .5px solid var(--hairline-2); font-size: var(--fs-subhead); }
.res-card dt { color: var(--text-2); }
.res-card dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.chk { font-weight: 700; }
.chk.si { color: var(--success); } .chk.no { color: var(--danger); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.res-foot { display: grid; gap: var(--s-2); padding: var(--s-4); border-top: .5px solid var(--hairline-2); }
.res-foot .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.credit { margin: var(--s-10) auto 0; max-width: 32ch; text-align: center; font-size: var(--fs-caption); line-height: 1.4; color: var(--text-3); }

.cam { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: #000; margin-bottom: var(--s-4); }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam__guia { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 3px solid #ffd36b; border-radius: 14px;
  box-shadow: 0 0 0 9999px rgb(0 0 0 / .5); transition: border-color var(--dur-2) var(--ease-out); }
.cam__guia.leyendo { border-color: #7d8cff; }
.cam__texto { position: absolute; left: 0; right: 0; bottom: var(--s-4); text-align: center; color: #fff; font-weight: 600; font-size: var(--fs-subhead); padding: 0 var(--s-4); text-shadow: 0 1px 3px rgb(0 0 0 / .6); }

.editor { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: var(--r-md); overflow: hidden; }
.editor img { width: 100%; display: block; }
.editor__caja { position: absolute; border: 3px solid #ffd36b; border-radius: 8px; box-shadow: 0 0 0 9999px rgb(0 0 0 / .45); cursor: move; }
.editor__asa { position: absolute; right: -12px; bottom: -12px; width: 26px; height: 26px; border-radius: 50%; background: #ffd36b; border: 3px solid #fff; cursor: nwse-resize; }
.preview { margin-top: var(--s-3); border-radius: var(--r-sm); max-width: 100%; display: block; border: 1px solid var(--hairline-2); }
