/* NF Loyalty Card — Carnet Frontend Styles */

/* ---------- WRAPPER ---------- */
.nlc-carnet-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- TARJETA ---------- */
.nlc-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1.586 / 1; /* Ratio crédito: 85.6 × 54 mm */
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
}

.nlc-card-overlay {
    position: absolute;
    inset: 0;
    border-radius: 14px;
}

.nlc-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
}

/* Header: logo / nombre de org */
.nlc-card-header {
    display: flex;
    align-items: flex-start;
}
.nlc-card-logo {
    max-height: 36px;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}
.nlc-card-org {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* Datos */
.nlc-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nlc-card-name {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .3px;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
    line-height: 1.2;
}
.nlc-card-field {
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.nlc-card-field-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .7;
}
.nlc-card-field-value {
    font-size: 11px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* ---------- BOTONES WALLET ---------- */
.nlc-wallet-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.nlc-wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .2px;
    transition: opacity .15s;
}
.nlc-wallet-btn:hover { opacity: .85; }
.nlc-wallet-apple  { background: #000; color: #fff; }
.nlc-wallet-google { background: #fff; color: #333; border: 1px solid #ddd; }
.nlc-wallet-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ---------- MENSAJES ---------- */
.nlc-msg {
    text-align: center;
    padding: 20px;
    font-size: 15px;
    color: #555;
}
.nlc-msg-error { color: #a00; }

/* ---------- PÁGINA DE BAJA ---------- */
.nlc-baja-wrapper {
    max-width: 440px;
    margin: 0 auto;
    padding: 32px 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.nlc-baja-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}
.nlc-baja-desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 24px;
    line-height: 1.6;
}
.nlc-baja-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nlc-baja-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.nlc-baja-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.nlc-baja-input:focus {
    outline: none;
    border-color: #111;
}
.nlc-baja-submit {
    padding: 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.nlc-baja-submit:hover    { background: #333; }
.nlc-baja-submit:disabled { opacity: .55; cursor: default; }

.nlc-baja-msg {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}
.nlc-baja-success { background: #d4edda; color: #155724; }
.nlc-baja-error   { background: #f8d7da; color: #721c24; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 520px) {
    .nlc-card { max-width: 100%; }
    .nlc-card-name { font-size: 16px; }
    .nlc-wallet-btn { width: 100%; justify-content: center; }
}

/* ================================================================
   PÁGINA MI PERFIL — Diseño Limaná
   ================================================================ */

.nlc-perfil-wrapper {
    min-height: 80vh;
    background-color: #E8ECF0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    font-family: 'Sofia Pro Regular', 'Trebuchet MS', 'Helvetica Neue', Arial, sans-serif;
}

.nlc-perfil-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 14px rgba(0,0,0,.09);
    padding: 48px 52px;
    width: 100%;
    max-width: 520px;
}

.nlc-perfil-card--centered {
    text-align: center;
}

.nlc-perfil-eyebrow {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #f32535;
}

.nlc-perfil-title {
    margin: 0 0 14px;
    font-family: 'Didot LT Pro Roman', 'Didot', 'Georgia', serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.2;
    color: #1b1e34;
}

.nlc-perfil-subtitle {
    margin: 0 0 32px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: #575760;
}

.nlc-perfil-subtitle strong {
    font-weight: 600;
    color: #1b1e34;
}

/* Form */
.nlc-perfil-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.nlc-perfil-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nlc-perfil-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1b1e34;
}

.nlc-perfil-hint {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    color: #b2b2be;
}

.nlc-perfil-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #C2D5ED;
    border-radius: 2px;
    font-family: 'Sofia Pro Regular', 'Trebuchet MS', Arial, sans-serif;
    font-size: 14px;
    color: #1b1e34;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}

.nlc-perfil-input:focus {
    outline: none;
    border-color: #f32535;
}

.nlc-mt-6 {
    margin-top: 6px;
}

.nlc-perfil-special-group {
    padding: 18px;
    background: #f7f9fb;
    border-left: 3px solid #C2D5ED;
    border-radius: 2px;
}

.nlc-perfil-btn {
    padding: 14px 24px;
    background: #f32535;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: 'Sofia Pro Regular', 'Trebuchet MS', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
    margin-top: 8px;
}

.nlc-perfil-btn:hover    { background: #d01f2e; }
.nlc-perfil-btn:disabled { opacity: .55; cursor: default; }

/* Feedback */
.nlc-perfil-msg {
    padding: 14px 18px;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 300;
}
.nlc-perfil-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #4caf50;
}
.nlc-perfil-error {
    background: #fde8ea;
    color: #b71c1c;
    border-left: 3px solid #f32535;
}

/* Responsive */
@media (max-width: 560px) {
    .nlc-perfil-card {
        padding: 32px 24px;
    }
    .nlc-perfil-title {
        font-size: 28px;
    }
}
