@layer ficha {

@scope (.cos-ficha) {

.pg { height: 100%; display: grid; gap: 5mm; }
.p1 { grid-template-rows: auto 1fr; }
.p2 { grid-template-rows: repeat(3, auto); align-content: stretch; }
.p2 { grid-template-rows: 1fr 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; border-radius: var(--radi); }
.ors { display: grid; grid-auto-rows: auto; gap: 3.5mm; flex: none; }
.or { display: flex; align-items: center; gap: 3mm; padding: 2.5mm 4mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); font-weight: 700; }
.or .dv { font-size: var(--t-xl); color: var(--acento); min-width: 4.4em; }
.or .lb { font-size: var(--t-m); }
.or .r { width: 4em; flex: none; }
.or .r:nth-of-type(2) { width: 2.4em; }
.hs { display: grid; grid-template-columns: 66mm 1fr; gap: 5mm; height: 100%; }
.hx { display: grid; min-height: 0; }
.ps { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 3mm; min-height: 0; }
.pr { display: flex; align-items: center; justify-content: space-between; gap: 4mm; padding: 2mm 4mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); font-weight: 600; font-size: var(--t-m); }
.ql { display: flex; align-items: center; gap: 2mm; flex: none; font-weight: 800; padding: 1mm 2.5mm; background: var(--acento-suau); border-radius: var(--radi); font-size: var(--t-m); }
.ql .r { width: 3.2em; }

}
}
