@layer ficha {

@scope (.cos-ficha) {

.pg { height: 100%; display: grid; gap: 5mm; }
.p1 { grid-template-rows: 1fr; }
.p2 { grid-template-rows: auto auto 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; border-radius: var(--radi); }
.ms-g { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3mm; }
.ms { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 2mm; padding: 2mm 3mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); min-height: 0; }
.ll { position: absolute; left: 2mm; top: 2mm; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--acento); color: var(--paper); }
.tp { width: 100%; height: 100%; }
.tp .mitja { fill: var(--acento-suau); stroke: var(--il-contorn); stroke-width: 1.5; }
.tp .base { stroke: var(--il-contorn); stroke-width: 1.5; }
.tp .tic { stroke: var(--il-contorn); stroke-width: 0.8; }
.tp .nt { font-size: 7.5px; text-anchor: middle; fill: var(--il-contorn); font-weight: 700; }
.tp .cunya { fill: var(--acento); fill-opacity: 0.35; stroke: none; }
.tp .rai { stroke: var(--acento); stroke-width: 2; }
.tp .vert { fill: var(--il-contorn); }
.rs { display: flex; align-items: center; justify-content: center; gap: 2mm; flex-wrap: wrap; font-weight: 700; }
.rs .r { width: 3em; }
.tps { display: flex; gap: 3mm; font-size: var(--t-s); }
.fls { display: grid; grid-auto-rows: auto; gap: 2mm; }
.fl { display: flex; align-items: center; justify-content: space-between; gap: 4mm; padding: 1mm 5mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); }
.fl .gr { font-size: var(--t-xl); min-width: 3.5em; color: var(--acento); }
.fl .tps { font-size: var(--t-m); gap: 8mm; font-weight: 700; flex: 1; justify-content: space-around; }
.e3c { display: grid; grid-template-columns: 44mm 1fr; gap: 4mm; }
.esq { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.tri { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 2mm; padding: 2mm 3mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); min-height: 0; }
.tri .il { width: 100%; height: 100%; }
.ls { display: grid; grid-template-columns: repeat(3, auto auto); align-items: center; justify-content: center; gap: 1.5mm; font-weight: 800; }
.ls .r { width: 2.2em; font-size: .95em; }
.e4c { display: grid; }
.sms { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 3mm; }
.sm { display: flex; align-items: center; justify-content: center; gap: 3mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); font-size: var(--t-xl); font-weight: 800; }
.sm .r { width: 3em; }

}
}
