/*
 * PERFIL DEL CLIENTE · DISEÑO 2026-11-20 (perfil.html con body.pfv2; quitar la clase deja el diseño de antes)
 * Cabecera del perfil, pestañas sin el fondo antiguo, tarjetas de entradas y listas con su evento (perfil.v2.js), avisos,
 * estados vacíos y las ventanas de una entrada y de una lista. No cambia ningún id ni ninguna función de perfil.js.
 */
body.pfv2 {
    --pf-bg: #121214;
    --pf-card: #1c1c21;
    --pf-card-2: #26262d;
    --pf-line: rgba(255, 255, 255, 0.08);
    --pf-ink: #f3f4f6;
    --pf-ink-2: #c3c7cf;
    --pf-muted: #8b909a;
    --pf-acc: #00d2ff;
    --pf-acc-2: #2a7bff;
    --pf-peligro: #ff6b6b;
    background: var(--pf-bg) !important;
    color: var(--pf-ink);
    font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.pfv2 .contenido {
    background: transparent;
}

/* El fondo de la página llega hasta abajo (antes quedaba una franja más clara al final) */
html {
    background: #121214;
}

body.pfv2 footer {
    background: transparent;
}

/* ---------- Barra de arriba ---------- */
body.pfv2 .header {
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    align-items: center;
    background: rgba(18, 18, 20, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pf-line);
    z-index: 20;
}

body.pfv2 .header .head1,
body.pfv2 .header .head3 {
    width: 56px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.pfv2 .header .head2 {
    flex: 1 1 auto;
    width: auto;
}

body.pfv2 .header .back-img {
    width: 22px !important;
    height: 22px;
    margin: 0 !important;
}

body.pfv2 .header .title {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--pf-ink);
}

/* ---------- Cabecera del perfil ---------- */
body.pfv2 .userph.pf-cab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: calc(56px + env(safe-area-inset-top, 0px)) auto 0;
    padding: 26px 16px 6px;
    background: transparent;
    box-shadow: none !important;
}

body.pfv2 .pf-cab-ajustes {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pf-card);
    border: 1px solid var(--pf-line);
    color: var(--pf-ink-2);
    text-decoration: none;
}

body.pfv2 .pf-cab-ajustes:hover,
body.pfv2 .pf-cab-ajustes:focus-visible {
    color: var(--pf-acc);
    outline: none;
}

body.pfv2 .pf-cab .userphBorde {
    z-index: auto;
    width: 108px;
    height: 108px;
    margin: 0 auto 12px;
    padding: 3px;
    border: 3px solid transparent;
    border-radius: 50%;
    background-image: linear-gradient(var(--pf-bg), var(--pf-bg)), linear-gradient(135deg, #1ef8ff, #3020ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-sizing: border-box;
}

body.pfv2 .pf-cab .userphph {
    z-index: auto;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background-size: cover;
    background-position: center;
    background-color: var(--pf-card-2);
}

body.pfv2 .pf-cab #usname {
    margin: 0;
    padding: 0;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pf-ink);
    text-align: center;
}

body.pfv2 .pf-cab #usArro {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--pf-muted);
    text-align: center;
}

/* Nivel: una pastilla con su icono (al pulsar, los niveles) */
body.pfv2 .pf-cab .iconoNV {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 12px auto 0;
    padding: 4px 8px 4px 4px;
    border: 1px solid var(--pf-line);
    border-radius: 999px;
    background: var(--pf-card);
    color: var(--pf-ink);
    font-size: 12px;
    cursor: pointer;
}

body.pfv2 .pf-cab .iconoNV .ct {
    position: static;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pf-card-2);
    object-fit: contain;
}

body.pfv2 .pf-cab .ctTP {
    position: static;
    width: auto;
    height: auto;
    border: 0;
    background: none;
    font-family: inherit !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--pf-ink);
}

body.pfv2 .pf-cab .pf-nivel-mas {
    font-size: 18px;
    color: var(--pf-muted);
}

body.pfv2 .pf-cab #bio {
    width: 100%;
    max-width: 420px;
    margin: 12px auto 0 !important;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--pf-ink-2);
}

body.pfv2 .pf-cab #bio:empty {
    display: none;
}

body.pfv2 .pf-cab .dj-emba {
    z-index: auto !important;
    gap: 8px;
    margin-top: 14px;
}

body.pfv2 .pf-cab .bt-emba,
body.pfv2 .pf-cab .bt-dj {
    width: auto !important;
    padding: 8px 18px !important;
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--pf-acc);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ---------- Pestañas: sin el fondo ni la sombra antiguos detrás ---------- */
body.pfv2 .userph2 {
    max-width: 560px;
    margin: 0 auto;
    background: transparent !important;
    box-shadow: none !important;
}

body.pfv2 .tab.pf-tabs {
    margin: 14px auto 6px;
    background: var(--pf-card);
    border-color: var(--pf-line);
    box-shadow: none;
}

/* ---------- Contenido de las pestañas ---------- */
body.pfv2 .tabcontent {
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    padding: 6px 14px 28px;
    background: transparent;
    color: var(--pf-ink);
    box-sizing: border-box;
}

body.pfv2 .pf-sec-tit,
body.pfv2 #num-avisos,
body.pfv2 .entraAnte {
    margin: 10px 2px 4px !important;
    font-family: inherit;
    font-size: 12.5px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left !important;
    text-transform: uppercase;
    color: var(--pf-muted);
}

body.pfv2 .entraAnte {
    margin-top: 22px !important;
}

body.pfv2 .entradas_tabS,
body.pfv2 .listas_tabS,
body.pfv2 .avisos_list {
    width: 100%;
    max-width: none;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
}

body.pfv2 .entradas_tabS td,
body.pfv2 .listas_tabS td,
body.pfv2 .avisos_list td {
    padding: 0;
    border: 0;
    background: transparent;
}

/* Tarjeta de una entrada o lista (perfil.js filaPerfil) */
body.pfv2 .pf-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--pf-line);
    border-radius: 16px;
    background: var(--pf-card);
    text-align: left;
}

body.pfv2 .pf-item-cab {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

body.pfv2 .pf-item-ic {
    flex: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.18), rgba(42, 123, 255, 0.18));
    color: var(--pf-acc);
    font-size: 22px;
}

body.pfv2 .pf-item-ev {
    min-width: 0;
    flex: 1 1 auto;
}

body.pfv2 .pf-ev-nombre {
    display: block;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pf-ink);
    overflow-wrap: anywhere;
}

body.pfv2 .pf-ev-meta {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--pf-muted);
}

body.pfv2 .pf-ev-meta:empty {
    display: none;
}

body.pfv2 .pf-item-prod {
    font-size: 14px;
    line-height: 1.45;
    color: var(--pf-ink-2);
    overflow-wrap: anywhere;
}

body.pfv2 .pf-item-prod b {
    color: var(--pf-ink);
    font-weight: 600;
}

body.pfv2 .pf-item-prod small {
    display: block;
    font-size: 12.5px;
    color: var(--pf-muted);
}

body.pfv2 .pf-item-tit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pf-muted);
}

body.pfv2 .pf-item-tit .material-symbols-outlined {
    font-size: 17px;
}

body.pfv2 .pf-item-tit br {
    display: none;
}

body.pfv2 .pf-item-tit b {
    margin-right: 4px;
    font-weight: 600;
}

body.pfv2 .pf-item-bloq {
    align-self: flex-start;
    margin: 0 !important;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.14);
    color: var(--pf-peligro) !important;
    font-size: 12px;
    font-weight: 700;
}

body.pfv2 .pf-item .pf-item-btn.VERbtn {
    width: 100%;
    margin: 4px 0 0;
    padding: 11px 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #1ef8ff, var(--pf-acc-2));
    color: #04121c;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
}

body.pfv2 .pf-pasada .pf-item {
    opacity: 0.75;
}

body.pfv2 .pf-pasada .pf-item-ic {
    background: var(--pf-card-2);
    color: var(--pf-muted);
}

body.pfv2 .pf-pasada .pf-item .pf-item-btn.VERbtn {
    background: var(--pf-card-2);
    color: var(--pf-ink-2);
}

/* ---------- Estados vacíos (sin la ilustración antigua) ---------- */
body.pfv2 #noList .error,
body.pfv2 #noEnts .error,
body.pfv2 #noNotis .error {
    display: none !important;
}

body.pfv2 .cuad {
    margin: 8px 0;
    padding: 28px 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: var(--pf-card);
    text-align: center;
}

body.pfv2 .cuad::before {
    display: block;
    margin-bottom: 8px;
    font-family: 'Material Symbols Outlined';
    font-size: 38px;
    line-height: 1;
    color: var(--pf-acc);
    content: 'confirmation_number';
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
}

body.pfv2 #noList .cuad::before {
    content: 'list_alt';
}

body.pfv2 #noNotis .cuad::before {
    content: 'notifications';
}

body.pfv2 .cuad h4 {
    margin: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--pf-ink-2);
}

/* ---------- Avisos ---------- */
body.pfv2 .tab-notis .alert {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--pf-line);
    border-radius: 16px;
    background: var(--pf-card) !important;
    color: var(--pf-ink-2);
    text-align: left;
}

body.pfv2 .tab-notis .topNoti {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.pfv2 .tab-notis .fechaNoti {
    margin: 0;
    font-size: 12px;
    color: var(--pf-muted);
}

body.pfv2 .tab-notis .closebtn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    font-size: 22px;
    color: var(--pf-muted);
    cursor: pointer;
}

body.pfv2 .tab-notis h4 {
    margin: 6px 0;
    font-size: 16px;
    color: var(--pf-ink);
}

body.pfv2 .tab-notis p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pf-ink-2);
}

body.pfv2 .pf-aviso-img {
    width: 100%;
    margin: 6px 0;
    border-radius: 12px;
}

body.pfv2 .pf-aviso-link {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--pf-card-2);
    color: var(--pf-acc);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Ventanas de una entrada (#id03) y de una lista (#id01) ---------- */
body.pfv2 #id03.modal,
body.pfv2 #id01.modal {
    z-index: 40;
    height: 100% !important;
    padding: 0;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

body.pfv2 #id03 .modal-content,
body.pfv2 #id01 .modal-content {
    width: calc(100% - 24px);
    max-width: 480px;
    max-height: calc(100% - 24px - env(safe-area-inset-top, 0px));
    margin: calc(12px + env(safe-area-inset-top, 0px)) auto 12px;
    border: 1px solid var(--pf-line);
    border-radius: 22px !important;
    background: var(--pf-card) !important;
    color: var(--pf-ink-2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.pfv2 #id01 .modal-content > br {
    display: none;
}

body.pfv2 #id03 .imgcontainer,
body.pfv2 #id01 .imgcontainer {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--pf-card);
}

body.pfv2 .imgcontainer .dwBTN,
body.pfv2 .imgcontainer .closeE {
    width: auto;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    float: none;
    border: 0;
    border-radius: 12px;
    background: var(--pf-card-2);
    color: var(--pf-ink-2);
    font-size: 20px;
}

body.pfv2 .imgcontainer .closeE {
    margin-left: auto;
}

body.pfv2 #id03 .container,
body.pfv2 #id01 .container {
    padding: 0 18px 18px;
}

body.pfv2 .pf-pop-cab {
    padding: 2px 4px 14px;
    text-align: center;
}

body.pfv2 .pf-pop-evento {
    margin: 0 0 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pf-acc);
}

body.pfv2 #pfListaEvento {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-transform: none;
    letter-spacing: 0;
}

body.pfv2 #pfListaEvento b {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.pfv2 #pfListaEvento small {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--pf-muted);
}

body.pfv2 #nombreEntrada,
body.pfv2 #nombreLista {
    margin: 0;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pf-ink);
    text-align: center;
}

body.pfv2 #nombreEntrada small {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pf-muted);
}

body.pfv2 .pf-pop-cab .eventoEtiquetas {
    justify-content: center;
    margin: 10px 0 0;
}

/* QR: blanco, centrado y grande */
body.pfv2 #id03 .cod,
body.pfv2 #id01 .cod {
    display: flex;
    justify-content: center;
    margin: 4px 0 8px;
}

body.pfv2 #id03 .cod1,
body.pfv2 #id03 .cod2,
body.pfv2 #id01 .cod1,
body.pfv2 #id01 .cod2 {
    display: none;
}

body.pfv2 #qrResultE,
body.pfv2 #qrResultList {
    padding: 14px;
    border-radius: 18px;
    background: #fff;
}

body.pfv2 #QRcodigo,
body.pfv2 #QRcodigoList {
    display: block;
    width: 210px;
    height: 210px;
    image-rendering: pixelated;
}

body.pfv2 #codeEntrada,
body.pfv2 #codeLista {
    margin: 0 0 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-align: center;
    color: var(--pf-muted) !important;
}

body.pfv2 #devMsg {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.14);
    color: var(--pf-peligro) !important;
    text-align: center;
}

/* Datos de la entrada y de la lista: bloques con su título pequeño */
body.pfv2 #id03 hr,
body.pfv2 #impList hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid var(--pf-line);
}

body.pfv2 .datosE h4,
body.pfv2 #impList h5 {
    margin: 4px 0 6px;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left !important;
    text-transform: uppercase;
    color: var(--pf-muted);
}

body.pfv2 .datosE h4 b,
body.pfv2 #impList h5 b {
    font-weight: 700;
}

body.pfv2 .datosE h5 {
    margin: 0 0 4px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--pf-ink);
    overflow-wrap: anywhere;
}

body.pfv2 .datosE h5:empty {
    display: none;
}

/* «<b>1/2</b> <br> Ana»: el orden y el nombre en una línea; en el producto y el precio los saltos se quedan */
body.pfv2 .datosE #nombreE br {
    display: none;
}

body.pfv2 .datosE #product small,
body.pfv2 .datosE #precio small {
    font-size: 13px;
    color: var(--pf-muted);
}

body.pfv2 .datosE h5 b {
    margin-right: 4px;
}

body.pfv2 .datosE .zo {
    text-align: left !important;
    font-size: 13px;
    font-weight: 500 !important;
    color: var(--pf-muted) !important;
}

body.pfv2 .datosE .zo:not(:empty)::before {
    content: 'Cantidad: ';
}

body.pfv2 #impList p {
    margin: 0 0 4px;
    color: var(--pf-ink);
}

body.pfv2 #impList #usName,
body.pfv2 #impList #modeLista,
body.pfv2 #impList #personasLista {
    font-size: 15px;
    font-weight: 500;
    text-align: left;
}

body.pfv2 #id03 .art p,
body.pfv2 #id03 #seguroExp,
body.pfv2 #impList p[style*="font-size: 80%"] {
    font-size: 12.5px !important;
    line-height: 1.5;
    color: var(--pf-muted) !important;
}

body.pfv2 #id03 .art h4 {
    text-align: left !important;
}

body.pfv2 #impr > p[style*="color: #ff0000a3"] {
    margin: 4px 0 0 !important;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 107, 107, 0.8) !important;
}

body.pfv2 #id03 .BORRARbtn {
    display: block;
    width: calc(100% - 36px);
    margin: 12px 18px 18px;
    padding: 11px;
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 12px;
    background: transparent;
    color: var(--pf-peligro);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

/* QR ampliado */
body.pfv2 #qrAmp .popup {
    border-radius: 22px;
    background: #fff;
}

/* =====================================================================================================================
 * RETOQUES 2026-11-21
 * ===================================================================================================================== */

/* RRPP y ARTISTA: perfil.css les pone el texto casi negro con !important (sobre el fondo nuevo no se veían) */
body.pfv2 .pf-cab .bt-emba,
body.pfv2 .pf-cab .bt-dj {
    background: rgba(0, 210, 255, 0.1) !important;
    color: var(--pf-acc) !important;
    font-family: inherit;
    line-height: 1.2;
}

body.pfv2 .pf-cab .bt-emba:hover,
body.pfv2 .pf-cab .bt-dj:hover {
    background: rgba(0, 210, 255, 0.18) !important;
}

/* Sin el contorno del navegador en ningún botón ni enlace al pulsarlo (con el teclado, un anillo suave) */
body.pfv2 button:focus,
body.pfv2 a:focus,
body.pfv2 .btn:focus,
body.pfv2 [role="button"]:focus,
body.pfv2 input[type="checkbox"]:focus,
body.pfv2 summary:focus {
    outline: none !important;
    box-shadow: none !important;
}

body.pfv2 button:focus-visible,
body.pfv2 a:focus-visible,
body.pfv2 .btn:focus-visible,
body.pfv2 [role="button"]:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.45) !important;
}

body.pfv2 button,
body.pfv2 a {
    -webkit-tap-highlight-color: transparent;
}

/* Listas: sin el degradado de la tabla antigua detrás de las tarjetas */
body.pfv2 .listas_tabS,
body.pfv2 .entradas_tabS,
body.pfv2 .avisos_list {
    background: transparent !important;
    filter: none !important;
}

/* Estados vacíos: sin el hueco de 210 px de arriba, centrados en el espacio de la pestaña */
body.pfv2 #noList,
body.pfv2 #noEnts,
body.pfv2 #noNotis {
    width: 100% !important;
    margin: 0 !important;
}

body.pfv2 #noList > br,
body.pfv2 #noEnts > br,
body.pfv2 #noNotis > br {
    display: none;
}

body.pfv2 .cuad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(44vh, 340px);
    margin: 6px 0;
    color: var(--pf-ink-2);
    box-sizing: border-box;
}

body.pfv2 .cuad h4 {
    max-width: 320px;
}

/* Avisos: «Abrir» solo cuando hay un enlace de verdad (perfil.js) */
body.pfv2 .pf-aviso-link {
    gap: 4px;
    align-items: center;
}

body.pfv2 .pf-aviso-link .material-symbols-outlined {
    font-size: 18px;
}

/* ---------- Ventanas de una entrada y de una lista: fijas a la pantalla y sin scroll lateral ---------- */
/* onsenui.css pone .modal en position:absolute (la ventana salía arriba de la página) y perfil.css un scroll fijo */
body.pfv2 #id03.modal,
body.pfv2 #id01.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: hidden !important;
}

body.pfv2 #id03 .modal-content,
body.pfv2 #id01 .modal-content {
    width: calc(100% - 24px) !important;
    max-width: 480px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

/* perfil.css pone .container a 655 px desde 500 px de ancho: de ahí el scroll lateral en el ordenador */
body.pfv2 #id03 .container,
body.pfv2 #id01 .container {
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box;
}

body.pfv2 #id03 .container *,
body.pfv2 #id01 .container * {
    max-width: 100%;
    box-sizing: border-box;
}

body.pfv2 #id03 .tick,
body.pfv2 #id03 #impr {
    max-width: 100%;
    overflow-wrap: anywhere;
}

body.pfv2 .pf-pop-cab .eventoEtiquetas {
    margin: 10px 0 0;
}

/* QR: el borde blanco justo (la imagen ya trae su margen) */
body.pfv2 #qrResultE,
body.pfv2 #qrResultList {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
}

body.pfv2 #QRcodigo,
body.pfv2 #QRcodigoList {
    width: 200px;
    height: 200px;
}

/* Botones del wallet debajo del QR */
body.pfv2 #walletEntrada .wl-botones {
    margin: 6px 0 10px;
}

/* Avisos y condiciones de la entrada: sin el fondo de color, discretos */
body.pfv2 #id03 .art {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--pf-muted);
}

body.pfv2 #id03 .art h4 {
    margin: 4px 0 6px;
}

body.pfv2 #id03 #avisE {
    margin: 0 0 4px;
    font-size: 14px !important;
    line-height: 1.5;
    color: var(--pf-ink-2) !important;
}

body.pfv2 #id03 #avisE:empty {
    display: none;
}

body.pfv2 #id03 .art hr {
    margin: 10px 0;
}

body.pfv2 #id03 .art p,
body.pfv2 #id03 .art p b {
    color: var(--pf-muted) !important;
    text-align: left !important;
}

body.pfv2 #id03 .art a,
body.pfv2 #impList a[href*="terminos"] {
    color: var(--pf-ink-2) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Avisos y confirmaciones (bootbox: niveles, RRPP…): el tema oscuro de detalles ---------- */
body.pfv2 .modal.bootbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

body.pfv2 .bootbox .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

body.pfv2 .bootbox .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 48px);
    margin: auto !important;
    border: 1px solid var(--pf-line) !important;
    border-radius: 20px !important;
    background: var(--pf-card) !important;
    color: var(--pf-ink-2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.pfv2 .bootbox .modal-header,
body.pfv2 .bootbox .modal-footer {
    border-color: var(--pf-line) !important;
}

body.pfv2 .bootbox .modal-header {
    align-items: center;
}

body.pfv2 .bootbox .modal-header .modal-title {
    flex: 1 1 auto;
    min-width: 0;
}

body.pfv2 .bootbox .modal-header .bootbox-close-button {
    flex: none;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    float: none !important;
    border: 0 !important;
    background: none !important;
    position: static !important;
    top: auto !important;
    margin: 0 0 0 12px !important;
    padding: 0 4px !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: var(--pf-ink-2) !important;
    text-shadow: none;
    opacity: 0.75;
    order: 2;
}

body.pfv2 .bootbox .modal-title {
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: var(--pf-ink);
}

body.pfv2 .bootbox .bootbox-body {
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.pfv2 .bootbox .bootbox-body img {
    max-width: 100%;
    height: auto;
}

body.pfv2 .bootbox .modal-footer {
    gap: 8px;
    flex-wrap: wrap;
}

body.pfv2 .bootbox .modal-footer .btn {
    margin: 0 !important;
    padding: 10px 20px;
    border-radius: 999px !important;
    font-weight: 600;
}

body.pfv2 .bootbox .modal-footer .btn-primary {
    border: 0 !important;
    background: linear-gradient(90deg, #1ef8ff, var(--pf-acc-2)) !important;
    color: #04121c !important;
}

body.pfv2 .bootbox .modal-footer .btn-secondary,
body.pfv2 .bootbox .modal-footer .btn-default {
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: transparent !important;
    color: #e6e6e6 !important;
}

@media (min-width: 576px) {
    body.pfv2 .bootbox .modal-dialog {
        max-width: 440px !important;
    }
}

@media (max-width: 575px) {
    body.pfv2 .bootbox .modal-dialog {
        margin: 12px !important;
        min-height: calc(100% - 24px);
    }

    body.pfv2 .bootbox .modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    body.pfv2 .bootbox .modal-footer .btn {
        width: 100%;
    }
}

/* Niveles (verNiveles en perfil.js) */
body.pfv2 .pf-niveles .pf-niv-actual {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 14px;
    background: var(--pf-card-2);
}

body.pfv2 .pf-niveles .pf-niv-actual img {
    flex: none;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

body.pfv2 .pf-niveles .pf-niv-actual small {
    display: block;
    font-size: 12px;
    color: var(--pf-muted);
}

body.pfv2 .pf-niveles .pf-niv-actual b {
    font-size: 16px;
    letter-spacing: 0.06em;
    color: var(--pf-ink);
}

body.pfv2 .pf-niveles p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--pf-ink-2) !important;
    text-align: left;
}

body.pfv2 .pf-niveles p b {
    color: var(--pf-ink);
}

body.pfv2 .pf-niveles .fotoNiveles {
    display: block;
    width: 100%;
    max-width: 100% !important;
    margin: 6px 0 0;
    border-radius: 12px;
}

/* ---------- Cargando: skeletons (sustituyen al gif y a los círculos) ---------- */
@keyframes pf-sk {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

body.pfv2 .pf-sk,
body.pfv2 #phPerfil:not([style*="url"]),
body.pfv2 #artisPh:not([style*="url"]),
body.pfv2 #ctF:not([src]),
body.pfv2 #ctF[src^="data:"],
body.pfv2 #usname:empty::before,
body.pfv2 #ctT:empty::before,
body.pfv2 #num-avisos:empty::before {
    background-color: var(--pf-card-2);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: pf-sk 1.4s ease-in-out infinite;
}

/* Solo la cabecera (lo de las ventanas sigue animado: se abren más tarde) */
body.pfv2.pf-sk-fin #phPerfil,
body.pfv2.pf-sk-fin #ctF,
body.pfv2.pf-sk-fin #usname::before,
body.pfv2.pf-sk-fin #ctT::before,
body.pfv2.pf-sk-fin #num-avisos::before {
    animation: none;
}

body.pfv2 .pf-sk {
    display: block;
    border-radius: 8px;
}

body.pfv2 #usname:empty::before {
    content: '';
    display: inline-block;
    width: 150px;
    height: 20px;
    margin: 4px 0;
    border-radius: 6px;
    vertical-align: middle;
}

body.pfv2 #ctT:empty::before {
    content: '';
    display: inline-block;
    width: 64px;
    height: 12px;
    border-radius: 4px;
    vertical-align: middle;
}

body.pfv2 #num-avisos:empty::before {
    content: '';
    display: block;
    width: 120px;
    height: 12px;
    border-radius: 4px;
}

body.pfv2 #ctF:not([src]),
body.pfv2 #ctF[src^="data:"] {
    visibility: visible;
    border: 0;
    outline: 0;
}

/* Tarjeta de carga (entradas y listas) con la forma de las de verdad */
body.pfv2 .pf-sk-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
    padding: 14px;
    border: 1px solid var(--pf-line);
    border-radius: 16px;
    background: var(--pf-card);
}

body.pfv2 .pf-sk-cab {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.pfv2 .pf-sk-lineas {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 7px;
}

body.pfv2 .pf-sk-ic {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

body.pfv2 .pf-sk-l1 {
    width: 62%;
    height: 14px;
}

body.pfv2 .pf-sk-l2 {
    width: 38%;
    height: 10px;
}

body.pfv2 .pf-sk-l3 {
    width: 80%;
    height: 12px;
}

body.pfv2 .pf-sk-bt {
    width: 100%;
    height: 42px;
    border-radius: 12px;
}

body.pfv2 .pf-sk-tit {
    display: inline-block;
    width: 180px;
    height: 20px;
    vertical-align: middle;
}

body.pfv2 .pf-sk-txt {
    display: inline-block;
    width: 120px;
    height: 14px;
    vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
    body.pfv2 .pf-sk,
    body.pfv2 #phPerfil,
    body.pfv2 #artisPh,
    body.pfv2 #ctF,
    body.pfv2 #usname::before,
    body.pfv2 #ctT::before,
    body.pfv2 #num-avisos::before {
        animation: none !important;
    }
}

/* ---------- Pie ---------- */
body.pfv2 .legal-cont {
    padding: 18px 16px 28px;
    text-align: center;
    color: var(--pf-muted);
}

body.pfv2 .legal-cont a {
    color: var(--pf-muted);
}

@media (min-width: 768px) {
    body.pfv2 .userph.pf-cab {
        padding-top: 36px;
    }
}
