@layer ficha {

@scope (.cos-ficha) {

.pg { height: 100%; display: grid; gap: 5mm; }
.p1 { grid-template-rows: 1.15fr 1fr; }
.p2 { grid-template-rows: 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: contain; }
.eq { display: inline-flex; align-items: center; gap: 2.5mm; font-size: var(--t-l); font-weight: 800; white-space: nowrap; }
.eq .r { width: 2.1em; }
.e1c { display: grid; }
.rows, .rows2 { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3mm; min-height: 0; }
.card { display: grid; grid-template-columns: 1fr auto; align-items: center; justify-items: center; gap: 2mm; padding: 2mm 4mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); min-height: 0; }
.cubs { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2mm; height: 100%; width: 100%; }
.cb { position: relative; width: 18mm; aspect-ratio: 1; }
.cb > .img, .cb > .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.marcs { display: flex; gap: 4mm; align-items: center; justify-content: center; width: 100%; height: 100%; }
.marc { width: 54mm; height: auto; flex: none; }
.e3c { display: grid; grid-template-columns: 60mm 1fr; gap: 5mm; }
.pers { display: grid; grid-template-rows: 1fr 1fr; gap: 3mm; min-height: 0; }
.probs { display: grid; grid-template-rows: 1fr 1fr; gap: 3mm; }
.pr { display: flex; flex-direction: column; justify-content: space-between; gap: 3mm; padding: 3mm 4mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); font-weight: 600; }
.rs { display: flex; align-items: center; justify-content: center; gap: 3mm; font-size: var(--t-l); background: var(--acento-suau); border-radius: var(--radi); padding: 1.5mm 3mm; }
.rs .r { width: 2.2em; }
.taula { display: grid; grid-template-rows: auto repeat(6, minmax(0, 1fr)); gap: 2mm; }
.fe { display: grid; grid-template-columns: 26mm 1fr; align-items: center; gap: 3mm; padding: 1mm 3mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); }
.fe.capc { background: var(--acento-suau); border-color: var(--acento); padding: 2mm 3mm; }
.op { font-size: var(--t-m); font-weight: 800; }
.ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm; align-items: center; justify-items: center; }
.ops.hd span { text-align: center; font-weight: 700; font-size: var(--t-s); line-height: 1.2; }
.ops .tria input { width: 1.6em; height: 1.6em; }
.rows .cb { width: 21mm; }
.rows .cubs { justify-content: space-evenly; }
.card > .eq { align-self: stretch; background: var(--acento-suau); border-radius: var(--radi); padding: 0 5mm; }
.pr > span:first-child { font-size: var(--t-l); line-height: 1.4; }

}
}
