/* 🧒 ARCHIVO: perfil.css — portada del perfil (v2.1.7): banner, foto, cifras, tiendas recientes y logros. */
.pagina-perfil { max-width: 980px; margin-inline: auto; padding: 0 16px 48px; display: grid; gap: 20px; }
.pf-portada { background: var(--fondo-tarjeta); border: 1px solid var(--borde-sutil); border-radius: 18px; overflow: hidden; }
.pf-banner { height: 150px; background: linear-gradient(135deg, #FF6016 0%, #FFC531 100%); position: relative; }
.pf-banner::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 14px, transparent 14px 28px); }
.pf-cabeza { display: flex; gap: 20px; align-items: flex-start; padding: 0 24px 12px; flex-wrap: wrap; }
.pf-avatar-caja { position: relative; margin-top: -64px; flex: none; }
.pf-avatar { width: 128px; height: 128px; border-radius: 50%; border: 5px solid var(--fondo-tarjeta); background: var(--color-naranja); color: #fff; display: grid; place-items: center; overflow: hidden; font-size: 44px; font-weight: 800; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-camara { position: absolute; right: 2px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; background: var(--color-oscuro); color: #fff; border: 3px solid var(--fondo-tarjeta); display: grid; place-items: center; cursor: pointer; }
.pf-camara:hover, .pf-camara:focus-within { background: #B03A08; }
#pf-foto:focus-visible + * { outline: 3px solid var(--color-amarillo); }
.pf-identidad { padding-top: 12px; flex: 1; min-width: 220px; }
.pf-identidad h1 { margin: 0; font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.pf-rol { display: inline-block; margin: 6px 0 4px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 96, 22, .15); color: #B03A08; font-weight: 800; font-size: 13px; }
html.tema-oscuro .pf-rol { color: var(--color-amarillo); }
.pf-linea { margin: 2px 0; font-size: 14px; opacity: .8; overflow-wrap: anywhere; }
.pf-estado { margin: 6px 0 0; font-size: 13px; min-height: 18px; } .pf-estado.error { color: #c0261c; font-weight: 700; }
.pf-quitar { margin-top: 4px; border: 0; background: none; color: #B03A08; text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; min-height: 32px; }
html.tema-oscuro .pf-quitar { color: var(--color-amarillo); }
.pf-cifras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 1px solid var(--borde-sutil); }
.pf-cifras li { padding: 14px 16px; display: grid; gap: 2px; border-right: 1px solid var(--borde-sutil); }
.pf-cifras li:last-child { border-right: 0; }
.pf-cifras strong { font-size: 22px; color: var(--color-naranja); overflow-wrap: anywhere; }
.pf-cifras span { font-size: 13px; opacity: .75; font-weight: 700; }
.pf-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pf-tarjeta { background: var(--fondo-tarjeta); border: 1px solid var(--borde-sutil); border-radius: 18px; padding: 18px 20px; }
.pf-tarjeta h2 { margin: 0 0 12px; font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pf-tarjeta h2 small { font-size: 13px; opacity: .65; font-weight: 700; }
.pf-vacio { margin: 8px 0; font-size: 14px; opacity: .75; }
.pf-tiendas, .pf-logros { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-tiendas a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; color: inherit; min-height: 52px; }
.pf-tiendas a:hover, .pf-tiendas a:focus-visible { background: rgba(255, 96, 22, .1); outline: none; }
.pf-tiendas img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: #f1efe1; }
.pf-tiendas span { display: grid; min-width: 0; } .pf-tiendas strong { overflow-wrap: anywhere; } .pf-tiendas small { opacity: .7; font-size: 12px; }
.pf-logros li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; opacity: .7; }
.pf-logros li.listo { opacity: 1; background: rgba(255, 197, 49, .22); }
.pf-medalla { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(28,27,11,.1); }
.pf-logros li.listo .pf-medalla { background: var(--color-amarillo); color: var(--color-oscuro); }
.pf-logro-txt { flex: 1; min-width: 0; display: grid; gap: 2px; } .pf-logro-txt small { font-size: 12px; opacity: .75; }
.pf-logro-txt progress { width: 100%; height: 6px; accent-color: var(--color-naranja); }
.pf-logro-estado { flex: none; font-size: 12px; font-weight: 800; }
.pf-columna { justify-self: center; display: grid; gap: 16px; max-width: 640px; width: 100%; }
@media (max-width: 760px) { .pf-rejilla { grid-template-columns: 1fr; } .pf-cabeza { padding-inline: 16px; } .pf-identidad h1 { font-size: 24px; } .pf-banner { height: 110px; } .pf-avatar-caja { margin-top: -52px; } .pf-avatar { width: 104px; height: 104px; font-size: 36px; } }
