@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Firma; src: url(/fonts/firma.woff2) format('woff2'); font-display: block; }
@font-face { font-family: Caveat; src: url(/fonts/caveat.woff2) format('woff2'); font-weight: 600; font-display: block; }

:root {
  --bg: #f3f2ee; --card: #fff; --ink: #16161a; --ink2: #3a3a42; --muted: #75757d; --soft: #a3a3aa;
  --line: #e6e5e0; --line2: #efeee9; --fill: #f6f5f1; --ok: #17875a; --ok-bg: #e7f5ee; --warn: #a86b12; --warn-bg: #fbf1df;
  --bad: #c2362b; --bad-bg: #fbe9e7; --blue: #2f5bea; --r: 18px;
  --sh: 0 1px 2px rgba(20,20,30,.04), 0 10px 30px rgba(20,20,30,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; max-width: 1080px; margin: 0 auto; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.marca i { width: 28px; height: 28px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.marca i svg { width: 16px; height: 16px; }
.marca small { font-weight: 500; color: var(--muted); }
.folio { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.caja { max-width: 560px; margin: 0 auto; padding: 0 16px 64px; }
.caja.ancha { max-width: 880px; }
.tarjeta { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 30px 28px; }
.tarjeta + .tarjeta { margin-top: 14px; }
@media (max-width: 520px) { .tarjeta { padding: 24px 20px; border-radius: 16px; } .barra { padding: 14px 16px; } }

h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.022em; margin: 0 0 8px; font-weight: 680; }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 6px; font-weight: 650; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
p { margin: 0 0 12px; }
.sub { color: var(--muted); }
.peq { font-size: 13px; }
.centro { text-align: center; }

.btn { appearance: none; border: 0; background: var(--ink); color: #fff; border-radius: 13px; padding: 14px 20px; font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .08s, opacity .15s, background .15s; text-decoration: none; min-height: 50px; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.bloque { width: 100%; }
.btn.sec { background: var(--fill); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.sec:hover { background: #efeee9; }
.btn.linea { background: transparent; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.btn.peligro { background: var(--bad-bg); color: var(--bad); }
.btn.chico { min-height: 36px; padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.enlace { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fila.fin { justify-content: flex-end; }
.entre { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pila > * + * { margin-top: 12px; }

label.campo { display: block; }
label.campo > span { display: block; font-size: 13px; font-weight: 550; color: var(--ink2); margin-bottom: 6px; }
.inp { width: 100%; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: #fff; border-radius: 12px; padding: 13px 14px; outline: none; transition: box-shadow .15s; }
.inp:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
textarea.inp { resize: vertical; min-height: 84px; }

.aviso { padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--fill); color: var(--ink2); }
.aviso.error { background: var(--bad-bg); color: var(--bad); }
.aviso.ok { background: var(--ok-bg); color: var(--ok); }
.aviso.warn { background: var(--warn-bg); color: var(--warn); }

.pastilla { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--fill); color: var(--muted); white-space: nowrap; }
.pastilla::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pastilla.ok { background: var(--ok-bg); color: var(--ok); }
.pastilla.warn { background: var(--warn-bg); color: var(--warn); }
.pastilla.bad { background: var(--bad-bg); color: var(--bad); }
.pastilla.azul { background: #e9eefd; color: var(--blue); }

/* Pasos */
.pasos { display: flex; gap: 6px; margin: 0 auto 18px; max-width: 560px; padding: 0 16px; }
.pasos i { flex: 1; height: 4px; border-radius: 4px; background: #dedcd5; transition: background .3s; }
.pasos i.hecho { background: var(--ink); }
.pasos i.actual { background: linear-gradient(90deg, var(--ink) 50%, #dedcd5 50%); }

/* Código OTP */
.otp { display: flex; gap: 8px; justify-content: center; margin: 22px 0 8px; }
.otp input { width: 48px; height: 58px; text-align: center; font-size: 24px; font-weight: 650; border: 0; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line); background: var(--fill); outline: none; caret-color: var(--ink); }
.otp input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
@media (max-width: 380px) { .otp input { width: 42px; height: 52px; } }

/* Lista de requisitos */
.req { list-style: none; padding: 0; margin: 18px 0; }
.req li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line2); }
.req li:first-child { border-top: 0; }
.req .ico { width: 36px; height: 36px; border-radius: 11px; background: var(--fill); display: grid; place-items: center; flex: none; }
.req .ico svg { width: 18px; height: 18px; }
.req b { font-weight: 600; display: block; font-size: 14.5px; }
.req small { color: var(--muted); font-size: 13px; }

/* Fotos */
.foto { border-radius: 14px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 1.586; display: grid; place-items: center; overflow: hidden; position: relative; cursor: pointer; }
.foto.cara { aspect-ratio: 1; max-width: 260px; margin: 0 auto; border-radius: 50%; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto .vacio { text-align: center; color: var(--muted); font-size: 14px; padding: 12px; }
.foto .vacio svg { width: 30px; height: 30px; display: block; margin: 0 auto 6px; color: var(--soft); }
.foto .listo { position: absolute; top: 10px; right: 10px; background: var(--ok); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .dos { grid-template-columns: 1fr; } }

/* Cámara a pantalla completa */
.camara { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; }
.camara video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.camara.espejo video { transform: scaleX(-1); }
.camara .guia { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.camara .guia div { width: min(86vw, 520px); aspect-ratio: 1.586; border: 3px solid rgba(255,255,255,.95); border-radius: 18px; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 24px rgba(0,0,0,.35); }
.camara .guia.ovalo div { width: min(64vw, 300px); aspect-ratio: .78; border-radius: 50%; }
.camara .texto { position: absolute; top: max(24px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); padding: 0 20px; }
.camara .controles { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 24px max(28px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; }
.camara .disparo { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.25); cursor: pointer; }
.camara .disparo:active { background: #fff; }
.camara .mini { color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 600; cursor: pointer; min-width: 84px; }

/* Visor de PDF */
.visor { background: #e9e8e3; border-radius: 16px; padding: 12px; max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.visor canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.visor .hoja { position: relative; }
.visor .hoja + .hoja { margin-top: 12px; }
.visor .num { position: absolute; bottom: 8px; right: 10px; font-size: 11px; background: rgba(22,22,26,.7); color: #fff; padding: 2px 8px; border-radius: 99px; }
.visor .cargando { aspect-ratio: .773; background: #fff; border-radius: 4px; display: grid; place-items: center; color: var(--soft); font-size: 13px; }

/* Pad de firma */
.pad-tabs { display: inline-flex; background: var(--fill); padding: 4px; border-radius: 12px; gap: 2px; margin-bottom: 12px; }
.pad-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.pad-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pad { position: relative; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); height: 190px; touch-action: none; overflow: hidden; }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.pad .renglon { position: absolute; left: 26px; right: 26px; bottom: 46px; border-bottom: 1.5px solid #d4d3cd; pointer-events: none; }
.pad .x { position: absolute; left: 26px; bottom: 50px; color: var(--soft); font-size: 20px; pointer-events: none; }
.pad .marca-agua { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: var(--soft); font-size: 12.5px; pointer-events: none; }
.pad .borrar { position: absolute; top: 10px; right: 10px; z-index: 2; }
.pad .escrita { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; padding: 0 20px 30px; white-space: nowrap; overflow: hidden; pointer-events: none; }
.estilos { display: flex; gap: 8px; margin-top: 10px; }
.estilos button { flex: 1; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: #fff; border-radius: 11px; padding: 8px; font-size: 24px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.estilos button.on { box-shadow: inset 0 0 0 1.5px var(--ink); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* Grabación */
.grabando { position: fixed; top: 84px; right: 14px; z-index: 40; width: 112px; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.grabando video { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; transform: scaleX(-1); }
.grabando span { position: absolute; top: 7px; left: 7px; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px 3px 6px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.grabando span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: late 1.2s infinite; }
@keyframes late { 50% { opacity: .25; } }

.progreso { height: 6px; background: var(--fill); border-radius: 6px; overflow: hidden; }
.progreso i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }

.giro { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: giro .7s linear infinite; display: inline-block; }
@keyframes giro { to { transform: rotate(360deg); } }

.hecho-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 6px auto 18px; }
.hecho-ico svg { width: 34px; height: 34px; }
.aparece { animation: aparece .35s ease both; }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } }

/* ── Panel ─────────────────────────────────────────────── */
.panel { max-width: 1080px; margin: 0 auto; padding: 4px 22px 80px; }
@media (max-width: 620px) { .panel { padding: 4px 14px 60px; } }
.encab { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 10px 0 20px; flex-wrap: wrap; }
.encab h1 { margin: 0; }
.filtros { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filtros button { border: 0; background: transparent; padding: 7px 13px; border-radius: 99px; font-weight: 550; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.filtros button.on { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.lista { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.renglon-sobre { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 14px; align-items: center; padding: 16px 20px; text-decoration: none; border-top: 1px solid var(--line2); transition: background .12s; }
.renglon-sobre:first-child { border-top: 0; }
.renglon-sobre:hover { background: #fbfbf9; }
.renglon-sobre .ico-doc { width: 40px; height: 40px; border-radius: 12px; background: var(--fill); display: grid; place-items: center; color: var(--muted); }
.renglon-sobre .ico-doc svg { width: 19px; height: 19px; }
.renglon-sobre b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.renglon-sobre small { color: var(--muted); font-size: 13px; }
.caras { display: flex; }
.caras span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--fill); color: var(--muted); border: 2px solid #fff; margin-left: -7px; }
.caras span.ok { background: var(--ok-bg); color: var(--ok); }
.caras span.bad { background: var(--bad-bg); color: var(--bad); }
.caras span.azul { background: #e9eefd; color: var(--blue); }
@media (max-width: 620px) { .renglon-sobre { grid-template-columns: 1fr auto; padding: 14px 16px; } .renglon-sobre .ico-doc, .renglon-sobre .caras { display: none; } }
.vacia { text-align: center; padding: 56px 20px; color: var(--muted); }

.rejilla { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .rejilla { grid-template-columns: 1fr; } }
.soltar { border: 1.5px dashed #d3d2cb; border-radius: 16px; padding: 30px 20px; text-align: center; cursor: pointer; transition: all .15s; background: var(--fill); }
.soltar:hover, .soltar.sobre { border-color: var(--ink); background: #fff; }
.soltar svg { width: 28px; height: 28px; color: var(--soft); }
.soltar.lleno { border-style: solid; border-color: var(--line); background: #fff; text-align: left; display: flex; gap: 12px; align-items: center; padding: 16px; }
.firmante { display: grid; grid-template-columns: 1fr 1fr 1fr 36px; gap: 8px; align-items: center; }
.firmante + .firmante { margin-top: 8px; }
@media (max-width: 620px) { .firmante { grid-template-columns: 1fr 36px; } .firmante .inp:nth-child(2), .firmante .inp:nth-child(3) { grid-column: 1; } .firmante .quitar { grid-row: 1; grid-column: 2; } }
.quitar { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--soft); cursor: pointer; display: grid; place-items: center; }
.quitar:hover { background: var(--bad-bg); color: var(--bad); }
.quitar svg { width: 16px; height: 16px; }
.opcion { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line2); cursor: pointer; }
.opcion:first-of-type { border-top: 0; }
.opcion .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--fill); display: grid; place-items: center; flex: none; }
.opcion .ico svg { width: 17px; height: 17px; }
.opcion div { flex: 1; }
.opcion b { display: block; font-weight: 600; font-size: 14.5px; }
.opcion small { color: var(--muted); font-size: 12.5px; }
.interruptor { appearance: none; width: 42px; height: 25px; border-radius: 99px; background: #dcdbd5; position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.interruptor:checked { background: var(--ink); }
.interruptor:checked::after { transform: translateX(17px); }
.interruptor:disabled { opacity: .55; cursor: default; }

.persona { padding: 18px 0; border-top: 1px solid var(--line2); }
.persona:first-of-type { border-top: 0; padding-top: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chip { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 550; padding: 4px 9px; border-radius: 8px; background: var(--fill); color: var(--soft); }
.chip svg { width: 13px; height: 13px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.evidencias { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.evidencia { border-radius: 12px; overflow: hidden; background: var(--fill); position: relative; aspect-ratio: 4/3; display: block; }
.evidencia img, .evidencia video { width: 100%; height: 100%; object-fit: cover; display: block; }
.evidencia.firma { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.evidencia.firma img { object-fit: contain; padding: 10px; }
.evidencia span { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 600; background: rgba(22,22,26,.72); color: #fff; padding: 2px 7px; border-radius: 6px; }
.evidencia.ancho { grid-column: span 2; }
.linea-tiempo { list-style: none; margin: 0; padding: 0; position: relative; }
.linea-tiempo li { position: relative; padding: 0 0 16px 26px; font-size: 13.5px; }
.linea-tiempo li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #c9c8c1; }
.linea-tiempo li::after { content: ''; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.linea-tiempo li:last-child::after { display: none; }
.linea-tiempo li.ok::before { background: var(--ok); }
.linea-tiempo li.bad::before { background: var(--bad); }
.linea-tiempo li.azul::before { background: var(--blue); }
.linea-tiempo b { font-weight: 600; }
.linea-tiempo small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.dato { font-size: 13px; color: var(--muted); }
.dato b { color: var(--ink2); font-weight: 550; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; word-break: break-all; color: var(--muted); }

/* Revisión en vivo */
.camara .disparo:disabled { opacity: .35; cursor: not-allowed; }
.camara .estado-cam { position: absolute; left: 50%; bottom: calc(max(28px, env(safe-area-inset-bottom)) + 96px); transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 99px; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.camara .estado-cam.ok { background: rgba(23,135,90,.92); }
.foto .revisando { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.72); font-weight: 600; font-size: 14px; color: var(--ink); backdrop-filter: blur(2px); }
.foto .etiqueta { position: absolute; left: 10px; bottom: 10px; background: rgba(22,22,26,.75); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; }
.foto.cara .etiqueta { left: 50%; transform: translateX(-50%); }
.grabando.mal { box-shadow: 0 0 0 3px var(--bad), 0 8px 30px rgba(0,0,0,.25); }
.sin-rostro { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 45; display: flex; gap: 12px; align-items: center; background: var(--bad); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(194,54,43,.35); width: min(92vw, 420px); }
.sin-rostro svg { width: 26px; height: 26px; flex: none; }
.sin-rostro b { display: block; font-size: 15px; }
.sin-rostro small { display: block; font-size: 13px; opacity: .9; }

/* Cámara con validación en el momento */
.camara .congelada { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camara.espejo .congelada { transform: scaleX(-1); }
.camara .guia div { position: relative; transition: border-color .2s, box-shadow .2s; }
.camara .avance { position: absolute; left: 12%; right: 12%; bottom: -14px; height: 4px; border-radius: 4px; background: #34c37b; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.camara.bien .guia div { border-color: #34c37b; border-width: 4px; }
.camara.mal .guia div { border-color: #ff5a4f; border-width: 4px; }
.camara.revisando-cam .guia div { border-color: #8fb0ff; }
.camara .estado-cam.bad { background: rgba(194,54,43,.95); white-space: normal; text-align: center; border-radius: 14px; width: min(88vw, 420px); }
.camara .estado-cam.azul { background: rgba(47,91,234,.92); }

/* La cámara se ve en un canvas encima del <video> (iPhone a veces no pinta el video). */
.camara canvas.vista { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.camara.espejo canvas.vista { transform: scaleX(-1); }
.grabando { position: fixed; }
.grabando canvas.vista { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: scaleX(-1); }
