/* Terminal player-profile cascade. Loaded after the historical profile stylesheet. */
.ficha-page .pf-tabs-horizontal {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: stretch;
    align-self: auto;
    position: static;
    width: 100%;
    height: auto;
    min-height: 44px;
    box-sizing: border-box;
    gap: 0;
    margin-top: 13px;
    padding: 0 12px;
    overflow-x: auto;
    border: 1px solid #d8e2eb;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    background: #edf2f6;
}
.ficha-page .pf-tabs-horizontal .pf-tab-btn {
    flex: 1 1 150px;
    width: auto;
    min-width: 126px;
    min-height: 44px;
    padding: 11px 15px 9px;
    border: 0;
    border-right: 1px solid #d8e2eb;
    border-bottom: 3px solid transparent;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    color: #5b7287;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
}
.ficha-page .pf-tabs-horizontal .pf-tab-btn:first-child { border-left: 1px solid #d8e2eb; }
.ficha-page .pf-tabs-horizontal .pf-tab-btn:hover { background: #f7f9fb; color: #174f80; }
.ficha-page .pf-tabs-horizontal .pf-tab-btn.active {
    border-left-color: transparent;
    border-bottom-color: #176ac6;
    background: #fff;
    color: #123f63;
    font-weight: 750;
}
.ficha-page .pf-main-row { display: block; width: 100%; margin-top: 0; }
.ficha-page .pf-tab-col { padding: 18px; border-radius: 0 0 7px 7px; }

.ficha-page .pf-header .pfh-center-block,
.ficha-page .pf-header .pfh-decision-block { display: flex; align-items: stretch; }
.ficha-page .pf-header .pfh-anthro-block,
.ficha-page .pf-header .pfh-scouting-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    align-self: stretch;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #dbe5ed;
    border-left: 3px solid #7897b1;
    border-radius: 6px;
    background: #f5f8fb;
}
.ficha-page .pf-header .pfh-scouting-card { border-left-color: #176ac6; }
.ficha-page .pf-header .pfh-anthro-block > .pfh-block-heading,
.ficha-page .pf-header .pfh-scouting-card > .pfh-block-heading {
    height: 25px;
    min-height: 25px;
    box-sizing: border-box;
    padding-bottom: 6px;
    border-bottom: 1px solid #dfe7ee;
    color: #496b86;
    font-size: 12px;
    line-height: 18px;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-inline-stats {
    grid-auto-rows: 56px;
    margin-top: 6px;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-item,
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-item:nth-child(even) {
    display: grid;
    grid-template-rows: 20px 18px 10px;
    align-content: center;
    gap: 1px;
    width: 100%;
    height: 56px;
    min-height: 56px;
    box-sizing: border-box;
    padding-top: 2px;
    padding-bottom: 2px;
    border-bottom: 0;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-label {
    align-self: end;
    min-width: 0;
    font-size: 8.5px;
    line-height: 1.15;
    white-space: normal;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-value {
    align-self: center;
    min-width: 0;
    font-size: 13.5px;
    line-height: 18px;
}
.ficha-page .pf-header .pfh-stat-hint {
    align-self: end;
    height: 10px;
    margin: 0;
    font-size: 7.5px;
    line-height: 10px;
}
.ficha-page .pf-header .pfh-own-rating {
    height: 56px;
    min-height: 56px;
    margin-top: 6px;
    align-items: center;
}
.ficha-page .pf-header .pfh-own-decision {
    display: grid;
    grid-template-rows: 10px 28px 10px;
    align-content: center;
    align-items: center;
    gap: 1px;
}
.ficha-page .pf-header .pfh-own-decision-label,
.ficha-page .pf-header .pfh-own-report-count {
    width: auto;
    margin: 0;
    line-height: 10px;
}
.ficha-page .pf-header .pfh-own-rating-badge {
    width: max-content;
    box-sizing: border-box;
    padding: 7px 11px;
    line-height: 14px;
}
.ficha-page .pf-header .pfh-own-score {
    height: 48px;
    box-sizing: border-box;
    justify-content: center;
}
.ficha-page .pf-header .pfh-global-rating {
    margin-top: 0;
    padding-top: 6px;
}

.ficha-page .inf-grp-meta,
.ficha-page .inf-grp-pct-unit { display: none; }
.ficha-page .inf-grp-scout { font-size: 17px; }
.ficha-page .inf-grp-rank {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 5px;
    background: rgba(255,255,255,.10);
    color: #fff;
}
.ficha-page .inf-grp-ranks {
    display: grid;
    align-items: center;
    justify-content: end;
    gap: 7px;
    max-width: 560px;
    min-width: 0;
}
.ficha-page .inf-grp-ranks .inf-grp-rank {
    min-width: 0;
    height: 34px;
    box-sizing: border-box;
    justify-content: center;
    padding: 5px 9px;
    white-space: nowrap;
}
.ficha-page .inf-grp-ranks .inf-grp-rank-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ficha-page .inf-grp-rank-num { font-size: 15px; font-weight: 800; }
.ficha-page .inf-grp-rank-label { color: #dbe8f2; font-size: 9px; }
.ficha-page .pf-report-body { grid-template-columns: minmax(0, 1.4fr) minmax(350px, .6fr); }
.ficha-page .pf-report-body--data { grid-template-columns: 1fr; }
.ficha-page .pf-report-reading,
.ficha-page .pf-report-items { padding: 17px; }
.ficha-page .pf-report-match { font-size: 14px; }
.ficha-page .pf-report-head {
    min-height: 62px;
    box-sizing: border-box;
    align-items: stretch;
}
.ficha-page .pf-report-context {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 5px;
    min-height: 42px;
    align-items: start;
}
.ficha-page .pf-report-context .informe-fecha {
    min-height: 42px;
    align-items: flex-start;
    padding-top: 2px;
    line-height: 18px;
}
.ficha-page .pf-report-match {
    align-self: start;
    line-height: 18px;
}
.ficha-page .pf-report-score {
    min-height: 38px;
    box-sizing: border-box;
}
.ficha-page .pf-report-context .informe-meta {
    min-height: 19px;
    align-items: center;
    gap: 4px 8px;
    line-height: 19px;
}
.ficha-page .pf-report-context .pf-report-position {
    display: inline-flex;
    min-height: 19px;
    box-sizing: border-box;
    align-items: center;
    padding: 2px 7px;
    border: 1px solid #cfe0ee;
    border-radius: 3px;
    background: #eaf2f8;
    color: #245f8c;
    font-size: 8.5px;
    font-weight: 750;
    line-height: 13px;
    letter-spacing: .025em;
}
.ficha-page .pf-report-reading .informe-texto { font-size: 13.5px; line-height: 1.68; }
.ficha-page .pf-report-reading .pf-report-comparison {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 3px solid #3475aa;
    border-radius: 4px;
    background: #eef5fb;
    color: #3f5e76;
    font-size: 12.5px;
    line-height: 1.55;
}
.ficha-page .pf-report-reading .pf-report-comparison strong {
    display: block;
    margin-bottom: 5px;
    color: #315b7d;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ficha-page .pf-report-reading .pf-report-comparison p { margin: 0; white-space: pre-wrap; }
.ficha-page .pf-report-items-heading {
    height: 20px;
    margin-bottom: 6px;
    align-items: center;
}
.ficha-page .pf-report-items-columns {
    height: 24px;
    box-sizing: border-box;
}
.ficha-page .pf-report-item-category {
    display: flex;
    height: 25px;
    box-sizing: border-box;
    align-items: center;
    margin-top: 6px;
}
.ficha-page .pf-report-item-row {
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    border-bottom: 0;
    border-radius: 3px;
}
.ficha-page .pf-report-item-name { font-size: 11.5px; }
.ficha-page .pf-report-item-score { width: 34px; height: 28px; font-size: 14px; }
.ficha-page .pf-report-item-mean { font-size: 11px; }
.ficha-page .pf-report-item-row--above { background: #f1f8f4; }
.ficha-page .pf-report-item-row--above .pf-report-item-score { background: #dcefe4; color: #176348; }
.ficha-page .pf-report-item-row--below { background: #fdf4f3; }
.ficha-page .pf-report-item-row--below .pf-report-item-score { background: #f6dcda; color: #9a3537; }
.ficha-page .pf-report-item-row--equal .pf-report-item-score { background: #e6eef5; color: #315f82; }
.ficha-page .pf-report-card--data { border-left-color: #6d8295; }
.ficha-page .inf-rank-row {
    grid-template-columns: 26px 34px minmax(0,1fr) minmax(0,1fr) 40px 58px;
}

@media (max-width: 1050px) {
    .ficha-page .pf-report-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .ficha-page .pf-header .pfh-center-block,
    .ficha-page .pf-header .pfh-decision-block { padding: 14px 0 0; }
    .ficha-page .pf-tabs-horizontal { padding-inline: 5px; }
}

/* v10 — professional club dossier: identity → context → scouting decision. */
.ficha-page .pf-header {
    padding: 18px 20px;
    border: 1px solid #d7e1e9;
    border-top: 3px solid #2f836a;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(21, 54, 80, .035);
}
.ficha-page .pf-header .pfh-top-row {
    grid-template-columns: minmax(390px, 32fr) minmax(500px, 43fr) minmax(340px, 25fr);
    gap: 0;
    min-height: 184px;
    align-items: stretch;
}
.ficha-page .pf-header .pfh-identity-block,
.ficha-page .pf-header .pfh-anthro-block,
.ficha-page .pf-header .pfh-scouting-card {
    width: 100%;
    height: 184px;
    min-height: 184px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.ficha-page .pf-header .pfh-identity-block {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 0 22px 0 0;
    border-left: 0;
}
.ficha-page .pf-header .pfh-center-block,
.ficha-page .pf-header .pfh-decision-block {
    display: flex;
    padding: 0 22px;
    border: 0;
    border-left: 1px solid #dce4eb;
}
.ficha-page .pf-header .pfh-decision-block { padding-right: 0; }
.ficha-page .pf-header .pfh-anthro-block,
.ficha-page .pf-header .pfh-scouting-card { padding: 0; }

.ficha-page .pf-header .pfh-foto-col {
    width: 132px;
    flex-basis: 132px;
}
.ficha-page .pf-header .pf-header-photo {
    width: 132px;
    height: 158px;
    border: 1px solid #cbd7e1;
    border-radius: 6px;
    background: #eef2f5;
}
.ficha-page .pf-header .pf-header-main {
    justify-content: center;
    height: 100%;
}
.ficha-page .pf-header .pf-header-name {
    color: #103d61;
    font-size: 2.35rem;
    line-height: 1;
}
.ficha-page .pf-header .pfh-primary-role {
    display: flex;
    min-height: 22px;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: #174f7c;
    font-size: 13px;
    font-weight: 750;
}
.ficha-page .pf-header .pfh-primary-role .pfh-position-details,
.ficha-page .pf-header .pfh-primary-role .pfh-position-summary {
    display: inline-flex;
    align-items: center;
}
.ficha-page .pf-header .pfh-primary-role .pf-header-position {
    padding: 0;
    border: 0;
    background: transparent;
    color: #174f7c;
    font-size: 13px;
    font-weight: 750;
}
.ficha-page .pf-header .pfh-primary-role .pf-header-position::after {
    margin-left: 4px;
    color: #7990a3;
}
.ficha-page .pf-header .pfh-role-separator { color: #9aa9b5; }
.ficha-page .pf-header .pfh-primary-foot { color: #516d82; font-weight: 650; }
.ficha-page .pf-header .pf-header-club {
    min-height: 25px;
    margin-top: 9px;
    padding: 0;
    border: 0;
    color: #234a68;
    font-size: 12px;
    font-weight: 700;
}
.ficha-page .pf-header .pf-club-escudo { width: 23px; height: 23px; }
.ficha-page .pf-header .pfh-identity-meta {
    display: flex;
    min-height: 18px;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: #6d8192;
    font-size: 10.5px;
}
.ficha-page .pf-header .pfh-identity-meta .pfh-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
}
.ficha-page .pf-header .pfh-availability-row {
    display: flex;
    min-height: 22px;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}
.ficha-page .pf-header .pfh-availability-row .pf-header-status-chip {
    padding: 4px 8px;
    font-size: 9px;
}

.ficha-page .pf-header .pfh-transfermarkt-link {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    gap: 6px;
    padding: 3px 8px 3px 5px;
    border: 1px solid #183968;
    border-radius: 4px;
    background: #183968;
    color: #fff;
    font-size: 9px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease;
}

.ficha-page .pf-header .pfh-transfermarkt-link:hover,
.ficha-page .pf-header .pfh-transfermarkt-link:focus-visible {
    border-color: #27558b;
    background: #27558b;
    color: #fff;
}

.ficha-page .pf-header .pfh-transfermarkt-link:focus-visible {
    outline: 2px solid #8eb9e2;
    outline-offset: 2px;
}

.ficha-page .pf-header .pfh-transfermarkt-mark {
    display: grid;
    width: 16px;
    height: 15px;
    place-items: center;
    border-radius: 2px;
    background: #fff;
    color: #183968;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.ficha-page .pf-header .pfh-anthro-block > .pfh-block-heading,
.ficha-page .pf-header .pfh-scouting-card > .pfh-block-heading {
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    color: #365d79;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: .07em;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-inline-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 58px;
    gap: 0 18px;
    margin-top: 3px;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-item,
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-item:nth-child(even),
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-item:nth-child(4n+1) {
    display: grid;
    grid-template-rows: 16px 22px 12px;
    align-content: center;
    gap: 0;
    width: auto;
    height: 58px;
    min-height: 58px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-item:nth-child(n+4) {
    padding-top: 7px;
    border-top: 1px solid #e3e9ee;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-label {
    align-self: center;
    justify-self: center;
    width: 100%;
    color: #7b8d9c;
    font-size: 8px;
    line-height: 10px;
    text-align: center;
}
.ficha-page .pf-header .pfh-anthro-block .pfh-stat-value {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    justify-self: center;
    color: #123f63;
    font-size: 15px;
    font-weight: 750;
    line-height: 22px;
    text-align: center;
}
.ficha-page .pf-header .pfh-stat-hint {
    justify-self: center;
    width: 100%;
    height: 12px;
    color: #8999a7;
    font-size: 7.5px;
    line-height: 12px;
    text-align: center;
}
.ficha-page .pf-header .pfh-injury-history {
    display: flex;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #f3f6f8;
    color: #748797;
    font-size: 8.5px;
}
.ficha-page .pf-header .pfh-injury-history strong {
    color: #425f75;
    font-size: 9px;
}

.ficha-page .pf-header .pfh-own-rating {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    height: 86px;
    min-height: 86px;
    margin-top: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.ficha-page .pf-header .pfh-own-score {
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 14px 0 0;
    border: 0;
    text-align: center;
}
.ficha-page .pf-header .pfh-own-score-number {
    width: 100%;
    justify-content: center;
    margin: 0;
}
.ficha-page .pf-header .pfh-own-score-value {
    color: #0f4269;
    font-size: 3.2rem;
    line-height: .9;
}
.ficha-page .pf-header .pfh-own-score-scale {
    margin-bottom: 4px;
    color: #718798;
    font-size: 10px;
}
.ficha-page .pf-header .pfh-own-score-label {
    order: 2;
    align-self: center;
    margin-top: 7px;
    color: #718597;
    font-size: 9px;
    text-align: center;
}
.ficha-page .pf-header .pfh-own-decision {
    display: flex;
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding-left: 18px;
    border-left: 1px solid #dce5ec;
}
.ficha-page .pf-header .pfh-own-decision-label {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    color: #718597;
    font-size: 9px;
    text-align: center;
}
.ficha-page .pf-header .pfh-own-rating-badge {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 36px;
    box-sizing: border-box;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    white-space: normal;
}
.ficha-page .pf-header .pfh-own-report-meta {
    display: flex;
    min-height: 23px;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 6px;
    border-top: 1px solid #e2e8ed;
    color: #748798;
    font-size: 9px;
}
.ficha-page .pf-header .pfh-own-report-meta strong { color: #3f5f77; }
.ficha-page .pf-header .pfh-consensus {
    display: block;
    min-height: 39px;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 5px 7px;
    border-radius: 4px;
    background: #f3f6f8;
    color: #687e90;
    font-size: 9.2px;
}
.ficha-page .pf-header .pfh-consensus-head {
    display: flex;
    height: 11px;
    align-items: center;
    justify-content: space-between;
}
.ficha-page .pf-header .pfh-consensus-label {
    color: #8494a2;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.ficha-page .pf-header .pfh-consensus-head strong {
    color: #49657b;
    font-size: 8px;
}
.ficha-page .pf-header .pfh-consensus-ratings {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 5px;
    margin-top: 4px;
}
.ficha-page .pf-header .pfh-consensus-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 17px;
    box-sizing: border-box;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 8.8px;
    font-weight: 700;
    line-height: 13px;
}
.ficha-page .pf-header .pfh-consensus-rating strong {
    color: inherit;
    font-size: 9px;
}

@media (max-width: 1320px) {
    .ficha-page .pf-header .pfh-top-row {
        grid-template-columns: minmax(370px, 1fr) minmax(470px, 1.25fr);
    }
    .ficha-page .pf-header .pfh-decision-block {
        grid-column: 1 / -1;
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid #dce4eb;
    }
    .ficha-page .pf-header .pfh-scouting-card { height: auto; min-height: 150px; }
}
@media (max-width: 900px) {
    .ficha-page .pf-header .pfh-top-row { grid-template-columns: 1fr; }
    .ficha-page .pf-header .pfh-center-block,
    .ficha-page .pf-header .pfh-decision-block {
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid #dce4eb;
    }
    .ficha-page .pf-header .pfh-identity-block,
    .ficha-page .pf-header .pfh-anthro-block,
    .ficha-page .pf-header .pfh-scouting-card { height: auto; min-height: 0; }
}
@media (max-width: 620px) {
    .ficha-page .pf-header { padding: 12px; }
    .ficha-page .pf-header .pfh-identity-block {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        padding-right: 0;
    }
    .ficha-page .pf-header .pfh-foto-col { width: 96px; flex-basis: 96px; }
    .ficha-page .pf-header .pf-header-photo { width: 96px; height: 118px; }
    .ficha-page .pf-header .pf-header-name { font-size: 1.85rem; }
    .ficha-page .pf-header .pfh-anthro-block .pfh-inline-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
    }
    .ficha-page .pf-header .pfh-anthro-block .pfh-stat-item:nth-child(n+3) {
        border-top: 1px solid #e3e9ee;
    }
    .ficha-page .pf-header .pfh-own-rating { grid-template-columns: 42% 58%; }
}

/* La ruta de jugador muestra su estado desde el primer render, antes de que
   termine el callback de cabecera. Las pestañas aparecen con el perfil listo. */
.ficha-page .ficha-initial-loading {
    display: flex;
    min-height: 174px;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid #dce6ef;
    border-radius: 7px;
    background: #fff;
}

.ficha-page .ficha-loading-photo {
    width: 94px;
    height: 116px;
    flex: 0 0 94px;
    border-radius: 5px;
    background: linear-gradient(100deg, #e8eff5 18%, #f5f8fb 38%, #e8eff5 58%);
    background-size: 220% 100%;
    animation: ficha-loading-shimmer 1.5s linear infinite;
}

.ficha-page .ficha-loading-content {
    display: grid;
    width: min(100%, 420px);
    gap: 9px;
}

.ficha-page .ficha-loading-title {
    color: #153e60;
    font-family: var(--font-display, "Barlow Condensed", Arial, sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.ficha-page .ficha-loading-detail {
    color: #627b90;
    font-size: .82rem;
}

.ficha-page .ficha-loading-line {
    width: 100%;
    height: 9px;
    margin-top: 7px;
    border-radius: 3px;
    background: linear-gradient(100deg, #e8eff5 18%, #f5f8fb 38%, #e8eff5 58%);
    background-size: 220% 100%;
    animation: ficha-loading-shimmer 1.5s linear infinite;
}

.ficha-page .ficha-loading-line.short { width: 62%; margin-top: 0; }

.ficha-page .ficha-body:has(.ficha-initial-loading) .pf-tabs-horizontal,
.ficha-page .ficha-body:has(.ficha-initial-loading) .pf-main-row {
    display: none;
}

@keyframes ficha-loading-shimmer {
    to { background-position-x: -220%; }
}

@media (prefers-reduced-motion: reduce) {
    .ficha-page .ficha-loading-photo,
    .ficha-page .ficha-loading-line { animation: none; }
}

/* v11 — Informes: escala de lectura y metadatos claramente separados. */
.ficha-page .pf-report-head {
    min-height: 76px;
    padding: 13px 16px;
    gap: 20px;
}
.ficha-page .pf-report-context {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 50px;
    column-gap: 14px;
    row-gap: 7px;
}
.ficha-page .pf-report-context .informe-fecha {
    min-height: 50px;
    padding-top: 1px;
    padding-right: 14px;
    color: #496a84;
    font-size: 12px;
    font-weight: 650;
    line-height: 20px;
}
.ficha-page .pf-report-match {
    color: #123f63;
    font-size: 16px;
    line-height: 20px;
}
.ficha-page .pf-report-context .informe-meta {
    display: flex;
    min-height: 23px;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 7px;
    line-height: 17px;
}
.ficha-page .pf-report-context .pf-report-position,
.ficha-page .pf-report-context .informe-tag,
.ficha-page .pf-report-context .informe-partido {
    display: inline-flex;
    min-height: 22px;
    box-sizing: border-box;
    align-items: center;
    margin: 0;
    padding: 3px 8px;
    border: 1px solid #dce5ec;
    border-radius: 4px;
    background: #f3f6f8;
    color: #5d7385;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 14px;
    white-space: nowrap;
}
.ficha-page .pf-report-context .pf-report-position {
    border-color: #c5dbea;
    background: #e8f2f9;
    color: #175b8c;
    font-weight: 750;
}
.ficha-page .pf-report-assessment .informe-valoracion {
    padding: 9px 14px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 16px;
}
.ficha-page .pf-report-score { min-width: 70px; }
.ficha-page .pf-report-score small { font-size: 8.5px; }
.ficha-page .pf-report-score strong { font-size: 2rem; }

.ficha-page .pf-report-reading,
.ficha-page .pf-report-items { padding: 20px; }
.ficha-page .pf-report-subheading,
.ficha-page .pf-report-items-heading > span {
    font-size: 11.5px;
}
.ficha-page .pf-report-reading .informe-texto {
    margin-top: 10px;
    padding: 14px 15px;
    font-size: 15px;
    line-height: 1.7;
}
.ficha-page .pf-report-reading .informe-mental,
.ficha-page .pf-report-reading .pf-report-comparison {
    padding: 13px 15px;
    font-size: 13.5px;
    line-height: 1.6;
}
.ficha-page .pf-report-reading .informe-mental strong,
.ficha-page .pf-report-reading .pf-report-comparison strong {
    font-size: 10.5px;
}
.ficha-page .pf-report-items-heading {
    height: 24px;
    margin-bottom: 8px;
}
.ficha-page .pf-report-items-heading small { font-size: 9.5px; }
.ficha-page .pf-report-items-columns {
    height: 27px;
    font-size: 8.5px;
}
.ficha-page .pf-report-item-category {
    height: 28px;
    padding-inline: 9px;
    font-size: 9.5px;
}
.ficha-page .pf-report-item-row {
    height: 42px;
    min-height: 42px;
    padding-inline: 9px;
}
.ficha-page .pf-report-item-name { font-size: 13px; }
.ficha-page .pf-report-item-score {
    width: 36px;
    height: 30px;
    font-size: 15px;
}
.ficha-page .pf-report-item-mean { font-size: 12px; }

@media (max-width: 620px) {
    .ficha-page .pf-report-head {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    .ficha-page .pf-report-context { grid-template-columns: 1fr; }
    .ficha-page .pf-report-context .informe-fecha {
        grid-row: auto;
        min-height: auto;
        padding: 0;
        border-right: 0;
    }
    .ficha-page .pf-report-assessment { justify-content: space-between; }
    .ficha-page .pf-report-reading,
    .ficha-page .pf-report-items { padding: 14px; }
}
