﻿/* ── GENERAL ──────────────────────────────────────────────── */
* {
    scroll-behavior: smooth;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #0A0F1E 0%, #0D1B3E 50%, #0A1628 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(46,134,171,0.15) 0%, transparent 70%);
        border-radius: 50%;
        top: -150px;
        right: -150px;
        pointer-events: none;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(126,200,227,0.08) 0%, transparent 70%);
        border-radius: 50%;
        bottom: -100px;
        left: -100px;
        pointer-events: none;
    }

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #F0F4F8;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    margin-top: 1.25rem;
    line-height: 1.7;
}

.hero-btn {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-shape {
    position: relative;
    width: 360px;
    height: 360px;
}

.hero-shape-outer {
    position: absolute;
    inset: 0;
    background: rgba(46,134,171,0.12);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 1px solid rgba(46,134,171,0.3);
    animation: morphShape 8s ease-in-out infinite;
}

.hero-shape-inner {
    position: absolute;
    inset: 30px;
    background: rgba(126,200,227,0.06);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    border: 1px solid rgba(126,200,227,0.15);
    animation: morphShape 8s ease-in-out infinite reverse;
}

.hero-shape-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* ── ESTADÍSTICAS ─────────────────────────────────────────── */
.stats-section {
    background: #0D1117;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

    .stat-card:hover {
        border-color: rgba(46,134,171,0.4);
        background: rgba(46,134,171,0.06);
    }

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #2E86AB, #7EC8E3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* ── SERVICIOS ────────────────────────────────────────────── */
.services-section {
    background: #0A0F1E;
    padding: 100px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #F0F4F8;
    text-align: center;
}

.section-subtitle {
    color: rgba(255,255,255,0.5);
    text-align: center;
    font-size: 1.05rem;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.divider-accent {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2E86AB, #7EC8E3);
    border-radius: 2px;
    margin: 0 auto 3.5rem;
}

.service-card {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        border-color: rgba(46,134,171,0.35) !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
    }

.service-icon {
    background: linear-gradient(135deg, rgba(46,134,171,0.2), rgba(126,200,227,0.1));
    border: 1px solid rgba(46,134,171,0.25);
    border-radius: 14px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-title {
    font-weight: 700;
    color: #F0F4F8;
    margin-bottom: 0.5rem;
}

.service-description {
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0D1B3E 0%, #0A1628 100%);
    padding: 100px 0;
    border-top: 1px solid rgba(46,134,171,0.2);
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(46,134,171,0.1) 0%, transparent 70%);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

.cta-title {
    color: #F0F4F8;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.landing-footer {
    background: #060A12;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 10, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo-text {
    color: #F0F4F8;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

    .nav-link:hover {
        color: #7EC8E3;
    }

.nav-login-btn {
    border-color: rgba(46,134,171,0.5) !important;
    color: #7EC8E3 !important;
    font-size: 0.9rem !important;
}

    .nav-login-btn:hover {
        border-color: #2E86AB !important;
        background: rgba(46,134,171,0.1) !important;
    }

/* ── LOGIN ────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background: #0A0F1E;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

    .login-page::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(46,134,171,0.12) 0%, transparent 70%);
        border-radius: 50%;
        top: -150px;
        right: -150px;
        pointer-events: none;
    }

    .login-page::after {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(126,200,227,0.07) 0%, transparent 70%);
        border-radius: 50%;
        bottom: -100px;
        left: -100px;
        pointer-events: none;
    }

.login-card {
    background: rgba(13, 17, 23, 0.95) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 24px !important;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.login-logo-text {
    color: #F0F4F8;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-title {
    color: #F0F4F8;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.4rem;
}

.login-subtitle {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-field-hint {
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.login-divider-text {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
    white-space: nowrap;
}

.login-register-text {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.88rem;
    margin-top: 1.25rem;
}

.login-register-link {
    color: #2E86AB;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

    .login-register-link:hover {
        color: #7EC8E3;
    }

.login-back-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 1.5rem;
}

    .login-back-link:hover {
        color: #7EC8E3;
    }

.error-alert {
    background: rgba(211, 47, 47, 0.1) !important;
    border: 1px solid rgba(211, 47, 47, 0.25) !important;
    border-radius: 10px !important;
    margin-bottom: 1rem;
}

/* ── CHART ─────────────────────────────────────────────────── */
.chart-card {
    border-radius: 16px !important;
    height: 100%;
}

.chart-card-content {
    padding: 1.5rem !important;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.chart-subtitle {
    font-size: 0.78rem;
    opacity: 0.45;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    height: 200px;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 0.4rem;
}

.chart-bar-value {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.7;
}

.chart-bar-wrapper {
    flex: 1;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.chart-bar-fill {
    width: 100%;
    border-radius: 6px;
    transition: height 0.6s ease;
    min-height: 4px;
}

.chart-bar-label {
    font-size: 0.72rem;
    opacity: 0.45;
    white-space: nowrap;
}

/* ── TRANSACTIONS ───────────────────────────────────────────── */
.transactions-card {
    border-radius: 16px !important;
    height: 100%;
}

.transactions-content {
    padding: 1.5rem !important;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.transactions-title {
    font-size: 1rem;
    font-weight: 700;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 0.75rem;
}

    .transaction-item:last-child {
        border-bottom: none;
    }

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-desc {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-user {
    font-size: 0.75rem;
    opacity: 0.45;
}

.transaction-right {
    text-align: right;
    flex-shrink: 0;
}

.transaction-amount {
    font-size: 0.88rem;
    font-weight: 700;
}

.transaction-status {
    font-size: 0.7rem;
    font-weight: 600;
}