:root {
    --clr-bg: #020408;
    --clr-surface: #0a0d14;
    --clr-primary: #3b82f6;
    --clr-primary-glow: rgba(59, 130, 246, 0.4);
    --clr-accent: #10b981;
    --clr-accent-glow: rgba(16, 185, 129, 0.3);
    --clr-text-main: #ffffff;
    --clr-text-muted: #94a3b8;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-full: 999px;
    --radius-lg: 1.5rem;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Expert Splash: Top-Down Curtain Reveal */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.splash-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#splash.hidden {
    transform: translateY(-100%);
}

/* Hero "Splash" Visual (Mesh Gradient) */
.hero-visual-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Mobile First Layout */
.container {
    padding: 0 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section - The WOW Factor */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* Moving Background Glows */
.bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--clr-primary);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Dual CTA Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s var(--transition);
}

.btn-free {
    background: #ffffff;
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-pro {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:active {
    transform: scale(0.96);
}

/* Fancy App Preview Card */
.app-preview {
    margin: 4rem auto 0;
    position: relative;
    width: 100%;
    max-width: 340px;
    background: linear-gradient(180deg, #1e293b 0%, #020617 100%);
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    padding: 2rem;
    /* Combine animations */
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition) 1s forwards, float 4s ease-in-out 1.8s infinite;
}

.preview-chart {
    height: 120px;
    width: 100%;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 1rem;
}

.bar {
    flex: 1;
    background: var(--clr-primary);
    border-radius: 4px 4px 0 0;
}

/* Price Tag Floating */
.price-tag {
    position: absolute;
    top: -1rem;
    right: 1.5rem;
    background: var(--clr-accent);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px var(--clr-accent-glow);
}

/* Feature Grid */
.features {
    padding: 5rem 0;
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: var(--clr-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--clr-text-muted);
}

/* SPA Transitions */
.view-section {
    display: none;
    animation: fadeIn 0.5s var(--transition);
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Dashboard Specific Styles */
.dashboard-container {
    padding-top: 2rem;
    padding-bottom: 120px;
    /* Espacio extra para el Ad Bar y los FABs */
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--clr-surface);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.25rem;
    font-weight: 800;
}

.stat-card.income .value {
    color: var(--clr-accent);
}

.stat-card.expense .value {
    color: #ef4444;
}

.transaction-list {
    display: grid;
    gap: 1rem;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.transaction-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.transaction-info span {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.transaction-amount {
    font-weight: 800;
    font-size: 0.9rem;
}

.transaction-amount.negative {
    color: #ef4444;
}

.transaction-amount.positive {
    color: var(--clr-accent);
}

/* Floating Action Button for Scan */
.fab-scan {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px var(--clr-primary-glow);
    z-index: 100;
    border: none;
    cursor: pointer;
    animation: pulse 2s infinite;
}

/* Tablet/Desktop */
@media (min-width: 768px) {
    .container {
        padding: 0 4rem;
    }

    .hero {
        padding-top: 8rem;
        text-align: center;
        align-items: center;
    }

    .cta-group {
        flex-direction: row;
        justify-content: center;
        max-width: 500px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .app-preview {
        width: 400px;
        aspect-ratio: 9/19;
        margin: 4rem auto 0;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}