@layer ficha {

@scope (.cos-ficha) {

.pg { height: 100%; display: grid; gap: 5mm; }
.p1 { grid-template-rows: auto 1fr; }
.p2 { grid-template-rows: 1fr auto; }
.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); }
.fls { display: grid; grid-auto-rows: auto; gap: 2mm; }
.fl { display: grid; grid-template-columns: 14mm 1fr 24mm; align-items: center; gap: 4mm; padding: 1.2mm 4mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); }
.fl.hd { background: var(--acento-suau); border-color: var(--acento); font-weight: 800; }
.fl.hd b:last-child { text-align: center; }
.xv { font-size: var(--t-xl); color: var(--acento); text-align: center; }
.bks { display: flex; gap: 2mm; align-items: center; }
.bk { position: relative; width: 15mm; height: 15mm; display: block; }
.bk > .img, .bk > .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.fl .r { width: 100%; }
.e2c { display: grid; grid-template-columns: auto 1fr; gap: 5mm; }
.gw { padding: 2mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); display: grid; place-items: center; }
.gf { width: auto; height: 100%; max-width: 100%; aspect-ratio: 150 / 160; }
.gf .g { stroke: var(--il-gris); stroke-width: 0.5; }
.gf .ax { stroke: var(--il-contorn); stroke-width: 1.5; }
.gf .n { font-size: 7px; text-anchor: middle; fill: var(--il-contorn); font-weight: 700; }
.gf .et { font-size: 9px; font-weight: 800; fill: var(--il-contorn); }
.gf .pp { fill: var(--il-contorn); r: 2.4px; }
.gf .marca.on .pp { fill: var(--acento); }
.gf .marca.on .halo { opacity: 1; }
.gf .marca .halo { stroke-width: 2; stroke-dasharray: none; }
.dr { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 3mm; }
.ql2 { 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: 700; font-size: var(--t-m); }
.ql2.fm { justify-content: center; font-size: var(--t-xl); font-weight: 800; background: var(--acento-suau); }
.ql2 .r { width: 2.4em; flex: none; }
.trias { display: flex; gap: 6mm; font-weight: 700; flex: none; }
.e3c { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 3mm; }
.ps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.pr { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2mm; padding: 2mm 3mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); font-weight: 600; text-align: center; }
.ql { display: flex; align-items: center; gap: 2mm; font-weight: 800; padding: 1.5mm 3mm; background: var(--acento-suau); border-radius: var(--radi); }
.ql .r { width: 3.2em; }
.tbls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.tbl { display: grid; gap: 1.5mm; padding: 2mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); background: var(--paper); }
.th { display: grid; grid-template-columns: 8mm repeat(4, 1fr); text-align: center; gap: 1mm; font-size: var(--t-m); }
.th span { font-weight: 800; color: var(--acento); }
.th b { background: var(--acento-suau); border-radius: 4px; padding: 1mm 0; }
.vf { display: flex; align-items: center; justify-content: space-between; gap: 2mm; font-size: var(--t-s); font-weight: 600; flex-wrap: wrap; }

}
}
