@layer ficha {

@scope (.cos-ficha) {

.pg { height: 100%; display: grid; gap: 5mm; }
.p1 { grid-template-rows: 1fr 1fr; }
.p2 { grid-template-rows: 1.1fr 1fr; }
.ex-cos { display: flex; flex-direction: column; }
.ex-cos > * { flex: 1; min-height: 0; }
.foto { position: relative; min-height: 0; }
.foto > .img, .foto > .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: fill; }
.fig { display: grid; grid-template-columns: auto 1fr; gap: 5mm; }
.fig > .quad { height: 100%; width: auto; max-width: 100%; }
.fig > .foto { border-radius: var(--radi); }
.quad .cel { fill: transparent; stroke: var(--il-gris); stroke-width: 0.04; cursor: pointer; }
.quad .vuit { fill: var(--paper); stroke: var(--il-gris); stroke-width: 0.04; }
.quad .fix { fill: var(--acento); stroke: var(--il-contorn); stroke-width: 0.06; }
.quad .cel.pinta.on { fill: var(--acento); stroke: var(--il-contorn); stroke-width: 0.06; }
.quad .eix { stroke: var(--il-contorn); stroke-width: 0.1; stroke-dasharray: 0.3 0.2; }
.quad .piv { fill: var(--paper); stroke: var(--il-contorn); stroke-width: 0.1; }
.quad .vec { fill: none; stroke: var(--il-contorn); stroke-width: 0.1; stroke-dasharray: 0.3 0.2; }
.quad .punta { fill: var(--il-contorn); }
.quad .cel.ok { stroke: var(--ok); }
.quad .cel.reintent { stroke: var(--reintent); fill: transparent; }
.f4 { grid-template-columns: 1fr auto; }
.f4 > .quad { order: 2; }
.esq { display: grid; grid-template-rows: auto 1fr; gap: 3mm; min-height: 0; }
.orig { display: flex; align-items: center; justify-content: center; gap: 5mm; padding: 3mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); font-weight: 700; }
.orig .quad { height: 30mm; width: auto; }

}
}
