:root {
    /* Color Palette - Musaraña Corporate Light Mode */
    --primary: #8CC63F;
    --primary-hover: #7EAD36;
    --secondary: #64748b;
    --bg-page: #F3F4F6;
    --bg-surface: rgba(255, 255, 255, 0.85); /* Premium Glassmorphism */
    --bg-glass: rgba(255, 255, 255, 0.6);
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #94a3b8;
    --border: rgba(229, 231, 235, 0.7);
    --accent: #8CC63F;
    --success: #8CC63F;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 1.5rem;
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Blobs (Musaraña Design Pattern) */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4fd 0%, #f6fdfa 100%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(140, 198, 63, 0.2) 0%, rgba(140, 198, 63, 0) 70%);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(189, 191, 193, 0.2) 0%, rgba(189, 191, 193, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Layout */
#app {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 90px 1fr;
    height: 100vh;
    width: 100vw;
}

header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    z-index: 10;
}

.header-logo-img {
    max-height: 50px;
    width: auto;
}

aside {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

main {
    padding: 2rem;
    overflow-y: auto;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glass);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}

.nav-item:hover, .nav-item.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-glass);
}

/* Budget View */
.partida {
    background: white;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 80px 1fr 100px 120px 150px;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.partida:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.partida.active {
    border-color: var(--primary);
    background: linear-gradient(to right, rgba(140, 198, 63, 0.05), white);
}

.val {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

input[type="number"] {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.1);
}

/* Catalog sidebar */
.catalog-item {
    background: white;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.catalog-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Button Custom */
.btn-musa {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-musa:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Gantt Chart */
.gantt-bar {
    fill: var(--primary);
    rx: 6;
    transition: fill 0.2s;
}

.gantt-bar:hover {
    fill: var(--primary-hover);
}

.gantt-svg text {
    fill: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    #app {
        grid-template-columns: 80px 1fr;
    }
    .nav-text { display: none; }
    header { padding: 0 1.5rem; }
}
