:root {
    --figma-bg: #f8fafb;
    --figma-surface: #ffffff;
    --figma-surface-soft: #f2f7f7;
    --figma-ink: #07131f;
    --figma-muted: #475569;
    --figma-line: #e5edf0;
    --figma-primary: #146856;
    --figma-primary-dark: #0f4f43;
    --figma-teal: #20838c;
    --figma-mint: #e7faf4;
    --figma-success: #008b6a;
    --figma-danger: #c81919;
    --figma-warning: #f59e0b;
    --figma-radius-card: 20px;
    --figma-radius-lg: 24px;
    --figma-radius-control: 16px;
    --figma-shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
    --figma-shadow-card: 0 14px 34px rgba(15, 23, 42, 0.1);
    --figma-shadow-tint: 0 22px 48px rgba(20, 104, 86, 0.22);
    --bg: var(--figma-bg);
    --surface: var(--figma-surface);
    --surface-soft: var(--figma-surface-soft);
    --text: var(--figma-ink);
    --muted: var(--figma-muted);
    --line: var(--figma-line);
    --primary: var(--figma-primary);
    --primary-2: var(--figma-teal);
    --primary-soft: var(--figma-mint);
    --accent: var(--figma-success);
    --danger: var(--figma-danger);
    --shadow: var(--figma-shadow-card);
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

a,
.btn-link {
    color: var(--primary);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1:focus {
    outline: none;
}

.app-shell,
.app-main {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(9, 168, 138, 0.12), transparent 34%), var(--bg);
}

.app-content {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 18px 14px 96px;
}

.screen-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
}

.mobile-header h1 {
    font-size: 1.72rem;
    line-height: 1.12;
    margin-bottom: 0;
    font-weight: 760;
}

.eyebrow {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.status-pill,
.balance-toggle,
.text-action {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.balance-toggle,
.text-action {
    cursor: pointer;
}

.wallet-hero,
.action-hero {
    border-radius: 8px;
    color: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.wallet-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 178px;
    padding: 22px;
    background: linear-gradient(135deg, #102f35 0%, #087966 56%, #2457e6 130%);
}

.wallet-hero span,
.wallet-hero small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.wallet-hero strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 3rem;
    line-height: 1;
    font-weight: 760;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.qr-main-button,
.primary-tile {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.qr-main-button {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    background: #ffffff;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 10px rgba(9, 168, 138, 0.14);
}

.action-hero {
    padding: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #eef8f5 100%);
    color: var(--text);
    border: 1px solid rgba(7, 133, 111, 0.14);
}

.action-hero h2 {
    margin-bottom: 6px;
    font-size: 1.22rem;
    font-weight: 760;
}

.action-hero p {
    color: var(--muted);
    margin-bottom: 14px;
}

.primary-tile {
    width: 100%;
    min-height: 56px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    font-weight: 750;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-card,
.empty-state,
.section-block,
.filter-panel,
.result-card {
    border: 1px solid rgba(220, 229, 232, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(18, 32, 34, 0.05);
    min-width: 0;
}

.metric-card {
    padding: 15px;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 760;
}

.section-block,
.empty-state,
.result-card {
    padding: 16px;
}

.empty-state {
    text-align: left;
}

.empty-state h2 {
    font-size: 1.18rem;
    margin-bottom: 7px;
    font-weight: 760;
}

.empty-state p,
.muted,
.helper-text {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.section-title h2 {
    margin-bottom: 0;
    font-size: 1.06rem;
    font-weight: 760;
}

.visual-list,
.card-list {
    display: grid;
    gap: 10px;
}

.movement-row,
.movement-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.movement-row strong,
.movement-row span,
.movement-card strong,
.movement-card span {
    display: block;
}

.movement-row span,
.movement-card span {
    color: var(--muted);
    font-size: 0.82rem;
}

.movement-row b,
.movement-card b {
    font-size: 1.08rem;
    font-weight: 760;
}

.movement-row.positive b,
.movement-card.positive b {
    color: var(--primary);
}

.movement-row.negative b,
.movement-card.negative b {
    color: var(--danger);
}

.movement-row.neutral b,
.movement-card.neutral b {
    color: var(--primary-2);
}

.movement-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 760;
}

.movement-main {
    min-width: 0;
    flex: 1;
}

.filter-panel {
    padding: 0;
    overflow: hidden;
}

.filter-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 720;
}

.filter-panel > summary::-webkit-details-marker {
    display: none;
}

.filter-panel > summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.15rem;
}

.filter-panel[open] > summary::after {
    content: "-";
}

.filter-body {
    border-top: 1px solid var(--line);
    padding: 14px 16px 16px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.field-grid.single {
    grid-template-columns: 1fr;
}

.form-label {
    color: var(--muted);
    font-weight: 650;
}

.form-control {
    border-radius: 8px;
    border-color: var(--line);
    min-height: 46px;
    background: #ffffff;
}

.form-control:focus,
.btn:focus,
.bottom-nav-link:focus,
.qr-main-button:focus,
.primary-tile:focus {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 0.18rem rgba(36, 87, 230, 0.16);
}

.btn {
    border-radius: 8px;
    font-weight: 720;
    min-height: 44px;
}

.btn-primary {
    color: #ffffff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.notice,
.alert {
    border-radius: 8px;
}

.notice {
    border: 1px solid #c5e8e0;
    background: #edf9f6;
    color: #0f5c4f;
    padding: 11px 12px;
}

.camera-card {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid rgba(7, 133, 111, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.camera-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.camera-toolbar strong,
.camera-toolbar span {
    display: block;
}

.camera-toolbar strong {
    font-weight: 760;
}

.camera-toolbar span {
    color: var(--muted);
    font-size: 0.84rem;
}

.camera-frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 248px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        #102f35;
    background-size: 24px 24px;
}

.camera-frame::after {
    content: "";
    position: absolute;
    inset: 34px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    box-shadow: 0 0 0 999px rgba(16, 47, 53, 0.32);
    pointer-events: none;
    opacity: 0;
}

.camera-frame.active::after {
    opacity: 1;
}

.camera-video {
    width: 100%;
    min-height: 248px;
    object-fit: cover;
}

.camera-canvas {
    display: none;
}

.camera-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 24px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(16, 47, 53, 0.96), rgba(7, 133, 111, 0.86));
}

.camera-placeholder strong,
.camera-placeholder span {
    display: block;
}

.camera-placeholder strong {
    font-size: 1.1rem;
    font-weight: 760;
}

.camera-placeholder span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

table.table {
    display: block;
    min-width: 100%;
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border-radius: 8px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    width: min(100%, 520px);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--figma-line);
    transform: translateX(-50%);
    backdrop-filter: blur(16px);
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 7px 2px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.69rem;
    font-weight: 750;
}

.bottom-nav-link.active {
    color: var(--primary);
    background: transparent;
}

.nav-token {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 999px;
    background: #eef3f5;
    color: inherit;
    font-size: 0.7rem;
    font-weight: 760;
}

.bottom-nav-link.primary .nav-token {
    background: var(--primary);
    color: #ffffff;
}

.bottom-nav-link.active .nav-token,
.bottom-nav-link.primary.active .nav-token {
    background: var(--figma-mint);
    color: var(--figma-primary);
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #dce5e8;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Cargando");
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    background: #fff4d6;
    color: #4a3a12;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.12);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.65rem;
}

.blazor-error-boundary {
    border-radius: 8px;
    background: #bf2f2f;
    color: #ffffff;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "Ocurrio un error.";
}

code {
    color: #8a1a55;
}

@media (max-width: 430px) {
    .wallet-hero {
        min-height: 162px;
        padding: 18px;
    }

    .wallet-hero strong {
        font-size: 2.72rem;
    }

    .qr-main-button {
        width: 84px;
        height: 84px;
    }
}

/* UX/UI Tailwind pass: compatibility utilities after removing Bootstrap from WASM shell. */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.w-100 {
    width: 100%;
}

.btn-light {
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.52);
}

.btn-outline-primary:hover,
.btn-primary:hover,
.primary-tile:hover,
.qr-main-button:hover,
.text-action:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.wallet-hero {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.32), transparent 22%),
        linear-gradient(135deg, #0c2c34 0%, #087966 50%, #2865e8 125%);
}

.metric-card,
.section-block,
.empty-state,
.result-card,
.filter-panel {
    backdrop-filter: blur(10px);
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.82rem;
    font: inherit;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.35rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid transparent;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline-primary {
    background: #ffffff;
}

@media (min-width: 860px) {
    .app-shell,
    .app-main {
        background:
            radial-gradient(circle at 18% 8%, rgba(9, 168, 138, 0.13), transparent 28%),
            linear-gradient(180deg, #eef8f6 0%, #f8fbfc 46%, #edf3f6 100%);
    }

    .app-content {
        width: min(100%, 640px);
        padding: 34px 24px 56px;
    }

    .bottom-nav {
        top: 50%;
        right: max(24px, calc((100vw - 760px) / 2 - 116px));
        bottom: auto;
        left: auto;
        width: 84px;
        grid-template-columns: 1fr;
        border: 1px solid rgba(220, 229, 232, 0.84);
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 18px 42px rgba(18, 32, 34, 0.12);
        transform: translateY(-50%);
    }

    .bottom-nav-link {
        min-height: 66px;
        justify-content: center;
        padding: 8px 4px;
    }
}

/* Fintech refinement pass: premium wallet surface without changing flows. */
:root {
    --shadow-soft: 0 10px 26px rgba(18, 32, 34, 0.08);
    --shadow-lift: 0 22px 48px rgba(8, 121, 102, 0.22);
}

.app-shell,
.app-main {
    background:
        radial-gradient(circle at 18% 0%, rgba(9, 168, 138, 0.16), transparent 32%),
        radial-gradient(circle at 92% 14%, rgba(36, 87, 230, 0.1), transparent 26%),
        linear-gradient(180deg, #f8fbfc 0%, #edf5f4 100%);
}

.mobile-header h1 {
    font-size: 1.82rem;
    font-weight: 820;
    letter-spacing: 0;
}

.wallet-hero {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.34), transparent 22%),
        linear-gradient(135deg, #092b33 0%, #087966 48%, #2865e8 126%);
    box-shadow: var(--shadow-lift);
}

.wallet-hero::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -42px;
    width: 152px;
    height: 152px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

.wallet-hero strong {
    font-weight: 840;
    letter-spacing: 0;
}

.qr-main-button,
.primary-tile,
.bottom-nav-link,
.movement-card,
.movement-row {
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.metric-card,
.section-block,
.empty-state,
.result-card,
.filter-panel,
.camera-card {
    box-shadow: var(--shadow-soft);
}

.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--primary-2));
    opacity: 0.64;
}

.movement-card:hover,
.movement-row:hover {
    border-color: rgba(7, 133, 111, 0.24);
    box-shadow: 0 10px 24px rgba(18, 32, 34, 0.08);
    transform: translateY(-1px);
}

.movement-icon {
    box-shadow: inset 0 0 0 1px rgba(7, 133, 111, 0.08);
}

.bottom-nav {
    box-shadow: 0 -12px 30px rgba(18, 32, 34, 0.08);
}

.bottom-nav-link.active {
    transform: translateY(-1px);
}

.camera-frame.active::after {
    animation: qr-focus-pulse 1.8s ease-in-out infinite;
}

.skeleton-line {
    min-height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #eef4f5 0%, #f8fbfc 45%, #eef4f5 100%);
    background-size: 220% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

@keyframes qr-focus-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 999px rgba(16, 47, 53, 0.32), 0 0 0 0 rgba(255, 255, 255, 0.22);
    }

    50% {
        box-shadow: 0 0 0 999px rgba(16, 47, 53, 0.32), 0 0 0 8px rgba(255, 255, 255, 0.08);
    }
}

/* Public unauthenticated screen: wallet landing without authenticated navigation. */
.public-content {
    width: min(100%, 440px);
    padding-bottom: 32px;
}

.app-content.qr-content {
    padding-bottom: 32px;
}

.public-landing {
    display: grid;
    gap: 20px;
    min-height: calc(100vh - 36px);
    align-content: start;
}

.figma-public-wallet {
    padding: 6px 6px 28px;
}

.figma-public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.figma-public-header span {
    display: block;
    color: var(--figma-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.figma-public-header h2 {
    margin: 2px 0 0;
    color: var(--figma-ink);
    font-size: 1.72rem;
    line-height: 1.08;
    font-weight: 880;
    letter-spacing: 0;
}

.figma-icon-badge {
    display: inline-grid !important;
    min-height: 48px;
    place-items: center;
    border: 1px solid var(--figma-line);
    border-radius: var(--figma-radius-control);
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--figma-primary) !important;
    box-shadow: var(--figma-shadow-soft);
    font-size: 0.84rem !important;
    font-weight: 800 !important;
}

.figma-wallet-section,
.figma-offers {
    display: grid;
    gap: 12px;
}

.figma-section-label {
    color: var(--figma-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.figma-wallet-card {
    position: relative;
    display: grid;
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--figma-radius-lg);
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.22), transparent 24%),
        radial-gradient(circle at 22px 22px, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #146856 0%, #0f4f43 54%, #195b64 100%);
    background-size: auto, 20px 20px, auto;
    box-shadow: var(--figma-shadow-tint);
}

.figma-wallet-card span,
.figma-wallet-card small {
    display: block;
    color: rgba(255, 255, 255, 0.84);
}

.figma-wallet-card small {
    margin-top: 7px;
    color: #70f2c4;
    font-size: 0.82rem;
    font-weight: 750;
}

.figma-wallet-card strong {
    align-self: end;
    margin-top: 34px;
    font-size: 3.22rem;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

.figma-wallet-mark {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 850;
}

.figma-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.figma-action-card {
    display: grid;
    min-height: 144px;
    place-items: center;
    gap: 14px;
    border: 1px solid var(--figma-line);
    border-radius: var(--figma-radius-card);
    padding: 20px;
    background: var(--figma-surface);
    box-shadow: var(--figma-shadow-soft);
    color: var(--figma-ink);
    text-align: center;
}

.figma-action-card.primary {
    border-color: transparent;
    background: linear-gradient(135deg, #20838c 0%, #146856 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(32, 131, 140, 0.24);
}

.figma-action-card strong {
    font-size: 0.96rem;
    font-weight: 850;
}

.figma-action-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    font-size: 0.9rem;
    font-weight: 900;
}

.figma-action-card.secondary .figma-action-icon {
    background: var(--figma-surface-soft);
    color: var(--figma-teal);
    box-shadow: inset 0 0 0 1px var(--figma-line);
}

.figma-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.figma-section-title h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 820;
}

.figma-mini-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: var(--figma-mint);
    color: var(--figma-success);
    font-weight: 900;
}

.figma-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.figma-offer-grid article {
    display: grid;
    align-content: end;
    min-height: 112px;
    border-radius: var(--figma-radius-card);
    padding: 18px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(135deg, #129271 0%, #146856 60%, #20838c 100%);
    background-size: 19px 19px, auto;
    box-shadow: var(--figma-shadow-soft);
}

.figma-offer-grid article:nth-child(2) {
    background:
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(135deg, #207f87 0%, #146856 100%);
}

.figma-offer-grid span {
    font-size: 0.78rem;
    font-weight: 850;
}

.figma-offer-grid strong {
    margin-top: 6px;
    font-size: 1.02rem;
    line-height: 1.18;
    font-weight: 900;
}

/* Cliente authenticated wallet: direct parity target from Figma Home / Wallet. */
.figma-wallet-home {
    display: grid;
    gap: 20px;
}

.figma-auth-header {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.figma-auth-header span {
    display: block;
    color: var(--figma-muted);
    font-size: 0.84rem;
    font-weight: 620;
}

.figma-auth-header h2 {
    margin: 2px 0 0;
    color: var(--figma-ink);
    font-size: 1.74rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.figma-notification {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--figma-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--figma-danger);
    box-shadow: var(--figma-shadow-soft);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.figma-wallet-balance {
    min-height: 200px;
}

.figma-wallet-balance strong {
    font-size: clamp(3rem, 13vw, 3.45rem);
}

.figma-qr-actions .figma-action-card {
    min-height: 144px;
}

.figma-summary-grid article:first-child {
    background:
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(135deg, #129271 0%, #146856 60%, #20838c 100%);
}

.figma-summary-grid article:nth-child(2) {
    background:
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(135deg, #207f87 0%, #126b58 100%);
}

.figma-activity-section {
    display: grid;
    gap: 12px;
}

.figma-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.figma-section-row h3 {
    margin: 0;
    color: var(--figma-ink);
    font-size: 1.08rem;
    font-weight: 850;
}

.figma-text-button {
    border: 0;
    background: transparent;
    color: var(--figma-primary);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 850;
    cursor: pointer;
}

.figma-transaction-list {
    overflow: hidden;
    border: 1px solid var(--figma-line);
    border-radius: var(--figma-radius-card);
    background: #ffffff;
    box-shadow: var(--figma-shadow-soft);
}

.figma-transaction-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    min-height: 76px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f4;
    background: #ffffff;
}

.figma-transaction-item:last-child {
    border-bottom: 0;
}

.figma-transaction-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(0, 139, 106, 0.16);
    border-radius: 999px;
    background: var(--figma-mint);
    color: var(--figma-success);
    font-size: 0.75rem;
    font-weight: 900;
}

.figma-transaction-main {
    min-width: 0;
}

.figma-transaction-main strong,
.figma-transaction-main span {
    display: block;
}

.figma-transaction-main strong {
    overflow: hidden;
    color: var(--figma-ink);
    font-size: 0.98rem;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.figma-transaction-main span {
    margin-top: 3px;
    color: var(--figma-muted);
    font-size: 0.82rem;
}

.figma-transaction-item b {
    color: var(--figma-success);
    font-size: 0.98rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.figma-transaction-item.negative b {
    color: var(--figma-danger);
}

.figma-transaction-item.neutral b {
    color: var(--figma-teal);
}

.figma-empty-state {
    border-radius: var(--figma-radius-card);
}

/* Cliente QR / camera: direct parity target from Figma QR Scanner. */
.figma-qr-screen {
    gap: 20px;
    padding-bottom: 32px;
}

.figma-qr-header {
    position: relative;
    display: grid;
    min-height: 76px;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.figma-qr-header span {
    display: block;
    color: var(--figma-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.figma-qr-header h1 {
    margin: 2px 0 0;
    color: var(--figma-ink);
    font-size: 1.32rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.figma-qr-close,
.figma-qr-status {
    display: grid !important;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--figma-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--figma-shadow-soft);
}

.figma-qr-close {
    color: var(--figma-ink);
    font: inherit;
    font-size: 1.08rem;
    font-weight: 850;
    cursor: pointer;
}

.figma-qr-status {
    color: var(--figma-primary) !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
}

.figma-qr-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid var(--figma-line);
    border-radius: 999px;
    padding: 5px;
    background: #f2f4f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.figma-qr-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--figma-muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 820;
    cursor: pointer;
}

.figma-qr-tabs button.active {
    background: #ffffff;
    color: var(--figma-primary);
    box-shadow: var(--figma-shadow-soft);
}

.figma-qr-card,
.figma-manual-token-card {
    border: 1px solid var(--figma-line);
    border-radius: var(--figma-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--figma-shadow-card);
}

.figma-qr-card {
    display: grid;
    gap: 18px;
    overflow: hidden;
    padding: 22px;
}

.figma-qr-card-copy {
    display: grid;
    gap: 6px;
}

.figma-qr-card-copy span,
.figma-manual-token-card p {
    color: var(--figma-muted);
}

.figma-qr-card-copy span {
    font-size: 0.8rem;
    font-weight: 820;
    text-transform: uppercase;
}

.figma-qr-card-copy h2 {
    margin: 0;
    color: var(--figma-ink);
    font-size: 1.42rem;
    line-height: 1.12;
    font-weight: 900;
}

.figma-qr-card-copy p,
.figma-manual-token-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.figma-qr-camera-shell {
    display: grid;
    gap: 14px;
}

.figma-qr-camera-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.figma-qr-camera-head strong,
.figma-qr-camera-head span {
    display: block;
}

.figma-qr-camera-head strong {
    color: var(--figma-ink);
    font-size: 1rem;
    font-weight: 850;
}

.figma-qr-camera-head span {
    margin-top: 3px;
    color: var(--figma-muted);
    font-size: 0.82rem;
}

.figma-qr-state {
    display: inline-grid !important;
    min-width: 74px;
    min-height: 34px;
    place-items: center;
    border: 1px solid rgba(32, 131, 140, 0.16);
    border-radius: 999px;
    padding: 0 11px;
    background: var(--figma-mint);
    color: var(--figma-primary) !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
}

.figma-qr-state.scanning,
.figma-qr-state.validating {
    background: #dff7ff;
    color: var(--figma-teal) !important;
}

.figma-qr-state.success {
    background: var(--figma-mint);
    color: var(--figma-success) !important;
}

.figma-qr-state.error {
    border-color: rgba(200, 25, 25, 0.18);
    background: #fff0f0;
    color: var(--figma-danger) !important;
}

.figma-qr-frame {
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 24px;
    background:
        radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #0f4f43 0%, #146856 60%, #195b64 100%);
    background-size: 18px 18px, auto;
    box-shadow: var(--figma-shadow-tint);
}

.figma-qr-frame::after {
    display: none;
}

.figma-qr-frame.active {
    border: 0;
    background: #07131f;
}

.figma-qr-video {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.figma-qr-placeholder {
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-align: center;
}

.figma-qr-placeholder strong {
    font-size: 1.12rem;
    font-weight: 900;
}

.figma-qr-placeholder span {
    max-width: 220px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.figma-scan-corners {
    pointer-events: none;
    position: absolute;
    inset: 42px;
    border-radius: 22px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.figma-scan-corners::before,
.figma-scan-corners::after {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    border-color: #ffffff;
    border-style: solid;
}

.figma-scan-corners::before {
    top: 0;
    left: 0;
    border-width: 4px 0 0 4px;
    border-top-left-radius: 20px;
}

.figma-scan-corners::after {
    right: 0;
    bottom: 0;
    border-width: 0 4px 4px 0;
    border-bottom-right-radius: 20px;
}

.figma-qr-actions-row {
    display: grid;
    grid-template-columns: 1fr;
}

.figma-manual-token-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.figma-manual-token-card .figma-primary-button {
    margin-top: 14px;
}

.figma-qr-result {
    display: grid;
    gap: 14px;
    border-radius: var(--figma-radius-card);
    padding: 18px;
    box-shadow: var(--figma-shadow-soft);
}

.figma-qr-result.success {
    border: 1px solid rgba(0, 139, 106, 0.16);
    background: var(--figma-mint);
}

.figma-qr-result.error {
    border: 1px solid rgba(200, 25, 25, 0.16);
    background: #fff4f4;
}

.figma-qr-result span {
    color: var(--figma-muted);
    font-size: 0.82rem;
    font-weight: 820;
}

.figma-qr-result h2,
.figma-qr-result strong {
    margin: 2px 0 0;
    color: var(--figma-ink);
    font-size: 1.2rem;
    font-weight: 900;
}

.figma-qr-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.figma-qr-result-grid article {
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.figma-qr-result-grid strong {
    display: block;
    color: var(--figma-success);
    font-size: 1.34rem;
}

@media (min-width: 760px) {
    .figma-qr-screen {
        width: min(100%, 480px);
        margin: 0 auto;
    }
}

/* Cliente history / movements: direct parity target from Figma Transaction History. */
.figma-history-screen {
    gap: 20px;
    padding-bottom: 118px;
}

.figma-history-header {
    display: grid;
    min-height: 58px;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 12px;
}

.figma-history-header h1 {
    margin: 0;
    color: var(--figma-ink);
    font-size: 1.72rem;
    line-height: 1.05;
    font-weight: 920;
    letter-spacing: 0;
}

.figma-history-icon-button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--figma-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--figma-ink);
    box-shadow: var(--figma-shadow-soft);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.figma-history-icon-button.filter {
    color: var(--figma-primary);
    background: var(--figma-mint);
}

.figma-history-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.figma-history-stats article {
    display: grid;
    min-height: 76px;
    align-content: center;
    border: 1px solid var(--figma-line);
    border-radius: 22px;
    padding: 13px 14px;
    background: #ffffff;
    box-shadow: var(--figma-shadow-soft);
}

.figma-history-stats article.earned {
    border-color: rgba(0, 139, 106, 0.16);
    background: linear-gradient(135deg, #ecfff9 0%, #e3f7f1 100%);
}

.figma-history-stats article.spent {
    border-color: rgba(200, 25, 25, 0.16);
    background: linear-gradient(135deg, #fff6f6 0%, #ffeded 100%);
}

.figma-history-stats article.total {
    border-color: rgba(32, 94, 204, 0.16);
    background: linear-gradient(135deg, #f2f7ff 0%, #eef4ff 100%);
}

.figma-history-stats span {
    color: var(--figma-primary);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.figma-history-stats article.spent span {
    color: var(--figma-danger);
}

.figma-history-stats article.total span {
    color: #1746a2;
}

.figma-history-stats strong {
    margin-top: 7px;
    color: var(--figma-success);
    font-size: clamp(1.15rem, 4.6vw, 1.38rem);
    line-height: 1;
    font-weight: 930;
    font-variant-numeric: tabular-nums;
}

.figma-history-stats article.spent strong {
    color: var(--figma-danger);
}

.figma-history-stats article.total strong {
    color: #1746a2;
}

.figma-history-type-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.figma-history-type-strip::-webkit-scrollbar {
    display: none;
}

.figma-history-type-strip span {
    flex: 0 0 auto;
    border: 1px solid var(--figma-line);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--figma-muted);
    box-shadow: var(--figma-shadow-soft);
    font-size: 0.76rem;
    font-weight: 850;
}

.figma-history-filter-card,
.figma-history-loading,
.figma-ledger-card {
    border: 1px solid var(--figma-line);
    border-radius: var(--figma-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--figma-shadow-card);
}

.figma-history-filter-card {
    padding: 18px;
}

.figma-history-filter-card form {
    display: grid;
    gap: 14px;
}

.figma-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.figma-history-loading,
.figma-history-empty {
    display: grid;
    gap: 7px;
    padding: 24px;
}

.figma-history-loading span,
.figma-history-empty span,
.figma-ledger-title-row span {
    color: var(--figma-muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.figma-history-loading h2,
.figma-history-empty h2,
.figma-ledger-title-row h2 {
    margin: 0;
    color: var(--figma-ink);
    font-size: 1.28rem;
    line-height: 1.15;
    font-weight: 900;
}

.figma-history-loading p,
.figma-history-empty p {
    margin: 0;
    color: var(--figma-muted);
    line-height: 1.45;
}

.figma-ledger-card {
    overflow: hidden;
}

.figma-ledger-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid #edf2f4;
}

.figma-ledger-month {
    display: grid;
}

.figma-ledger-month + .figma-ledger-month {
    border-top: 1px solid #edf2f4;
}

.figma-ledger-month-title {
    display: flex;
    min-height: 60px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.figma-ledger-month-title .figma-transaction-icon {
    width: 34px;
    height: 34px;
    font-size: 0.68rem;
}

.figma-ledger-month-title strong {
    color: var(--figma-ink);
    font-size: 0.98rem;
    font-weight: 900;
}

.figma-ledger-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    min-height: 82px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid #edf2f4;
    background: #ffffff;
}

.figma-ledger-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(0, 139, 106, 0.16);
    border-radius: 999px;
    background: var(--figma-mint);
    color: var(--figma-success);
    font-size: 0.75rem;
    font-weight: 920;
}

.figma-ledger-item.negative .figma-ledger-icon {
    border-color: rgba(200, 25, 25, 0.14);
    background: #fff0f0;
    color: var(--figma-danger);
}

.figma-ledger-main {
    min-width: 0;
}

.figma-ledger-main strong,
.figma-ledger-main span,
.figma-ledger-main small,
.figma-ledger-side b,
.figma-ledger-side span {
    display: block;
}

.figma-ledger-main strong {
    overflow: hidden;
    color: var(--figma-ink);
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 860;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.figma-ledger-main span {
    margin-top: 3px;
    color: #274057;
    font-size: 0.84rem;
    line-height: 1.25;
}

.figma-ledger-main small {
    overflow: hidden;
    margin-top: 4px;
    color: var(--figma-muted);
    font-size: 0.73rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.figma-ledger-side {
    min-width: 76px;
    text-align: right;
}

.figma-ledger-side b {
    color: var(--figma-success);
    font-size: 1.02rem;
    font-weight: 930;
    font-variant-numeric: tabular-nums;
}

.figma-ledger-item.negative .figma-ledger-side b {
    color: var(--figma-danger);
}

.figma-ledger-side span {
    margin-top: 5px;
    color: var(--figma-muted);
    font-size: 0.75rem;
    line-height: 1.2;
}

.figma-history-empty {
    text-align: left;
}

@media (max-width: 430px) {
    .figma-history-screen {
        gap: 18px;
    }

    .figma-history-stats {
        gap: 10px;
    }

    .figma-history-stats article {
        min-height: 74px;
        border-radius: 20px;
        padding: 12px;
    }

    .figma-ledger-item {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 13px 16px;
    }

    .figma-ledger-side {
        min-width: 64px;
    }

    .figma-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 760px) {
    .figma-history-screen {
        width: min(100%, 560px);
        margin: 0 auto;
    }
}

/* Cliente login: extrapolated from Figma wallet language. */
.figma-login-screen {
    gap: 18px;
    padding: 4px 0 24px;
}

.figma-login-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.figma-login-header span {
    display: block;
    color: var(--figma-muted);
    font-size: 0.84rem;
    font-weight: 620;
}

.figma-login-header h1 {
    max-width: 280px;
    margin: 2px 0 0;
    color: var(--figma-ink);
    font-size: 1.78rem;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.figma-back-pill,
.figma-primary-button,
.figma-secondary-button {
    min-height: 48px;
    border: 0;
    border-radius: var(--figma-radius-control);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.figma-back-pill {
    padding: 0 16px;
    color: var(--figma-primary);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--figma-shadow-soft);
}

.figma-login-card,
.figma-register-panel {
    border: 1px solid var(--figma-line);
    border-radius: var(--figma-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--figma-shadow-card);
}

.figma-login-card {
    position: relative;
    display: grid;
    gap: 20px;
    overflow: hidden;
    padding: 24px;
}

.figma-login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 132px;
    background:
        radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.26), transparent 24%),
        radial-gradient(circle at 22px 22px, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #146856 0%, #0f4f43 58%, #20838c 100%);
    background-size: auto, 20px 20px, auto;
}

.figma-login-card > * {
    position: relative;
    z-index: 1;
}

.figma-login-card-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.figma-login-badge {
    justify-self: start;
    margin-top: 32px;
    border: 1px solid rgba(32, 131, 140, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--figma-mint);
    color: var(--figma-primary);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.figma-login-copy {
    display: grid;
    gap: 7px;
}

.figma-login-copy h2 {
    margin: 0;
    color: var(--figma-ink);
    font-size: 1.72rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.figma-login-copy p {
    margin: 0;
    color: var(--figma-muted);
    font-size: 0.96rem;
    line-height: 1.5;
}

.figma-login-form,
.figma-field-stack,
.figma-login-actions {
    display: grid;
    gap: 14px;
}

.figma-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.figma-field {
    display: grid;
    gap: 7px;
}

.figma-field .form-label {
    margin: 0;
    color: var(--figma-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.figma-input {
    min-height: 54px;
    border: 1px solid var(--figma-line);
    border-radius: var(--figma-radius-control);
    background: #ffffff;
    color: var(--figma-ink);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    font-size: 0.98rem;
}

.figma-input::placeholder {
    color: #9aa7b3;
}

.figma-input:focus {
    border-color: rgba(32, 131, 140, 0.5);
    box-shadow: 0 0 0 4px rgba(32, 131, 140, 0.12);
}

.figma-primary-button,
.figma-secondary-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
}

.figma-primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--figma-teal) 0%, var(--figma-primary) 100%);
    box-shadow: 0 16px 30px rgba(32, 131, 140, 0.24);
}

.figma-secondary-button {
    border: 1px solid var(--figma-line);
    color: var(--figma-primary);
    background: #ffffff;
    box-shadow: var(--figma-shadow-soft);
}

.figma-primary-button:hover,
.figma-secondary-button:hover,
.figma-back-pill:hover {
    filter: brightness(0.99);
    transform: translateY(-1px);
}

.figma-primary-button:disabled,
.figma-secondary-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.1);
    opacity: 0.74;
    transform: none;
}

.figma-register-panel {
    overflow: hidden;
}

.figma-register-panel > summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 0 18px;
    color: var(--figma-ink);
    font-weight: 850;
}

.figma-register-panel > summary::-webkit-details-marker {
    display: none;
}

.figma-register-panel > summary b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: var(--figma-mint);
    color: var(--figma-success);
}

.figma-register-panel[open] > summary b {
    transform: rotate(45deg);
}

.figma-register-body {
    border-top: 1px solid var(--figma-line);
    padding: 18px;
}

.figma-login-notice {
    border-radius: var(--figma-radius-control);
    box-shadow: var(--figma-shadow-soft);
}

@media (max-width: 430px) {
    .figma-login-card {
        padding: 22px;
    }

    .figma-register-grid {
        grid-template-columns: 1fr;
    }
}

.public-hero,
.public-visual,
.public-feature-grid article {
    border: 1px solid rgba(220, 229, 232, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.public-hero {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 22px;
    overflow: hidden;
}

.public-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -46px;
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(9, 168, 138, 0.16), rgba(36, 87, 230, 0.12));
}

.public-badge {
    justify-self: start;
    border: 1px solid rgba(7, 133, 111, 0.18);
    border-radius: 8px;
    padding: 7px 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-hero h2 {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin-bottom: 0;
    font-size: clamp(1.85rem, 8vw, 3.2rem);
    line-height: 1.02;
    font-weight: 860;
    letter-spacing: 0;
}

.public-hero p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
}

.public-hero .primary-tile {
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.public-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.wallet-preview {
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.32), transparent 24%),
        linear-gradient(135deg, #092b33 0%, #087966 48%, #2865e8 126%);
    box-shadow: var(--shadow-lift);
}

.preview-balance span,
.preview-balance small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
}

.preview-balance strong {
    display: block;
    margin: 4px 0;
    font-size: 3.4rem;
    line-height: 1;
    font-weight: 860;
}

.preview-qr {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary);
    font-weight: 860;
    box-shadow: inset 0 0 0 10px rgba(9, 168, 138, 0.14);
}

.public-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.public-feature-grid article {
    padding: 15px;
}

.public-feature-grid strong,
.public-feature-grid span {
    display: block;
}

.public-feature-grid strong {
    margin-bottom: 5px;
    font-weight: 820;
}

.public-feature-grid span {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 520px) {
    .public-content {
        padding-top: 16px;
    }

    .public-landing {
        min-height: auto;
    }

    .public-visual {
        grid-template-columns: 1fr;
    }

    .preview-qr {
        width: 100%;
        height: 74px;
    }

    .public-feature-grid {
        grid-template-columns: 1fr;
    }

    .figma-public-wallet {
        padding: 0 0 26px;
    }

    .figma-wallet-card {
        min-height: 200px;
    }

    .figma-action-grid,
    .figma-offer-grid {
        gap: 12px;
    }
}

/* ---- Iconos (componente Paseo.Ui/Icono.razor) ----
   Los contenedores que antes tenian tokens de dos letras ya centran con grid,
   asi que al icono solo le hace falta no deformarse y heredar el color. */
.paf-icono {
    display: block;
    flex: 0 0 auto;
    stroke: currentColor;
    vertical-align: middle;
}

/* Texto corrido de las paginas legales (Terminos y Privacidad).
   Las paginas legales son el unico lugar de la app con parrafos largos: el resto son tarjetas
   y numeros. Sin esto heredan el interlineado apretado de las tarjetas y se vuelven dificiles
   de leer justo donde hace falta que se lean. */
.figma-legal-texto {
    margin: 0 0 1rem;
    line-height: 1.65;
    font-size: .95rem;
    color: var(--texto-secundario, #4a5568);
    text-align: justify;
}

.figma-legal-texto a {
    text-decoration: underline;
}
