:root {
    --bg: #020617;
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --card: #020617;
    --border: #1e293b;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* NAVBAR */
.navbar {
    padding: 24px 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    color: var(--primary);
}

/* HERO */
.hero {
    text-align: center;
    padding: 100px 20px 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.hero-buttons button {
    background: var(--primary);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    color: #022c22;
}

/* PRESENTATION */
.presentation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 40px;
}

.box {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    text-align: center;
}

.box h3 {
    margin-bottom: 10px;
}

.box p {
    color: var(--muted);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* RESPONSIVE GENERAL */
@media (max-width: 900px) {
    .presentation {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* LOGIN */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
}

.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 10px;
}

.login-card p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary.full {
    width: 100%;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-footer a:hover {
    color: var(--primary);
}

.btn-primary-full {
    width: 100%;
    background-color: #22c55e;
    color: #022c22;
    border: none;
    padding: 14px 0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary-full:hover {
    background-color: #16a34a;
}

.btn-primary-full:active {
    transform: scale(0.98);
}

/* ==================== DASHBOARD PROFESIONAL ==================== */
.dashboard-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* TOPBAR */
.dashboard-page .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-page .greeting {
    font-size: 22px;
    font-weight: 600;
}

.dashboard-page .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

/* SALDO CARD */
.dashboard-page .balance-card {
    background: #111827;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-page .label {
    color: #9ca3af;
    font-size: 14px;
}

.dashboard-page .balance-amount {
    font-size: 32px;
    font-weight: bold;
}

.dashboard-page .balance-actions {
    display: flex;
    gap: 16px;
}

.dashboard-page .btn-primary,
.dashboard-page .btn-secondary {
    flex: 1;
    padding: 12px 0;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.dashboard-page .btn-primary {
    background-color: #22c55e;
    color: #022c22;
    border: none;
}

.dashboard-page .btn-primary:hover {
    background-color: #16a34a;
}

.dashboard-page .btn-secondary {
    background-color: transparent;
    border: 1px solid #22c55e;
    color: #22c55e;
}

.dashboard-page .btn-secondary:hover {
    background-color: rgba(34,197,94,0.1);
}

/* TARJETAS */
.cards-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.bank-card {
    flex: 0 0 auto;        
    width: 280px;           
    height: 170px;          
    background: linear-gradient(135deg, #022c22, #16a34a);
    color: #e5f6eb;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bank-card:hover {
    transform: translateY(-4px);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-chip {
    width: 40px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.8);
}

.card-type {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.card-number {
    font-size: 16px;
    letter-spacing: 2px;
    margin-top: 20px;
}

.card-name {
    font-size: 14px;
    opacity: 0.9;
    text-align: right;
}


/* MOVIMIENTOS */
.dashboard-page .movements-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.dashboard-page .movement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111827;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.dashboard-page .movement:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

.dashboard-page .movement-icon {
    font-size: 24px;
    margin-right: 12px;
}

.dashboard-page .movement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-page .movement-title {
    font-weight: 600;
    font-size: 14px;
}

.dashboard-page .movement-date {
    font-size: 12px;
    color: #9ca3af;
}

.dashboard-page .movement-amount.positive {
    color: #22c55e;
    font-weight: 600;
}

.dashboard-page .movement-amount.negative {
    color: #ef4444;
    font-weight: 600;
}

/* RESPONSIVE DASHBOARD */
@media (max-width: 768px) {
    .dashboard-page .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-page .balance-actions {
        flex-direction: column;
    }

    .dashboard-page .balance-actions button {
        width: 100%;
    }

    .dashboard-page .cards-wrapper {
        overflow-x: auto;
    }

    .dashboard-page .movement {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .dashboard-page .movement-amount {
        align-self: flex-end;
    }
}
