@layer ficha {

@scope (.cos-ficha) {

.pg { height: 100%; display: grid; gap: 5mm; }
.p1 { grid-template-rows: 1fr auto; }
.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: fill; border-radius: var(--radi); }
.e1c { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 3mm; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.mod { display: grid; grid-template-rows: auto auto; gap: 2mm; align-content: start; }
.mt { display: grid; grid-template-columns: 12mm repeat(2, minmax(0, 1fr)); gap: 2mm; align-items: stretch; }
.e1c .mt { grid-template-columns: 12mm repeat(2, minmax(0, 1fr)); }
.cpt { display: grid; place-items: center; background: var(--acento); color: var(--paper); border-radius: var(--radi); font-size: var(--t-m); min-height: 8mm; }
.cel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5mm; padding: 1.5mm 2.5mm; border: var(--gruix) solid var(--acento); border-radius: var(--radi); background: var(--acento-suau); font-weight: 700; min-height: 17mm; }
.cel i { font-style: normal; white-space: nowrap; font-size: var(--t-s); }
.cel .r { width: 4.6em; }
.tt { display: flex; align-items: center; justify-content: space-between; gap: 3mm; padding: 1.5mm 3mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); font-weight: 800; }
.tt .r { width: 4em; }
.lns { display: grid; grid-auto-rows: auto; gap: 3mm; }
.ln { display: flex; flex-wrap: wrap; align-items: center; gap: 2mm 3mm; padding: 3mm 4mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); font-weight: 700; }
.ln .op { font-size: var(--t-xl); min-width: 3.2em; color: var(--acento); }
.ln .st { font-size: var(--t-m); }
.ln .r { width: 3.6em; }
.pbs { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 4mm; }
.pb { display: grid; grid-template-columns: 52mm 1fr; gap: 5mm; padding: 2mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); min-height: 0; }
.px { display: grid; grid-template-rows: auto auto; align-content: center; gap: 4mm; font-weight: 600; font-size: var(--t-xl); line-height: 1.4; align-items: center; }
.cl { display: flex; align-items: center; justify-content: center; gap: 3mm; padding: 3mm 4mm; font-size: var(--t-xl); background: var(--acento-suau); border-radius: var(--radi); font-weight: 800; }
.cl .r { width: 4em; }

}
}
