/* Mis tarjetas de fidelidad (perfil.html, pestaña TARJETAS · perfil.fide.js). Diseño compacto (2026-11-15): la tarjeta,
   el progreso, «Ver mi QR» + wallet y el resto en secciones plegables */

#btTarjetas[hidden] {
    display: none !important;
}

.pf-tarjetas {
    max-width: 480px;
    margin: 0 auto;
    padding: 4px 14px 30px;
    font-family: 'Rubik', 'Nunito', sans-serif;
    color: #d6d6d6;
    text-align: left;
}

.pf-tj {
    background: #232323;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* La tarjeta */
.pf-tj-carta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-height: 168px;
    aspect-ratio: 1.75;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Brillo suave en la esquina, por debajo del texto */
.pf-tj-carta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.pf-tj-carta > * {
    position: relative;
    z-index: 1;
}

.pf-tj-cab {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.pf-tj-club {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-tj-club b {
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pf-tj-club span {
    font-size: 12px;
    opacity: 0.85;
}

.pf-tj-chip {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    background: color-mix(in srgb, currentColor 18%, transparent);
}

.pf-tj-puntos {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pf-tj-puntos b {
    font-size: 38px;
    line-height: 1;
}

.pf-tj-puntos span {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
}

.pf-tj-pie {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    opacity: 0.92;
}

.pf-tj-aviso {
    font-size: 12.5px;
    color: #f5c451;
}

/* Progreso hasta el siguiente nivel */
.pf-tj-prog {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 2px;
}

.pf-tj-prog p {
    font-size: 12.5px;
    color: #a8adb5;
}

.pf-tj-prog b {
    color: #fff;
}

.pf-tj-barra {
    height: 6px;
    border-radius: 999px;
    background: #3a3a3a;
    overflow: hidden;
}

.pf-tj-barra span {
    display: block;
    height: 100%;
    background: #00d2ff;
    border-radius: 999px;
}

.pf-tj-ventajas {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: #2a2a2a;
    border-radius: 10px;
    padding: 8px 10px;
}

.pf-tj-ventajas .material-symbols-outlined {
    color: #00d2ff;
    font-size: 20px;
}

/* «Ver mi QR» y el botón del wallet, en una fila */
.pf-tj-acc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pf-tj-acc .wl-botones {
    margin: 0;
}

.pf-tj-btqr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: #2c2c2c;
    color: #fff;
    font: 600 14px 'Rubik', sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pf-tj-btqr .material-symbols-outlined {
    font-size: 22px;
}

.pf-tj-btqr[aria-expanded="true"] {
    border-color: #00d2ff;
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
}

.pf-tj-btqr:focus,
.pf-tj-sec summary:focus,
.tab.pf-tabs .pf-tabbt:focus {
    outline: none;
}

.pf-tj-btqr:focus-visible {
    outline: 2px solid #00d2ff;
    outline-offset: 2px;
}

.pf-tj-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.pf-tj-qr[hidden] {
    display: none !important;
}

.pf-tj-qr canvas {
    width: 180px;
    height: 180px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
}

.pf-tj-qr small {
    font-size: 12px;
    color: #999;
}

/* Secciones plegables */
.pf-tj-secs {
    border-top: 1px solid #2f2f2f;
}

.pf-tj-sec {
    border-bottom: 1px solid #2f2f2f;
}

.pf-tj-sec:last-child {
    border-bottom: 0;
}

.pf-tj-sec summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.pf-tj-sec summary::-webkit-details-marker {
    display: none;
}

.pf-tj-sec summary:focus-visible {
    outline: 2px solid #00d2ff;
    outline-offset: 2px;
    border-radius: 6px;
}

.pf-tj-sec-tit {
    flex: 1;
}

.pf-tj-sec summary small {
    font-size: 12px;
    font-weight: 600;
    color: #8f96a3;
}

.pf-tj-sec summary small.pf-tj-ya {
    color: #00d2ff;
}

.pf-tj-flecha {
    color: #8f96a3;
    font-size: 22px;
    transition: transform 0.2s;
}

.pf-tj-sec[open] .pf-tj-flecha {
    transform: rotate(180deg);
}

.pf-tj-sec .pf-tj-lista {
    padding: 0 2px 8px;
}

.pf-tj-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pf-tj-lista li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #2f2f2f;
    font-size: 13px;
}

.pf-tj-lista li:first-child {
    border-top: 0;
}

.pf-tj-lista li.llega b {
    color: #00d2ff;
}

.pf-tj-lista small {
    display: block;
    color: #888;
    font-size: 11.5px;
}

.pf-tj-lista li.llega small {
    color: #4cd38a;
}

.pf-tj-reglas li {
    display: block;
}

.pf-tj-movs b.mas {
    color: #4ade80;
}

.pf-tj-movs b.menos {
    color: #f87171;
}

/* Pestañas del perfil (Listas · Avisos · Entradas · Tarjetas): selector con icono y nombre, la activa en cian.
   Sustituye a los textos en degradado (el fondo de la activa no se veía en las de texto) */
.tab.pf-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    width: calc(100% - 28px);
    max-width: 520px;
    max-height: none;
    margin: 4px auto 12px;
    padding: 4px;
    box-sizing: border-box;
    overflow: visible;
    filter: none;
    background: #232323;
    border: 1px solid #2f2f2f;
    border-radius: 16px;
}

.tab.pf-tabs .pf-tabbt {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 7px 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    border-radius: 12px !important;
    background: transparent;
    color: #9aa1ab;
    font-family: 'Rubik', sans-serif;
    transition: background-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tab.pf-tabs .pf-tabbt .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}

.tab.pf-tabs .pf-tabtx {
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab.pf-tabs .pf-tabbt:hover {
    color: #fff;
}

.tab.pf-tabs .pf-tabbt.activo {
    background-color: rgba(0, 210, 255, 0.12) !important;
    color: #00d2ff;
}

.tab.pf-tabs .pf-tabbt:focus-visible {
    outline: 2px solid #00d2ff;
    outline-offset: 2px;
}
