/* FotoKiosko · paleta CMYK de imprenta: magenta (acción), cian (información), amarillo (avisos) */
@font-face { font-family: "Bricolage"; src: url("/static/fuentes/Bricolage.ttf") format("truetype");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
:root {
  --fondo: #eef1f7;
  --papel: #ffffff;
  --tinta: #171a2b;
  --suave: #5d6280;
  --linea: #dde1ee;
  --acento: #e0186f;          /* magenta */
  --acento-txt: #ffffff;
  --acento-2: #ffe3ef;
  --cian: #0a9fd0;
  --cian-2: #dff4fc;
  --amarillo: #ffc61a;
  --amarillo-2: #fff4cc;
  --ok: #128a4a;
  --ok-2: #ddf6e8;
  --mal: #d1293d;
  --mal-2: #ffe5e8;
  --velo: rgba(23,26,43,.55);
  --hundido: #e3e7f1;
  --sombra-papel: 0 1px 2px rgba(23,26,43,.12), 0 10px 28px rgba(23,26,43,.16);
  --radio: 18px;
  color-scheme: light;
}
[data-tema="oscuro"] {
  --fondo: #10122a;
  --papel: #1b1e3d;
  --tinta: #eef0ff;
  --suave: #a3a8cc;
  --linea: #30345c;
  --acento: #ff3d8b;
  --acento-txt: #ffffff;
  --acento-2: #3f1834;
  --cian: #3cc4f0;
  --cian-2: #12304a;
  --amarillo: #ffd23f;
  --amarillo-2: #3d3417;
  --ok: #3ddc84;
  --ok-2: #123a2a;
  --mal: #ff6b7d;
  --mal-2: #3d1823;
  --velo: rgba(5,6,18,.7);
  --hundido: #252950;
  --sombra-papel: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}
[data-letra="normal"] body { font-size: 1.18em; }   /* "Pequeño" es el tamaño base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); color: var(--tinta);
  font: 16px/1.45 "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variation-settings: "opsz" 18; transition: background .25s, color .25s; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--cian); outline-offset: 2px; }
input, select { color: var(--tinta); background: var(--papel); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.015em; font-variation-settings: "opsz" 48; }
.oculto { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.3em; border-radius: 999px; background: var(--papel); border: 1.5px solid var(--linea);
  font-weight: 600; transition: transform .08s, background .15s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn.principal { background: var(--acento); color: var(--acento-txt); border-color: var(--acento); box-shadow: 0 6px 18px color-mix(in srgb, var(--acento) 35%, transparent); }
.btn.peligro { color: var(--mal); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.grande { font-size: 1.15em; padding: 1em 1.6em; }

.chips { display: flex; flex-wrap: wrap; gap: .4em; }
.chip { padding: .5em .9em; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--papel);
  font-weight: 600; font-size: .92em; }
.chip.activo { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }

.contador { display: inline-flex; align-items: center; border: 1.5px solid var(--linea); border-radius: 999px;
  background: var(--papel); }
.contador button { width: 2.3em; height: 2.3em; font-size: 1.1em; font-weight: 700; }
.contador span { min-width: 1.8em; text-align: center; font-weight: 700; }

.etiqueta { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: .8em; font-weight: 700;
  background: var(--linea); }
.etiqueta.pendiente { background: var(--acento-2); color: var(--acento); }
.etiqueta.en_cola, .etiqueta.imprimiendo { background: var(--cian-2); color: var(--cian); }
.etiqueta.hecho { background: var(--ok-2); color: var(--ok); }
.etiqueta.error { background: var(--mal-2); color: var(--mal); }

.barra { height: 8px; background: var(--linea); border-radius: 99px; overflow: hidden; }
.barra > i { display: block; height: 100%; width: 0; background: var(--acento); transition: width .3s; }

.aviso { padding: .8em 1em; border-radius: 12px; background: var(--mal-2); color: var(--mal); font-weight: 600; }

table.tarifa { width: 100%; border-collapse: collapse; font-size: .92em; }
table.tarifa th, table.tarifa td { padding: .5em .4em; text-align: right; border-bottom: 1px solid var(--linea); white-space: nowrap; }
table.tarifa th:first-child, table.tarifa td:first-child { text-align: left; white-space: normal; }
table.tarifa th { font-size: .78em; color: var(--suave); font-weight: 700; }
table.tarifa th small, table.tarifa td small { display: block; font-weight: 400; color: var(--suave); font-size: .85em; }
table.tarifa tr.doble td { background: var(--acento-2); }
table.tarifa td:nth-child(n+3) { color: var(--ok); font-weight: 600; }
.nota-tarifa { font-size: .82em; color: var(--suave); margin: .6em 0 0; }
.linea { display: flex; justify-content: space-between; gap: 10px; font-size: .88em; color: var(--suave); }
.linea b { color: var(--tinta); }
.consejo { font-size: .88em; background: var(--amarillo-2); color: var(--tinta); border-left: 4px solid var(--amarillo); padding: .45em .7em; border-radius: 10px; }
.linea b, table.tarifa td:first-child b { white-space: nowrap; }

/* ---------- editor de creaciones ---------- */
.creador { position: fixed; inset: 0; z-index: 50; background: var(--velo); display: flex; align-items: stretch; justify-content: center; }
.cr-caja { background: var(--fondo); width: 100%; max-width: 1400px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.cr-cab { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--papel); border-bottom: 1px solid var(--linea); }
.cr-cab h2 { font-size: 1.25em; }
.cr-cerrar { font-size: 1.3em; width: 44px; height: 44px; border-radius: 50%; background: var(--fondo); }
.cr-cuerpo { overflow-y: auto; padding: 14px; display: grid; gap: 14px; align-content: start; grid-auto-rows: max-content; }
.cr-vista { position: relative; background: var(--hundido); border-radius: 16px; min-height: 260px; padding: 12px; text-align: center; }
.cr-vista img { display: block; margin: 0 auto 8px; max-width: 100%; max-height: 55vh; width: auto; height: auto; object-fit: contain; box-shadow: var(--sombra-papel); background: #fff; }
.cr-vista img:not([src]) { display: none; }
.cr-cargando { position: absolute; inset: auto 12px 50% 12px; text-align: center; font-weight: 700; color: var(--suave); background: var(--papel); padding: .6em; border-radius: 10px; }
.cr-pag { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 700; font-size: .9em; }
.cr-pag button { width: 40px; height: 40px; border-radius: 50%; background: var(--papel); font-size: 1.3em; }
.cr-panel { display: grid; gap: 14px; align-content: start; }
.cr-opciones { display: grid; gap: 14px; }
.cr-sec > label { display: block; font-size: .75em; font-weight: 800; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.cr-texto { width: 100%; padding: .7em .9em; border-radius: 12px; border: 1.5px solid var(--linea); font: inherit; }
.chip .muestra { display: inline-block; width: .9em; height: .9em; border-radius: 50%; margin-right: .4em; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }
.cr-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.cr-foto { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--papel); border: 1.5px solid var(--linea); }
.cr-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-foto.hueco, .cr-foto.mas { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--suave); font-weight: 700; border-style: dashed; font-size: .85em; }
.cr-foto.mas { cursor: pointer; color: var(--acento); border-color: var(--acento); }
.cr-n { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .7em; font-weight: 800; padding: .1em .45em; border-radius: 6px; }
.cr-mover { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; background: rgba(0,0,0,.45); }
.cr-mover button { color: #fff; flex: 1; padding: 4px 0; font-weight: 800; }
.cr-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--linea); }
.cr-precio { flex: 1; text-align: right; font-weight: 800; font-size: 1.2em; white-space: nowrap; }
.cr-anadir { width: 100%; }
@media (min-width: 900px) {
  .creador { padding: 24px; }
  .cr-caja { border-radius: 24px; }
  .cr-cuerpo { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .cr-vista { position: sticky; top: 0; min-height: 70vh; }
  .cr-vista img { max-height: 68vh; }
  .cr-anadir { width: auto; }
}

/* tarjetas para elegir qué crear */
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.producto { text-align: left; background: var(--papel); border: 1.5px solid var(--linea); border-radius: 18px; padding: 14px; display: grid; gap: 4px; }
.producto .ico { font-size: 1.6em; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 14px; margin-bottom: 4px; background: var(--acento-2); }
.producto:nth-child(3n+2) .ico { background: var(--cian-2); }
.producto:nth-child(3n+3) .ico { background: var(--amarillo-2); }
.producto b { font-size: 1.02em; }
.producto small { color: var(--suave); }
.producto .pr { color: var(--acento); font-weight: 800; }

.cre select { padding: .45em .6em; border-radius: 10px; border: 1.5px solid var(--linea); background: var(--papel); font: inherit; }

/* ---------- teclados en pantalla ---------- */
.tk-fondo { position: fixed; inset: 0; z-index: 80; background: var(--velo); display: flex; align-items: center; justify-content: center; }
.tk-caja { background: var(--papel); border-radius: 24px; padding: 24px; width: min(420px, 94vw); display: grid; gap: 14px; max-height: 94vh; overflow-y: auto; }
.tk-fondo.ancho .tk-caja { width: min(1100px, 96vw); }
.tk-caja h3 { font-size: 1.25em; text-align: center; }
.tk-caja p { margin: 0; text-align: center; color: var(--suave); }
.tk-pantalla { font-size: 2em; font-weight: 800; text-align: center; padding: .4em; border-radius: 14px; background: var(--fondo); min-height: 1.8em; letter-spacing: .05em; word-break: break-all; }
.tk-pantalla.tk-texto { font-size: 1.5em; text-align: left; font-weight: 600; letter-spacing: 0; }
.tk-cursor { display: inline-block; width: 2px; height: 1em; background: var(--acento); vertical-align: -0.12em; animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.tk-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tk-num button { height: 72px; font-size: 1.8em; font-weight: 700; border-radius: 16px; background: var(--fondo); }
.tk-num button:active, .tk-fila button:active { background: var(--linea); }
.tk-acciones { display: flex; gap: 12px; justify-content: center; }
.tk-acciones .btn { flex: 1; font-size: 1.1em; padding: 1em; }
.tk-aviso { color: var(--mal); text-align: center; font-weight: 700; min-height: 1em; }
.tk-teclas { display: grid; gap: 8px; }
.tk-fila { display: flex; gap: 8px; justify-content: center; }
.tk-fila button { flex: 1; max-width: 84px; height: 64px; font-size: 1.4em; font-weight: 600; border-radius: 12px; background: var(--fondo); }
.tk-fila button.ancha { max-width: 150px; flex: 1.6; font-size: 1em; }
.tk-fila button.espacio { max-width: 520px; flex: 6; font-size: 1em; }
.tk-lista { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.tk-lista button { text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--fondo); border: 2px solid transparent; display: grid; }
.tk-lista button.activo { border-color: var(--acento); background: var(--acento-2); }
.tk-lista small { color: var(--suave); }

/* ---------- ajustes ---------- */
.aj { display: grid; grid-template-columns: 260px 1fr; gap: 24px; height: 100%; }
.aj-menu { display: grid; gap: 8px; align-content: start; }
.aj-menu button { text-align: left; padding: 16px 18px; border-radius: 16px; background: var(--papel); font-weight: 700; font-size: 1.05em; border: 2px solid transparent; }
.aj-menu button.activo { border-color: var(--acento); background: var(--acento-2); }
.aj-cont { overflow-y: auto; display: grid; gap: 18px; align-content: start; padding-bottom: 40px; }
.aj-tarjeta { background: var(--papel); border-radius: 20px; padding: 20px 22px; display: grid; gap: 14px; }
.aj-tarjeta h3 { font-size: 1.15em; }
.aj-tarjeta p.ayuda { margin: 0; color: var(--suave); font-size: .9em; }
.aj-fila { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aj-fila > span:first-child { min-width: 220px; font-weight: 700; }
.aj-valor { padding: .7em 1.1em; border-radius: 12px; background: var(--fondo); border: 1.5px solid var(--linea); font-weight: 700; min-width: 120px; text-align: left; }
.aj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aj-stat { background: var(--fondo); border-radius: 16px; padding: 16px; }
.aj-stat b { display: block; font-size: 1.8em; color: var(--acento); }
.aj-stat small { color: var(--suave); }
table.aj-precios { border-collapse: collapse; width: 100%; }
table.aj-precios th, table.aj-precios td { padding: 6px; text-align: center; }
table.aj-precios th:first-child, table.aj-precios td:first-child { text-align: left; }
table.aj-precios button { width: 100%; padding: .7em .4em; border-radius: 10px; background: var(--fondo); border: 1.5px solid var(--linea); font-weight: 700; }
table.aj-precios button.cambiado { border-color: var(--acento); background: var(--acento-2); }
.aj-cola { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.aj-cola div { display: flex; gap: 12px; align-items: center; background: var(--fondo); border-radius: 10px; padding: 8px 12px; font-size: .9em; }
.aj-sistema { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.aj-sistema button { padding: 22px 16px; border-radius: 18px; background: var(--fondo); font-weight: 700; display: grid; gap: 6px; text-align: center; font-size: 1.05em; }
.aj-sistema button span { font-size: 1.8em; }
.aj-sistema button small { font-weight: 400; color: var(--suave); font-size: .8em; }
.engranaje { width: 40px; height: 32px; border-radius: 8px; color: #fff; font-size: 1.2em; opacity: .7; }
.engranaje:active { background: rgba(255,255,255,.15); }

/* ---------- botón de accesibilidad (tema y tamaño de letra) ---------- */
.acc-btn { display: inline-flex; align-items: center; gap: .45em; padding: .55em .95em; border-radius: 999px;
  background: var(--papel); border: 1.5px solid var(--linea); font-weight: 700; }
.acc-btn svg { width: 1.25em; height: 1.25em; }
.acc-panel { position: fixed; z-index: 90; background: var(--papel); border: 1.5px solid var(--linea); border-radius: 20px;
  padding: 16px; box-shadow: var(--sombra-papel); display: grid; gap: 12px; min-width: 260px; }
.acc-panel p { margin: 0 0 6px; font-weight: 700; font-size: .85em; color: var(--suave); }
.acc-panel .chips { flex-wrap: nowrap; }
.acc-panel .chip { flex: 1; text-align: center; padding: .7em .9em; }

/* ---------- editor de encuadre ---------- */
.enc-fondo { position: fixed; inset: 0; z-index: 85; background: #0b0c1d; color: #eef0ff; display: grid;
  grid-template-rows: auto 1fr auto auto; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); gap: 10px; touch-action: none; }
.enc-cab, .enc-zoom, .enc-pie { position: relative; z-index: 2; }
.enc-cab { text-align: center; }
.enc-cab h3 { font-size: 1.3em; }
.enc-cab p { margin: .3em 0 0; color: #a3a8cc; font-size: .9em; }
.enc-zona { display: grid; place-items: center; min-height: 0; }
.enc-marco { position: relative; overflow: hidden; background: #fff; cursor: grab; touch-action: none;
  box-shadow: 0 0 0 9999px rgba(11,12,29,.55), 0 0 0 3px #fff; }
.enc-marco img { user-select: none; pointer-events: none; }
.enc-zoom { display: flex; align-items: center; gap: 12px; justify-content: center; }
.enc-zoom button { width: 52px; height: 52px; border-radius: 50%; background: #23264a; font-size: 1.6em; font-weight: 800; color: #fff; }
.enc-zoom input { width: min(360px, 60vw); accent-color: var(--acento); }
.enc-pie { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.enc-pie .btn { min-width: 120px; }
.enc-pie .btn:not(.principal) { background: #23264a; color: #fff; border-color: #30345c; }
.enc-tag { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 800;
  padding: 2px 6px; border-radius: 6px; pointer-events: none; line-height: 1.3; }

.aj-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; }
.aj-logos button { background: var(--fondo); border-radius: 12px; padding: 8px; display: grid; gap: 6px; }
.aj-logos img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.aj-logos small { font-size: .75em; color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enc-guia { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 2px rgba(0,0,0,.8)); }
.tarifa-scroll { overflow-x: auto; }
@media (max-width: 600px) { table.tarifa { font-size: .82em; } table.tarifa th, table.tarifa td { padding: .45em .3em; } }

.aj-impresos { display: grid; gap: 10px; max-height: 62vh; overflow-y: auto; }
.aj-impreso { background: var(--fondo); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.aj-impreso .cab { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.aj-impreso .cab span { color: var(--suave); font-size: .92em; }
.aj-impreso .tira { display: flex; gap: 6px; align-items: center; overflow: hidden; }
.aj-impreso .tira img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--papel); }
.aj-impreso .tira span { font-weight: 700; color: var(--suave); }
.aj-impreso .bts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- retoque de color (brillo, color, blanco y negro, sepia) ---------- */
.ret-fondo { position: fixed; inset: 0; z-index: 86; background: #0b0c1d; color: #eef0ff; display: grid;
  grid-template-rows: auto 1fr auto auto; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); gap: 12px; }
.ret-cab { text-align: center; }
.ret-cab h3 { font-size: 1.3em; }
.ret-cab p { margin: .3em 0 0; color: #a3a8cc; font-size: .9em; }
.ret-zona { position: relative; min-height: 0; overflow: hidden; }
.ret-zona img { position: absolute; inset: 3px; margin: auto; max-width: calc(100% - 6px); max-height: calc(100% - 6px);
  object-fit: contain; border-radius: 6px; box-shadow: 0 0 0 3px #fff; background: #fff; }
.ret-cab, .ret-mandos, .ret-pie { position: relative; z-index: 1; }
.ret-mandos { display: grid; gap: 12px; justify-items: center; }
.ret-mandos .chip { background: #23264a; color: #fff; border-color: #30345c; }
.ret-mandos .chip.activo { background: #fff; color: #0b0c1d; border-color: #fff; }
.ret-fila { display: grid; grid-template-columns: 4.8em 42px minmax(0, 1fr) 42px 2.4em; align-items: center; gap: 8px; width: 100%; max-width: 620px; box-sizing: border-box; }
.ret-fila span { font-weight: 700; }
.ret-fila button { width: 42px; height: 42px; border-radius: 50%; background: #23264a; color: #fff; font-size: 1.4em; font-weight: 800; }
.ret-fila input { width: 100%; accent-color: var(--acento); }
.ret-fila b { text-align: right; font-variant-numeric: tabular-nums; }
.ret-fila.apagado { opacity: .35; pointer-events: none; }
.ret-pie { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ret-pie .btn:not(.principal) { background: #23264a; color: #fff; border-color: #30345c; }
.ret-btn { display: inline-flex; align-self: start; justify-self: start; align-items: center; gap: .35em; padding: .45em .8em; border-radius: 999px; font-weight: 700; font-size: .85em;
  background: var(--fondo); border: 1.5px solid var(--linea); }
.ret-btn.ret-on { border-color: var(--acento); color: var(--acento); }

/* ---------- foto de carnet con la webcam ---------- */
.cam-fondo { position: fixed; inset: 0; z-index: 84; background: #0b0c1d; color: #eef0ff; display: grid; grid-template-rows: auto 1fr; }
.cam-cab { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; }
.cam-cab h2 { font-size: 1.8em; }
.cam-cab .btn { background: #23264a; color: #fff; border-color: #30345c; }
.cam-cuerpo { display: grid; grid-template-columns: auto minmax(320px, 520px); gap: 36px; justify-content: center; align-items: center; padding: 0 28px 28px; min-height: 0; }
.cam-visor { position: relative; height: min(78vh, 900px); aspect-ratio: 35 / 45; border-radius: 22px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 4px #fff, 0 20px 60px rgba(0,0,0,.5); }
.cam-visor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-visor canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cam-guia { position: absolute; inset: 0; pointer-events: none; }
.cam-ovalo { position: absolute; left: 21%; width: 58%; top: 7%; height: 73%; border-radius: 50%; border: 4px dashed rgba(255,255,255,.95);
  box-shadow: 0 0 0 200vmax rgba(5,6,18,.45); }
.cam-ojos { position: absolute; left: 24%; width: 52%; top: 41%; border-top: 3px solid rgba(255,214,0,.9); }
.cam-cuenta { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11em; font-weight: 800; color: #fff;
  text-shadow: 0 6px 30px rgba(0,0,0,.6); pointer-events: none; }
.cam-cuenta.pulso { animation: cam-pulso 1s ease-out; }
@keyframes cam-pulso { from { transform: scale(1.4); opacity: 0; } 30% { opacity: 1; } to { transform: scale(.9); opacity: .2; } }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.va { animation: cam-flash .5s ease-out; }
@keyframes cam-flash { from { opacity: 1; } to { opacity: 0; } }
.cam-procesa { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(11,12,29,.72); }
.cam-procesa .spin { width: 64px; height: 64px; border-radius: 50%; border: 6px solid rgba(255,255,255,.25); border-top-color: #fff; animation: cam-gira 1s linear infinite; }
@keyframes cam-gira { to { transform: rotate(360deg); } }
.cam-error { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 30px; gap: 8px; }
.cam-lado { display: grid; gap: 18px; align-content: center; }
.cam-paso1, .cam-paso2 { display: grid; gap: 18px; }
.cam-consejos { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; font-size: 1.15em; line-height: 1.35; }
.cam-paso2 h3 { font-size: 1.6em; }
.cam-paso2 .chip { background: #23264a; color: #fff; border-color: #30345c; }
.cam-paso2 .chip.activo { background: #fff; color: #0b0c1d; }
.cam-paso2 .btn:not(.principal) { background: #23264a; color: #fff; border-color: #30345c; }
.cam-nota { margin: 0; color: #ffd166; min-height: 1em; }
.accion.camara { background: var(--amarillo); color: #1b1530; box-shadow: 0 14px 30px color-mix(in srgb, var(--amarillo) 35%, transparent); padding: 22px 34px; }
.accion.camara h2 { font-size: 1.7em; }

/* ---------- selfie de carnet en el móvil ---------- */
.sf-fondo { position: fixed; inset: 0; z-index: 82; background: var(--fondo); color: var(--tinta); overflow-y: auto;
  padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); display: grid; align-content: start; gap: 16px; }
.sf-cab { display: flex; justify-content: space-between; align-items: center; }
.sf-cab h2 { font-size: 1.5em; }
.sf-paso { display: grid; gap: 14px; justify-items: stretch; max-width: 520px; width: 100%; margin: 0 auto; }
.sf-dibujo { width: 150px; justify-self: center; filter: drop-shadow(0 10px 24px rgba(0,0,0,.25)); }
.sf-consejos { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.35; }
.sf-nota { margin: 0; color: var(--suave); }
.sf-boton { text-align: center; }
.sf-espera { display: grid; justify-items: center; gap: 12px; padding: 80px 0; text-align: center; }
.sf-espera .spin { width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--linea); border-top-color: var(--acento); animation: cam-gira 1s linear infinite; }
.sf-espera small { color: var(--suave); }
.sf-foto { display: grid; place-items: center; }
.sf-foto canvas { max-width: 100%; max-height: 52vh; border-radius: 14px; box-shadow: 0 0 0 3px #fff, 0 12px 30px rgba(0,0,0,.3); background: #fff; }
.sf-chips { justify-content: center; }
.sf-aviso { margin: 0; color: var(--mal); text-align: center; }
.sf-paso label.btn { text-align: center; }
.producto.destacado { background: var(--acento); color: #fff; border-color: var(--acento); }
.producto.destacado small { color: rgba(255,255,255,.9); }

.etiqueta.web { background: var(--amarillo); color: #1b1530; }
