:root {
            --bg-main: #F7F5F1;
            --bg-card: #FFFFFF;
            --text-main: #202124;
            --text-muted: #767676;
            --border-light: #ECECEC;
            
            /* Premium Accents */
            --brand-sage: #8D9A6A;
            --brand-terracotta: #C58C63;
            --color-success: #5FA96E;
            --color-warning: #E6B24A;
            --color-error: #D76B6B;
            
            /* Soft Studio Shadows */
            --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.02);
            --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.04);
            --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* --- BASE RESET & MOBILE-FIRST OPTIMIZATION --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            outline: none;
        }

        body {
            background-color: var(--bg-main);
            color: var(--text-main);
            font-family: 'Manrope', sans-serif;
            font-weight: 300;
            overflow-x: hidden;
            display: flex;
            flex-direction: column; /* Apilado vertical por defecto en móvil */
            min-height: 100vh;
            padding-bottom: 70px; /* Espacio para el Bottom Nav en móviles */
            transition: background-color 0.8s ease, color 0.8s ease;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 20px;
        }

        /* --- NAVIGATION: MOBILE-FIRST (BOTTOM NAV) --- */
        .sidebar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 65px;
            background: var(--bg-card);
            border-top: 1px solid var(--border-light);
            border-right: none;
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            align-items: center;
            padding: 0 1rem;
            z-index: 100;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
            transition: var(--transition-smooth);
        }

        .sidebar-logo {
            display: none; /* Se oculta en móviles para ahorrar espacio */
        }

        .nav-items {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            width: 100%;
            gap: 0;
        }

        .nav-item {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            color: var(--text-muted);
            cursor: pointer;
            position: relative;
            transition: var(--transition-smooth);
        }

        .nav-item.hide-mobile {
            display: none; /* Ocultamos configuraciones en el dock principal de móvil */
        }

        .nav-item:hover, .nav-item.active {
            color: var(--text-main);
            background-color: var(--bg-main);
        }

        /* --- MAIN WRAPPER (MOBILE-FIRST) --- */
        .main-wrapper {
            margin-left: 0;
            width: 100%;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* --- HEADER (MOBILE-FIRST) --- */
        header {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-light);
        }

        .header-top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }

        .header-brand .logo-text {
            font-family: 'Outfit', sans-serif;
            font-weight: 300;
            font-size: 1.4rem;
            letter-spacing: 3px;
            color: var(--text-main);
        }

        .header-brand .subtitle {
            font-size: 0.7rem;
            color: var(--text-muted);
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .search-container {
            width: 100%;
            position: relative;
        }

        .search-container i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            width: 16px;
        }

        .search-input {
            width: 100%;
            padding: 12px 16px 12px 46px;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 14px;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            color: var(--text-main);
            transition: var(--transition-smooth);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .action-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: var(--transition-smooth);
        }

        .header-clock {
            font-family: 'Outfit', sans-serif;
            font-size: 0.8rem;
            color: var(--text-main);
            font-weight: 400;
            background: var(--bg-card);
            padding: 4px 10px;
            border-radius: 20px;
            border: 1px solid var(--border-light);
        }

        .user-avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--border-light);
        }

        /* --- WORKSPACE GRID (MOBILE-FIRST: 1 COL) --- */
        .workspace-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.2rem;
        }

        .studio-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 1.5rem;
            box-shadow: var(--shadow-subtle);
            position: relative;
            overflow: hidden;
            transition: var(--transition-smooth);
        }

        .card-header-clean {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.2rem;
        }

        .card-title-clean {
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            font-weight: 400;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* KPI Layouts */
        .kpi-container {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 120px;
        }

        .kpi-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 500;
        }

        .kpi-main-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: 0.5rem;
        }

        .kpi-value {
            font-family: 'Outfit', sans-serif;
            font-size: 2.2rem;
            font-weight: 200;
            color: var(--text-main);
            line-height: 1;
        }

        .kpi-sparkline {
            width: 70px;
            height: 30px;
        }

        /* Headlines */
        .section-heading-block {
            margin-top: 0.8rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .section-headline {
            font-family: 'Outfit', sans-serif;
            font-size: 1.15rem;
            font-weight: 300;
            letter-spacing: 0.5px;
        }

        /* Project Cards */
        .project-card {
            padding: 0;
            display: flex;
            flex-direction: column;
        }

        .project-img-wrapper {
            width: 100%;
            height: 180px;
            overflow: hidden;
            border-radius: 20px 20px 0 0;
            position: relative;
        }

        .project-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .project-status-tag {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 4px 10px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 500;
            text-transform: uppercase;
        }

        .project-body {
            padding: 1.2rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .project-name {
            font-family: 'Outfit', sans-serif;
            font-size: 1.1rem;
            font-weight: 400;
        }

        .project-client {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .progress-text-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .progress-bar-minimal {
            width: 100%;
            height: 3px;
            background: var(--border-light);
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--brand-sage);
            width: 0%;
            transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .project-action-btn {
            margin-top: 1rem;
            width: 100%;
            padding: 10px;
            background: var(--bg-main);
            border: none;
            border-radius: 12px;
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            color: var(--text-main);
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: var(--transition-smooth);
        }

        /* Clients Lists */
        .clients-grid-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .client-studio-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 16px;
            padding: 1.2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: var(--shadow-subtle);
        }

        .client-img {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            object-fit: cover;
        }

        .client-status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            position: absolute;
            bottom: 2px;
            right: 2px;
            border: 2px solid var(--bg-card);
        }

        .client-info-pane {
            flex-grow: 1;
        }

        .client-fullname {
            font-family: 'Outfit', sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .client-meta-line {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .client-project-badge {
            display: inline-block;
            font-size: 0.7rem;
            background: var(--bg-main);
            padding: 2px 8px;
            border-radius: 6px;
            margin-top: 4px;
            font-weight: 500;
        }

        .client-view-sheet-btn {
            background: transparent;
            border: 1px solid var(--border-light);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
        }

        /* Agenda Section */
        .agenda-list {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }

        .agenda-item {
            display: flex;
            gap: 1rem;
            padding: 0.8rem;
            border-radius: 12px;
            border-left: 3px solid var(--brand-sage);
            background: rgba(141, 154, 106, 0.03);
        }

        .agenda-time {
            font-family: 'Outfit', sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            min-width: 40px;
            color: var(--text-main);
        }

        .agenda-details h4 {
            font-size: 0.85rem;
            font-weight: 500;
        }

        .agenda-details p {
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        /* Moodboard & Timeline */
        .moodboard-masonry {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.8rem;
        }

        .mood-item {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            height: 110px;
        }

        .mood-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .timeline-stream {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            position: relative;
            padding-left: 0.5rem;
        }

        .timeline-stream::before {
            content: '';
            position: absolute;
            left: 3px;
            top: 5px;
            bottom: 5px;
            width: 1px;
            background: var(--border-light);
        }

        .timeline-node {
            position: relative;
            padding-left: 1.2rem;
        }

        .timeline-node::before {
            content: '';
            position: absolute;
            left: -1px;
            top: 5px;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--brand-terracotta);
            border: 2px solid var(--bg-card);
        }

        .node-time {
            font-size: 0.7rem;
            color: var(--text-muted);
        }

        .node-text {
            font-size: 0.78rem;
            line-height: 1.4;
        }

        /* Budgets */
        .budget-card-wrapper {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 120px;
        }

        .budget-top-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .budget-amount {
            font-family: 'Outfit', sans-serif;
            font-size: 1.5rem;
            font-weight: 300;
            margin-top: 0.3rem;
        }

        .status-pill {
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .status-pill.pendiente { background: rgba(232, 178, 74, 0.08); color: var(--color-warning); }
        .status-pill.aprobado { background: rgba(95, 169, 110, 0.08); color: var(--color-success); }
        .status-pill.revision { background: rgba(197, 140, 99, 0.08); color: var(--brand-terracotta); }

        /* Widget AI Mobile Minimal */
        .ai-widget {
            position: fixed;
            bottom: 80px;
            right: 1rem;
            left: 1rem;
            background: var(--text-main);
            color: var(--bg-main);
            border-radius: 16px;
            padding: 1rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            z-index: 90;
        }

        .ai-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .ai-title {
            font-family: 'Outfit', sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .ai-pulse-dot {
            width: 6px;
            height: 6px;
            background: var(--brand-sage);
            border-radius: 50%;
        }

        .ai-body {
            font-size: 0.78rem;
            line-height: 1.4;
            opacity: 0.9;
        }

        /* Focus Button Position */
        .focus-toggle-btn {
            position: fixed;
            bottom: 150px;
            right: 1rem;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            padding: 10px 18px;
            border-radius: 30px;
            font-family: 'Outfit', sans-serif;
            font-size: 0.8rem;
            color: var(--text-main);
            cursor: pointer;
            box-shadow: var(--shadow-hover);
            display: flex;
            align-items: center;
            gap: 6px;
            z-index: 90;
        }

        /* Focus Active States Minimal */
        .focus-tasks-card { display: none; }
        .audio-wave-sim { display: none; align-items: center; gap: 3px; margin-left: auto; }
        .wave-bar { width: 2px; height: 12px; background: var(--brand-sage); animation: fluidWave 1.2s ease-in-out infinite alternate; }
        @keyframes fluidWave { 0% { transform: scaleY(0.4); } 100% { transform: scaleY(1.2); } }

        body.focus-mode-active { background-color: #F0EDE6; }
        body.focus-mode-active .sidebar,
        body.focus-mode-active header,
        body.focus-mode-active .kpi-container,
        body.focus-mode-active .moodboard-container,
        body.focus-mode-active .activity-container,
        body.focus-mode-active .clients-grid-container,
        body.focus-mode-active .budget-card-wrapper,
        body.focus-mode-active .section-heading-block,
        body.focus-mode-active .project-card:not(.active-focus-project) {
            display: none !important;
        }
        body.focus-mode-active .main-wrapper { padding: 2rem 1rem; }
        body.focus-mode-active .focus-tasks-card { display: block !important; }
        body.focus-mode-active .audio-wave-sim { display: flex; }

        .task-line-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.82rem; }
        .task-line-item:last-child { border-bottom: none; }


        /* --- RESPONSIVE DESKTOP BREAKPOINT (UPGRADE TO PRO STUDIO INTERFACE) --- */
        @media (min-width: 769px) {
            body {
                flex-direction: row;
                padding-bottom: 0;
            }

            /* Volvemos a la barra lateral premium */
            .sidebar {
                width: 70px;
                height: 100vh;
                top: 0;
                left: 0;
                flex-direction: column;
                border-right: 1px solid var(--border-light);
                border-top: none;
                padding: 2rem 0;
                justify-content: flex-start;
            }

            .sidebar-logo {
                display: block;
                margin-bottom: 3.5rem;
                color: var(--text-main);
            }

            .nav-items {
                flex-direction: column;
                gap: 1.5rem;
                justify-content: flex-start;
            }

            .nav-item.hide-mobile {
                display: flex;
            }

            /* Tooltips dinámicos sólo en Desktop */
            .nav-item::after {
                content: attr(data-tooltip);
                position: absolute;
                left: 60px;
                background: var(--text-main);
                color: var(--bg-main);
                font-size: 0.75rem;
                font-family: 'Outfit', sans-serif;
                padding: 6px 12px;
                border-radius: 6px;
                opacity: 0;
                pointer-events: none;
                transition: all 0.3s ease;
                transform: translateX(-5px);
                white-space: nowrap;
            }

            .nav-item:hover::after {
                opacity: 1;
                transform: translateX(0);
            }

            /* Estructuras de contenido anchas */
            .main-wrapper {
                margin-left: 70px;
                padding: 2rem 3.5rem;
                gap: 2.5rem;
                width: calc(100% - 70px);
                max-width: 1600px;
            }

            header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding-bottom: 1.5rem;
            }

            .header-top-row {
                width: auto;
                justify-content: flex-start;
            }

            .search-container {
                width: 420px;
            }

            /* Grid Completo de 12 Columnas */
            .workspace-grid {
                grid-template-columns: repeat(12, 1fr);
                gap: 2rem;
            }

            .kpi-container { grid-column: span 3; }
            .section-heading-block { grid-column: span 12; }
            .project-card { grid-column: span 3; }
            .clients-grid-container { grid-column: span 8; grid-template-columns: repeat(2, 1fr); }
            .agenda-container { grid-column: span 4; }
            .moodboard-container { grid-column: span 8; }
            .moodboard-masonry { grid-template-columns: repeat(4, 1fr); }
            .activity-container { grid-column: span 4; }
            .budget-card-wrapper { grid-column: span 4; }

            /* Widgets flotantes elegantes en las esquinas */
            .ai-widget { width: 320px; bottom: 2rem; right: 2rem; left: auto; }
            .focus-toggle-btn { bottom: 2rem; left: 2rem; right: auto; }

            /* Grid modular adaptativo en Focus Mode */
            body.focus-mode-active .main-wrapper { padding: 4rem 10%; margin-left: 0; width: 100%; }
            body.focus-mode-active .active-focus-project { grid-column: span 7 !important; display: block !important; }
            body.focus-mode-active .focus-visible-agenda { grid-column: span 5 !important; display: block !important; }
            body.focus-mode-active .focus-tasks-card { grid-column: span 12; }
        }