/* ==========================================
           RESET Y CONFIGURACIÓN BASE
        ========================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Colores vibrantes principales */
            --color-primary: #00D9FF; /* Azul eléctrico */
            --color-secondary: #FF00FF; /* Magenta vibrante */
            --color-accent: #00FF88; /* Verde neón */
            --color-warning: #FF6B00; /* Naranja brillante */
            --color-danger: #FF0055; /* Rosa/rojo vibrante */
            --color-purple: #A855F7; /* Púrpura vibrante */
            
            /* Fondos oscuros */
            --bg-primary: #0A0A0F;
            --bg-secondary: #14141F;
            --bg-card: #1A1A2E;
            --bg-hover: #242438;
            
            /* Textos */
            --text-primary: #FFFFFF;
            --text-secondary: #B4B4C8;
            --text-muted: #6E6E8A;
            
            /* Sombras y efectos */
            --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
            --shadow-glow-hover: 0 0 30px rgba(0, 217, 255, 0.5);
            --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
            
            /* Transiciones */
            --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-fast: all 0.15s ease;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #0A0A0F 0%, #14141F 50%, #1A0A2E 100%);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* ==========================================
           HEADER Y NAVEGACIÓN
        ========================================== */
        .header {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
            padding: 1.5rem 2rem;
            border-bottom: 2px solid transparent;
            border-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent)) 1;
            box-shadow: var(--shadow-card);
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
            letter-spacing: -1px;
        }

        .header-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        /* ==========================================
           BOTONES
        ========================================== */
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-base);
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow-hover);
        }

        .btn-secondary {
            background: linear-gradient(135deg, var(--color-secondary), var(--color-danger));
            color: white;
        }

        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
        }

        .btn-success {
            background: linear-gradient(135deg, var(--color-accent), #00CC66);
            color: var(--bg-primary);
            font-weight: 700;
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
        }

        /* ==========================================
           CONTAINER PRINCIPAL
        ========================================== */
        .container {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 2rem;
        }

        /* ==========================================
           SECCIÓN DE ESTADÍSTICAS
        ========================================== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: var(--bg-card);
            padding: 1.5rem;
            border-radius: 16px;
            border: 2px solid transparent;
            transition: var(--transition-base);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--stat-color-1), var(--stat-color-2));
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-glow);
            border-color: var(--stat-color-1);
        }

        .stat-card.primary {
            --stat-color-1: var(--color-primary);
            --stat-color-2: var(--color-purple);
        }

        .stat-card.secondary {
            --stat-color-1: var(--color-secondary);
            --stat-color-2: var(--color-danger);
        }

        .stat-card.success {
            --stat-color-1: var(--color-accent);
            --stat-color-2: #00CC66;
        }

        .stat-card.warning {
            --stat-color-1: var(--color-warning);
            --stat-color-2: #FFD700;
        }

        .stat-value {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--stat-color-1), var(--stat-color-2));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.95rem;
            font-weight: 500;
        }

        /* ==========================================
           TABLERO KANBAN
        ========================================== */
        .kanban-section {
            margin: 2rem 0;
        }

        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .kanban-board {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

        .kanban-column {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 1.5rem;
            min-height: 400px;
            border: 2px solid transparent;
            transition: var(--transition-base);
            position: relative;
        }

        .kanban-column::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            border-radius: 16px 16px 0 0;
            background: var(--column-color);
        }

        .kanban-column.todo {
            --column-color: var(--color-warning);
        }

        .kanban-column.in-progress {
            --column-color: var(--color-primary);
        }

        .kanban-column.completed {
            --column-color: var(--color-accent);
        }

        .kanban-column.drag-over {
            border-color: var(--column-color);
            background: var(--bg-hover);
            box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
            transform: scale(1.02);
        }

        .column-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--column-color);
        }

        .column-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .column-count {
            background: var(--column-color);
            color: var(--bg-primary);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 700;
        }

        /* ==========================================
           TARJETAS DE TAREAS
        ========================================== */
        .task-cards {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            min-height: 300px;
        }

        .task-card {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 1.25rem;
            cursor: grab;
            transition: var(--transition-base);
            border: 2px solid transparent;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .task-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            border-color: var(--color-primary);
        }

        .task-card.dragging {
            opacity: 0.5;
            cursor: grabbing;
            transform: rotate(5deg);
        }

        .task-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 0.75rem;
        }

        .task-title {
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.4;
        }

        .task-priority {
            padding: 0.35rem 0.75rem;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 0 15px currentColor;
        }

        .priority-high {
            background: var(--color-danger);
            color: white;
        }

        .priority-medium {
            background: var(--color-warning);
            color: white;
        }

        .priority-low {
            background: var(--color-accent);
            color: var(--bg-primary);
        }

        .task-project {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
            padding: 0.4rem 0.9rem;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .task-assignee {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid var(--bg-hover);
        }

        .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.8rem;
            color: white;
            box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
        }

        /* ==========================================
           SISTEMA DE NOTIFICACIONES
        ========================================== */
        .notification-container {
            position: fixed;
            top: 100px;
            right: 2rem;
            z-index: 2000;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-width: 400px;
        }

        .notification {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 1.25rem;
            border-left: 4px solid var(--notif-color);
            box-shadow: var(--shadow-card), 0 0 20px var(--notif-color);
            animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            display: flex;
            gap: 1rem;
            align-items: flex-start;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        .notification.removing {
            animation: slideOut 0.3s ease forwards;
        }

        .notification.success {
            --notif-color: var(--color-accent);
        }

        .notification.info {
            --notif-color: var(--color-primary);
        }

        .notification.warning {
            --notif-color: var(--color-warning);
        }

        .notification-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--notif-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
            box-shadow: 0 0 20px var(--notif-color);
        }

        .notification-content {
            flex: 1;
        }

        .notification-title {
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 0.25rem;
            color: var(--text-primary);
        }

        .notification-message {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        /* ==========================================
           MODALES
        ========================================== */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 217, 255, 0.2);
            border: 2px solid var(--color-primary);
            animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--color-primary);
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: var(--transition-fast);
            padding: 0.5rem;
            line-height: 1;
        }

        .close-modal:hover {
            color: var(--color-danger);
            transform: rotate(90deg);
        }

        /* ==========================================
           FORMULARIOS
        ========================================== */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.95rem;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 0.875rem 1rem;
            background: var(--bg-secondary);
            border: 2px solid transparent;
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 0.95rem;
            transition: var(--transition-base);
            font-family: inherit;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
            background: var(--bg-primary);
        }

        .form-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .form-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        /* ==========================================
           FOOTER
        ========================================== */
        .footer {
            text-align: center;
            padding: 2rem;
            margin-top: 4rem;
            border-top: 2px solid var(--bg-card);
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
        }

        .footer-text {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .footer-developer {
            margin-top: 0.5rem;
            font-weight: 600;
            background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* ==========================================
           RESPONSIVE
        ========================================== */
        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }

            .header-content {
                flex-direction: column;
                text-align: center;
            }

            .header-actions {
                flex-wrap: wrap;
                justify-content: center;
            }

            .kanban-board {
                grid-template-columns: 1fr;
            }

            .notification-container {
                right: 1rem;
                left: 1rem;
                max-width: none;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .btn {
                font-size: 0.85rem;
                padding: 0.65rem 1.25rem;
            }
        }

        /* ==========================================
           ANIMACIONES ADICIONALES
        ========================================== */
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        /* Scrollbar personalizado */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-primary);
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, var(--color-secondary), var(--color-danger));
        }