* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(124, 58, 237, 0.06), transparent 60%),
        radial-gradient(900px 500px at -10% 0%, rgba(5, 150, 105, 0.05), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-md);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    letter-spacing: -0.015em;
    line-height: 1.25;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

a {
    color: var(--brand);
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Cifras: monoespaciado numérico para que no "bailen" al cambiar */
.num, .value, .tx-amount, .card-balance, .sim-hero-amount, .hero-amount {
    font-variant-numeric: tabular-nums;
}

.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -0.125em;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-pill);
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-track {
    background: transparent;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0ms !important;
        animation-duration: 0ms !important;
    }
}
