:root {
            --bg-primary: #ffffff;
            --bg-secondary: #fafafa;
            --bg-tertiary: #f5f5f5;
            --bg-hover: #f0f0f0;
            --text-primary: #1a1a1a;
            --text-secondary: #666666;
            --text-tertiary: #999999;
            --border-color: #e5e5e5;
            --border-hover: #d0d0d0;
            --accent-blue: #3b82f6;
            --accent-blue-light: #60a5fa;
            --accent-blue-dark: #2563eb;
            --accent-purple: #8b5cf6;
            --accent-pink: #ec4899;
            --accent-orange: #f59e0b;
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --accent-yellow: #eab308;
            --accent-teal: #14b8a6;
            --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
            --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
            --sidebar-width: 260px;
            --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        [data-theme="dark"] {
            --bg-primary: #0f0f0f;
            --bg-secondary: #1a1a1a;
            --bg-tertiary: #262626;
            --bg-hover: #333333;
            --text-primary: #f5f5f5;
            --text-secondary: #a3a3a3;
            --text-tertiary: #737373;
            --border-color: #2a2a2a;
            --border-hover: #404040;
            --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
            --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
            background: var(--bg-secondary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* FAQ Section Wrapper */
        .faq-section-wrapper {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 80px 20px;
            background: var(--bg-secondary);
            position: relative;
        }

        .faq-inner {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .faq-inner .faq-section {
            background: transparent;
            margin: 0;
            padding: 0;
        }

        @media (max-width: 768px) {
            .faq-section-wrapper {
                min-height: auto;
                padding: 60px 16px;
            }
        }

        /* Main Content */
        .main-content {
            padding: 100px 16px 16px 16px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Page Header */
        .page-header {
            margin-bottom: 24px;
            width: 100%;
            text-align: center;
        }

        .page-title {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 8px;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }

        .page-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 400;
        }

        /* Búsqueda Global estilo Notion */
        .global-search-container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto 24px;
            position: relative;
        }

        .global-search {
            position: relative;
            display: flex;
            align-items: center;
            background: var(--bg-primary);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 12px 16px;
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
        }

        .global-search:focus-within {
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .global-search i {
            color: var(--text-tertiary);
            margin-right: 12px;
            font-size: 16px;
        }

        .global-search input {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 500;
        }

        .global-search input::placeholder {
            color: var(--text-tertiary);
        }

        .search-shortcut {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
        }

        .search-results {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            max-height: 400px;
            overflow-y: auto;
            z-index: 100;
            padding: 8px;
        }

        .search-result-item {
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 4px;
        }

        .search-result-item:hover {
            background: var(--bg-tertiary);
        }

        .search-result-item i {
            color: var(--accent-blue);
            font-size: 16px;
        }

        .search-result-content {
            flex: 1;
        }

        .search-result-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .search-result-meta {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* Comando Rápido estilo Notion */
        .quick-command {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--shadow-xl);
            width: 90%;
            max-width: 500px;
            max-height: 70vh;
            z-index: 10000;
            overflow: hidden;
            animation: slideDown 0.2s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translate(-50%, -60%);
            }

            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        .quick-command-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 14px;
            color: var(--text-primary);
            background: var(--bg-secondary);
        }

        .quick-command-header i {
            color: var(--accent-blue);
        }

        .quick-command-options {
            padding: 8px;
            max-height: calc(70vh - 60px);
            overflow-y: auto;
        }

        .command-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition-fast);
            margin-bottom: 4px;
        }

        .command-option:hover {
            background: var(--bg-tertiary);
        }

        .command-option i {
            font-size: 20px;
            color: var(--accent-blue);
            width: 24px;
            text-align: center;
        }

        .command-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .command-desc {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* Word-like Modal Styles */
        .modal.word-modal {
            padding: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(2px);
        }

        .word-container {
            width: 100%;
            height: 100%;
            background: #f3f2f1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* Ribbon Toolbar */
        .word-ribbon {
            background: #ffffff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            z-index: 10;
            display: flex;
            flex-direction: column;
        }

        .ribbon-header {
            height: 48px;
            background: var(--accent-blue);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            color: white;
        }

        .ribbon-title-group {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .ribbon-icon {
            width: 32px;
            height: 32px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .ribbon-file-info {
            display: flex;
            flex-direction: column;
        }

        .ribbon-filename {
            background: transparent;
            border: none;
            color: white;
            font-size: 14px;
            font-weight: 600;
            padding: 2px 4px;
            border-radius: 4px;
            outline: none;
            width: 300px;
        }

        .ribbon-filename:focus {
            background: rgba(255, 255, 255, 0.1);
        }

        .ribbon-filename::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .ribbon-filename[readonly] {
            cursor: default;
            background: transparent !important;
            opacity: 1;
        }

        .ribbon-filename[readonly]:focus {
            background: transparent !important;
            outline: none;
        }

        .ribbon-meta {
            font-size: 11px;
            opacity: 0.8;
            padding-left: 4px;
        }

        .ribbon-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ribbon-folder-select {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.1);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 13px;
        }

        .ribbon-folder-select select {
            background: transparent;
            border: none;
            color: white;
            outline: none;
            font-size: 13px;
            cursor: pointer;
        }

        .ribbon-folder-select select option {
            background: white;
            color: #333;
        }

        .ribbon-btn {
            border: none;
            background: transparent;
            color: white;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: background 0.2s;
        }

        .ribbon-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .ribbon-btn.primary {
            background: white;
            color: var(--accent-blue);
            font-weight: 600;
        }

        .ribbon-btn.primary:hover {
            background: #f0f0f0;
        }

        .ribbon-btn.close {
            font-size: 16px;
            padding: 6px;
        }

        .ribbon-tools {
            height: 48px;
            padding: 0 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid #e5e5e5;
        }

        .tool-group {
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .tool-btn {
            width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            border-radius: 4px;
            color: #444;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .tool-btn:hover {
            background: #f0f0f0;
            color: var(--accent-blue);
        }

        .tool-btn.active {
            background: #e8f0fe;
            color: var(--accent-blue);
        }

        .tool-separator {
            width: 1px;
            height: 24px;
            background: #e5e5e5;
            margin: 0 8px;
        }

        .tool-btn.delete-doc-btn:hover {
            background: #fee2e2;
            color: #ef4444;
        }

        /* Workspace & Page */
        .word-workspace {
            flex: 1;
            overflow-y: auto;
            padding: 32px;
            display: flex;
            justify-content: center;
        }

        .word-page-container {
            width: 100%;
            max-width: 816px;
            /* A4 width approx */
            min-height: 1056px;
            /* A4 height approx */
            margin-bottom: 32px;
        }

        .word-page {
            background: white;
            width: 100%;
            min-height: 100%;
            padding: 96px;
            /* 1 inch margins */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            outline: none;
            font-size: 11pt;
            line-height: 1.5;
            color: #333;
        }

        /* Editor Content Styles inside Page */
        .word-page ul,
        .word-page ol {
            padding-left: 24px;
            margin-bottom: 12px;
        }

        .word-page blockquote {
            border-left: 3px solid var(--accent-blue);
            margin: 12px 0;
            padding-left: 16px;
            color: #555;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .word-workspace {
                padding: 0;
            }

            .word-page-container {
                max-width: 100%;
                min-height: 100%;
                margin: 0;
            }

            .word-page {
                padding: 24px;
                box-shadow: none;
                min-height: 100%;
            }

            .ribbon-filename {
                width: 150px;
            }

            .ribbon-folder-select span {
                display: none;
            }

            .ribbon-tools {
                overflow-x: auto;
                padding-bottom: 4px;
            }

            .ribbon-tools::-webkit-scrollbar {
                height: 4px;
            }

            .ribbon-tools::-webkit-scrollbar-thumb {
                background: #ddd;
                border-radius: 2px;
            }
        }

        /* Rename Modal Styles */
        .rename-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(2px);
        }

        .rename-modal {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 450px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.2s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .rename-modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid #e5e5e5;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }

        .rename-modal-header i {
            color: var(--accent-blue);
            font-size: 18px;
        }

        .rename-modal-body {
            padding: 24px;
        }

        .rename-input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e5e5e5;
            border-radius: 8px;
            font-size: 15px;
            outline: none;
            transition: all 0.2s;
        }

        .rename-input:focus {
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .rename-modal-footer {
            padding: 16px 24px;
            border-top: 1px solid #e5e5e5;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        .rename-btn {
            padding: 10px 24px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .rename-btn.cancel {
            background: #f5f5f5;
            color: #666;
        }

        .rename-btn.cancel:hover {
            background: #e5e5e5;
        }

        .rename-btn.confirm {
            background: var(--accent-blue);
            color: white;
        }

        .rename-btn.confirm:hover {
            background: var(--accent-blue-dark);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        /* Quick Actions Slider */
        .quick-actions {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            width: 100%;
            overflow-x: auto;
            white-space: nowrap;
            padding: 8px 0;
            scrollbar-width: none;
            /* Firefox */
        }

        .quick-actions::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari */
        }

        .quick-action-btn {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            padding: 10px 16px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            transition: var(--transition-fast);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-sm);
            flex-shrink: 0;
        }

        .quick-action-btn:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
            border-color: var(--accent-blue);
            color: var(--accent-blue);
        }

        .quick-action-btn i {
            font-size: 16px;
        }

        /* Workspace Grid */
        .workspace-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            width: 100%;
        }

        /* Card */
        .card {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .card:hover {
            box-shadow: var(--shadow-lg);
            border-color: var(--border-hover);
        }

        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .card-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .card-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 16px;
        }

        .card-actions {
            display: flex;
            gap: 6px;
        }

        .card-action-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-tertiary);
            cursor: pointer;
            padding: 6px 8px;
            border-radius: 6px;
            transition: var(--transition-fast);
            font-size: 13px;
        }

        .card-action-btn:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border-color: var(--border-hover);
        }

        /* Calendar */
        .calendar-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding: 12px;
            background: var(--bg-secondary);
            border-radius: 10px;
        }

        .calendar-month {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .calendar-nav {
            display: flex;
            gap: 6px;
        }

        .calendar-nav button {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            color: var(--text-primary);
            transition: var(--transition-fast);
            font-size: 13px;
            font-weight: 600;
        }

        .calendar-nav button:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }

        .calendar-day-header {
            text-align: center;
            font-size: 10px;
            font-weight: 700;
            color: var(--text-tertiary);
            padding: 8px 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .calendar-day {
            aspect-ratio: 1;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 8px;
            cursor: pointer;
            transition: var(--transition-fast);
            position: relative;
            background: var(--bg-secondary);
            display: flex;
            flex-direction: column;
            font-size: 12px;
        }

        .calendar-day:hover {
            background: var(--bg-tertiary);
            border-color: var(--accent-blue);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .calendar-day.today {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
            border: 2px solid var(--accent-blue);
            font-weight: 700;
        }

        .calendar-day.other-month {
            opacity: 0.4;
        }

        .day-number {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--text-primary);
        }

        .day-events {
            display: flex;
            flex-direction: column;
            gap: 2px;
            max-height: 40px;
            overflow: hidden;
            flex: 1;
        }

        .day-event {
            background: var(--accent-blue);
            color: white;
            font-size: 10px;
            font-weight: 600;
            padding: 2px 4px;
            border-radius: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .day-event.event-task {
            background: var(--accent-green);
        }

        .day-event.event-note {
            background: var(--accent-yellow);
            color: var(--text-primary);
        }

        /* Day Selector Popup */
        .day-selector {
            position: fixed;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            min-width: 160px;
            overflow: hidden;
        }

        .selector-option {
            padding: 10px 16px;
            color: var(--text-primary);
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
        }

        .selector-option:hover {
            background: var(--bg-tertiary);
            color: var(--accent-blue);
        }

        .selector-option:not(:last-child) {
            border-bottom: 1px solid var(--border-color);
        }

        .selector-option i {
            font-size: 14px;
            width: 18px;
        }

        /* Tasks */
        .folder-selector {
            margin-bottom: 16px;
            display: flex;
            gap: 8px;
            overflow-x: auto;
            overflow-y: hidden;
            white-space: nowrap;
            padding: 8px 12px;
            position: relative;
            max-height: 50px;
            align-items: center;
            scrollbar-width: thin;
            /* Firefox */
            scrollbar-color: var(--accent-blue) transparent;
            scroll-behavior: smooth;
        }

        /* Scrollbar personalizado para Chrome, Safari, Edge */
        .folder-selector::-webkit-scrollbar {
            height: 8px;
        }

        .folder-selector::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 10px;
            margin: 0 4px;
        }

        .folder-selector::-webkit-scrollbar-thumb {
            background: var(--accent-blue);
            border-radius: 10px;
            transition: all 0.2s ease;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        .folder-selector::-webkit-scrollbar-thumb:hover {
            background: var(--accent-blue-dark);
            background-clip: padding-box;
        }

        .folder-btn {
            background: var(--bg-primary);
            border: 2px solid var(--border-color);
            padding: 8px 16px;
            border-radius: 10px;
            cursor: pointer;
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            max-height: 40px;
            overflow: hidden;
            white-space: nowrap;
            box-shadow: var(--shadow-sm);
            position: relative;
        }

        .folder-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
            transform: scaleX(0);
            transition: transform 0.3s ease;
            border-radius: 10px 10px 0 0;
        }

        .folder-btn:hover::before {
            transform: scaleX(1);
        }

        .folder-btn.compact {
            padding: 8px 12px;
        }

        .folder-btn.compact .folder-name-text {
            display: none;
        }

        .folder-btn:hover {
            background: var(--bg-tertiary);
            border-color: var(--accent-blue);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .folder-btn.active {
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            color: white;
            border-color: transparent;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
            transform: translateY(-2px);
        }

        .folder-btn.active::before {
            display: none;
        }

        .folder-btn i {
            font-size: 14px;
            transition: transform 0.2s ease;
        }

        .folder-btn:hover i {
            transform: scale(1.1);
        }

        .folder-btn.active i {
            transform: scale(1.15);
        }

        .folder-badge {
            background: rgba(255, 255, 255, 0.2);
            color: inherit;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 18px;
            text-align: center;
            line-height: 1.4;
        }

        .folder-btn.active .folder-badge {
            background: rgba(255, 255, 255, 0.25);
        }

        .folder-btn:not(.active) .folder-badge {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
        }

        .folder-delete-btn {
            background: transparent;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 4px;
            transition: var(--transition-fast);
            font-size: 11px;
            opacity: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .folder-selector>div:hover .folder-delete-btn,
        .folder-item:hover .folder-delete-btn {
            opacity: 1;
        }

        .folder-delete-btn:hover {
            background: var(--accent-red);
            color: white;
            transform: scale(1.15);
        }

        .task-input-container {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .task-input {
            flex: 1;
            padding: 10px 12px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            font-size: 14px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            transition: var(--transition-fast);
            font-weight: 500;
        }

        .task-input:focus {
            outline: none;
            border-color: var(--accent-blue);
            background: var(--bg-primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .task-add-btn {
            background: var(--accent-blue);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition-fast);
            box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
        }

        .task-add-btn:hover {
            background: var(--accent-blue-dark);
            transform: translateY(-2px);
        }

        .tasks-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 300px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .tasks-list::-webkit-scrollbar {
            width: 4px;
        }

        .tasks-list::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 2px;
        }

        .task-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: var(--bg-secondary);
            border-radius: 10px;
            transition: var(--transition-fast);
            border: 1px solid var(--border-color);
        }

        .task-item:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
        }

        .task-checkbox {
            width: 18px;
            height: 18px;
            accent-color: var(--accent-blue);
            cursor: pointer;
        }

        .task-content {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .task-item.completed .task-content {
            text-decoration: line-through;
            color: var(--text-secondary);
            opacity: 0.6;
        }

        .task-priority {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .priority-urgent {
            background: var(--accent-red);
        }

        .priority-important {
            background: var(--accent-orange);
        }

        .priority-normal {
            background: var(--accent-green);
        }

        .priority-low {
            background: var(--accent-blue);
        }

        /* Notes */
        .notes-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .note-item {
            background: var(--bg-secondary);
            border-radius: 10px;
            padding: 16px;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid var(--border-color);
            min-height: 100px;
            position: relative;
        }

        .note-item:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-4px);
        }

        .note-header {
            font-weight: 700;
            font-size: 14px;
            margin-bottom: 8px;
            color: #000000;
        }

        .note-content {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Callouts estilo Notion */
        .callout {
            background: var(--bg-secondary);
            border-left: 4px solid var(--accent-blue);
            border-radius: 8px;
            padding: 16px;
            margin: 12px 0;
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }

        .callout-icon {
            font-size: 20px;
            color: var(--accent-blue);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .callout-content {
            flex: 1;
        }

        .callout-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .callout-text {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .callout.info {
            border-left-color: var(--accent-blue);
            background: rgba(59, 130, 246, 0.05);
        }

        .callout.warning {
            border-left-color: var(--accent-orange);
            background: rgba(245, 158, 11, 0.05);
        }

        .callout.success {
            border-left-color: var(--accent-green);
            background: rgba(16, 185, 129, 0.05);
        }

        .callout.error {
            border-left-color: var(--accent-red);
            background: rgba(239, 68, 68, 0.05);
        }

        /* Toggle Lists estilo Notion */
        .toggle-list {
            margin: 12px 0;
        }

        .toggle-header {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 6px;
            transition: var(--transition-fast);
            user-select: none;
        }

        .toggle-header:hover {
            background: var(--bg-tertiary);
        }

        .toggle-icon {
            font-size: 14px;
            color: var(--text-secondary);
            transition: transform 0.2s;
            width: 16px;
            text-align: center;
        }

        .toggle-header.open .toggle-icon {
            transform: rotate(90deg);
        }

        .toggle-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
            flex: 1;
        }

        .toggle-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            padding-left: 24px;
            margin-top: 8px;
        }

        .toggle-header.open+.toggle-content {
            max-height: 1000px;
        }

        .toggle-content-inner {
            padding: 8px 12px;
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .note-delete-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            opacity: 0;
        }

        .note-item:hover .note-delete-btn {
            opacity: 1;
        }

        .note-add {
            border: 2px dashed var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 8px;
            color: var(--text-tertiary);
            min-height: 100px;
            transition: var(--transition);
        }

        .note-add:hover {
            border-color: var(--accent-blue);
            color: var(--accent-blue);
            background: rgba(59, 130, 246, 0.05);
        }

        /* Pomodoro */
        .pomodoro-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .pomodoro-display {
            position: relative;
            width: 180px;
            height: 180px;
            margin: 24px auto;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pomodoro-circle {
            width: 100%;
            height: 100%;
        }

        .pomodoro-time {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 36px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            letter-spacing: -1px;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .pomodoro-controls {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .pomodoro-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            color: var(--text-primary);
            font-weight: 600;
            transition: var(--transition-fast);
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .pomodoro-btn:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
        }

        .pomodoro-btn.primary {
            background: var(--accent-blue);
            color: white;
            border-color: var(--accent-blue);
        }

        .pomodoro-btn.primary:hover {
            background: var(--accent-blue-dark);
        }

        .pomodoro-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .pomodoro-modes {
            display: flex;
            gap: 6px;
            background: var(--bg-secondary);
            padding: 4px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            justify-content: center;
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
            flex-wrap: wrap;
        }

        .mode-btn {
            padding: 8px 12px;
            border-radius: 6px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
            transition: var(--transition-fast);
            flex: 1;
            text-align: center;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mode-btn:hover {
            color: var(--text-primary);
        }

        .mode-btn.active {
            background: var(--accent-blue);
            color: white;
        }

        /* Fullscreen Mode */
        .fullscreen-btn {
            display: none;
        }

        .pomodoro-fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 9999;
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: auto 1fr auto;
            padding: 0;
            overflow: hidden;
        }

        .pomodoro-fullscreen-header {
            padding: 24px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
        }

        .pomodoro-fullscreen-title {
            font-size: 24px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .pomodoro-fullscreen-close {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            width: 44px;
            height: 44px;
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: var(--transition-fast);
        }

        .pomodoro-fullscreen-close:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
            transform: scale(1.05);
        }

        .pomodoro-fullscreen-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .pomodoro-fullscreen-main {
            display: flex;
            align-items: center;
            gap: 60px;
            width: 100%;
            justify-content: center;
        }

        .pomodoro-fullscreen-timer {
            flex: 0 0 auto;
        }

        .pomodoro-fullscreen .pomodoro-display {
            width: 400px;
            height: 400px;
            margin: 0;
        }

        .pomodoro-fullscreen .pomodoro-circle {
            filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.3));
        }

        .pomodoro-fullscreen .pomodoro-time {
            font-size: 80px;
            font-weight: 900;
            letter-spacing: -3px;
        }

        .pomodoro-fullscreen-sidebar {
            flex: 1;
            max-width: 500px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .pomodoro-fullscreen-controls {
            display: flex;
            gap: 12px;
            margin: 0;
            justify-content: center;
        }

        .pomodoro-fullscreen .pomodoro-btn {
            padding: 18px 32px;
            font-size: 16px;
            border-radius: 12px;
            font-weight: 700;
            box-shadow: var(--shadow-md);
        }

        .pomodoro-fullscreen .pomodoro-btn.primary {
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        }

        .pomodoro-fullscreen .pomodoro-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .pomodoro-fullscreen-modes {
            display: flex;
            gap: 8px;
            background: var(--bg-primary);
            padding: 6px;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
        }

        .pomodoro-fullscreen .mode-btn {
            padding: 14px 24px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 10px;
        }

        .pomodoro-fullscreen .mode-btn.active {
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .pomodoro-fullscreen .focus-music-player {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            box-shadow: var(--shadow-lg);
            margin: 0;
            width: 100%;
        }

        .pomodoro-fullscreen .music-player-header {
            font-size: 16px;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .pomodoro-fullscreen .current-song {
            font-size: 16px;
            margin-bottom: 16px;
        }

        .pomodoro-fullscreen .song-progress-bar {
            height: 8px;
            margin-bottom: 12px;
            border-radius: 4px;
        }

        .pomodoro-fullscreen .song-time {
            font-size: 12px;
        }

        .pomodoro-fullscreen .music-player-controls {
            gap: 16px;
            margin-bottom: 20px;
        }

        .pomodoro-fullscreen .music-btn {
            width: 48px;
            height: 48px;
            font-size: 16px;
        }

        .pomodoro-fullscreen .music-btn.primary {
            width: 56px;
            height: 56px;
            font-size: 20px;
        }

        .pomodoro-fullscreen .volume-slider {
            width: 120px;
        }

        .pomodoro-fullscreen .playlist-header {
            font-size: 13px;
            margin-bottom: 16px;
        }

        .pomodoro-fullscreen .playlist-songs {
            max-height: 250px;
        }

        .pomodoro-fullscreen .playlist-song-item {
            padding: 14px 16px;
            font-size: 14px;
            border-radius: 10px;
        }

        .pomodoro-fullscreen-footer {
            padding: 24px 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--border-color);
        }

        /* Ocultar botones de ajustes y reset en fullscreen */
        .pomodoro-fullscreen .card-action-btn {
            display: none !important;
        }

        .pomodoro-fullscreen .card-header {
            display: none;
        }

        /* Responsive para fullscreen */
        @media (max-width: 1024px) {
            .pomodoro-fullscreen-main {
                flex-direction: column;
                gap: 40px;
            }

            .pomodoro-fullscreen .pomodoro-display {
                width: 320px;
                height: 320px;
            }

            .pomodoro-fullscreen .pomodoro-time {
                font-size: 64px;
            }

            .pomodoro-fullscreen-sidebar {
                max-width: 100%;
                width: 100%;
            }
        }

        /* Focus Music Player */
        .focus-music-player {
            margin-top: 20px;
            padding: 16px;
            background: var(--bg-secondary);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            width: 100%;
        }

        .music-player-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
        }

        .music-player-header i {
            color: var(--accent-purple);
        }

        .music-player-info {
            margin-bottom: 16px;
        }

        .current-song {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 12px;
            text-align: center;
        }

        .song-progress-container {
            margin-bottom: 8px;
        }

        .song-progress-bar {
            width: 100%;
            height: 6px;
            background: var(--bg-tertiary);
            border-radius: 3px;
            overflow: hidden;
            cursor: pointer;
            margin-bottom: 8px;
        }

        .song-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
            width: 0%;
            transition: width 0.1s linear;
            border-radius: 3px;
        }

        .song-time {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--text-secondary);
        }

        .music-player-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .music-btn {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition-fast);
            font-size: 14px;
        }

        .music-btn:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
            transform: scale(1.1);
        }

        .music-btn.primary {
            background: var(--accent-blue);
            color: white;
            border-color: var(--accent-blue);
            width: 48px;
            height: 48px;
            font-size: 16px;
        }

        .music-btn.primary:hover {
            background: var(--accent-blue-dark);
        }

        .volume-control {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
        }

        .volume-control i {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .volume-slider {
            width: 80px;
            height: 4px;
            background: var(--bg-tertiary);
            border-radius: 2px;
            outline: none;
            -webkit-appearance: none;
            cursor: pointer;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 12px;
            height: 12px;
            background: var(--accent-blue);
            border-radius: 50%;
            cursor: pointer;
        }

        .volume-slider::-moz-range-thumb {
            width: 12px;
            height: 12px;
            background: var(--accent-blue);
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }

        .music-playlist {
            margin-top: 16px;
            border-top: 1px solid var(--border-color);
            padding-top: 16px;
        }

        .playlist-header {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }

        .playlist-songs {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 200px;
            overflow-y: auto;
        }

        .playlist-song-item {
            padding: 10px 12px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
        }

        .playlist-song-item:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
        }

        .playlist-song-item.active {
            background: rgba(59, 130, 246, 0.1);
            border-color: var(--accent-blue);
            color: var(--accent-blue);
        }

        .playlist-song-item i {
            font-size: 12px;
            color: var(--text-tertiary);
        }

        .playlist-song-item.active i {
            color: var(--accent-blue);
        }

        .playlist-song-name {
            flex: 1;
            font-weight: 500;
        }

        .playlist-song-duration {
            font-size: 11px;
            color: var(--text-tertiary);
        }

        /* Documents */
        .documents-view {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .folders-sidebar {
            width: 100%;
            background: var(--bg-secondary);
            border-radius: 10px;
            padding: 16px;
            max-height: 200px;
            overflow-y: auto;
        }

        .folder-item {
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .folder-item:hover {
            background: var(--bg-tertiary);
        }

        .folder-item.active {
            background: var(--accent-blue);
            color: white;
        }

        .folder-name {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
        }

        .documents-grid {
            display: flex;
            overflow-x: auto;
            gap: 12px;
            padding-bottom: 12px;
            /* Espacio para scrollbar */
            white-space: nowrap;
            /* Evitar wrap excesivo si fuera texto, aunque flex handles items */
        }

        .document-item {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 16px;
            transition: var(--transition);
            min-height: 140px;
            min-width: 200px;
            /* Ancho fijo mínimo */
            max-width: 200px;
            display: flex;
            flex-direction: column;
            position: relative;
            cursor: pointer;
            flex-shrink: 0;
            /* No encoger */
        }

        .document-item:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-4px);
            border-color: var(--border-hover);
        }

        .document-item-actions {
            position: absolute;
            top: 8px;
            right: 8px;
            display: flex;
            gap: 6px;
            opacity: 0;
            transition: var(--transition-fast);
        }

        .document-item:hover .document-item-actions {
            opacity: 1;
        }

        .document-action-btn {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition-fast);
            font-size: 13px;
        }

        .document-action-btn:hover {
            background: var(--bg-tertiary);
            color: var(--accent-blue);
            border-color: var(--accent-blue);
            transform: scale(1.1);
        }

        .document-delete-btn:hover {
            background: var(--accent-red);
            color: white;
            border-color: var(--accent-red);
        }

        .document-icon {
            font-size: 24px;
            color: var(--accent-blue);
            margin-bottom: 8px;
        }

        .document-name {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 6px;
            color: var(--text-primary);
        }

        .document-meta {
            font-size: 11px;
            color: var(--text-tertiary);
            margin-top: auto;
        }

        .document-add {
            border: 2px dashed var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 8px;
            color: var(--text-tertiary);
            min-width: 200px;
            min-height: 140px;
            border-radius: 10px;
            flex-shrink: 0;
            cursor: pointer;
        }

        .document-add:hover {
            border-color: var(--accent-blue);
            color: var(--accent-blue);
            background: rgba(59, 130, 246, 0.05);
        }

        /* Stats */
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .stat-item {
            background: var(--bg-secondary);
            padding: 16px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .stat-item:hover {
            border-color: var(--border-hover);
            box-shadow: var(--shadow-md);
        }

        .stat-label {
            font-size: 10px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
            font-weight: 700;
        }

        .stat-value {
            font-size: 28px;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.5px;
            line-height: 1;
            margin-bottom: 6px;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            font-size: 20px;
        }

        /* Custom Alert/Confirm Modal */
        .custom-alert-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 16px;
            animation: fadeIn 0.2s ease-out;
        }

        .custom-alert-modal.active {
            display: flex;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .custom-alert-content {
            background: var(--bg-primary);
            border-radius: 16px;
            width: 100%;
            max-width: 400px;
            box-shadow: var(--shadow-xl);
            overflow: hidden;
            animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .custom-alert-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .custom-alert-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .custom-alert-icon.info {
            background: rgba(59, 130, 246, 0.1);
            color: var(--accent-blue);
        }

        .custom-alert-icon.warning {
            background: rgba(245, 158, 11, 0.1);
            color: var(--accent-orange);
        }

        .custom-alert-icon.error {
            background: rgba(239, 68, 68, 0.1);
            color: var(--accent-red);
        }

        .custom-alert-icon.success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent-green);
        }

        .custom-alert-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            flex: 1;
        }

        .custom-alert-body {
            padding: 24px;
            color: var(--text-secondary);
            line-height: 1.6;
            font-size: 14px;
        }

        .custom-alert-footer {
            padding: 16px 24px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        .custom-alert-btn {
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-fast);
            font-size: 14px;
            min-width: 80px;
        }

        .custom-alert-btn.primary {
            background: var(--accent-blue);
            color: white;
        }

        .custom-alert-btn.primary:hover {
            background: var(--accent-blue-dark);
            transform: translateY(-1px);
        }

        .custom-alert-btn.secondary {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .custom-alert-btn.secondary:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
        }

        .custom-alert-btn.danger {
            background: var(--accent-red);
            color: white;
        }

        .custom-alert-btn.danger:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--bg-primary);
            border-radius: 16px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-xl);
        }

        .modal-header {
            padding: 20px 20px 16px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .modal-close {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            font-size: 16px;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: var(--transition-fast);
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border-color: var(--border-hover);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 20px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-input,
        .form-textarea {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            font-size: 14px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            transition: var(--transition-fast);
            font-weight: 500;
            font-family: inherit;
        }

        .form-input:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--accent-blue);
            background: var(--bg-primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .form-textarea {
            min-height: 100px;
            resize: vertical;
        }

        .color-picker {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .color-option {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: var(--transition-fast);
            position: relative;
        }

        .color-option:hover {
            transform: scale(1.15);
        }

        .color-option.active {
            border-color: var(--text-primary);
            transform: scale(1.1);
        }

        .modal-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 10px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-fast);
            font-size: 14px;
        }

        .btn-secondary {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
        }

        .btn-primary {
            background: var(--accent-blue);
            color: white;
            box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
        }

        .btn-primary:hover {
            background: var(--accent-blue-dark);
            transform: translateY(-2px);
        }

        .time-inputs {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .time-input-group {
            display: flex;
            flex-direction: column;
        }

        .time-input-group label {
            font-size: 11px;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-secondary);
        }

        .time-input-group input {
            width: 100%;
            padding: 8px;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            font-size: 14px;
            text-align: center;
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        .time-input-group input:focus {
            outline: none;
            border-color: var(--accent-blue);
        }

        .editor-container {
            min-height: 300px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 16px;
            background: var(--bg-secondary);
        }

        .editor-toolbar {
            display: flex;
            gap: 6px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .editor-divider {
            width: 1px;
            height: 24px;
            background: var(--border-color);
            margin: 0 4px;
        }

        .editor-btn {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            padding: 6px 10px;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition-fast);
            font-size: 13px;
        }

        .editor-btn:hover {
            background: var(--bg-tertiary);
        }

        .editor-content {
            min-height: 200px;
            outline: none;
            line-height: 1.8;
        }

        /* Document Viewer */
        .document-viewer {
            min-height: 300px;
            max-height: 60vh;
            overflow-y: auto;
            padding: 20px;
            background: var(--bg-secondary);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            line-height: 1.8;
        }

        .document-viewer-content {
            color: var(--text-primary);
        }

        .document-viewer-content h1,
        .document-viewer-content h2,
        .document-viewer-content h3 {
            margin-top: 24px;
            margin-bottom: 12px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .document-viewer-content h1 {
            font-size: 24px;
        }

        .document-viewer-content h2 {
            font-size: 20px;
        }

        .document-viewer-content h3 {
            font-size: 18px;
        }

        .document-viewer-content p {
            margin-bottom: 12px;
        }

        .document-viewer-content ul,
        .document-viewer-content ol {
            margin-left: 24px;
            margin-bottom: 12px;
        }

        .document-viewer-content li {
            margin-bottom: 6px;
        }

        .document-viewer .callout {
            margin: 16px 0;
        }

        .document-viewer .toggle-list {
            margin: 16px 0;
        }

        .document-viewer .toggle-header {
            cursor: pointer;
        }

        .empty-state {
            text-align: center;
            padding: 40px 16px;
            color: var(--text-tertiary);
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 16px;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 4px;
        }

        /* Media Queries for Larger Screens */
        @media (min-width: 768px) {
            .main-content {
                padding: 24px;
            }

            .page-title {
                font-size: 36px;
            }

            .page-subtitle {
                font-size: 16px;
            }

            .quick-actions {
                overflow-x: hidden;
                flex-wrap: wrap;
                justify-content: center;
            }

            .quick-action-btn {
                padding: 12px 20px;
                font-size: 15px;
            }

            .quick-action-btn i {
                font-size: 18px;
            }

            .workspace-grid {
                gap: 20px;
            }

            .card {
                padding: 24px;
                border-radius: 14px;
            }

            .card-title {
                font-size: 20px;
            }

            .card-icon {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .card-action-btn {
                padding: 8px 10px;
                font-size: 14px;
            }

            .calendar-controls {
                padding: 16px;
            }

            .calendar-month {
                font-size: 22px;
            }

            .calendar-nav button {
                padding: 10px 16px;
                font-size: 14px;
            }

            .calendar-grid {
                gap: 6px;
            }

            .calendar-day-header {
                font-size: 11px;
                padding: 12px 0;
            }

            .calendar-day {
                padding: 10px;
                font-size: 13px;
            }

            .day-number {
                font-size: 14px;
                margin-bottom: 6px;
            }

            .day-events {
                max-height: 50px;
            }

            .day-event {
                font-size: 11px;
                padding: 3px 6px;
            }

            .folder-selector {
                overflow-x: hidden;
            }

            .folder-btn {
                padding: 8px 16px;
                font-size: 14px;
            }

            .task-input-container {
                gap: 12px;
                margin-bottom: 20px;
            }

            .task-input {
                padding: 12px 16px;
                font-size: 15px;
            }

            .task-add-btn {
                padding: 12px 20px;
            }

            .tasks-list {
                max-height: 400px;
                padding-right: 6px;
            }

            .tasks-list::-webkit-scrollbar {
                width: 6px;
            }

            .task-item {
                padding: 14px;
                gap: 12px;
            }

            .task-checkbox {
                width: 20px;
                height: 20px;
            }

            .task-content {
                font-size: 15px;
            }

            .task-priority {
                width: 10px;
                height: 10px;
            }

            .notes-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }

            .note-item {
                padding: 20px;
                min-height: 120px;
            }

            .note-header {
                font-size: 15px;
                margin-bottom: 10px;
            }

            .note-content {
                font-size: 14px;
                -webkit-line-clamp: 4;
            }

            .note-add {
                min-height: 120px;
            }

            .pomodoro-display {
                width: 200px;
                height: 200px;
                margin: 28px auto;
            }

            .pomodoro-time {
                font-size: 48px;
                letter-spacing: -1.5px;
            }

            .pomodoro-btn {
                padding: 14px 22px;
                font-size: 15px;
            }

            .pomodoro-modes {
                padding: 6px;
                max-width: 400px;
                gap: 8px;
            }

            .mode-btn {
                padding: 10px 16px;
                font-size: 12px;
            }

            .fullscreen-btn {
                display: flex;
            }

            .focus-music-player {
                padding: 20px;
            }

            .music-player-controls {
                gap: 16px;
            }

            .volume-slider {
                width: 100px;
            }

            .documents-view {
                flex-direction: row;
            }

            .folders-sidebar {
                width: 220px;
                max-height: 400px;
                padding: 20px;
            }

            .folder-item {
                padding: 10px 14px;
                margin-bottom: 8px;
            }

            .documents-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }

            .document-item {
                padding: 20px;
                min-height: 120px;
            }

            .document-icon {
                font-size: 28px;
                margin-bottom: 10px;
            }

            .document-name {
                font-size: 15px;
                margin-bottom: 8px;
            }

            .document-meta {
                font-size: 12px;
            }

            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            }

            .stat-item {
                padding: 20px;
            }

            .stat-label {
                font-size: 11px;
                margin-bottom: 10px;
            }

            .stat-value {
                font-size: 36px;
                margin-bottom: 8px;
            }

            .stat-icon {
                width: 44px;
                height: 44px;
                font-size: 22px;
                margin-bottom: 14px;
            }

            .modal {
                padding: 20px;
            }

            .modal-content {
                max-width: 600px;
            }

            .modal-header {
                padding: 24px 24px 20px;
            }

            .modal-title {
                font-size: 22px;
            }

            .modal-close {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .modal-body {
                padding: 24px;
            }

            .form-group {
                margin-bottom: 20px;
            }

            .form-label {
                font-size: 13px;
                margin-bottom: 10px;
            }

            .form-input,
            .form-textarea {
                padding: 12px 16px;
                font-size: 15px;
            }

            .form-textarea {
                min-height: 120px;
            }

            .color-picker {
                gap: 10px;
            }

            .color-option {
                width: 40px;
                height: 40px;
            }

            .modal-footer {
                padding: 20px 24px;
                gap: 10px;
            }

            .btn {
                padding: 12px 24px;
                font-size: 15px;
            }

            .time-inputs {
                grid-template-columns: repeat(3, 1fr);
            }

            .time-input-group label {
                font-size: 12px;
                margin-bottom: 8px;
            }

            .time-input-group input {
                padding: 10px;
                font-size: 15px;
            }

            .editor-container {
                min-height: 350px;
                padding: 20px;
            }

            .editor-toolbar {
                gap: 8px;
                padding-bottom: 16px;
                margin-bottom: 16px;
            }

            .editor-btn {
                padding: 8px 12px;
                font-size: 14px;
            }

            .editor-content {
                min-height: 250px;
            }

            .empty-state {
                padding: 50px 20px;
            }

            .empty-state i {
                font-size: 56px;
                margin-bottom: 20px;
            }

            .empty-state h3 {
                font-size: 18px;
                margin-bottom: 8px;
            }
        }

        @media (min-width: 1024px) {
            .main-content {
                padding: 32px;
            }

            .page-title {
                font-size: 48px;
            }

            .page-subtitle {
                font-size: 18px;
            }

            .workspace-grid {
                grid-template-columns: repeat(12, 1fr);
                gap: 24px;
            }

            .calendar-card {
                grid-column: span 8;
            }

            .tasks-card {
                grid-column: span 4;
            }

            .notes-card {
                grid-column: span 6;
            }

            .pomodoro-card {
                grid-column: span 6;
            }

            .documents-card {
                grid-column: span 12;
            }

            .stats-card {
                grid-column: span 12;
            }

            .card {
                padding: 28px;
                border-radius: 16px;
            }

            .calendar-controls {
                margin-bottom: 20px;
            }

            .calendar-month {
                font-size: 24px;
            }

            .calendar-grid {
                gap: 8px;
            }

            .calendar-day-header {
                font-size: 12px;
                padding: 16px 0;
            }

            .calendar-day {
                padding: 12px;
                font-size: 14px;
            }

            .day-number {
                font-size: 15px;
                margin-bottom: 8px;
            }

            .day-events {
                max-height: 60px;
            }

            .day-event {
                font-size: 11px;
                padding: 4px 8px;
            }

            .tasks-list {
                max-height: 450px;
                padding-right: 8px;
            }

            .notes-grid {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
                gap: 16px;
            }

            .note-item {
                min-height: 140px;
            }

            .note-add {
                min-height: 140px;
            }

            .pomodoro-display {
                width: 220px;
                height: 220px;
                margin: 32px auto;
            }

            .pomodoro-time {
                font-size: 56px;
                letter-spacing: -2px;
            }

            .pomodoro-btn {
                padding: 16px 24px;
                font-size: 16px;
            }

            .pomodoro-modes {
                padding: 8px;
                max-width: 450px;
                gap: 10px;
            }

            .mode-btn {
                padding: 12px 20px;
                font-size: 13px;
            }

            .focus-music-player {
                padding: 24px;
            }

            .music-player-controls {
                gap: 20px;
            }

            .volume-slider {
                width: 120px;
            }

            .folders-sidebar {
                width: 250px;
                max-height: 500px;
            }

            .folder-item {
                padding: 12px 16px;
            }

            .documents-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 16px;
            }

            .modal-content {
                max-width: 650px;
            }

            .modal-header {
                padding: 28px 28px 20px;
            }

            .modal-title {
                font-size: 24px;
            }

            .modal-close {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }

            .modal-body {
                padding: 28px;
            }

            .form-group {
                margin-bottom: 24px;
            }

            .form-label {
                font-size: 14px;
            }

            .form-input,
            .form-textarea {
                padding: 14px 16px;
                font-size: 15px;
            }

            .form-textarea {
                min-height: 140px;
            }

            .color-option {
                width: 44px;
                height: 44px;
            }

            .modal-footer {
                padding: 20px 28px;
            }

            .btn {
                padding: 14px 28px;
                font-size: 15px;
            }

            .editor-container {
                min-height: 400px;
                padding: 20px;
            }

            .editor-content {
                min-height: 300px;
            }
        }

        @media (min-width: 1200px) {
            .main-content {
                padding: 40px;
            }

            .page-header {
                max-width: 1600px;
            }

            .quick-actions {
                max-width: 1600px;
            }

            .workspace-grid {
                max-width: 1600px;
            }
        }

        @media (max-width: 768px) {
            .calendar-card {
                padding: 16px;
                /* Reducir padding para dar más espacio al grid */
            }

            .pomodoro-modes {
                max-width: 100%;
                gap: 4px;
                padding: 3px;
            }

            .mode-btn {
                padding: 6px 8px;
                font-size: 10px;
                min-width: 60px;
            }

            .fullscreen-btn {
                display: none !important;
            }

            .global-search-container {
                max-width: 100%;
                margin-bottom: 16px;
            }

            .global-search {
                padding: 10px 12px;
            }

            .search-shortcut {
                display: none;
            }

            .quick-command {
                width: 95%;
                max-height: 80vh;
            }
        }