@layer ficha {

@scope (.cos-ficha) {

.p1 { height: 100%; display: grid; grid-template-rows: 1.45fr 0.8fr 1.1fr; gap: 4mm; }
.p1 > .ex { min-height: 0; }
.p1 .ex-cos { flex: 1; min-height: 0; display: flex; }
.e1b { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4mm; width: 100%; min-height: 0; }
.foto-ample, .foto { position: relative; min-height: 0; }
.foto-ample > .img, .foto-ample > .img-ph, .foto > .img, .foto > .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: fill; }
.fila5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4mm; min-height: 0; }
.carta { display: grid; place-items: center; border-radius: var(--radi); border: var(--gruix) solid var(--acento); background: var(--paper); min-height: 0; padding: 0; }
.carta .lletra-gran { font-size: 4.4em; }
.e2b, .e3b { flex: 1; display: grid; grid-template-columns: var(--col, 44mm) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 8mm; align-items: stretch; width: 100%; min-height: 0; }
.cont { display: flex; height: 100%; align-items: center; justify-content: space-evenly; gap: 8mm; }
.cont .m { font-size: 3.4em; color: var(--acento); }
.igual { font-size: 2.6em; font-weight: 800; }
.cont .r.lletra { width: 3.4em; font-size: 3em; }
.pautes { display: grid; grid-template-rows: 1fr 1fr; gap: 5mm; height: 100%; }
.pautes .pauta { height: auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-around; gap: 4mm; padding: 0 4mm; }
.pautes .model { font-size: 2.6em; }
.pautes .r.lletra { width: 0; flex: 1 1 0; min-width: 0; font-size: 1.8em; height: auto; align-self: stretch; margin: 1.5mm 0; }
.e3b { --col: 70mm; }

}
}
