/* ==========================================================================
   views/finanzas.css — Estilos exclusivos de Cuentas y tarjetas (finanzas.html)
   Prefijo de clases: fz-
   ========================================================================== */

/* ---------- Carrusel de cuentas ---------- */
.fz-cards-swiper { overflow: visible; }

.fz-bank {
    position: relative;
    overflow: hidden;
    min-height: 196px;
    padding: 18px;
    border-radius: 22px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--app-shadow-lg);
}
/* Brillos decorativos */
.fz-bank::before,
.fz-bank::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.fz-bank::before {
    width: 220px; height: 220px;
    right: -80px; top: -110px;
    background: rgba(255, 255, 255, .12);
}
.fz-bank::after {
    width: 160px; height: 160px;
    right: 30px; bottom: -120px;
    background: rgba(255, 255, 255, .08);
}
.fz-bank > * { position: relative; z-index: 1; }

.fz-bank-navy   { background: linear-gradient(140deg, #3B82F6 0%, #1E3A8A 60%, #0B1B4D 100%); }
.fz-bank-red    { background: linear-gradient(140deg, #F87171 0%, #DC2626 55%, #7F1D1D 100%); }
.fz-bank-violet { background: linear-gradient(140deg, #C084FC 0%, #7E22CE 55%, #3B0764 100%); }
.fz-bank-rose   { background: linear-gradient(140deg, #F43F5E 0%, #BE123C 50%, #4C0519 100%); }
.fz-bank-green  { background: linear-gradient(140deg, #34D399 0%, #059669 55%, #064E3B 100%); }

.fz-bank-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.fz-bank-type,
.fz-bank-label {
    display: block;
    font-size: 11.5px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .75);
}
.fz-bank-name { font-size: 18px; font-weight: 700; color: var(--white); line-height: 1.2; margin-top: 2px; }

/* Chip de tarjeta */
.fz-chip {
    width: 40px;
    height: 30px;
    border-radius: 7px;
    flex-shrink: 0;
    background:
        linear-gradient(90deg, transparent 45%, rgba(120, 80, 0, .35) 45% 55%, transparent 55%),
        linear-gradient(0deg, transparent 30%, rgba(120, 80, 0, .3) 30% 36%, transparent 36% 64%, rgba(120, 80, 0, .3) 64% 70%, transparent 70%),
        linear-gradient(135deg, #FDE68A, #D4A017);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.fz-bank-number {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .92);
    font-variant-numeric: tabular-nums;
}

.fz-bank-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}
.fz-bank-amount { font-size: 24px; font-weight: 700; color: var(--white); line-height: 1.15; }

/* Tarjetas de crédito: usado / límite */
.fz-bank-credit { display: grid; gap: 8px; }
.fz-bank-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
}
.fz-bank-row b { color: var(--white); font-size: 14px; font-weight: 700; }
.fz-bank-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    overflow: hidden;
}
.fz-bank-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--white);
    transform-origin: left;
    animation: ui-bar-in 1.1s var(--app-ease) both;
}
.fz-due {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    color: var(--white);
    font-weight: 700;
}

/* Paginación */
.fz-dots.swiper-pagination { position: static; margin-top: 14px; }
.fz-dots .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: var(--greyscale-300);
    opacity: 1;
    transition: all .3s var(--app-ease);
}
.fz-dots .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: var(--primary);
}

/* ---------- Ingresos vs gastos ---------- */
.fz-flow-top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}
.fz-flow-top .ui-status { margin-left: auto; }
.fz-flow-total span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--greyscale-500);
}
.fz-flow-total strong { display: block; font-size: 20px; font-weight: 700; color: var(--primary-base); margin-top: 2px; }
.fz-dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.fz-dot-in  { background: var(--c-green); }
.fz-dot-out { background: var(--c-violet); }

.fz-weeks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--greyscale-200);
}
.fz-week { text-align: center; }
.fz-week-bars {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    background: repeating-linear-gradient(to top, var(--greyscale-100) 0 1px, transparent 1px 30px);
    border-radius: 8px;
}
.fz-week-bars i {
    width: 16px;
    border-radius: 6px 6px 3px 3px;
    transform-origin: bottom;
    animation: fz-grow .9s var(--app-ease) both;
}
.fz-week-bars i.in  { background: linear-gradient(180deg, #4ADE80, var(--c-green)); }
.fz-week-bars i.out { background: linear-gradient(180deg, #C084FC, var(--c-violet)); animation-delay: .1s; }
.fz-week span { display: block; font-size: 11.5px; color: var(--greyscale-500); margin-top: 6px; }
.fz-flow-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--greyscale-500);
}

@keyframes fz-grow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

/* ---------- Movimientos ---------- */
.fz-day {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--greyscale-400);
    margin: 6px 2px -2px;
}
.fz-day[hidden] { display: none; }
#fz-moves .mod-item-end strong { white-space: nowrap; }

/* ---------- Fechas de corte y pago ---------- */
.fz-cut-head { display: flex; align-items: center; gap: 12px; }
.fz-cut-head p { font-size: 14px; font-weight: 600; color: var(--primary-base); }
.fz-cut-head span:not(.mod-item-ico):not(.ui-status) { display: block; font-size: 12px; color: var(--greyscale-500); margin-top: 2px; }
.fz-cut-head b { color: var(--primary-base); }

.fz-cut-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.fz-cut-steps li {
    padding: 10px;
    border-radius: 14px;
    background: var(--greyscale-50);
    border: 1px solid var(--greyscale-100);
    text-align: center;
}
.fz-cut-steps li.is-next { background: var(--primary-50); border-color: var(--primary-100); }
.fz-cut-steps b { display: block; font-size: 15px; font-weight: 700; color: var(--primary-base); }
.fz-cut-steps span { display: block; font-size: 11px; color: var(--greyscale-500); margin-top: 2px; }

/* Chips de filtro: template.css da width:100% a todo <button> */
.mod-toolbar button.ui-chip {
    width: auto;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 999px;
}
