/* =====================================================
   INVEROOT CSS — Brutalismo Financiero (Estilo Moderno Marketing)
   ===================================================== */

:root {
    --bg-main: #06090e;
    --bg-panel: rgba(16, 22, 34, 0.7);
    --bg-panel-hover: rgba(22, 29, 45, 0.9);
    --border-glass: rgba(255, 255, 255, 0.06);

    --accent-emerald: #00F260;
    /* Verde mega brillante, gana dinero */
    --accent-emerald-glow: rgba(0, 242, 96, 0.3);
    --accent-teal: #0575E6;
    /* Azul eléctrico */
    --accent-coral: #FF004D;
    /* Rojo agresivo para pérdidas */

    --text-primary: #ffffff;
    --text-sec: #A0ABC0;
    --text-muted: #5A6A85;

    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 242, 96, 0.05), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(5, 117, 230, 0.05), transparent 30%);
    background-attachment: fixed;
}

/* Utils Mágicos */
.hidden {
    display: none !important;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 2rem;
}

.text-4xl {
    font-size: 2.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.uppercase {
    text-transform: uppercase;
}

.position-relative {
    position: relative;
}

.text-sec {
    color: var(--text-sec);
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.padding-panel {
    padding: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-emerald), #0575E6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.positive {
    color: var(--accent-emerald);
}

.negative,
.alert {
    color: var(--accent-coral);
}

/* Botones Brutales */
.btn-primary {
    background: linear-gradient(135deg, #00F260, #0575E6);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 242, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 242, 96, 0.5);
    transform: translateY(-2px);
}

.btn-massive {
    padding: 18px 36px;
    font-size: 18px;
}

/* AUTH - Muy Directo */
.auth-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 1000px;
    max-width: 100%;
    min-height: 600px;
    overflow: hidden;
    padding: 0;
}

.auth-branding {
    flex: 1.2;
    padding: 4rem;
    background: linear-gradient(180deg, rgba(0, 242, 96, 0.1) 0%, transparent 100%);
    border-right: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
}

.auth-form-panel {
    flex: 1;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080c14;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.logo-mark {
    font-size: 2.5rem;
}

.brand-logo h1 {
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: -2px;
}

.brand-tagline {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    font-weight: 300;
}

.auth-feature {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
}

.auth-feature strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.auth-feature span {
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.auth-form {
    width: 100%;
    max-width: 380px;
    display: none;
    animation: fadeUp 0.4s ease;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.auth-subtitle {
    color: var(--text-sec);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Inputs "A lo Bruto" */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-sec);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-brutal,
.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: var(--transition);
    font-weight: 500;
}

.input-brutal:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-emerald);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 242, 96, 0.15);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
}

.toggle-password:hover {
    opacity: 1;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-sec);
    font-size: 1rem;
}

.auth-switch a {
    color: var(--accent-emerald);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: 0.2s;
}

.auth-switch a:hover {
    border-bottom-color: var(--accent-emerald);
}

/* DASHBOARD */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1800px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px;
    gap: 30px;
}

.sidebar {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
}

.sidebar-logo h2 {
    font-size: 2rem;
    font-weight: 900;
}

.sidebar-logo .logo-mark {
    font-size: 1.8rem;
}

.menu {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.menu-item.active {
    background: var(--bg-panel-hover);
    color: var(--text-primary);
    box-shadow: inset 4px 0 0 var(--accent-emerald);
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #000;
}

.user-name {
    font-weight: 800;
    font-size: 1.1rem;
}

.user-plan {
    font-size: 0.85rem;
    color: var(--accent-emerald);
    font-weight: 600;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 0, 77, 0.1);
    border: 1px solid rgba(255, 0, 77, 0.2);
    color: var(--accent-coral);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 700;
    text-transform: uppercase;
}

.logout-btn:hover {
    background: var(--accent-coral);
    color: #fff;
}

.main-content {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 60px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.greeting h1 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    font-weight: 900;
    letter-spacing: -1px;
}

.greeting p {
    color: var(--text-sec);
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* El Switch Zen / Ansias */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
}

.mode-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-label.active-mode {
    color: var(--accent-emerald);
    text-shadow: 0 0 10px rgba(0, 242, 96, 0.5);
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-glass);
    transition: .4s;
    border-radius: 34px;
    border: 2px solid transparent;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-sec);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(5, 117, 230, 0.2);
    border-color: var(--accent-teal);
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: var(--accent-teal);
}

.page-section {
    display: none;
    animation: fadeUp 0.3s ease forwards;
}

.page-section.active-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Dashboard HERO */
.hero-dashboard {
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 96, 0.2);
    background: linear-gradient(180deg, rgba(0, 242, 96, 0.05), transparent);
}

.hero-content h2 {
    color: var(--text-sec);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-dinero {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 10px 30px rgba(0, 242, 96, 0.2);
}

.hero-pnl {
    margin-bottom: 24px;
}

.pnl-badge {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 100px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
}

.pnl-badge.positive {
    color: var(--accent-emerald);
    border-color: rgba(0, 242, 96, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 96, 0.1);
}

.pnl-badge.negative {
    color: var(--accent-coral);
    border-color: rgba(255, 0, 77, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 77, 0.1);
}

.hero-motivacion {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats Boxes */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    padding: 32px 24px;
    text-align: center;
    transition: 0.3s;
}

.stat-box.highlight-box {
    border: 1px solid var(--accent-emerald);
    background: linear-gradient(135deg, rgba(0, 242, 96, 0.05), transparent);
}

.stat-box p {
    color: var(--text-sec);
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box h3 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: 0.2s;
    cursor: default;
}

.table-container {
    padding: 32px;
    overflow-x: auto;
}

.panel-header,
.table-header,
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-sec);
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
    padding: 0 10px;
}

.close-btn:hover {
    color: var(--accent-coral);
}

.panel-header h3,
.table-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.view-all {
    color: var(--accent-teal);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.view-all:hover {
    color: #fff;
}

/* Tablas Modernas */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.modern-table th {
    padding: 20px 16px;
    color: var(--text-sec);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border-glass);
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 20px 16px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-weight: 500;
}

.modern-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Botones de acción tabla */
.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 1.2rem;
}

.btn-icon.edit-asset:hover {
    background: rgba(5, 117, 230, 0.2);
    border: 1px solid var(--accent-teal);
}

.btn-icon.delete-asset:hover {
    background: rgba(255, 0, 77, 0.2);
    border: 1px solid var(--accent-coral);
}

/* Grids assets */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.assets-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.asset-card {
    padding: 24px;
    cursor: default;
    border: 1px solid var(--border-glass);
}

.asset-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-panel-hover);
    transform: translateY(-3px);
}

.asset-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.stock-icon,
.crypto-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.asset-head h4 {
    font-size: 1.3rem;
    font-weight: 800;
}

.symbol {
    font-size: 0.9rem;
    color: var(--text-sec);
    font-weight: 600;
}

.asset-price {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
}

/* Noticias Panel */
.context-panel h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    gap: 16px;
}

.news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.news-dot.positive {
    background: var(--accent-emerald);
    box-shadow: 0 0 15px var(--accent-emerald);
}

.news-dot.alert {
    background: var(--accent-coral);
    box-shadow: 0 0 15px var(--accent-coral);
}

.news-content h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-sec);
    line-height: 1.5;
}

/* Aprender */
.titulo-brutal {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-padding {
    padding: 60px 40px;
}

.mega-search {
    font-size: 1.5rem !important;
    padding: 24px !important;
    border-radius: 20px !important;
    text-align: center;
    border: 2px solid rgba(0, 242, 96, 0.3) !important;
}

.mega-search:focus {
    box-shadow: 0 0 30px rgba(0, 242, 96, 0.15) !important;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.module-card {
    padding: 32px;
}

.module-icon {
    margin-bottom: 20px;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-emerald));
}

.hover-lift:hover {
    transform: translateY(-5px);
    border-color: var(--accent-emerald);
    cursor: pointer;
}

/* Forms y Modales Avanzados */
.currency-prefix-input {
    display: flex;
}

.drop-currency {
    border-radius: 12px 0 0 12px !important;
    width: 90px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.currency-prefix-input input {
    border-radius: 0 12px 12px 0 !important;
    border-left: none !important;
}

.info-alert {
    background: rgba(5, 117, 230, 0.1);
    border: 1px solid rgba(5, 117, 230, 0.3);
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-sec);
}

.info-alert strong {
    color: var(--text-primary);
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0b101a;
    border: 1px solid var(--accent-emerald);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:hover {
    background: rgba(0, 242, 96, 0.1);
}

.autocomplete-item strong {
    display: block;
    color: var(--accent-emerald);
    font-size: 1.1rem;
    font-weight: 800;
}

.autocomplete-loader {
    padding: 20px;
    color: var(--text-sec);
    text-align: center;
    font-size: 1rem;
    font-style: italic;
}

.flex-1 {
    flex: 1;
}

.form-row {
    display: flex;
    gap: 20px;
}

/* Animaciones Core */
.loading-pulse {
    animation: pulseBg 1.5s infinite;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: inline-block;
    padding: 4px 16px;
    color: transparent;
}

@keyframes pulseBg {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 101;
    width: 100%;
    padding: 40px;
    animation: scaleUp 0.3s ease;
}

.add-modal-content {
    max-width: 600px;
    overflow: visible;
    border: 1px solid var(--accent-emerald);
}

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #fff;
    color: #000;
    border-radius: 100px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 800;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 242, 96, 0.4);
    text-transform: uppercase;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================================================
   RESPONSIVO / MÓVILES (Hecho en Vanilla CSS, Cero Bootstrap)
   ===================================================== */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }

    .sidebar {
        position: relative;
        height: auto;
        top: 0;
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        white-space: nowrap;
        gap: 20px;
        z-index: 100;
        border-radius: var(--radius-lg);
    }

    .brand-logo {
        margin-bottom: 0;
    }

    .brand-logo h2 {
        display: none;
    }

    .menu {
        display: flex;
        flex-direction: row;
        margin-top: 0;
        gap: 10px;
    }

    .menu-item {
        padding: 10px 15px;
        margin-bottom: 0;
    }

    .sidebar-footer {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .user-info {
        display: none;
    }

    .logout-btn {
        padding: 10px 20px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 15px;
    }

    .btn-add {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding-bottom: 90px;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        border-radius: 0;
        background: rgba(10, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: none;
        border-top: 1px solid var(--border-glass);
        padding: 10px 5px;
        justify-content: center;
        z-index: 1000;
        overflow: hidden;
    }

    .brand-logo,
    .sidebar-footer {
        display: none !important;
    }

    .menu {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        overflow: visible;
    }

    .menu-item {
        flex-direction: column;
        padding: 6px;
        font-size: 0.65rem;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        gap: 4px;
        border-radius: 8px;
        background: transparent !important;
    }

    .menu-item .icon {
        font-size: 1.5rem;
    }

    .menu-item.active {
        color: var(--accent-emerald) !important;
        box-shadow: none !important;
        opacity: 1;
    }

    .menu-item:not(.active) {
        opacity: 0.6;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        padding: 3rem 2rem;
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }

    .auth-form-panel {
        padding: 2rem;
    }

    .dashboard-grid,
    .grid-3,
    .stats-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-dinero {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .hero-padding {
        padding: 30px 15px;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Scroll horizontal vital para las tablas en móvil */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    /* MODALES RESPONSIVOS (FIX) */
    .modal-content {
        padding: 24px 20px !important;
        width: 92% !important;
        max-width: 95% !important;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: var(--radius-lg);
    }

    .add-modal-content {
        max-height: 90vh;
    }

    #learnTitle,
    #analysisTitle {
        font-size: 1.4rem !important;
        line-height: 1.2;
    }

    #learnBody {
        font-size: 0.95rem !important;
    }

    .btn-massive {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .modern-table th,
    .modern-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .hero-dinero {
        font-size: 2rem;
    }

    .btn-massive {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
    }

    .logo-mark {
        font-size: 1.8rem;
    }

    .brand-logo h1 {
        font-size: 2rem;
    }

    #learnBody p,
    #learnBody li {
        margin-bottom: 10px;
    }
}