/* ============================================
   ONA Club · Mi perfil (app v2, img 19) — prefijo pf-
   Cabecera con nivel, datos, Mi progreso, Mi camino ONA, baldosas de cristal (img 11),
   Mis logros, Invita a una amiga y Ayuda y contacto.
   ============================================ */

.pf { display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.pf svg { flex-shrink: 0; }
.pf-head__info, .pf-sec > div, .pf-tile__body, .pf-goal__txt, .pf-cbtn__txt, .pf-friends__name, .pf-legal > span, .pf-lvl, .pf-stat { min-width: 0; }

/* ── Piezas comunes ── */
.pf-card {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(94, 79, 63, .07), 0 1px 3px rgba(94, 79, 63, .05);
}
.pf-skel {
    min-height: 150px;
    background: linear-gradient(100deg, rgba(255,255,255,.6) 30%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.6) 70%);
    background-size: 300% 100%;
    animation: pfShine 1.4s linear infinite;
}
@keyframes pfShine { to { background-position: -150% 0; } }

.pf-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 6.4vw, 28px); line-height: 1.1; color: var(--text-heading); letter-spacing: -.01em; }
.pf-title em { font-style: italic; color: #7d6853; }
.pf-title--sm { font-size: 21px; }
.pf-sub { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-secondary); }
.pf-muted { font-size: 13px; color: var(--text-muted); }
.pf-eyebrow { font-size: 11.5px; letter-spacing: .3em; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; }

.pf-sec { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pf-sec--wrap { flex-wrap: wrap; }
.pf-more {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding-top: 4px;
    font-size: 13.5px; color: var(--text-heading); text-decoration: none; white-space: nowrap;
}

.pf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 18px;
    border-radius: 999px; border: 1px solid rgba(94, 79, 63, .18); background: rgba(255, 255, 255, .9);
    font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-heading); cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease;
}
.pf-btn:active { transform: scale(.96); }
.pf-btn--solid {
    border-color: transparent; color: #fff;
    background: linear-gradient(160deg, #a38d76, #7b6754);
    box-shadow: 0 8px 18px rgba(94, 79, 63, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.pf-bar { position: relative; height: 9px; border-radius: 999px; background: #eee4d8; overflow: hidden; flex: 1; }
.pf-bar > i {
    position: absolute; inset: 0 auto 0 0; border-radius: inherit;
    background: linear-gradient(90deg, #b29c84, #7d6853);
    transition: width .6s cubic-bezier(.16, 1, .3, 1);
}

/* Icono «de cristal» (img 11): baldosa esmerilada con brillo arriba y relieve suave */
.pf-glass {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px;
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    color: #7d6853;
    background: linear-gradient(150deg, rgba(255, 255, 255, .98) 0%, rgba(246, 239, 231, .85) 55%, rgba(233, 222, 209, .8) 100%);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow:
        0 8px 18px rgba(94, 79, 63, .13),
        0 2px 4px rgba(94, 79, 63, .06),
        inset 0 1px 0 #fff,
        inset 0 -6px 12px rgba(163, 141, 118, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.pf-glass svg { stroke-width: 1.7; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)); }

.pf-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 18px; text-align: center; color: var(--text-secondary); }
.pf-empty > svg { color: #8a7762; }
.pf-empty p { margin: 0; font-size: 14px; }

/* Foco visible en todo lo pulsable */
.pf a:focus-visible, .pf button:focus-visible, .pf-tile:focus-visible {
    outline: 2px solid #7d6853; outline-offset: 2px;
}

/* ── Cabecera de subpantallas ── */
.pf-top { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.pf-back {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .95);
    background: rgba(255, 255, 255, .85); box-shadow: 0 4px 12px rgba(94, 79, 63, .08);
    display: flex; align-items: center; justify-content: center; color: var(--text-heading); cursor: pointer;
}
.pf-back:active { transform: scale(.92); }
.pf-top__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(27px, 7.6vw, 34px); line-height: 1.05; color: var(--text-heading); letter-spacing: -.01em; }
.pf-top__title em { font-style: italic; font-weight: 500; color: #7d6853; }

/* ═════════ Mi perfil ═════════ */

/* Cabecera */
.pf-head { padding: 16px 16px 14px; }
.pf-head__top { display: flex; align-items: center; gap: 14px; }
.pf-avatar { position: relative; flex: 0 0 auto; width: 96px; height: 96px; }
.pf-avatar__img {
    display: block; width: 100%; height: 100%; border-radius: 50%;
    background: #e9dfd2 center/cover no-repeat;
    border: 3px solid #fff; box-shadow: 0 10px 24px rgba(94, 79, 63, .18);
}
.pf-avatar__img--ini {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 40px; color: #fff;
    background: linear-gradient(160deg, #b8a28a, #7b6754);
}
.pf-avatar__cam {
    position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid #fff; background: rgba(255, 255, 255, .95); color: #7d6853; cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(94, 79, 63, .18);
}
.pf-avatar__cam:active { transform: scale(.92); }
.pf-head__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pf-head__name {
    margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 7.4vw, 36px);
    line-height: 1.05; color: var(--text-heading); letter-spacing: -.015em; overflow-wrap: anywhere;
}
.pf-head__since { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.pf-head__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.pf-pill {
    display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px;
    background: #efe5d9; color: #5e4f3f; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
.pf-rank {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 10px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .95); background: rgba(250, 245, 239, .95); color: #7d6853;
    box-shadow: 0 4px 12px rgba(94, 79, 63, .08); font: inherit; cursor: pointer; text-align: left;
}
.pf-rank > span { display: flex; flex-direction: column; line-height: 1.05; }
.pf-rank b { font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--text-heading); }
.pf-rank small { font-size: 10.5px; color: var(--text-secondary); }
.pf-rank > svg:last-child { color: var(--text-muted); }
.pf-head__bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pf-head__pct { font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.pf-head__next { margin: 7px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.pf-head__next b { color: var(--text-heading); font-weight: 600; }
.pf-head__next strong { font-size: 11.5px; letter-spacing: .14em; color: #5e4f3f; font-weight: 700; }

/* Cuatro datos */
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pf-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 11px; border-radius: 20px; text-align: center; }
.pf-stat__ic {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #f4ece2; color: #8a7762; margin-bottom: 3px;
}
.pf-stat b { font-family: var(--font-display); font-size: 25px; font-weight: 500; line-height: 1.05; color: var(--text-heading); }
.pf-stat small { font-size: 11px; line-height: 1.2; color: var(--text-secondary); }

/* Mi progreso */
.pf-prog { padding: 16px; }
.pf-prog__body { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.pf-bars {
    display: flex; align-items: flex-end; gap: 8px; height: 132px; padding: 0 2px;
    border-bottom: 1px solid rgba(94, 79, 63, .12);
    background-image: linear-gradient(rgba(94, 79, 63, .06) 1px, transparent 1px);
    background-size: 100% 33%;
}
.pf-bars__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 20px; }
.pf-bars__col i {
    display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #e3d6c7, #d3c2ae);
    transition: height .6s cubic-bezier(.16, 1, .3, 1);
}
.pf-bars__col.is-now i { background: linear-gradient(180deg, #b29c84, #8a7762); box-shadow: 0 6px 14px rgba(94, 79, 63, .2); }
.pf-bars__val { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 3px; }
.pf-bars__lbl { position: absolute; bottom: 0; font-size: 11px; color: var(--text-muted); }
.pf-bars__col.is-now .pf-bars__lbl { color: var(--text-heading); font-weight: 600; }
.pf-prog__side { display: flex; align-items: center; gap: 14px; }
.pf-ring { position: relative; flex: 0 0 auto; width: 122px; height: 122px; }
.pf-ring svg { width: 100%; height: 100%; display: block; }
.pf-ring__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pf-ring__in b { font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1; color: var(--text-heading); }
.pf-ring__in small { margin-top: 4px; font-size: 10.5px; line-height: 1.2; color: var(--text-secondary); }
.pf-prog__photo { flex: 1; align-self: stretch; min-height: 122px; border-radius: 20px; background: #e9dfd2 center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.pf-prog__goal { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: #faf5ef; }
.pf-prog__goal small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--text-secondary); }
.pf-prog__goal b { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text-heading); }
.pf-prog__goal a { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 13px; color: #7d6853; text-decoration: none; font-weight: 600; }

/* Mi camino ONA */
.pf-camino { padding: 16px 14px 14px; overflow: hidden; }
.pf-camino .pf-sec { padding: 0 2px; }
.pf-camino .pf-btn--solid { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.pf-path { margin: 14px -4px 0; overflow-x: auto; scrollbar-width: none; }
.pf-path::-webkit-scrollbar { display: none; }
.pf-path__track { list-style: none; margin: 0; padding: 4px 0 2px; display: flex; min-width: 100%; }
.pf-lvl { flex: 1 0 62px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
/* Línea que une cada nivel con el anterior */
.pf-lvl + .pf-lvl::before {
    content: ''; position: absolute; top: 25px; right: 50%; width: 100%; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, #d8cab9 0 5px, transparent 5px 9px);
}
.pf-lvl.is-hecho::before, .pf-lvl.is-actual::before { background: #8a7762 !important; }
.pf-lvl__dot {
    position: relative; z-index: 1; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #f4ece2; color: #a89788; border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 4px 10px rgba(94, 79, 63, .08), inset 0 1px 0 #fff;
}
.pf-lvl.is-hecho .pf-lvl__dot { background: linear-gradient(160deg, #a38d76, #7b6754); color: #fff; }
.pf-lvl.is-actual .pf-lvl__dot {
    width: 56px; height: 56px; margin-top: -3px; color: #fff;
    background: radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #a38d76 0%, #8a7762 45%, #6e5d4b 100%);
    border: 3px solid #fff;
    box-shadow: 0 10px 20px rgba(94, 79, 63, .3), inset 0 -4px 8px rgba(46, 36, 27, .25);
}
.pf-lvl__lock {
    position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-style: normal;
    background: #8a7762; color: #fff; border: 2px solid #fff;
}
.pf-lvl__name { font-size: clamp(11px, 3.2vw, 13px); font-weight: 600; color: var(--text-heading); margin-top: 3px; white-space: nowrap; letter-spacing: -.01em; }
.pf-lvl.is-bloqueado .pf-lvl__name { color: var(--text-secondary); }
.pf-lvl__range { font-size: 10px; line-height: 1.25; color: var(--text-muted); padding: 0 1px; }
.pf-lvl__tag {
    margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: #efe5d9; color: #5e4f3f;
    font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.pf-goal {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 12px;
    margin-top: 14px; padding: 12px; border-radius: 18px; background: rgba(250, 245, 239, .95);
}
.pf-goal__ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: #8a7762; box-shadow: 0 3px 8px rgba(94, 79, 63, .08); }
.pf-goal__txt { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; color: var(--text-secondary); }
.pf-goal__txt b { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-heading); }
.pf-goal__txt strong { font-size: 11px; letter-spacing: .12em; color: #5e4f3f; }
.pf-goal__bar { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 10px; }
.pf-goal__bar small { font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.pf-goal__gift {
    grid-column: 3; grid-row: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(94, 79, 63, .14);
    background: #fff; color: #7d6853; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Baldosas de cristal */
.pf-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    min-height: 150px; padding: 14px 14px 13px; border-radius: 22px; text-decoration: none; color: inherit;
    background: linear-gradient(155deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .62) 100%);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 10px 26px rgba(94, 79, 63, .08), 0 1px 3px rgba(94, 79, 63, .05), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    transition: transform .18s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}
button.pf-tile { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.pf-tile:active { transform: scale(.975); }
.pf-tile__photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 0;
    background: #e9dfd2 center/cover no-repeat; opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
.pf-tile > .pf-glass, .pf-tile__body, .pf-tile__go { position: relative; z-index: 1; }
.pf-tile__body { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.pf-tile__title { font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.12; color: var(--text-heading); }
.pf-tile__sub { font-size: 12px; line-height: 1.35; color: var(--text-secondary); }
.pf-tile__num { font-family: var(--font-display); font-size: 24px; line-height: 1; color: #7d6853; }
.pf-tile__badges { display: flex; gap: 5px; margin: 2px 0; }
.pf-mini {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #f4ece2; color: #c4b5a4; border: 1px solid #fff;
}
.pf-mini.is-on { background: linear-gradient(160deg, #a38d76, #7b6754); color: #fff; box-shadow: 0 3px 8px rgba(94, 79, 63, .2); }
.pf-tile__go { position: absolute; top: 14px; right: 12px; color: var(--text-muted); }
.pf-tile--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 14px 40px 14px 14px; }
.pf-tile--wide .pf-tile__go { top: 50%; transform: translateY(-50%); }
.pf-tile--accent {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(214, 192, 166, .45), rgba(214, 192, 166, 0) 60%),
        linear-gradient(155deg, rgba(255, 255, 255, .92) 0%, rgba(246, 238, 229, .8) 100%);
}
.pf-admin {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 2px;
    border-radius: 999px; border: 1px solid rgba(94, 79, 63, .18); background: rgba(255, 255, 255, .7);
    font: inherit; font-size: 14px; font-weight: 600; color: var(--text-heading); cursor: pointer;
}

/* Invitadas */
.pf-head--guest .pf-avatar { width: 76px; height: 76px; }
.pf-head--guest .pf-avatar__img--ini { font-size: 32px; }
.pf-cta { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.pf-cta p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.pf-cta__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ═════════ Mis logros ═════════ */
.pf-lsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 6px; text-align: center; }
.pf-lsum > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 4px; }
.pf-lsum > div + div { border-left: 1px solid rgba(94, 79, 63, .1); }
.pf-lsum b { font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.05; color: var(--text-heading); }
.pf-lsum b span { font-size: 16px; color: var(--text-muted); }
.pf-lsum small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--text-secondary); line-height: 1.25; }
.pf-note { display: flex; gap: 7px; align-items: flex-start; margin: -2px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); }
.pf-note svg { flex: 0 0 auto; margin-top: 2px; color: #8a7762; }
.pf-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-badge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; text-align: center; border-radius: 22px; }
.pf-badge__ic {
    position: relative; width: 58px; height: 58px; border-radius: 50%; margin-bottom: 4px;
    display: flex; align-items: center; justify-content: center;
    background: #f4ece2; color: #b9a995; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(94, 79, 63, .08);
}
.pf-badge.is-on .pf-badge__ic {
    color: #fff;
    background: radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #a38d76 0%, #8a7762 45%, #6e5d4b 100%);
    box-shadow: 0 10px 20px rgba(94, 79, 63, .28), inset 0 -4px 8px rgba(46, 36, 27, .22);
}
.pf-badge__name { margin: 0; font-family: var(--font-display); font-size: 16.5px; font-weight: 500; line-height: 1.15; color: var(--text-heading); }
.pf-badge__desc { margin: 0; font-size: 12px; line-height: 1.35; color: var(--text-secondary); }
.pf-badge:not(.is-on) .pf-badge__name { color: var(--text-secondary); }
.pf-badge__ok { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #4f8a5b; }
.pf-badge__prog { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pf-badge__prog .pf-bar { flex: none; height: 6px; }
.pf-badge__prog small { font-size: 11px; color: var(--text-muted); }
.pf-badge__pts {
    margin-top: 6px; padding: 2px 8px; border-radius: 999px;
    background: #f4ece2; color: #7d6853; font-size: 10.5px; font-weight: 700;
}
.pf-badge.is-on .pf-badge__pts { background: #7d6853; color: #fff; }

/* ═════════ Invita a una amiga ═════════ */
.pf-inv {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px 18px; text-align: center;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(214, 192, 166, .35), rgba(214, 192, 166, 0) 70%),
        rgba(255, 255, 255, .82);
}
.pf-inv__code {
    max-width: 100%; padding: 12px 20px; border-radius: 18px; border: 1px dashed rgba(125, 104, 83, .45);
    background: rgba(255, 255, 255, .9); cursor: pointer;
    font-family: var(--font-display); font-size: clamp(28px, 9vw, 38px); font-weight: 500; letter-spacing: .14em; color: var(--text-heading);
    overflow-wrap: anywhere;
}
.pf-inv__txt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.pf-inv__txt b { color: var(--text-heading); }
.pf-inv__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.pf-how, .pf-friends { padding: 16px; }
.pf-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pf-steps li { display: flex; gap: 12px; align-items: flex-start; }
.pf-steps li > span {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #a38d76, #7b6754); color: #fff; font-family: var(--font-display); font-size: 15px;
}
.pf-steps b { font-size: 14.5px; color: var(--text-heading); }
.pf-steps p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.pf-friends .pf-sec { align-items: baseline; }
.pf-friends__list { list-style: none; margin: 10px 0 0; padding: 0; }
.pf-friends__list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.pf-friends__list li + li { border-top: 1px solid rgba(94, 79, 63, .08); }
.pf-friends__ini {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #f1e8dd; color: #7d6853; font-family: var(--font-display); font-size: 17px;
}
.pf-friends__name { flex: 1; display: flex; flex-direction: column; font-size: 14.5px; color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; }
.pf-friends__name small { font-size: 12px; color: var(--text-muted); }
.pf-friends__empty { margin: 10px 0 0; }
.pf-tag {
    flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #f1e8dd; color: #7a6c5d;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.pf-tag.is-ok { background: rgba(79, 138, 91, .12); color: #3f7a4c; }

/* ═════════ Ayuda y contacto ═════════ */
.pf-contact { padding: 16px; }
.pf-contact__btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pf-cbtn {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .95); background: rgba(250, 245, 239, .9);
    font: inherit; color: var(--text-heading); text-align: left; cursor: pointer;
    transition: transform .15s ease;
}
.pf-cbtn:active { transform: scale(.98); }
.pf-cbtn .pf-glass { width: 42px; height: 42px; border-radius: 14px; }
.pf-cbtn__txt { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.pf-cbtn__txt b { font-size: 14.5px; font-weight: 600; }
.pf-cbtn__txt small { font-size: 12px; color: var(--text-secondary); line-height: 1.3; }
.pf-cbtn > svg:last-child { flex: 0 0 auto; color: var(--text-muted); }
.pf-faq { padding: 6px 16px; }
.pf-faq__cat { margin: 12px 0 2px; font-size: 11.5px; letter-spacing: .28em; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; }
.pf-faq__item + .pf-faq__item { border-top: 1px solid rgba(94, 79, 63, .08); }
.pf-faq__q { margin: 0; }
.pf-faq__q button {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0;
    border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text-heading); text-align: left; cursor: pointer;
}
.pf-faq__q button > svg { flex: 0 0 auto; color: #8a7762; transition: transform .2s ease; }
.pf-faq__q button[aria-expanded="true"] > svg { transform: rotate(180deg); }
.pf-faq__a { padding: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); overflow-wrap: anywhere; }
.pf-faq__a a { color: #7d6853; font-weight: 600; }
.pf-legal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--text-heading); }
.pf-legal > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.pf-legal b { font-size: 14.5px; }
.pf-legal small { font-size: 12px; color: var(--text-secondary); }
.pf-legal > svg { color: var(--text-muted); }
.pf-contact__alt { margin: 0 6px; text-align: center; line-height: 1.5; }
.pf-contact__alt:empty { display: none; }
.pf-contact__alt a { color: #7d6853; }

/* ── Pantallas anchas: más aire y la composición de la img 19 ── */
@media (min-width: 560px) {
    .pf-tile { flex-direction: row; align-items: center; min-height: 112px; padding: 16px 40px 16px 16px; gap: 14px; }
    .pf-tile__photo { width: 42%; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
    .pf-tile.has-photo .pf-tile__body { max-width: 62%; }
    .pf-tile__go { top: 50%; transform: translateY(-50%); }
    .pf-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pf-goal { grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; }
    .pf-goal__bar { grid-column: 3; grid-row: 1; }
    .pf-goal__gift { grid-column: 4; }
}
@media (min-width: 720px) {
    .pf-prog__body { flex-direction: row; align-items: stretch; }
    .pf-bars { flex: 1.4; }
    .pf-prog__side { flex: 1; }
    .pf-avatar { width: 116px; height: 116px; }
}

/* Pantallas muy estrechas */
@media (max-width: 360px) {
    .pf-avatar { width: 80px; height: 80px; }
    .pf-stat b { font-size: 21px; }
    .pf-stat small { font-size: 10px; }
    .pf-tile { padding: 12px; }
    .pf-tile__title { font-size: 16.5px; }
    .pf-lvl { flex-basis: 58px; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-skel { animation: none; }
    .pf-bar > i, .pf-bars__col i { transition: none; }
}

/* Mi progreso sin clases todavía: un mensaje en vez de seis barras a cero y un hueco grande */
.pf-bars-empty {
    display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; padding: 14px 16px;
    border-radius: 18px; background: #f7f1ea; font-size: 14px; line-height: 1.4; color: var(--text-secondary);
}
.pf-bars-empty svg { flex: 0 0 auto; color: var(--color-primary-dark); }
