﻿:root {
    --align-blue:      #009ACE;
    --align-blue-dark: #007AA8;
    --align-charcoal:  #3D3935;
    --align-gray:      #707372;
    --align-gray-lt:   #B2B4B2;
    --align-gray-bg:   #EFEFED;
    --align-purple:    #503F81;
    --align-orange:    #FE5000;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F0F4F8;
    background-image: radial-gradient(...);
    padding-top: 72px;
    padding-bottom: 76px;
    color: var(--align-charcoal);
}

    body.login-page {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--align-blue) 0%, var(--align-purple) 100%);
    padding: 2rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .login-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: -60%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,.18) 45%, rgba(255,255,255,.38) 50%, rgba(255,255,255,.18) 55%, rgba(255,255,255,0) 80%, transparent 100% );
        animation: sweepLight 3s ease-in-out infinite;
        z-index: 1;
        pointer-events: none;
    }

@keyframes sweepLight {
    0% {
        left: -60%;
    }

    60% {
        left: 110%;
    }

    100% {
        left: 110%;
    }
}

.header-accent-line {
    position: absolute;
    bottom: 27px;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
    animation: growLine 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes growLine {
    0% {
        width: 0%;
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        width: 100%;
        left: 0%;
        opacity: 1;
    }

    80% {
        width: 0%;
        left: 100%;
        opacity: 0;
    }

    100% {
        width: 0%;
        left: 0%;
        opacity: 0;
    }
}
    .login-header::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 28px;
        background: #fff;
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    }

.login-header img.brand-logo {
    height: 40px;
    /*filter: brightness(0) invert(1);*/
    display: block;
    margin: 0 auto .75rem;
}

    .login-header .app-name {
        color: rgba(255,255,255,.9);
        font-size: .78rem;
        font-weight: 500;
        letter-spacing: .14em;
        text-transform: uppercase;
        margin: 0;
    }

.login-body {
    padding: 1.5rem 2rem 1.25rem;
}
.logos-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; 
}
.logo-1 {
    height: 90px;
}

.logo-2 {
    height: 25px; 
}

.form-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--align-charcoal);
    margin-bottom: .35rem;
}

.input-group-text {
    background-color: var(--align-gray-bg);
    border-color: #D8DADB;
    color: var(--align-gray);
    min-width: 42px;
    justify-content: center;
}

.form-control {
    border-color: #D8DADB;
    color: var(--align-charcoal);
    transition: border-color .2s, box-shadow .2s;
}

    .form-control:focus {
        border-color: var(--align-blue);
        box-shadow: 0 0 0 3px rgba(0,154,206,.15);
    }

.input-group:focus-within .input-group-text {
    border-color: var(--align-blue);
    color: var(--align-blue);
}

.mi-input {
    width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.policy-check {
    background: #F7FBFD;
    border: 1px solid rgba(0,154,206,.2);
    border-radius: 8px;
    padding: .75rem .9rem;
    margin-bottom: 1.25rem;
}

    .policy-check label {
        font-size: .77rem;
        color: var(--align-gray);
        line-height: 1.45;
    }

    .policy-check .form-check-input:checked {
        background-color: var(--align-blue);
        border-color: var(--align-blue);
    }

.btn-login {
    background: linear-gradient(135deg, var(--align-blue) 0%, var(--align-blue-dark) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: .75rem;
    width: 100%;
    transition: transform .15s, box-shadow .15s, filter .15s;
    cursor: pointer;
}

    .btn-login:hover {
        filter: brightness(1.08);
        box-shadow: 0 4px 18px rgba(0,154,206,.35);
        transform: translateY(-1px);
        color: #fff;
    }

.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--align-gray-lt);
    font-size: .75rem;
    margin: 1rem 0;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #E8EAEB;
    }

.link-forgot {
    color: var(--align-blue);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
}

    .link-forgot:hover {
        text-decoration: underline;
    }

.login-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid #F0F0F0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: .6rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--align-gray-bg);
    color: var(--align-gray);
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
}

    .social-link:hover {
        background: var(--align-blue);
        color: #fff;
        transform: translateY(-2px);
    }

.version-badge {
    font-size: .68rem;
    color: var(--align-gray-lt);
}

.btn-toggle-pass {
    border: 1px solid #D8DADB;
    border-left: none;
    background: #fff;
    color: var(--align-gray);
    padding: 0 .75rem;
}

/* Switch */
.real-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 10px;
    background-color: #ccc;
    border-radius: 26px;
    transition: .3s;
}

    .switch .slider {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        transition: .3s;
    }

/* Estado ON */
#chkAcepto:checked + .switch {
    background-color: var(--align-blue);
}

    #chkAcepto:checked + .switch .slider {
        transform: translateX(24px);
    }

.texto-politicas {
    display: block;
    margin-top: 8px;
    max-width: 350px;
    font-size: 10px;
    vertical-align: middle;
    text-align: justify;
}

@media (max-width: 420px) {
    .login-body {
        padding: 1.25rem;
    }

    .login-footer {
        padding: .75rem 1.25rem 1.25rem;
    }
}

/* ── TOP NAVBAR ─────────────────────────────────────── */
.top-nav {
    background: linear-gradient(135deg, var(--align-blue) 0%, var(--align-purple) 100%);
    height: 60px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

    .top-nav img.brand-logo {
        height: 32px;
        width: auto;
        /*filter: brightness(0) invert(1);*/
    }

    .top-nav .app-subtitle {
        font-size: .7rem;
        font-weight: 500;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgba(255,255,255,.75);
        margin-left: .5rem;
    }

    .top-nav .brand-group {
        display: flex;
        align-items: center;
    }

.employee-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.15);
    border-radius: 100px;
    padding: .3rem .75rem .3rem .4rem;
    backdrop-filter: blur(4px);
}

    .employee-chip .avatar {
        width: 30px;
        height: 30px;
        background: rgba(255,255,255,.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .8rem;
        font-weight: 700;
        color: #fff;
        flex-shrink: 0;
    }

    .employee-chip .name {
        font-size: .8rem;
        font-weight: 500;
        color: #fff;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ── ENCABEZADO SALDOS ───────────────────────────────── */
.section-header {
    margin-bottom: 1.25rem;
}

    .section-header h6 {
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--align-gray);
        margin: 0 0 .2rem;
    }

    .section-header p {
        font-size: .78rem;
        color: var(--align-gray-lt);
        margin: 0;
    }

/* ── TARJETA DE SALDO ────────────────────────────────────── */
.saldos-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
}

.saldo-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    padding: 1rem 1.1rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow .2s, transform .15s;
}

    .saldo-card:hover {
        box-shadow: 0 4px 18px rgba(0,0,0,.10);
        transform: translateY(-1px);
    }

/* Ícono lateral */
.saldo-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

    .saldo-icon.icon-fondo {
        background: rgba(0,154,206,.12);
        color: var(--align-blue);
    }

    .saldo-icon.icon-caja {
        background: rgba(80,63,129,.12);
        color: var(--align-purple);
    }

    .saldo-icon.icon-prest-fa {
        background: rgba(254,80,0,.10);
        color: #FE5000;
    }

    .saldo-icon.icon-prest-ca {
        background: rgba(225,0,152,.10);
        color: #E10098;
    }

    .saldo-icon.icon-vacas {
        background: rgba(143,210,5,.15);
        color: #5a8a00;
    }

/* Texto */
.saldo-info {
    flex: 1;
    min-width: 0;
}

    .saldo-info .saldo-label {
        font-size: .75rem;
        font-weight: 600;
        color: var(--align-gray);
        text-transform: uppercase;
        letter-spacing: .05em;
        display: block;
        margin-bottom: .15rem;
    }

    .saldo-info .saldo-value {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--align-charcoal);
        line-height: 1;
    }

    .saldo-info .saldo-unit {
        font-size: .75rem;
        font-weight: 400;
        color: var(--align-gray-lt);
        margin-left: .2rem;
    }

/* Chip de tipo */
.saldo-chip {
    font-size: .65rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 100px;
    white-space: nowrap;
}

.chip-dinero {
    background: rgba(0,154,206,.1);
    color: var(--align-blue);
}

.chip-dias {
    background: rgba(143,210,5,.15);
    color: #4a7a00;
}

/* ── ESTADO VACÍO ────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--align-gray);
}

    .empty-state i {
        font-size: 2.5rem;
        color: var(--align-gray-lt);
        display: block;
        margin-bottom: .75rem;
    }

    .empty-state p {
        font-size: .88rem;
        margin: 0;
    }

/* ── BOTÓN IR A RECIBOS ──────────────────────────────────── */
.btn-recibos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(135deg, var(--align-blue) 0%, var(--align-purple) 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: filter .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(0,154,206,.25);
}

    .btn-recibos:hover {
        filter: brightness(1.07);
        transform: translateY(-1px);
        box-shadow: 0 6px 22px rgba(0,154,206,.35);
        color: #fff;
    }

    .btn-recibos .btn-recibos-left {
        display: flex;
        align-items: center;
        gap: .75rem;
    }

    .btn-recibos .btn-recibos-icon {
        width: 38px;
        height: 38px;
        background: rgba(255,255,255,.2);
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .btn-recibos .btn-recibos-text {
        text-align: left;
    }

        .btn-recibos .btn-recibos-text span {
            display: block;
            font-size: .68rem;
            font-weight: 400;
            color: rgba(255,255,255,.75);
        }

/* ── BADGE ACTUALIZACIÓN ────────────────────────────────── */
.update-badge {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    color: var(--align-gray-lt);
    margin-bottom: 1rem;
}

    .update-badge i {
        font-size: .78rem;
    }
/* ── CONTENEDOR RECIBOS ───────────────────────────── */
.receipts-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* ── CARD DE RECIBO ──────────────────────────────────── */
.receipt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    margin-bottom: 1rem;
    overflow: hidden;
    border: none;
    transition: box-shadow .2s;
}

    .receipt-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,.11);
    }

.receipt-header {
    background: linear-gradient(135deg, var(--align-charcoal) 0%, #555250 100%);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .receipt-header .period-label {
        font-size: .72rem;
        color: rgba(255,255,255,.65);
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .receipt-header .period-value {
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
    }

    .receipt-header .year-badge {
        background: var(--align-blue);
        color: #fff;
        font-size: .72rem;
        font-weight: 600;
        padding: .2rem .6rem;
        border-radius: 100px;
    }

.receipt-folio {
    background: rgba(255,255,255,.07);
    padding: .4rem 1rem;
    font-size: .7rem;
    color: rgba(255,255,255,.6);
    font-family: monospace;
    letter-spacing: .03em;
    border-top: 1px solid rgba(255,255,255,.08);
}

.receipt-body {
    padding: .9rem 1rem;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .5rem;
    margin-bottom: .9rem;
}

.stat-box {
    background: #F8FAFB;
    border-radius: 8px;
    padding: .6rem .5rem;
    text-align: center;
}

    .stat-box .stat-label i {
        display: block;
        margin-bottom: .1rem;
        margin-right: 0;
    }

    .stat-box .stat-value {
        font-size: .88rem;
        font-weight: 700;
        color: var(--align-charcoal);
    }

    .stat-box.stat-neto {
        background: #F0FAE8;
    }

        .stat-box.stat-neto .stat-label {
            color: #5a8a00;
        }

        .stat-box.stat-neto .stat-value {
            color: #4a7a00;
        }

/* Botón firmar */
.btn-sign {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--align-orange) 0%, #d94400 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: .875rem;
    padding: .6rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, transform .15s, box-shadow .15s;
}

    .btn-sign:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(254,80,0,.35);
        color: #fff;
    }

    .btn-sign i {
        margin-right: .4rem;
    }

/* Botones de descarga */
.doc-actions {
    display: flex;
    gap: .5rem;
    justify-content: center;
}

.btn-doc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem .4rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, transform .15s;
    border: 1.5px solid;
}

.btn-doc-bill {
    color: var(--align-purple);
    border-color: var(--align-purple);
    background: rgba(80,63,129,.05);
}

    .btn-doc-bill:hover {
        background: var(--align-purple);
        color: #fff;
    }

.btn-doc-pdf {
    color: #D32F2F;
    border-color: #D32F2F;
    background: rgba(211,47,47,.05);
}

    .btn-doc-pdf:hover {
        background: #D32F2F;
        color: #fff;
    }

.btn-doc-xml {
    color: var(--align-blue);
    border-color: var(--align-blue);
    background: rgba(0,154,206,.05);
}

    .btn-doc-xml:hover {
        background: var(--align-blue);
        color: #fff;
    }

/* Badge firmado */
.signed-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 600;
    color: #4a7a00;
    background: #F0FAE8;
    border-radius: 100px;
    padding: .2rem .6rem;
    margin-bottom: .6rem;
}

/* Alert sin resultados */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--align-gray);
}

    .no-results i {
        font-size: 2.5rem;
        color: var(--align-gray-lt);
        display: block;
        margin-bottom: .75rem;
    }

    .no-results p {
        font-size: .9rem;
        margin: 0;
    }

/* ── BOTTOM NAVBAR ───────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid #E8EAEB;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 .5rem;
    z-index: 1030;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}

/* Navegador de año */
.year-nav {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--align-gray-bg);
    border-radius: 100px;
    padding: .25rem .25rem;
}

.btn-year-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--align-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    padding: 0;
    font-size: .9rem;
}

    .btn-year-arrow:hover {
        background: var(--align-blue);
        color: #fff;
    }

.btn-year-current {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: .95rem;
    color: var(--align-charcoal);
    min-width: 46px;
    text-align: center;
    cursor: default;
    padding: 0 .25rem;
}

/* Botones de acción del bottom */
.bottom-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: .3rem .5rem;
    border-radius: 8px;
    transition: background .15s;
}

    .bottom-action:hover {
        background: var(--align-gray-bg);
    }

    .bottom-action i {
        font-size: 1.25rem;
        color: var(--align-gray);
    }

    .bottom-action span {
        font-size: .6rem;
        font-weight: 500;
        color: var(--align-gray-lt);
        letter-spacing: .03em;
    }

    .bottom-action.action-logout i {
        color: #D32F2F;
    }

    .bottom-action.action-logout span {
        color: #D32F2F;
    }

/* ── MODAL ───────────────────────────────────────────── */
.modal-header {
    background: linear-gradient(135deg, var(--align-blue) 0%, var(--align-purple) 100%);
    color: #fff;
    border: none;
}

    .modal-header .btn-close {
        filter: invert(1);
    }

.modal-title {
    font-weight: 700;
    font-size: 1rem;
}

.modal-body {
    font-size: .88rem;
    color: var(--align-charcoal);
    line-height: 1.65;
}

.modal-terms-box {
    background: #F7FBFD;
    border: 1px solid rgba(0,154,206,.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: .5rem;
    text-align: justify;
}

.modal-footer {
    border: none;
    padding-top: 0;
}

.btn-modal-accept {
    background: linear-gradient(135deg, var(--align-blue) 0%, var(--align-blue-dark) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    padding: .55rem 1.5rem;
    transition: filter .15s, transform .15s;
}

    .btn-modal-accept:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
        color: #fff;
    }

.btn-modal-cancel {
    border-radius: 8px;
    font-weight: 500;
    padding: .55rem 1.25rem;
}
.textoOculto {
    color: White;
    border-style: None;
    width: 1px;
}

.tablaOculta {
    color: white;
    border: none;
    border-collapse: collapse;
}

/* ════════════════════════════════════════════════════════════
   PERFIL
════════════════════════════════════════════════════════════ */

/* Contenedor general */
.perfil-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Tarjeta base ─────────────────────────────────────────── */
.perfil-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
}

.perfil-card-header {
    background: linear-gradient(135deg, var(--align-charcoal) 0%, #555250 100%);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

    .perfil-card-header i {
        font-size: 1rem;
        opacity: .85;
    }

.perfil-card-body {
    padding: .5rem 1rem 1.1rem;
}

/* ── Campos de datos (read-only) ─────────────────────────── */
.perfil-field {
    display: flex;
    flex-direction: column;
    padding: .7rem 0;
    border-bottom: 1px solid #F0F0F0;
}

    .perfil-field.last {
        border-bottom: none;
    }

.perfil-field-label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--align-gray);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .2rem;
}

.perfil-field-value {
    font-size: .95rem;
    font-weight: 500;
    color: var(--align-charcoal);
}

    .perfil-field-value.mono {
        font-family: monospace;
        font-size: .88rem;
        letter-spacing: .04em;
        color: var(--align-charcoal);
    }

/* ── Botón ayuda contraseña ───────────────────────────────── */
.btn-clave-help {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: rgba(0,154,206,.07);
    border: 1px solid rgba(0,154,206,.2);
    border-radius: 8px;
    color: var(--align-blue);
    font-size: .8rem;
    font-weight: 500;
    padding: .5rem .85rem;
    margin: .75rem 0 1.1rem;
    cursor: pointer;
    transition: background .15s;
    width: 100%;
    justify-content: center;
}

    .btn-clave-help:hover {
        background: rgba(0,154,206,.14);
    }

/* ── Botón guardar contraseña ─────────────────────────────── */
.btn-guardar {
    width: 100%;
    background: linear-gradient(135deg, var(--align-blue) 0%, var(--align-blue-dark) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: .75rem;
    cursor: pointer;
    transition: filter .15s, transform .15s, box-shadow .15s;
}

    .btn-guardar:hover {
        filter: brightness(1.08);
        box-shadow: 0 4px 18px rgba(0,154,206,.35);
        transform: translateY(-1px);
        color: #fff;
    }

/* ── Modal reglas ─────────────────────────────────────────── */
.reglas-grid {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.regla-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #F7FBFD;
    border: 1px solid rgba(0,154,206,.12);
    border-radius: 8px;
    padding: .6rem .85rem;
}

    .regla-item > i {
        font-size: 1.1rem;
        color: var(--align-blue);
        margin-top: .1rem;
        flex-shrink: 0;
    }

.regla-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--align-gray);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .1rem;
}

.regla-valor {
    font-size: .85rem;
    font-weight: 500;
    color: var(--align-charcoal);
}

/* Bottom nav — item activo */
.bottom-action.active i {
    color: var(--align-blue);
}

.bottom-action.active span {
    color: var(--align-blue);
}
/* ── Tab bar Saldos/Infonavit/Fonacot ────────────────────── */
.saldos-tab-bar {
    display: flex;
    gap: .35rem;
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem 1rem .25rem;
    background: transparent;
}

.saldos-tab {
    flex: 1;
    background: #fff;
    border: 2px solid #E0E2E4;
    border-radius: 10px;
    padding: .6rem .5rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--align-gray);
    cursor: pointer;
    transition: all .18s ease;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

    .saldos-tab i {
        display: block;
        font-size: 1.15rem;
        margin-bottom: .2rem;
        color: var(--align-gray-lt);
        transition: color .18s;
    }

    .saldos-tab:hover {
        border-color: var(--align-blue);
        color: var(--align-blue);
    }

        .saldos-tab:hover i {
            color: var(--align-blue);
        }

    .saldos-tab.active {
        background: linear-gradient(135deg, var(--align-blue) 0%, var(--align-purple) 100%) !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(0,154,206,.35);
        transform: translateY(-1px);
    }

        .saldos-tab.active i {
            color: rgba(255,255,255,.9) !important;
        }
.btn-copy {
    background: rgba(0,154,206,.08);
    border: 1px solid rgba(0,154,206,.2);
    border-radius: 6px;
    color: var(--align-blue);
    padding: .2rem .45rem;
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s;
    line-height: 1;
}

    .btn-copy:hover {
        background: rgba(0,154,206,.18);
    }
/* ── Tarjetas Fonacot ─────────────────────────────────────── */
.fonacot-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .2s;
}

    .fonacot-card:hover {
        box-shadow: 0 4px 18px rgba(0,0,0,.10);
    }

.fonacot-card-header {
    background: linear-gradient(135deg, var(--align-charcoal) 0%, #555250 100%);
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fonacot-credito-wrap {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
}

.fonacot-credito-num {
    font-family: monospace;
    letter-spacing: .04em;
}

.fonacot-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.fonacot-badge-activo {
    background: #4a7a00;
    color: #fff;
}

.fonacot-badge-liquidado {
    background: var(--align-blue);
    color: #fff;
}

.fonacot-badge-otro {
    background: var(--align-orange);
    color: #fff;
}

.fonacot-card-body {
    padding: .85rem 1rem;
}

.fonacot-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.fonacot-stat {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.fonacot-stat-label {
    font-size: .68rem;
    font-weight: 600;
    color: var(--align-gray);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.fonacot-stat-value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--align-charcoal);
}

.fonacot-stat-saldo .fonacot-stat-value {
    color: var(--align-orange);
}