@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Playfair+Display:wght@500;600&display=swap');

/* PS Lover — pestana unificada de Mi cuenta
   Paleta: crema #f9f4f0, greige #D3C7BB, negro #000000 */

.psl-lover { max-width: 620px; }

.psl-lover .psl-h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    color: #000;
    margin: 32px 0 12px;
}
.psl-lover .psl-p {
    font-size: 14px;
    color: #7a7168;
    line-height: 1.6;
    margin: 0 0 14px;
}
.psl-hint {
    font-size: 13px;
    color: #8a8178;
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Tarjeta */
.psl-card {
    position: relative;
    background: linear-gradient(150deg, #e2d9d0 0%, #D3C7BB 40%, #c5b7a7 75%, #cfc2b4 100%);
    border-radius: 18px;
    padding: 24px 22px;
    color: #000;
    box-shadow: 0 12px 34px rgba(0,0,0,.13), 0 3px 8px rgba(0,0,0,.07);
    overflow: hidden;
}
/* Filo interior y relieve: sensacion de material */
.psl-card::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.5), inset 0 -1px 3px rgba(0,0,0,.06);
    pointer-events: none;
}
/* Brillo diagonal */
.psl-card::after {
    content: '';
    position: absolute;
    top: -55%;
    left: -25%;
    width: 65%;
    height: 210%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(20deg);
    pointer-events: none;
}
.psl-card > * { position: relative; z-index: 1; }

.psl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}
.psl-card-brandblock { display: flex; flex-direction: column; gap: 5px; }
.psl-card-logo { display: block; width: auto; }
.psl-card-brand {
    font-family: 'Montserrat', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: .22em;
    color: #000;
    line-height: 1.2;
}
.psl-card-tag {
    font-family: 'Montserrat', 'Century Gothic', Arial, sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: .36em;
    color: rgba(0,0,0,.42);
    line-height: 1.2;
}
/* QR arriba a la derecha */
.psl-card-qr {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    display: block;
    box-shadow: 0 3px 10px rgba(0,0,0,.14);
}

.psl-card-label {
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(0,0,0,.45);
    margin-bottom: 4px;
}
.psl-card-bal {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.02;
    color: #000;
}
.psl-card-clp {
    font-size: 12px;
    color: rgba(0,0,0,.52);
    margin-top: 5px;
    letter-spacing: .02em;
}

.psl-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,.13);
}
.psl-card-mini {
    font-size: 8px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(0,0,0,.38);
    margin-bottom: 2px;
}
.psl-card-name {
    font-family: 'Montserrat', 'Century Gothic', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    letter-spacing: .04em;
}

/* Accesos rapidos dentro de la tarjeta */
.psl-card-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.psl-card-act {
    display: inline-block;
    background: rgba(255,255,255,.42);
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background .15s ease;
    white-space: nowrap;
}
.psl-card-act:hover { background: rgba(255,255,255,.72); color: #000; }

/* Invitar: bloque destacado en negro */
.psl-invite {
    background: linear-gradient(150deg, #1e1e1e 0%, #000 50%, #141414 100%);
    color: #f9f4f0;
    border-radius: 18px;
    padding: 28px 24px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
    position: relative;
    overflow: hidden;
}
.psl-invite::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(211,199,187,.22);
    border-radius: 12px;
    pointer-events: none;
}
.psl-invite > * { position: relative; z-index: 1; }

.psl-invite-kicker {
    font-family: 'Montserrat', 'Century Gothic', Arial, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .3em;
    color: #D3C7BB;
    margin-bottom: 12px;
}
.psl-invite-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    color: #f9f4f0;
    margin: 0 0 12px;
    line-height: 1.35;
}
.psl-invite-text {
    font-size: 14px;
    color: rgba(249,244,240,.72);
    line-height: 1.7;
    margin: 0 auto 22px;
    max-width: 400px;
}
.psl-invite-text strong { color: #D3C7BB; font-weight: 600; }

.psl-invite-linkbox {
    background: rgba(211,199,187,.08);
    border: 1px dashed rgba(211,199,187,.42);
    border-radius: 12px;
    padding: 15px 14px;
    margin-bottom: 12px;
}
.psl-invite-linklbl {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 9px;
    letter-spacing: .18em;
    color: rgba(249,244,240,.42);
    margin-bottom: 7px;
}
.psl-invite-link {
    font-family: 'Montserrat', 'Century Gothic', Arial, sans-serif;
    font-size: 12px;
    color: #D3C7BB;
    word-break: break-all;
    line-height: 1.55;
    letter-spacing: .02em;
}

.psl-invite-btns { display: flex; gap: 8px; margin-bottom: 16px; }
.psl-invite-btn {
    flex: 1;
    background: #D3C7BB;
    color: #000;
    border: none;
    border-radius: 999px;
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .15s ease;
}
.psl-invite-btn:hover { background: #c4b6a8; }
.psl-invite-btn-alt {
    background: transparent;
    color: #f9f4f0;
    border: 1px solid rgba(211,199,187,.5);
}
.psl-invite-btn-alt:hover { background: rgba(211,199,187,.14); color: #f9f4f0; }

.psl-invite-msg {
    display: none;
}

.psl-invite-stats {
    display: flex;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(211,199,187,.2);
}
.psl-invite-stat { flex: 1; }
.psl-invite-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    color: #f9f4f0;
    line-height: 1.1;
}
.psl-invite-lbl {
    font-size: 10px;
    color: rgba(249,244,240,.5);
    margin-top: 3px;
}

/* Formas de sumar credito */
.psl-tasks {
    background: #f9f4f0;
    border: 1px solid #D3C7BB;
    border-radius: 14px;
    padding: 6px;
}
.psl-task {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 15px 16px;
    margin-bottom: 6px;
}
.psl-task:last-child { margin-bottom: 0; }
.psl-task.is-done { background: #fdfbf9; }

.psl-task-check {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #D3C7BB;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.psl-task.is-done .psl-task-check {
    background: #000;
    border-color: #000;
    color: #fff;
}

.psl-task-body { flex: 1; min-width: 0; }
.psl-task-title { font-size: 14px; font-weight: 600; color: #000; }
.psl-task-desc { font-size: 12px; color: #8a8178; line-height: 1.5; margin-top: 2px; }

/* Pendiente: puntos en greige, destaca lo que puedes ganar */
.psl-task-pts {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    background: #D3C7BB;
    border-radius: 7px;
    padding: 6px 11px;
    white-space: nowrap;
}
/* Conseguido: estado, no numero */
.psl-task-done {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a8178;
    white-space: nowrap;
}

/* Cumpleanos */
.psl-bday {
    background: #f9f4f0;
    border: 1px solid #D3C7BB;
    border-radius: 14px;
    padding: 20px;
    margin-top: 16px;
}
.psl-bday-t {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}
.psl-bday-d {
    font-size: 13px;
    color: #7a7168;
    line-height: 1.6;
    margin-bottom: 14px;
}
.psl-bday-d strong { color: #000; }

/* Filas de formulario */
.psl-row { display: flex; gap: 8px; }
.psl-row input {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #D3C7BB;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 13px;
    color: #000;
    box-sizing: border-box;
}
.psl-lover .psl-btn {
    background: #D3C7BB;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
}
.psl-lover .psl-btn:hover { background: #c4b6a8; }
.psl-lover .psl-btn:disabled { opacity: .6; cursor: default; }

.psl-msg-box {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 9px;
}
.psl-msg-box:empty { display: none; }
.psl-msg-box.ok  { color: #3d6b4f; }
.psl-msg-box.err { color: #9a3b3b; }

/* Movimientos */
.psl-hist {
    border: 1px solid #D3C7BB;
    border-radius: 12px;
    overflow: hidden;
}
.psl-hist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #ede4dc;
    background: #fff;
}
.psl-hist-row:last-child { border-bottom: none; }
.psl-hist-t { font-size: 14px; color: #000; }
.psl-hist-d { font-size: 12px; color: #8a8178; margin-top: 1px; }
.psl-hist-p {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
}

/* Letra chica */
.psl-fine {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #ede4dc;
}
.psl-fine p {
    font-size: 12px;
    color: #a09890;
    line-height: 1.65;
    margin: 0 0 6px;
}
.psl-fine p:last-child { margin-bottom: 0; }
.psl-fine strong { color: #8a8178; font-weight: 600; }

@media (max-width: 600px) {
    .psl-card { padding: 18px; }
    .psl-card-bal { font-size: 32px; }
    .psl-invite { padding: 24px 18px; }
    .psl-invite-title { font-size: 20px; }
    .psl-invite-btns { flex-direction: column; }
    .psl-row { flex-direction: column; }
    .psl-lover .psl-btn { width: 100%; }
    .psl-task { flex-wrap: wrap; }
    .psl-task-pts, .psl-task-done { margin-left: 38px; }
}
