@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    color-scheme: light;
    --primary-blue: #2563EB;
    --deep-blue: #1D4ED8;
    --navy: #0F172A;
    --slate: #334155;
    --paper: #F8FAFC;
    --card-bg: #FFFFFF;
    --line: #E2E8F0;
    --emerald: #10B981;
    --emerald-dark: #059669;
    --rose: #EF4444;
    --rose-dark: #DC2626;
    --amber: #F59E0B;
    --purple: #8B5CF6;
}

html {
    color-scheme: light;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--paper);
    color: var(--navy);
    -webkit-tap-highlight-color: transparent;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    user-select: none;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

.mono-num {
    font-family: 'JetBrains Mono', monospace;
    font-feature-settings: "tnum";
    letter-spacing: -0.02em;
}

/* Micro-interacción táctil universal (igual a Nutribalance) */
button:active:not(:disabled),
.btn-tap:active,
[role="button"]:active {
    transform: scale(0.96);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tipografía de Marca MoneyBalance (Hermana de Nutribalance) */
.brand-wordmark {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.01em;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}
.brand-wordmark .brand-money {
    font-weight: 500;
    color: #1E293B;
}
.brand-wordmark .brand-balance {
    font-weight: 700;
    color: var(--primary-blue);
}

/* Ocultar scrollbars manteniendo scroll */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pop-in {
    animation: popIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

/* Tarjetas Premium */
.premium-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

/* Monefy Style Radial Balance Wheel */
.balance-wheel-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}
.balance-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: auto;
}

/* Category Quick Tap Icons */
.cat-bubble {
    width: 50px;
    height: 50px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.cat-bubble:active {
    transform: scale(0.90);
}

/* Badges y chips */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Modales */
.modal-overlay {
    backdrop-filter: blur(8px);
    background-color: rgba(15, 23, 42, 0.45);
}
.modal-sheet {
    background: #ffffff;
    border-top-left-radius: 1.75rem;
    border-top-right-radius: 1.75rem;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Barras de progreso fluidas */
.smooth-progress {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
