/* Victoria · Formularios y checklists (INC-00995): constructor (gasca_formularios.js) y motor común (gasca_formularios_motor.js) */
.frm-app { padding: 16px 20px 30px; max-width: 1680px; margin: 0 auto; font-family: 'Inter', sans-serif; color: #0f172a; }
.frm-b { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 9px; padding: 7px 12px; font-weight: 700; font-size: .83rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-family: inherit; }
.frm-b:hover:not(:disabled) { border-color: #94a3b8; }
.frm-b:disabled { opacity: .5; cursor: not-allowed; }
.frm-b.frm-prim, button.frm-prim { background: #b4000c; border-color: #b4000c; color: #fff; }
.frm-b.frm-peligro { color: #b4000c; border-color: #fecaca; }
.frm-in, .frm-app input:not([type=checkbox]):not([type=radio]):not([type=range]), .frm-app select, .frm-app textarea, .frm-modal input:not([type=checkbox]):not([type=radio]):not([type=range]), .frm-modal select, .frm-modal textarea, .frm-publico input:not([type=checkbox]):not([type=radio]):not([type=range]), .frm-publico select, .frm-publico textarea {
    border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font-size: .88rem; background: #fff; color: #0f172a; font-family: inherit; box-sizing: border-box; max-width: 100%; }
.frm-hint { color: #64748b; font-size: .8rem; margin: 4px 0 10px; }
.frm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: var(--c, #64748b); background: color-mix(in srgb, var(--c, #64748b) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c, #64748b) 30%, #fff); white-space: nowrap; }
.frm-cargando { padding: 50px; text-align: center; color: #64748b; }
.frm-vacio { color: #94a3b8; }
.frm-vacio-g { padding: 30px; text-align: center; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; }
.frm-err-t { color: #b4000c; font-size: .8rem; font-weight: 600; }
.frm-aviso-t { color: #c2410c; }
/* cabecera y pestañas */
.frm-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.frm-top h2 { margin: 6px 0 0; font-size: 1.35rem; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.frm-top h2 i { color: #b4000c; }
.frm-top p { margin: 4px 0 0; color: #64748b; font-size: .88rem; }
.frm-top-b { display: flex; gap: 8px; flex-wrap: wrap; }
.frm-pest { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 14px; flex-wrap: wrap; }
.frm-pest button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; font-weight: 700; font-size: .83rem; color: #475569; cursor: pointer; font-family: inherit; }
.frm-pest button b { font-size: .72rem; color: #94a3b8; margin-left: 3px; }
.frm-pest button.on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.frm-h3 { font-size: .95rem; margin: 16px 0 8px; display: flex; gap: 8px; align-items: center; }
/* tarjetas de la lista */
.frm-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.frm-tarj { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s; }
.frm-tarj:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.frm-tarj-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.frm-tarj-h b { font-size: .98rem; }
.frm-tarj p { margin: 0; color: #64748b; font-size: .82rem; flex: 1; }
.frm-tarj-m { display: flex; flex-wrap: wrap; gap: 10px; font-size: .75rem; color: #64748b; }
.frm-tarj-b { display: flex; gap: 6px; flex-wrap: wrap; }
.frm-filas { display: grid; gap: 6px; }
.frm-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 10px; align-items: center; text-align: left; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px 14px; cursor: pointer; font-family: inherit; font-size: .88rem; color: #0f172a; }
.frm-fila:hover { border-color: #94a3b8; }
.frm-fila span { color: #64748b; font-size: .8rem; }
.frm-fila > i { color: #94a3b8; }
/* modal */
.frm-modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.frm-modal { background: #fff; border-radius: 14px; width: min(620px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); font-family: 'Inter', sans-serif; color: #0f172a; }
.frm-modal-h { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid #e2e8f0; font-size: 1rem; }
.frm-modal-h button { border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: #64748b; }
.frm-modal-b { padding: 16px 18px; overflow: auto; }
.frm-modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; }
.frm-nuevo { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.frm-nuevo-i { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 16px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: inherit; text-align: center; }
.frm-nuevo-i:hover { border-color: #b4000c; background: #fff5f5; }
.frm-nuevo-i i { font-size: 1.6rem; color: #b4000c; }
.frm-nuevo-i small { color: #64748b; }
/* ─── constructor: 3 paneles ─── */
.frm-ed-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.frm-ed-nombre { font-size: 1.15rem !important; font-weight: 800; border-color: transparent !important; flex: 1 1 220px; min-width: 0; }
.frm-ed-nombre:hover, .frm-ed-nombre:focus { border-color: #cbd5e1 !important; }
.frm-guardado { font-size: .78rem; color: #64748b; }
.frm-ed-acc { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.frm-ed { display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.frm-ed-lib, .frm-ed-props { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; position: sticky; top: 10px; max-height: calc(100vh - 140px); overflow: auto; }
.frm-ed-lib { padding: 10px; }
.frm-ed-lib-t { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-bottom: 6px; }
.frm-lib-g > b { display: block; font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 5px; }
.frm-lib-l { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.frm-lib-i { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; cursor: grab; font-family: inherit; font-size: .72rem; color: #334155; text-align: center; line-height: 1.15; }
.frm-lib-i:hover { border-color: #b4000c; background: #fff5f5; color: #b4000c; }
.frm-lib-i i { font-size: 1rem; color: #b4000c; }
.frm-ed-lienzo { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; min-height: 60vh; }
.frm-ed-pags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.frm-ed-pags button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 5px 11px; font-size: .8rem; font-weight: 700; cursor: pointer; font-family: inherit; color: #475569; }
.frm-ed-pags button.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.frm-ed-pags button small { opacity: .6; margin-left: 3px; }
.frm-ed-pag-t { display: flex; gap: 6px; margin-bottom: 10px; }
.frm-ed-pag-t input { flex: 1; }
.frm-ed-rejilla { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; min-height: 200px; padding: 4px; border-radius: 10px; }
.frm-ed-rejilla.frm-drop-final { outline: 2px dashed #b4000c; outline-offset: 2px; }
.frm-ed-vacio { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 60px 20px; color: #64748b; border: 2px dashed #cbd5e1; border-radius: 12px; background: #fff; }
.frm-ed-vacio i { font-size: 1.8rem; color: #94a3b8; }
.frm-ec { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 8px 10px 10px; cursor: pointer; position: relative; min-width: 0; }
.frm-ec:hover { border-color: #94a3b8; }
.frm-ec.sel { border-color: #b4000c; box-shadow: 0 0 0 3px rgba(180, 0, 12, .12); }
.frm-ec.frm-ec-oculto { opacity: .6; border-style: dashed; }
.frm-ec.frm-arrastrando { opacity: .35; }
.frm-ec.frm-drop-antes { box-shadow: -4px 0 0 #b4000c; }
.frm-ec-h { display: flex; justify-content: space-between; gap: 6px; align-items: center; margin-bottom: 4px; }
.frm-ec-tipo { min-width: 0; font-size: .68rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frm-ec-b { display: flex; gap: 1px; opacity: 0; transition: opacity .12s; position: absolute; top: 4px; right: 4px; background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(15, 23, 42, .15); z-index: 2; }
.frm-ec:hover .frm-ec-b, .frm-ec.sel .frm-ec-b { opacity: 1; }
.frm-ec-b button { border: 0; background: none; padding: 3px 5px; cursor: pointer; color: #64748b; font-size: .78rem; border-radius: 5px; }
.frm-ec-b button:hover { background: #f1f5f9; color: #0f172a; }
.frm-ec-et { font-weight: 700; font-size: .9rem; margin-bottom: 6px; outline: none; border-radius: 4px; padding: 1px 3px; cursor: text; }
.frm-ec-et:focus { background: #fff7ed; box-shadow: 0 0 0 1px #fdba74; }
.frm-ec-et:empty::before { content: 'Escribe la pregunta…'; color: #94a3b8; font-weight: 400; }
.frm-ec-prev { pointer-events: none; }
.frm-ed-pags button.frm-drop-antes { outline: 2px dashed #b4000c; }
.frm-ed-props-p { display: flex; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; background: #fff; z-index: 1; }
.frm-ed-props-p button { flex: 1; border: 0; background: none; padding: 10px 6px; font-weight: 700; font-size: .82rem; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; }
.frm-ed-props-p button.on { color: #b4000c; border-bottom-color: #b4000c; }
.frm-ed-props-p button b { background: #b4000c; color: #fff; border-radius: 999px; padding: 0 6px; font-size: .68rem; }
.frm-ed-props-b { padding: 12px; }
.frm-p { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: .78rem; font-weight: 700; color: #475569; min-width: 0; }
.frm-p input, .frm-p select, .frm-p textarea { width: 100%; font-weight: 400; }
.frm-p small { font-weight: 400; color: #94a3b8; font-size: .72rem; }
.frm-p-fila { display: flex; gap: 8px; }
.frm-p-fila > * { flex: 1; }
.frm-p-tit { font-weight: 800; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.frm-p-tit i { color: #b4000c; }
.frm-p-vacio { color: #64748b; font-size: .85rem; text-align: center; padding: 30px 10px; }
.frm-p-checks { display: grid; gap: 6px; margin-bottom: 10px; font-size: .84rem; }
.frm-p-checks label { display: flex; gap: 6px; align-items: center; }
.frm-p-val { border: 1px solid #e2e8f0; border-radius: 9px; padding: 8px 10px; margin-bottom: 10px; }
.frm-p-val summary { font-weight: 700; font-size: .82rem; cursor: pointer; margin-bottom: 4px; }
.frm-p-acc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
/* lógica condicional */
.frm-regla { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; margin-bottom: 10px; background: #f8fafc; }
.frm-regla-h { display: flex; gap: 6px; margin-bottom: 6px; }
.frm-regla-h input { flex: 1; font-weight: 700; }
.frm-regla button[data-ra], .frm-r-add button { border: 0; background: none; cursor: pointer; color: #64748b; font-family: inherit; font-size: .78rem; }
.frm-r-add button { color: #b4000c; font-weight: 700; padding: 3px 4px; }
.frm-r-grupo { border-left: 3px solid #cbd5e1; padding-left: 7px; margin: 4px 0; }
.frm-r-grupo .frm-r-grupo { border-left-color: #fdba74; }
.frm-r-op { font-size: .75rem; font-weight: 700; color: #475569; margin: 4px 0; }
.frm-r-op select { padding: 2px 4px !important; font-size: .75rem !important; }
.frm-r-cond, .frm-r-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 5px; align-items: center; }
.frm-r-cond select, .frm-r-cond input, .frm-r-acc select, .frm-r-acc input { font-size: .76rem !important; padding: 5px 6px !important; min-width: 0; width: 100%; }
.frm-r-cond button, .frm-r-acc button { justify-self: end; }
/* vista previa */
.frm-prev-disp { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.frm-prev-disp button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 6px 11px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .8rem; }
.frm-prev-disp button.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.frm-prev-marco { margin: 0 auto; border: 8px solid #1e293b; border-radius: 18px; background: #f8fafc; padding: 14px; transition: width .25s; box-sizing: border-box; max-height: 68vh; overflow: auto; }
/* más opciones */
.frm-mas section { border-bottom: 1px solid #e2e8f0; padding: 6px 0 14px; margin-bottom: 8px; }
.frm-mas h4 { margin: 4px 0 8px; display: flex; gap: 8px; align-items: center; }
.frm-enlace { display: flex; gap: 6px; margin-bottom: 8px; }
.frm-enlace input { flex: 1; }
.frm-qr { margin: 8px 0; display: inline-block; padding: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.frm-vers > div, .frm-progs > div { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; flex-wrap: wrap; }
.frm-vers span, .frm-progs span { color: #64748b; font-size: .8rem; flex: 1; }
.frm-hist { max-height: 220px; overflow: auto; font-size: .8rem; }
.frm-hist > div { padding: 3px 0; }
.frm-hist span { color: #94a3b8; }
.frm-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; font-size: .84rem; }
.frm-checks label { display: flex; gap: 5px; align-items: center; }
.frm-checks-alto { max-height: 200px; overflow: auto; flex-direction: column; flex-wrap: nowrap; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 8px; margin-top: 6px; }
/* respuestas */
.frm-filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; font-size: .82rem; }
.frm-filtros > input:first-child { flex: 1 1 200px; }
.frm-cols { position: relative; }
.frm-cols summary { cursor: pointer; border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 10px; background: #fff; list-style: none; }
.frm-cols > div { position: absolute; right: 0; top: 110%; z-index: 20; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); max-height: 320px; overflow: auto; min-width: 220px; display: grid; gap: 4px; }
.frm-tabla-w { overflow: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; max-height: 70vh; }
.frm-tabla { border-collapse: collapse; width: 100%; font-size: .82rem; }
.frm-tabla th { position: sticky; top: 0; background: #f8fafc; text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; font-weight: 800; color: #475569; }
.frm-tabla td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frm-tabla tbody tr { cursor: pointer; }
.frm-tabla tbody tr:hover { background: #fff7ed; }
.frm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.frm-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
.frm-stat > b { display: block; margin-bottom: 8px; }
.frm-barra { display: grid; grid-template-columns: 110px 1fr 34px; gap: 8px; align-items: center; font-size: .8rem; margin-bottom: 4px; }
.frm-barra span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frm-barra i { display: block; height: 10px; border-radius: 5px; background: #b4000c; min-width: 2px; }
.frm-barra em { font-style: normal; font-weight: 700; text-align: right; }
.frm-num-stat { font-size: .9rem; color: #475569; }
.frm-resp-meta { font-size: .82rem; color: #64748b; margin-bottom: 10px; }
.frm-rellenar { max-width: 860px; margin: 0 auto; }
/* ─── motor: formulario que se rellena ─── */
.frm-form { font-family: 'Inter', sans-serif; color: #0f172a; container-type: inline-size; }
@container (max-width: 560px) { .frm-rejilla { grid-template-columns: 1fr; } .frm-rejilla > * { grid-column: 1 / -1 !important; } }
.frm-cab h2 { margin: 0 0 4px; font-size: 1.3rem; }
.frm-cab p { margin: 0 0 14px; color: #64748b; }
.frm-prog { margin-bottom: 14px; font-size: .8rem; color: #64748b; }
.frm-prog-b { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.frm-prog-b i { display: block; height: 100%; background: #b4000c; transition: width .3s; }
.frm-pag-t { font-size: 1.05rem; margin: 6px 0 10px; }
.frm-rejilla { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; }
.frm-campo { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.frm-campo[hidden] { display: none; }
.frm-et { font-weight: 700; font-size: .88rem; }
.frm-ast { color: #b4000c; font-style: normal; margin-left: 2px; }
.frm-et { color: #0f172a; }
.frm-ayuda, .frm-ayuda-sub { color: #64748b; font-size: .76rem; }
.frm-campo input:not([type=checkbox]):not([type=radio]):not([type=range]), .frm-campo select, .frm-campo textarea { width: 100%; }
.frm-con-error input, .frm-con-error select, .frm-con-error textarea, .frm-con-error .frm-sino, .frm-con-error .frm-opciones { border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239, 68, 68, .15); border-radius: 8px; }
.frm-opciones { display: flex; flex-direction: column; gap: 5px; }
.frm-op { display: flex; gap: 8px; align-items: center; font-size: .88rem; cursor: pointer; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.frm-op:has(input:checked) { border-color: #b4000c; background: #fff5f5; }
.frm-op input { accent-color: #b4000c; width: 17px; height: 17px; }
.frm-sino { display: inline-flex; gap: 6px; }
.frm-sino button, .frm-escala button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 8px 18px; font-weight: 700; cursor: pointer; font-family: inherit; min-width: 44px; }
.frm-sino button.on, .frm-escala button.on { background: #b4000c; border-color: #b4000c; color: #fff; }
.frm-escala { display: flex; flex-wrap: wrap; gap: 4px; }
.frm-escala button { padding: 8px 0; flex: 1 0 36px; }
.frm-escala-t { display: flex; justify-content: space-between; font-size: .74rem; color: #64748b; }
.frm-estrellas { display: inline-flex; gap: 2px; }
.frm-estrellas button { border: 0; background: none; font-size: 1.6rem; color: #cbd5e1; cursor: pointer; padding: 0 2px; }
.frm-estrellas button.on { color: #f59e0b; }
.frm-rango { display: flex; gap: 10px; align-items: center; }
.frm-rango input { flex: 1; accent-color: #b4000c; }
.frm-rango output { font-weight: 800; min-width: 40px; text-align: right; }
.frm-btn-sub { border: 1px dashed #94a3b8; background: #f8fafc; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-family: inherit; font-size: .84rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: #334155; }
.frm-btn-sub:hover { border-color: #b4000c; color: #b4000c; }
.frm-archivos { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.frm-adjs { display: flex; flex-wrap: wrap; gap: 6px; }
.frm-adj { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 8px; font-size: .8rem; background: #fff; cursor: pointer; max-width: 100%; }
.frm-adj img { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; }
.frm-adj button { border: 0; background: none; cursor: pointer; color: #94a3b8; }
.frm-subiendo { opacity: .6; }
.frm-lienzo { display: flex; flex-direction: column; gap: 6px; }
.frm-lienzo canvas { width: 100%; max-width: 600px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.frm-lienzo-b { display: flex; gap: 6px; }
.frm-lienzo-b button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-family: inherit; font-weight: 600; }
.frm-ubi, .frm-codigo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.frm-codigo input { flex: 1 1 180px; }
.frm-ubi a { color: #0f172a; font-weight: 600; }
.frm-cam { margin-top: 6px; }
.frm-cam video { width: 100%; max-width: 420px; border-radius: 8px; background: #000; }
.frm-reg { position: relative; }
.frm-reg-sel { display: inline-flex; gap: 8px; align-items: center; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 7px 10px; font-weight: 600; }
.frm-reg-sel button { border: 0; background: none; color: #b4000c; cursor: pointer; font-weight: 700; }
.frm-reg-ops { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); max-height: 240px; overflow: auto; }
.frm-reg-ops:empty { display: none; }
.frm-reg-ops button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; cursor: pointer; font-family: inherit; font-size: .84rem; }
.frm-reg-ops button:hover { background: #fff7ed; }
.frm-reg-ops small { color: #94a3b8; margin-left: 6px; }
.frm-titulo { margin: 8px 0 0; font-size: 1.15rem; }
.frm-info { color: #334155; font-size: .9rem; line-height: 1.45; }
.frm-img { max-width: 100%; border-radius: 8px; }
.frm-sep { border: 0; border-top: 1px solid #e2e8f0; margin: 6px 0; width: 100%; }
.frm-seccion { border-left: 4px solid #b4000c; padding: 6px 12px; background: #fff5f5; border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.frm-seccion span { color: #64748b; font-size: .82rem; }
.frm-err-t { display: block; }
.frm-pie { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; }
.frm-pie-d { display: flex; gap: 8px; flex-wrap: wrap; }
.frm-aviso { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 8px 12px; font-size: .84rem; margin-bottom: 10px; }
.frm-fin { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 20px; text-align: center; }
.frm-fin i { font-size: 3rem; color: #16a34a; }
.frm-fin-mal i { color: #b4000c; }
.frm-fin span { color: #64748b; }
.frm-ro .frm-campo { border-bottom: 1px dashed #e2e8f0; padding-bottom: 8px; }
/* página pública (/f/<token>) e impresión */
.frm-publico { max-width: 820px; margin: 0 auto; padding: 18px 16px 40px; font-family: 'Inter', sans-serif; }
body.frm-print { font-family: 'Inter', Arial, sans-serif; padding: 20px; color: #0f172a; }
@media print { .frm-pie, .frm-btn-sub { display: none !important; } .frm-tarj, .frm-campo { break-inside: avoid; } }
/* móvil y tablet */
@media (max-width: 1200px) { .frm-ed { grid-template-columns: 190px minmax(0, 1fr) 280px; } }
@media (max-width: 900px) {
    .frm-ed { grid-template-columns: 1fr; }
    .frm-ed-lib, .frm-ed-props { position: static; max-height: none; }
    .frm-lib-l { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
    .frm-ec-b { opacity: 1; }
}
@media (max-width: 640px) {
    .frm-app { padding: 12px 10px 24px; }
    .frm-rejilla, .frm-ed-rejilla { grid-template-columns: 1fr; }
    .frm-rejilla > *, .frm-ed-rejilla > * { grid-column: 1 / -1 !important; }
    .frm-p-fila { flex-direction: column; gap: 0; }
    .frm-r-cond, .frm-r-acc { grid-template-columns: 1fr; }
}
.frm-lienzo-b button.frm-prim { background: #b4000c; border-color: #b4000c; color: #fff; }
